summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-02 10:16:24 +0100
committerGitHub <noreply@github.com>2022-02-02 10:16:24 +0100
commit050908626f64c0c984e078055215c8b5f6231ce3 (patch)
tree520851e0e39d7a0ce0beb191b748735fb73694f8
parent232bf54a6875d16653e6913355a72d55cb9daf08 (diff)
parentc37bd41c794819e0b6bc3ad4b162548057098e1c (diff)
Merge pull request #57526 from tavurth/bugfix/high-macos-cpu-usage
-rw-r--r--core/debugger/remote_debugger_peer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/debugger/remote_debugger_peer.cpp b/core/debugger/remote_debugger_peer.cpp
index 715468489c..8c6e95e276 100644
--- a/core/debugger/remote_debugger_peer.cpp
+++ b/core/debugger/remote_debugger_peer.cpp
@@ -190,7 +190,8 @@ Error RemoteDebuggerPeerTCP::connect_to_host(const String &p_host, uint16_t p_po
}
void RemoteDebuggerPeerTCP::_thread_func(void *p_ud) {
- const uint64_t min_tick = 100;
+ // Update in time for 144hz monitors
+ const uint64_t min_tick = 6900;
RemoteDebuggerPeerTCP *peer = (RemoteDebuggerPeerTCP *)p_ud;
while (peer->running && peer->is_peer_connected()) {
uint64_t ticks_usec = OS::get_singleton()->get_ticks_usec();