|
This function is only relevant for md2 and anim3d objects.
sometimes when there are many 3d animation objects updating them all every render could slow down the application
Using this function you can tell the engine to update the animation every n renders.
The default settings will update the animation every render.
Note that when the engine updates the 3D animation it is done based on time so
for example updating the animation every 4 renders instead of every render will not make the animation slower
but it will make it less smooth.
Parameters:
number_of_renders_to_wait:
Number of renders between each 3D animation update.
counter:
Usually this parameter is 0 but you can set it to a different number so that not all objects are updated at the same render
This parameter defins when will the next update happen.
Example:
The animation update will occur every 4 renders with the first update delayed 2 renders from now.
This means the first update will happen after 2 renders the second after 6 renders the third after 10 and so on.
STATE_object_set_3d_animation_update_rate(obj, 4,2);
|