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. Another way to turn on turbo mode is to press See Inside and then press Edit, then "Turn on Turbo Mode." The use of turbo mode shifts resources from display (such as sprite motion on the stage) to computation (running code) either within the 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]

This can also be helpful in case users have created a project dependent on speed, because if turbo mode is activated, this could lead to unfair advantages compared to others who do not know about Turbo Mode.

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.

Turbo Mode is not recommended for projects that require precise timing or have timed elements, as they would move faster than expected.

References