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

Minimized 100% CPU #25

Closed
Myp3a opened this issue Jan 21, 2021 · 3 comments · Fixed by #30
Closed

Minimized 100% CPU #25

Myp3a opened this issue Jan 21, 2021 · 3 comments · Fixed by #30

Comments

@Myp3a
Copy link

Myp3a commented Jan 21, 2021

What happens?
When the app is minimized, it consumes entire CPU core. Looks like some UI check without a timer - when in foreground or overlayed by another window, everything is fine

How to reproduce

  1. Start app
  2. Minimize it
  3. Observe one core fully occupied in Task Manager

What should happen
Minimizing shouldn't affect CPU usage

Version
Headphones Client: v.1.0.2, Aug 20 Release
OS: Windows 10 20H2, latest stable

@Plutoberth
Copy link
Owner

I see. This is probably caused one way or another by imGUI. It tends to cause things like this since it constantly re-renders the window. I'll check it out and report

@Plutoberth
Copy link
Owner

This was caused by DX11 not vsyncing when the window is minimized. It has no buffer to write to, so it just gives up and doesn't wait. You can either build from master in a few minutes when I push the fix, or wait a bit for the next release.

See ocornut/imgui#2496

@Myp3a
Copy link
Author

Myp3a commented Feb 11, 2021

I've built the latest version, and it works fine. Thank you!

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

Successfully merging a pull request may close this issue.

2 participants