I have a timer.performWithDelay that’s supposed to happen every 100 seconds. i.e:
timer.performWithDelay( 100, whateverTest, 0 )
Now I remember reading somewhere that by default the runtime refreshes 6 times a second or something? After some print testing, it seems to be doing it about 8.5 times a second. Now I tried something else where:
function TestOne()
firstTest = firstTest + 0.1
firstText.text = firstTest
print( firstTest )
end
function TestTwo()
firstTest = firstTest + 0.1
firstText.text = firstTest
print( firstTest )
end
function TeztOne()
timer.performWithDelay( 200, TestTwo, 0 )
end
timer.performWithDelay( 200, TestOne, 0 )
timer.performWithDelay( 100, TeztOne, 1 )
This was just a test, I still want a single timer that happens every 100 ms, unfortunately that test didn’t work either. My question is do I have to change how many times the game checks itself, and how do I change that again since I’m not familiar with the syntax. Also, would my app be using much more resources if I change the refresh rate even though I don’t have any runtime listeners? Only on touch/tap events and timers? Thanks in advance for any help or suggestions
[import]uid: 77199 topic_id: 31399 reply_id: 331399[/import]