|Please expand this article or section. You can help by talk page. (April 2020)if you are an editor. More information might be found in a section of the|
Turbo Mode is a feature in Scratch that runs code as fast as possible. To activate it, hold and click the green flag. Do this again to deactivate turbo mode. The use of turbo mode shifts resources from display (such as sprite motion on the stage) to computation (running your code) either within your computer (offline mode) or the Scratch editor (online mode).
- Main article: Detecting Turbo Mode
Normally, switching the backdrop 10 times will take more than 0.1 seconds. When turbo mode is on, switching the backdrop 10 times will take less time. This can be used to detect is turbo mode is on.
when green flag clicked reset timer repeat (10) switch backdrop to [please wait v] end if <(timer) > [0.1]> then switch backdrop to [please use turbo mode v] stop [all v]//or run some other code end switch backdrop to [Turbo mode detected! v]
Turbo mode is mainly used for speeding up projects.
Projects that might use turbo mode include, but are not limited to:
- Drawing projects
- Big mathematical operations
- 3D engines
- Pen projects
Turbo Mode may cause choppy display by prioritizing computation over display.