[SDL] CPU usage
Edward Byard
e_byard at yahoo.co.uk
Fri Feb 8 09:43:02 PST 2008
Hi
My SDL app hogs the CPU unless in a state where I'm waiting for user input. Since I'm using SDL_PollEvent, I
never miss an event, but CPU is at 100% the whole time.
If I put a 100ms delay every pass of the loop, CPU drops to ~25% which is fine.
So....how do I get CPU usage down to the ~25% figure without using a delay in the loop?
This isn't a Windows app, just a console app.
Any help muchly appreciated!
Ed
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080208/b0f94d3f/attachment.htm
More information about the SDL
mailing list