iOS monkey NSTimer pauses in certain circumstances

Monkey Forums/Monkey Bug Reports/iOS monkey NSTimer pauses in certain circumstances

Skn3(Posted 2013) [#1]
Hey,

I posted this bug via email but just putting it here as well.

I have added a view to the main monkey view progmatically and this all works fine, however when doing certain operations it will hang the monkey NSTimer and in turn stop monkey program execution.

For example if you add a webview to the monkeyview and then scroll it, the monkey target hangs all the time you are scrolling.

The fix is simple. You just need to add the monkey NSTimer to another area that gets updated by the system when these certain operations are happening.

[[NSRunLoop mainRunLoop] addTimer:_updateTimer forMode:NSRunLoopCommonModes];


This goes in targets/ios/modules/native/iosgame.cpp

It should be added after the timer has been created in ValidateUpdateTimer after line 121-ish.


marksibly(Posted 2013) [#2]
[edit]I'll have a look into this...have you tried it with brl.gamecenter? What about display link timing, no go?[/edit]