Wacky speed on Kindle Fire

I made my application in a way that it behaves solely based on time… the logic is more or less:

function enterFrame( event )  
 if event.time \> nextActionTime then  
 --do stuff here  
 nextActionTime = nextActionTime + 100 --arbitrary number here just for example  
 end  
end  

In all devices tested so far it works fine (Android 2.2, 2.3, 4.1, 3.0, iPhone 4, 4S, iPad 2, iPad 3) except on Kindle Fire, where it works in a “jerky” manner, sometimes too fast, sometimes too slow.

What it might be? [import]uid: 142895 topic_id: 30191 reply_id: 330191[/import]

If you increment the time by 100 (let’s say), and that portion of code is called every 200 milliseconds, then things will be slowed down 100%. [import]uid: 160496 topic_id: 30191 reply_id: 120905[/import]

I made a print of the time since last frame.

Simulator:

33.333
33.333
33.333
33.333
33.333

Xperia Play:

40
40
40
40
40
Kindle Fire:

32
34
33
34
75
22
80
10
33
33
10
90
33
32
36
35
30
40
30
80
33
10
30

:frowning: [import]uid: 142895 topic_id: 30191 reply_id: 120913[/import]

If you increment the time by 100 (let’s say), and that portion of code is called every 200 milliseconds, then things will be slowed down 100%. [import]uid: 160496 topic_id: 30191 reply_id: 120905[/import]

I made a print of the time since last frame.

Simulator:

33.333
33.333
33.333
33.333
33.333

Xperia Play:

40
40
40
40
40
Kindle Fire:

32
34
33
34
75
22
80
10
33
33
10
90
33
32
36
35
30
40
30
80
33
10
30

:frowning: [import]uid: 142895 topic_id: 30191 reply_id: 120913[/import]