Frametime: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
} | } | ||
</pre> | </pre> | ||
[[Category:Glossary]] | |||
[[Category:Programming]] |
Revision as of 02:15, 22 July 2006
gpGlobals->frametime
Time spent on last server or client frame. This is ideal for calculating progress per frame but is unknown how many frames it should take.
Example
Alpha should reach 255 in 1 second.
int alpha = 0; void Think() { alpha += 255 * gpGlobals->frametime; }