I have a large application recently ported from SDL1 to SDL2 all has gone fine except that under linux the CPU usage floats around 90%. All is well on Windows.
This appears to be be problem with NVidia but not ATI. Has anyone else seen this? Is there a fix?
It sounds like your application is constantly pumping out frames. You could try enabling vertical synchronization.–
Melker Narikka
dave.lawrence kirjoitti Mon Oct 06 2014 17:52:05 GMT+0300 (EEST):
Dear Forum,
I have a large application recently ported from SDL1 to SDL2 all has gone fine except that under linux the CPU usage floats around 90%. All is well on Windows.
This appears to be be problem with NVidia but not ATI. Has anyone else seen this? Is there a fix?
We’ve enabled VSYNC and usage has indeed dropped, but it still considerably higher than running on Windows. and if we have VSYNC enabled on Windows CPU usage there dramatically increases!