27.11.2010, 18:01
I want a 5ms timer (every 5ms), but by passing values like this:
SetTimerEx("YouWillKnow", SMT, 0, "iifff", playerid, vehicleid, Xp, Yp, Zp);
In each call end, but i get quite jittery result. Possibly from PC rendering resulting in slower calculations (note, if even 1ms counts already as 1/5).
So what should I do?
Make it a "static" timer which loops, or call each time?
And I guess for performance in every 5ms I'm going to have to make global arrays? (Reason for not to - I hate global arrays ... note for you, I hate server properties and PVars in unneeded context even more ;P actually the same for CVars, static values, 4 byte variables)
SetTimerEx("YouWillKnow", SMT, 0, "iifff", playerid, vehicleid, Xp, Yp, Zp);
In each call end, but i get quite jittery result. Possibly from PC rendering resulting in slower calculations (note, if even 1ms counts already as 1/5).
So what should I do?
Make it a "static" timer which loops, or call each time?
And I guess for performance in every 5ms I'm going to have to make global arrays? (Reason for not to - I hate global arrays ... note for you, I hate server properties and PVars in unneeded context even more ;P actually the same for CVars, static values, 4 byte variables)