View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005249||Multi Theft Auto : San Andreas||Scripting||public||2010-03-21 16:52||2010-03-23 18:20|
|Target Version||1.0.4||Fixed in Version||1.0.4|
|Summary||0005249: Only 1 timer can elapse per frame|
The title pretty much says all. If you've got a lot of timers, you can enjoy them a long, long time.
|Steps To Reproduce|
This little runcode test should make it quite clear:
crun function drawSomeText() dxDrawText(tostring(getTickCount()-tick),0,0) end
On 36 FPS, this took just a little longer than 100 seconds.
36 FPS * 100 s = 3600 frames
3600 timers were set, so 1 elapsed per frame.
Not yet tested server-side, but I assume it should do the same.
|Tags||No tags attached.|
Just tested it on the server, same issue:
run function drawSomeText() print(tostring(getTickCount()-tick)) end
Ran for about 40 seconds, with around 60 - 100 FPS.