Re: Problem gettting a smooth continous background scroll (SDL2)
Ismael Serrano <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CAD64bpP97xRqgvmm03frDc_67G2aGVvbuH+03i04Bb=oKcZgyA@mail.gmail.com> |
This define is the problem: #define MIN_FRAMETIME_MSECS 33 Modify it to 16 and goes really smoth. #define MIN_FRAMETIME_MSECS 16 :) 2016-08-19 20:12 GMT+02:00 exerion <[email protected]>: > Which tutorial? Lazy foo's Timers? I still have to read it. > > I'm using a basic delta-time for timing. > > In these few hours I was guessing why the same code is smooth in the > example I found (see link provided in previous posts), but not when > compiled in my computer. So I wanted to check if the compiler can affect in > some way and so evident. > > I installed Eclipse + Mingw + SLD2 -I have to say wasting 90% of time > dealing with errors, problems detecting the toolchain, etc-. Finally I got > it working and compiled my continous scroll example (because it's simplier > and i know it). Performance is pretty similar to VS2013, with minimal > differences in speed (there are some but for me, 1-2ms per frame is not > relevant now). Images still are tearing (again I say tearing because I > think this is the effect). > > > Link with my code and the example i was talking about: > > https://mega.nz/#!DgVjVaYJ!OBSd3q4G44ex5EOUCAazjjGGuFl__bw4asMo4TzqVQU > > There are some .exe and dlls. All exes for VS2013 are compiled by me, the > DLLs are from SDL official package. Anyother exe was compiled by third > parties but I haven't found any wrong with them. > > I'll continue with this odissey... > > If anyone has some article, book or any other reference about SMOOTH > scrolls (key here is smooth of course [image: Very Happy] ), I'd > appreciate this. This has becomed something personal [image: Very Happy] > > > ------------------------------ > > Signature under construction. > > _______________________________________________ > 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