Skip to content
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

Fix for high CPU usage in samples. Busy-waiting loops. #2

Closed
datgame opened this issue Dec 20, 2018 · 1 comment
Closed

Fix for high CPU usage in samples. Busy-waiting loops. #2

datgame opened this issue Dec 20, 2018 · 1 comment

Comments

@datgame
Copy link

datgame commented Dec 20, 2018

  1. Change vsync = false; in RendererDesc.cpp to true.
  2. Add Ps::Thread::sleep(1); on line 97 in SampleMain.cpp
    This brings down 2 busy-waiting cores, some 28% cpu usage on my pc, down to 2%.
    No more noisy fans when trying out the demos.
@amoravanszky
Copy link
Contributor

Thanks, I added this in our internal mainline, it will be part of the next github update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants