Camera movement less choppy at lower framrates, a little slower overall.

This commit is contained in:
Shamus Young 2009-05-05 22:47:17 +00:00
parent 1ab199fb3f
commit 7ce3174bbf
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static void do_auto_cam ()
now = GetTickCount (); now = GetTickCount ();
elapsed = now - last_update; elapsed = now - last_update;
elapsed = MIN (elapsed, 1000); //limit to 1 second worth of time elapsed = MIN (elapsed, 50); //limit to 1/20th second worth of time
if (elapsed == 0) if (elapsed == 0)
return; return;
last_update = now; last_update = now;
@ -125,7 +125,7 @@ static void do_auto_cam ()
#else #else
behavior = camera_behavior; behavior = camera_behavior;
#endif #endif
tracker += (float)elapsed / 100.0f; tracker += (float)elapsed / 300.0f;
//behavior = CAMERA_FLYCAM1; //behavior = CAMERA_FLYCAM1;
switch (behavior) { switch (behavior) {
case CAMERA_ORBIT_INWARD: case CAMERA_ORBIT_INWARD: