In all examples all values are multiply by appspeed() function. So what is faster to calculation:
this:
repeat
turnentity cube1,vec3(0,1*appspeed(),0)
turnentity cube2,vec3(0,2*appspeed(),0)
turnentity cube3,vec3(0,3*appspeed(),0)
forever
or this:
repeat
spd#=appspeed()
turnentity cube1,vec3(0,1*spd,0)
turnentity cube2,vec3(0,2*spd,0)
turnentity cube3,vec3(0,3*spd,0)
forever
?
And that's one, what is better (faster) to using vector constructors:
this:
repeat
turnentity cube,vec3(0,1,0)
forever
or this:
global turn_vec:tvec3=vec3(0,1,0)
repeat
turnentity cube,turn_vec
forever
?