On SDL_WaitEvent's behavior |
On SDL_WaitEvent's behavior |
Sik
|
2015-01-11 3:18 GMT-03:00, phobitor:
Actually, it can be a big deal with desktops too, since I've been noticing that calling SDL_Delay here doesn't seem to help bring down CPU time at all (so it's stuck at 100% usage no matter what I do). I guess I missed some library when building for Linux and it's just taking the busy loop option or something like that, on Windows I'm not having this issue. At first that may not seem like a serious problem since the program will yield the excess CPU time to other processes anyway, but if you're running on a laptop, that will drain the battery FAST, so it's better to avoid it. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|