Re: Improve SDL2 graphics API
Jonathan Dearborn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+DSiHYYoJzD5Aei0mC+C3zUCKmNFvM821TT99x9QU8Lgh2n_g@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org > > _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org