You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small clarification, it's not just in menus but everywhere at all times with the Vulcan backend, menus and games, a CPU core is being pushed to 100%, which core it is can switch while running.
This is on Steam Deck Linux AMD APU. https://ibb.co/58wN3Xy https://ibb.co/8jzJRhv
Alright, I've figured this out as far as I can tell. When I switched the SDL build to run independently of the message pump in Vulkan mode, I forgot to switch from SDL_PollEvent to SDL_WaitEvent. So without being throttled by rendering, it'll just spin.
There seems to be some differences in behavior to iron out but once that's done, this will be fixed.
The starting commit mentioned by PhantomX above doesn't seem to have anything to do with it..
Activity
foxsevent commentedon May 11, 2024
Small clarification, it's not just in menus but everywhere at all times with the Vulcan backend, menus and games, a CPU core is being pushed to 100%, which core it is can switch while running.
This is on Steam Deck Linux AMD APU.
https://ibb.co/58wN3Xy
https://ibb.co/8jzJRhv
PhantomX commentedon May 26, 2024
Starts after Some renaming, add a bunch of sanity debug-asserts .
hrydgard commentedon May 26, 2024
Thanks, that's interesting!
hrydgard commentedon May 28, 2024
Hm, in my testing, I'm seeing 100% CPU in commits before that one. I'll bisect myself (maybe it's a different cause..)
hrydgard commentedon May 28, 2024
Alright, I've figured this out as far as I can tell. When I switched the SDL build to run independently of the message pump in Vulkan mode, I forgot to switch from SDL_PollEvent to SDL_WaitEvent. So without being throttled by rendering, it'll just spin.
There seems to be some differences in behavior to iron out but once that's done, this will be fixed.
The starting commit mentioned by PhantomX above doesn't seem to have anything to do with it..
SDL: Switch to SDL_WaitEventTimeout instead of SDL_PollEvent when pos…