-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase RemoteDebuggerPeerTCP poll to 6.9ms to reduce CPU usage #57526
Increase RemoteDebuggerPeerTCP poll to 6.9ms to reduce CPU usage #57526
Conversation
Please use a descriptive commit name, e.g.:
Did you try with |
@Faless I will check that now, and I will add a more descriptive name & force push |
@Faless 4.1ms seems to be a good compromise as it leads to only 1% increase in CPU while updating at 144hz. Thoughts? |
4c486f9
to
fc3a72a
Compare
Updated commit message and force pushed |
4.1 ms doesn't match a 144 Hz refresh rate, it matches (roughly) a 240 Hz refresh rate. Nonetheless, if it works well, you can keep this value 🙂 |
fc3a72a
to
48be532
Compare
Fix high CPU usage on MacOS by reverting the polling for Network debugging to match 144hz refresh rate.
48be532
to
c37bd41
Compare
Seems ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
Thanks! |
Let's give this value a try, and if some users find it still too high, or too low for real-time updates, we could also consider making it configurable. |
@akien-mga configurable would be very nice! I'm not sure if this needs to be cherry picked back to 3.x because as far as Calinou stated the system was rewritten for 4.x |
Yeah, we don't need the cherry pick, the new debugger code (which uses threads) was not ported to 3.x |
Closes #57256
And profile report: