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

:: Felice

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

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-07-06 20:24 | 0.008s | 4194k | Q:12