SFML community forums

Help => Graphics => Topic started by: andreaszdw on March 06, 2009, 08:18:49 am

Title: sprites movement stuttering
Post by: andreaszdw on March 06, 2009, 08:18:49 am
If I move my sprites, it looks always like stuttering. What could be the problem?

How could I do smooth movement?

(The FPS of the program is 2000 or, the speed of my system couldn't be the problem)

The source is to find here:

http://code.google.com/p/sallb/source/browse/#svn/trunk

Bye
Andreas
Title: sprites movement stuttering
Post by: dunce on March 06, 2009, 09:13:27 am
Quote
How could I do smooth movement?

1. Do not use large steps while moving
2. Do not update sprite position each frame. Use time elapsed since last step to decide if you need to move sprites or not.

Maybe this helps.  :)