Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0078

Opcode Database

0078

DescriptionMultiplies the delta time since the last frame by the specified value and adds the result to the specified variable.

The frame delta time is the time passed since the last frame. Useful to prevent lag when drawing screen objects on slow (often pausing) computers.

Using this you could advance the drawing along by the time that has passed (the time that a PC could've stopped for) in milliseconds since the last frame which would help to eliminate the effects of lag.
Parameters (v2)1) (Returned) Global variable (VAR_FLOAT)
2) Float (FLOAT)
Gamessa vc iii
CategoryDraw, Math
San Andreas
sascm.ini0078=2,%1d% += frame_delta_time * %2d%
Example0078: $float += frame_delta_time * 6.0
Command NameADD_TIMED_VAL_TO_FLOAT_VAR
Vice City
sascm.ini0078=2,%1d% += frame_delta_time * %2d%
Example0078: $float += frame_delta_time * 6.0
GTA III
gtascm.ini0078=2,%1d% += frame_delta_time * %2d%
Example0078: $float += frame_delta_time * 6.0

<< 0077

0079 >>