Merge pull request #57526 from tavurth/bugfix/high-macos-cpu-usage
This commit is contained in:
commit
050908626f
|
@ -190,7 +190,8 @@ Error RemoteDebuggerPeerTCP::connect_to_host(const String &p_host, uint16_t p_po
|
||||||
}
|
}
|
||||||
|
|
||||||
void RemoteDebuggerPeerTCP::_thread_func(void *p_ud) {
|
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;
|
RemoteDebuggerPeerTCP *peer = (RemoteDebuggerPeerTCP *)p_ud;
|
||||||
while (peer->running && peer->is_peer_connected()) {
|
while (peer->running && peer->is_peer_connected()) {
|
||||||
uint64_t ticks_usec = OS::get_singleton()->get_ticks_usec();
|
uint64_t ticks_usec = OS::get_singleton()->get_ticks_usec();
|
||||||
|
|
Loading…
Reference in New Issue