And animation is smooth! With SDL_Delay(10) problem still exists, but it’s
better than without Delay.
I use OpenGL, and I seen that effect in my few programs, like quite complex 3D
game, and simple rotating cube demo.
I think the problem is SDL_GetTicks returns small integers, is it possible to
get floats, or just smaller units that ticks? What is correct way to sync ?–
Well it’s a cold world And I’m in the middle
Caught in the in-between I don’t belong here
So I’m writing to you It’s wrong here "Letters From Earth"
Where I’m sending you some Letters from Earth - Ronnie James Dio
You do NOT need better resolution than this, especially when adding an
SDL_Delay(20) fixes your problem.
SDL_Delay means smaller fps
Chances are, this is a bug in your code. Please post it, and we can see.
I will send you full source in private mail, here it is sync code:
static int t0=0;
int t1,t;
t1=SDL_GetTicks();
if (t0!=0)
{
t=t1-t0;
rx+=axtt/2+sxt;
ry+=aytt/2+syt;
rz+=aztt/2+szt;
sx+=axt;
sy+=ayt;
sz+=azt;
}
t0=t1;On Mon, Dec 03, 2001 at 12:41:34AM -0500, Ryan C. Gordon wrote:
–
Well it’s a cold world And I’m in the middle
Caught in the in-between I don’t belong here
So I’m writing to you It’s wrong here "Letters From Earth"
Where I’m sending you some Letters from Earth - Ronnie James Dio