every x milliseconds accuracy

Post your own tutorials, guides and demos.

Post » Thu May 07, 2009 7:55 pm

cap demonstrating the accuracy.

top text object is increased by 50 every 50 ms
lower text object is increased by 1000 every 1000 ms

in theory they both should have the same value every 1000ms, instead the difference between them increases over time...
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Thu May 07, 2009 9:36 pm

Ah, I see. It doesn't do it for me with unlimited framerate, so I think this is not a problem with timers, but with rounding due to ticks (at 75fps for example a tick comes every 13ms, which is a significant proportion of 50ms). Submit this as a bug on the tracker and I'll get round to it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests