leopard icon indicating copy to clipboard operation
leopard copied to clipboard

(Suggestion) Add Turbo Mode

Open Cooliokid956 opened this issue 5 years ago • 3 comments
trafficstars

Turbowarp works well with raytracers, raymarchers, etc. But then I wanted to try one on leopard, and to my surprise, it was pretty slow, probably because the fps was locked to 60, could a turbo mode be added that unlocks the fps?

Cooliokid956 avatar Nov 10 '20 19:11 Cooliokid956

That's an interesting idea! First I would have to figure out what Scratch is doing differently that Leopard isn't. (I don't know why setting the frameRate to some massive number in a Leopard project doesn't make it run as fast as turbo mode on Scratch,)

PullJosh avatar Nov 12 '20 03:11 PullJosh

if the framerate controls a timer, why not remove the timer entirely and let the code run as fast as it wants to? also, adding onto this, no screen refresh custom blocks take as long as regular blocks

Cooliokid956 avatar Sep 04 '21 04:09 Cooliokid956

Turbo mode basically works by skipping screen refreshes and running as much code as possible until hitting the interval of 1/30th of a second (or whatever the specified frame rate is; at which point the current state of the project is rendered). It has some other additional quirks, so an in-depth investigation is required to make sure we implement this correctly if it's a desired feature.

towerofnix avatar Jul 19 '22 03:07 towerofnix