I need to fill the Framebuffer exactly every new frame with a new image. The most time it works fine, but sometimes I get an Interrupt to early. This will overwrite the framebuffer before he is displayed. On the Monitor I can see, that the Image is skipped and the next Image is displayed instead. The next interrupt is than late or better to say in the right time of the second interrupt.
Let us assume I have 60 frames per second. Normally I get an interrupt every 16.66 ms.
Here a recorded list of interrupt delta times:
0,0024 <- to early
0,0309 <- to late (but in the right time for this interrupt count)
E.g.: Estimated is that the display show 1, 2, 3, 4, 5, 6, 7 (as Images)
What we see is 1, 3, 3, 4, 5, 6, 7. Because 1 and 2 are send in time. 3 is send to early and override 2. 4 is coming late and 3 is displayed again.
This is very sporadic. Sometimes every hour, sometimes after one minute.
Did anyone observed this?
Are there any workaround? E.g. manually filling the framebuffer, but how to get the right time?
Are there adjustments necessary?
Thanks in advance, Christian.