The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 CPU hog
dave.lawrence


Joined: 21 Oct 2009
Posts: 9
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?

Thanks,

[/code]
SDL2 CPU hog
meklu
Guest

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):
Quote:
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?

Thanks,

[/code]





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
dave.lawrence


Joined: 21 Oct 2009
Posts: 9
Hi,

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!

thx,