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

Olive uses 100% CPU when minimized #20

Closed
itsmattkc opened this issue Feb 1, 2018 · 1 comment
Closed

Olive uses 100% CPU when minimized #20

itsmattkc opened this issue Feb 1, 2018 · 1 comment

Comments

@itsmattkc
Copy link
Contributor

This appears to be related to SDL. By default, Olive's main window is a SDL hardware renderer with vsync enabled. It appears that minimizing it disables the vsync, causing the frame rate to uncap, and Olive to update infinitely, only capped to the limit of the CPU. Possible solutions are: disable vsync and run on an internal timer at all times for updates, research SDL documentation for built-in solutions to this, or include a listener that disables updates when the window is in a minimized state.

@itsmattkc
Copy link
Contributor Author

Disabling vsync corrected this issue

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

1 participant