Log In  

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

I wonder if the time the cart is stopped is being included in the frame/draw time, causing the wrapper code to skip a draw to try to catch up.

P#77563 2020-06-02 23:03
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]

Follow Lexaloffle:          
Generated 2024-03-29 07:00:42 | 0.006s | Q:14