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
osx: fix high cpu usage when obscured #13016
Conversation
Oha ... didn't expect this sort of workaround from you tbh - but am totally fine with is. But it could need a comment on why we sleep there ... |
this is no workaround at all. the architecture delegates throttling of the render/main loop to windowing. if, for what reason ever, swapBuffers does not block, windowing has to take action. |
Is this worth a backport (applies cleanly) or is it to risky? |
I don't think it is risky. |
comment added |
Thx - sorry somehow i was confused because the last time we had this cpu usage problem it was in the dirty regions area of things. Guess this throttle not working is something in the osx gl implementation then (were swapbuffers is a nop or something when kodi is offscreen maybe). |
Yes i know that method very well - i had to add exceptions for all those full screen alpha translucent apps that are meant to decrease brightness (which resulted in frame limiter kicking in). So in case people are reporting stuttering ui rendering - we need to have those apps in mind aswell... ;) |
jenkins build this please |
WIN-UWP-ARM failure is unrelated |
build error unrelated |
@Memphiz you want this backported or risk too high? |
No risk immo @FernetMenta what do you think? |
I think risk is low. Note that I did not test it on v17 |
see title