PDA

View Full Version : Delaying Animation



ragzzy-R
05-02-2013, 04:31 AM
Hi,
right now I am able to animate through a sprite sheet.but the problem is it animates sooooooo fast.I need to set a small delay between the frames.also the speed is affected by fps so i want to stabilize that also please help.

ragzzy-R
05-02-2013, 04:53 AM
i used SDL_delay which did the work but still my animation is affected by FPS.i want to limit the FPS i turned on Vsync which limits the FPS to my screen refresh rate but on slower systems Vsync causes a noticable lag.so i want to limit my FPS independent of Vsync so that even if the driver forces Vsync on or off my frame limit still works.please let me know this.thanks