- Joined
- Mar 27, 2008
- Messages
- 8,035
A Periodic Timer of 0.01s interval is bad as we all know it.
But, does it really bad ?
I mean, what if the process is in the trigger is small ?
Would it still be considered as inefficient ?
And what is the criteria for a code to be 'heavy' or 'large process' ?
Math calculations ?
GUI BJs function ?
Location instead of Reals ?
Amount of lines in a trigger ?
I'm asking this because some properties needs to be <0.03s interval.
I'm doing a camera system at the moment and it updates the Rotation of the Camera Angle depends on the unit.
Now, I have tried a 0.03 interval but it seems the 'spikes' or the frame update can be seen - thus ruining the efficiency of the mechanics.
If I use the 0.01 interval, it is smooth, very smooth indeed.
So I need suggestions from you guys, whether I should stick to the 0.03 interval or use the 0.01 ?
The trigger's calculation is not that immense I think, calculating distance from UnitA and UnitB, etc.
And yes, this trigger is for running throughout the game purpose, it doesn't have a turn off trigger - except maybe each new rounds.
But, does it really bad ?
I mean, what if the process is in the trigger is small ?
Would it still be considered as inefficient ?
And what is the criteria for a code to be 'heavy' or 'large process' ?
Math calculations ?
GUI BJs function ?
Location instead of Reals ?
Amount of lines in a trigger ?
I'm asking this because some properties needs to be <0.03s interval.
I'm doing a camera system at the moment and it updates the Rotation of the Camera Angle depends on the unit.
Now, I have tried a 0.03 interval but it seems the 'spikes' or the frame update can be seen - thus ruining the efficiency of the mechanics.
If I use the 0.01 interval, it is smooth, very smooth indeed.
So I need suggestions from you guys, whether I should stick to the 0.03 interval or use the 0.01 ?
The trigger's calculation is not that immense I think, calculating distance from UnitA and UnitB, etc.
And yes, this trigger is for running throughout the game purpose, it doesn't have a turn off trigger - except maybe each new rounds.