zukko
12-24-2004, 12:28 PM
Hi!, im making a demo, and i want it to work at the same speed on almost all computers, i have a speed variable called vel (with an initial value of 100.0f) and i divide it by the current frames per second that giving me the value of sync_vel:
sync_vel = vel / fps;
the logic behind this is that if i get 40fps on computer A sync_vel will be 2.5f and on computer B i get 20fps sync_vel will be 5.0f, on a slower pc the speed will be bigger to compensate, and on a faster pc, speed will be slower. so am i doing it correctly and will this work?
sync_vel = vel / fps;
the logic behind this is that if i get 40fps on computer A sync_vel will be 2.5f and on computer B i get 20fps sync_vel will be 5.0f, on a slower pc the speed will be bigger to compensate, and on a faster pc, speed will be slower. so am i doing it correctly and will this work?