[SDL] Improve SDL2 graphics API

Sam Lantinga slouken at libsdl.org
Tue Sep 13 00:24:37 PDT 2016


What if you leave vsync enabled but just add a delay? It sounds like you're
running hot and getting throttled by the OS or the driver.

On Mon, Sep 12, 2016 at 3:33 PM, sgrsgsrg <thephanoo at gmail.com> wrote:

> I have some news.
>
> It's definitely a vSync problem.
>
> If i disable vsync and set a SDL_Delay(1) in my main loop the rendering is
> as smooth as when i used SDL2 renderer.
>
> If i dont put any delay, the app renders at like 0.2 FPS
>
> Any idea ?
>
> _______________________________________________
> 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/584aa06c/attachment.htm>


More information about the SDL mailing list