Skip to content

Commit 75ba170

Browse files
Made custom-fps.md clearer (#110)
1 parent 55225c6 commit 75ba170

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/website/settings/custom-fps.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ hide_table_of_contents: true
55

66
# 60 FPS (Custom FPS)
77

8-
Custom FPS (frames per second) changes how often scripts are run every second. Most often this is changed to 60 FPS, but any value between 1 and 250 is possible.
8+
A custom FPS (frames per second) changes how often scripts are run every second. Most often this is changed to 60 FPS, but any value between 1 and 250 is possible.
99

10-
A value of 0 is special: It will make the project run at the same framerate as the screen instead of a set interval. This also means that the project's scripts may stop running when the project's tab is hidden.
10+
A value of 0 will make the project run at the same framerate as the screen instead of a set interval. This also means that the project's scripts may stop running when the project's tab is hidden.
1111

1212
A vast majority of projects will not work properly with custom framerates. For these projects, [interpolation](interpolation) should be used instead. For example, consider the following simple script:
1313

1414
![When flag clicked, forever move 1 step](./forever-move-1-step.svg)
1515

16-
When running at 30 FPS (as Scratch typically does), this script will run 30 times per second so the sprite will move 30 steps per second. However, if the framerate is changed to 60, the script will run 60 times per second so the sprite will move twice as many steps in a second.
16+
When running at 30 FPS (as Scratch typically does), this script will run 30 times per second, so the sprite will move 30 steps per second. However, if the framerate is changed to 60, the script will run 60 times per second, so the sprite will move twice as many steps in a second.
1717

1818
To make projects that are compatible with custom framerates, you should use techniques such as delta time:
1919

2020
- https://en.wikipedia.org/wiki/Delta_timing
2121
- https://scratch.mit.edu/projects/487694716/ (Scratch example)
2222

23-
These techniques may require significant changes to your project.
23+
Please note that using these techniques may require significant changes to your project.

0 commit comments

Comments
 (0)