What is the smallest increment of time that the Timer can measure?
Barrythe
Member Posts: 82
Hi all, I've set up a timer by using a Timer action to increase a real attribute by X amount every X seconds. The intended game is reaction time based so I want to have it record to the nearest 0.01 second. However the lowest increment I can reach is to add 0.04 every 0.04 seconds. Once I drop to every 0.3 seconds or below the timer looks as if it continues to count but the timing seems to go erratic and get out of sync.
My question is, is the gamesalad engine limited in that it cannot perform actions any quicker than every 0.04 seconds? I have only tested this within gamesalad preview mode, so is it possible that testing on an iphone will give the proper results? If not is there another way I can time to the 0.01 of a second? Thanks, hope someone can help.
My question is, is the gamesalad engine limited in that it cannot perform actions any quicker than every 0.04 seconds? I have only tested this within gamesalad preview mode, so is it possible that testing on an iphone will give the proper results? If not is there another way I can time to the 0.01 of a second? Thanks, hope someone can help.
Comments
Sorry for the rambling posts, but I can't get much further with my game until I know wether this issue will be present in an actual Iphone build. Once I have my apple developer account sorted I can quickly test this myself.
Thanks all, if I still don't get any replies I won't bump again I'll just wait until I'm a subscribed apple developer and test it myself.
Might be fun and valuable to add other benchmark tests that people might find helpful being run on numerous devices. If anyone has ideas (or better still wants to create the file and pass it on). We could then rerun the test for 0.9.1 and beyond to see if certain things improve whilst others don't.
I can attempt to get this made, although if anyone who knows what they are doing wants to attempt it that may be a more reliable option. Either way it sounds like a worthy cause.
And shaz possibly the self.timer would give different results to the timer, maybe that could be incorporated in to the test?
I am hoping that <0.1 resolution is possible.
Presumably previweing the game on the mac within gamesalad will also not allow 0.01 second intervals, but this will work when run on a capable device.