View Single Post
  #14  
Old 12-20-2010, 12:57 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by cbk1994 View Post
I did a bit of testing on an iPhone 4.

I commented out, in turn, either the trigger for timeOut or the trigger for scheduleEventTest.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.loopCount 0;
  
  
this.trigger("scheduleEventTest");
  
// this.trigger("timeOut");
}

function 
onScheduleEventTest() {
  
this.loopCount ++;
  
player.chat this.loopCount;
  
  
this.scheduleEvent(0.05"scheduleEventTest");
}

function 
onTimeOut() {
  
this.loopCount ++;
  
player.chat this.loopCount;
  
  
this.setTimer(0.05);

Results from clientstats after running for about 4 minutes (until the loop counter hit 5k):
scheduleEvent:


setTimer:


I closed and re-opened Graal before each test on the iPhone.
That is quite interesting. Thanks for the statistics, I would (+ rep 1) if possible.

So basically there is no nice way of doing it. Well, at least I'm fully aware of the constraints on that part.
Reply With Quote