Re: Problem gettting a smooth continous background scroll (SDL2)
Ismael Serrano <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CAD64bpOPr1qey6Qvm-4d7QRxq+ihBTkfNPw2n81UEXjwcEAx5A@mail.gmail.com> |
It's going to be hard to make it completely smooth without vSync. Sometimes you will see the same image for 2 screen refresh, and sometimes you will call to render two times on the same screen refresh. Since there is no synchronization that is the best you can reach without it. Also sometimes you will see part of the render moved in horizontal because the game is rendering in the middle of the screen refresh. The odds of not using vSync.... Good luck with it. 2016-08-21 20:39 GMT+02:00 exerion <[email protected]>: > Yes, chaging the value from 33 to 16 smoothens the transition a lot, but I > still see the problem. > And in the moment I change the speed (faster), is more evident. It's too > noticeable. > > I know not using V-sync imposes some visual limitations, aka, it's quite > hard to achieve a smooth scroll in the same way v-sync is enabled. Is it so > hard to have a smooth scroll without v-sync? looks so. > > Basicaly the image looks like shaking or jumping, not sure how to explain. > The effect is more evident when I replaced the original images with a > chess-pattern as I read in a forum, that helps to detect problems with > moving images. > > I'll continue working on it. > > Btw I appreciate a lot all of your suggestions [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