I noticed one of my CPU cores running at 100% when in the main menu.
A quick profiling found a loop just busy-waiting for some time to pass that I replaced by a sleep for that amount of time (50ms).
Related Issues
Screenshots (if applicable)
Checklist
[x] I have tested my changes locally and verified that they work as intended.
[x] I have documented any new or modified functionality.
[x] I have reviewed the changes to ensure they do not introduce any unnecessary complexity or duplicate code.
[x] I understand that by submitting this pull request, I am agreeing to license my contributions under the project's license.
Pull Request Type
Description
I noticed one of my CPU cores running at 100% when in the main menu. A quick profiling found a loop just busy-waiting for some time to pass that I replaced by a sleep for that amount of time (50ms).
Related Issues
Screenshots (if applicable)
Checklist
Additional Comments