In 60fps carts, using "." to advance a frame will skip a frame and advance 2 frames instead.
n=0 function _update60() n+=1 end function _draw() cls() ?n,30,0 end |
To reproduce, run the code above, press ESC, and advance with ".".
If you instead put "n+=1" in the _DRAW() function though, it will not skip, essentially behaving like a 60fps cart running at 30fps:
n=0 m=0 function _update60() n+=1 end function _draw() m+=1 cls() ?"update: "..n.."\ndraw: "..m,30,0 end |
P#77375 2020-05-29 14:04
1
this bug is still a thing in 0.2.4, I also made a demonstration gif
P#104069 2022-01-02 02:17
[Please log in to post a comment]