<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Detecting_Turbo_Mode</id>
	<title>Detecting Turbo Mode - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Detecting_Turbo_Mode"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Turbo_Mode&amp;action=history"/>
	<updated>2026-05-20T15:26:25Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Detecting_Turbo_Mode&amp;diff=1636&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Turbo_Mode&amp;diff=1636&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:13Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key digida:diff:1.41:old-1635:rev-1636 --&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Detecting_Turbo_Mode&amp;diff=1635&amp;oldid=prev</id>
		<title>scratch&gt;ScratchCat1038: accidentally sent link to disambiguation page, fixed</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Detecting_Turbo_Mode&amp;diff=1635&amp;oldid=prev"/>
		<updated>2022-02-19T22:55:33Z</updated>

		<summary type="html">&lt;p&gt;accidentally sent link to disambiguation page, fixed&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Detecting [[Turbo Mode]]&amp;#039;&amp;#039;&amp;#039; can be done with a simple [[script]]:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;!--[[File:Turbo detector.png]]--&amp;gt;&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
reset timer&lt;br /&gt;
repeat (10)&lt;br /&gt;
  switch backdrop to (please wait v)&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;(timer) &amp;gt; [0.1]&amp;gt; then&lt;br /&gt;
  switch backdrop to (please use turbo mode v)&lt;br /&gt;
  stop [all v]//or run some other code&lt;br /&gt;
end&lt;br /&gt;
switch backdrop to (Turbo mode detected! v)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In turbo mode, the action of switching to the same [[background]] 10 times will take less than 0.1 seconds, but off it will take longer.&lt;br /&gt;
If turbo mode is not on, the [[project]] will [[Stop () (block)|stop]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when gf clicked&lt;br /&gt;
set [Counter v] to (0)&lt;br /&gt;
reset timer&lt;br /&gt;
repeat until &amp;lt;(timer) &amp;gt; [1]&amp;gt;&lt;br /&gt;
  change [Counter v] by (1)&lt;br /&gt;
end&lt;br /&gt;
if &amp;lt;(Counter) &amp;gt; [100]&amp;gt; then&lt;br /&gt;
  switch backdrop to (Turbo Mode detected! v)//or your Turbo Mode code.&lt;br /&gt;
else&lt;br /&gt;
  switch backdrop to (Normal Mode v)//or your Normal Mode code.&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
This script is a little different. Turbo speed will greatly speed up the repeat until [[C Block]] and the counter [[variable]] value will be very high.&lt;br /&gt;
&lt;br /&gt;
== Single Stepping ==&lt;br /&gt;
{{obsolete feature|cat=no}}&lt;br /&gt;
In Scratch 1.4, [[Single Stepping|single stepping]] could be detected with the following script:&lt;br /&gt;
&amp;lt;!--[[File:Single Stepping Detection.png]]--&amp;gt;&lt;br /&gt;
&amp;lt;scratchblocks version=&amp;quot;2.0&amp;quot;&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
reset timer&lt;br /&gt;
switch backdrop to [Please wait v] // This block is required!&lt;br /&gt;
if &amp;lt;(timer) &amp;gt; [0.1]&amp;gt; then&lt;br /&gt;
  switch backdrop to [Single stepping detected v]&lt;br /&gt;
else&lt;br /&gt;
  switch backdrop to [Single stepping off v]&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
The &amp;quot;switch to background&amp;quot; [[Blocks|block]] can also be replaced with other blocks, such as &amp;quot;wait (0) seconds&amp;quot; if desired. Its purpose is to delay the script. If a script is single stepping, that block will take over 0.1 seconds to run, thus entering the &amp;quot;if&amp;quot; block.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;ScratchCat1038</name></author>
	</entry>
</feed>