Open mattjennings opened 7 months ago
Ack! Good find, fixed update strikes again!
I've done a little poking around, I think there are multiple things going on.
During the fixed update
All of these seem fixable with some light refactoring, really things that need to happen simultaneously should not be separate await's but a single atomic call because we are at the mercy of browser scheduling (my theory).
This issue hasn't had any recent activity lately and is being marked as stale automatically.
https://github.com/excaliburjs/Excalibur/assets/8703090/8557ea64-fabd-4805-8158-f3d2bee210a4
It seems that the first frame of a scene transition may be incorrect when
fixedUpdateFps
is set to a rate lower than the screen refresh rate. To exaggerate the effect, I've set thefixedUpdateFps
to 5 in the video, but it's occasionally noticeable when set to 60fps on a 120hz screen.It occasionally does something similar on the final frame as well, where it'll flicker back to the beginning of the transition.
Steps to Reproduce
fixedUpdateFps
to something lower than the screen's refresh ratehttps://jsfiddle.net/mattjennings/mkL637pz/2/
Expected Result
Should not see a flicker on first frame of transition
Actual Result
It flickers on the first frame
Environment