Stopping Jittery Motion

If this is too SDL inspecific to be appropriate here maybe someone can
let me know a better place to ask?

I’m running into a problem I’m sure is caused by my own ignorance.
Here’s a description of the problem: I’m moving a sprite from one
location to another, one pixel at a time. If you set up the main loop to
move the sprite every 30 (or more) ticks, the motion should be
consistent so long as the framerate stays higher motion, no? That is,
so long as one frame at least is painted for every 30 ticks.

This is the situation I have here. The framerate is upwards of 90fps,
and there’s a move every 30 ticks. Still the motion hiccups at
semi-regular intervals. There are no times in the main loop where any
extra work is done either, other than the move, that is.

I’m either suffering from a major lack of sleep, or missing something
completely.

Little help?–

End of Rant.

Jimmy
JimmysWorld.org

sigh
Sorry if I wasted anyones time. I found out what the problem was. IN
case anyone is curious, my IDE Code Crusader does ‘something’ every
second on the second that must be pretty heavy. Close some of the jcc
windows and it worked fine.
Closing all the Code Crusader windows upped the framerate to 120+ from
85-90 too.

Oops.On Fri, 2001-12-21 at 03:19, Jimmy wrote:

If this is too SDL inspecific to be appropriate here maybe someone can
let me know a better place to ask?

I’m running into a problem I’m sure is caused by my own ignorance.
Here’s a description of the problem: I’m moving a sprite from one
location to another, one pixel at a time. If you set up the main loop to
move the sprite every 30 (or more) ticks, the motion should be
consistent so long as the framerate stays higher motion, no? That is,
so long as one frame at least is painted for every 30 ticks.

This is the situation I have here. The framerate is upwards of 90fps,
and there’s a move every 30 ticks. Still the motion hiccups at
semi-regular intervals. There are no times in the main loop where any
extra work is done either, other than the move, that is.

I’m either suffering from a major lack of sleep, or missing something
completely.

Little help?

End of Rant.

Jimmy
JimmysWorld.org


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

End of Rant.

Jimmy
JimmysWorld.org