[SDL] Improve SDL2 graphics API

Jonathan Dearborn grimfang4 at gmail.com
Tue Sep 13 09:32:35 PDT 2016


You might incur a penalty from the OS scheduler because you're hogging all
the CPU time.  SDL_Delay() is a way to give back time for the CPU to run
other tasks.

Jonny D


On Tue, Sep 13, 2016 at 12:03 PM, sgrsgsrg <thephanoo at gmail.com> wrote:

> Perfectly smooth with vSync + delay(1)
>
> What does that means ?
>
> On my test level (quite empty) each frame i do 25 GPU_Blit, 1
> GPU_BlitRotate, 1 GPU_Clear and 1 GPU_Flip, nothing more.
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160913/79c4ef06/attachment.htm>


More information about the SDL mailing list