Subversion Repositories Games.Chess Giants

Rev

Rev 185 | Rev 192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 185 Rev 189
Line 433... Line 433...
433
 
433
 
434
         the_scene.update = false; // scene no longer needs to be updated now
434
         the_scene.update = false; // scene no longer needs to be updated now
435
      }
435
      }
436
 
436
 
437
      Audio_Think (); // ensure audio is playing
437
      Audio_Think (); // ensure audio is playing
-
 
438
         frame_count = 0; // reset frame count every 100 frames
-
 
439
         Sleep (1); // once every 100 frames, wait a millisecond
438
 
440
 
439
      previous_time = current_time; // save previous time
441
      previous_time = current_time; // save previous time
440
      if (frame_count == 100)
442
      if (frame_count == 100)
441
      {
443
      {
442
         frame_count = 0; // reset frame count every 100 frames
-
 
443
         Sleep (1); // once every 100 frames, wait a millisecond
-
 
444
      }
444
      }
445
      else
445
      else
446
         Sleep (0); // else just allow context switching
446
         Sleep (0); // else just allow context switching
447
      frame_count++; // increase the frame count
447
      frame_count++; // increase the frame count
448
   }
448
   }