[SDL] SDL_Flip performance

Tony Wu tony at sonowise.com
Thu Jul 11 19:40:01 PDT 2002

The only way for SDL to get around the VSync problem is using the SDL_Flip. It works fine
except the performance is terrible. Seems to me that the driver uses polling method to detect
the Vertical retrace. It calls the kernel function too often so it eats up a lot of CPU time. Put the
SDL_Flip in a thread doesn't help at all because it also slows down other tasks.

Does anyone have a better way to detect the Vertical retrace?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020711/a73fbfd7/attachment-0007.htm>

More information about the SDL mailing list