Performance Question: About Timers.
#1

Which way is better?
Action: Call x for y times within z interval.

Quote:

rfunction(datas,y,z){
y--;
if(y>0)
SetTimerEx("rfunction", z, 0, "iiii", datas,y,z);
x(datas);
}

OR

Quote:

tfunction(datas,y,z){
new i=SetTimerEx("x", z, 1, "dddd", datas);
SetTimerEx("KillTimer", y*z, 0, "d", i);
}

Reply
#2

The less each timer has to process, the better.
Reply
#3

Thanks @SickAttack
Also i didnt search well before post that question but there are lots of discussion topic about it. Sorry for that.
Reply
#4

I updated first post with another question.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)