STATE_engine_set_minimum_rendering_time

 

 


  Sets a minimum time for each render. If STATE_engine_render() take less time
  than the specified time then the engine will wait (Doing Sleep() ) till it reaches the given
   duration.
   Why should you use this function ? Sometimes when you get to the end of your world
   The engine has only few polygons to render in this case it can get to 1000 frames per seconds and more !!!
   If you are moving a car by X units every render then your car is going to become
   a rocket when you reach the end of the world ...
   The default is 2. This permits a maximum of 500 frames per seconds
   Note also the function STATE_engine_get_computer_speed_factor()
  Example: STATE_engine_set_minimum_rendering_time(0);

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com