Document.png Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (April 2020)

Turbo Mode is a feature in Scratch that runs code as fast as possible.[1] To activate it, hold ⇧ Shift 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).

Detection

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]

Uses

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

Problems

Turbo Mode may cause choppy display by prioritizing computation over display.

References

  1. post:475802