Announcement

Collapse
No announcement yet.

info.timerTime is skipping seconds in simulator

Collapse
X
  • Time
  • Show
Clear All
new posts

  • info.timerTime is skipping seconds in simulator

    I have spend some time (read a few hours ) to debug my datafield, but finally found that info.timerTime is skipping seconds in the simulator (SDK 2.4.5).
    When I do:

    if (mTimerRunning) { System.println(info.timerTime/1000); }

    I get in the console:
    0
    1
    2
    3
    5
    6
    7
    8
    9
    11
    12
    13
    14
    15
    16
    18
    19
    20
    21
    22
    24
    25
    26
    27
    28
    29

    Missing seconds are: 4, 10 17, 23
    I didn't copy the range further, but it is about every 6 seconds that a beat is missing (30 is the next one )

    I run the simulator from Eclipse in Windows 10 on a AMD Ryzen 1600 PC

  • #2
    The simulator event appears to be running a bit slow for these callbacks. This issue is generally not present on devices. I think we can improve this, but you should look into making your code independent of the callback timing. There are no guarantees that the system will not delay (or even completely skip) a callback if higher priority tasks need to execute.

    Comment

    Working...
    X