Back to Browse

Is your Scratch code slow? Measuring lag in your game | Learning Scratch Game Coding Tutorial

3.1K views
Premiered Aug 27, 2020
3:36

Is your scratch game starting to slow down and lag? A simple way to measure the performance of your game is called frame rate, measured in "frames per second". While Scratch 3.0 always runs at 30 frames per second, you can build your code so that some of it runs more than 30 times a second, and measuring how many times it runs in a second can help you understand how fast your code is. Scratch is a free programming language where you can code your own interactive stories, animations, and games. See this project on scratch.mit.edu at: https://scratch.mit.edu/projects/415307147/ 0:00 Start 0:22 Game Loop 0:37 FPS code 2:59 FPS counter ========== Scratch Logo licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license https://commons.wikimedia.org/wiki/File:Scratch_Logo.svg Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu. Music by MBB https://www.youtube.com/c/mbbmusic https://soundcloud.com/mbbofficial https://www.instagram.com/mbb_music Bowlby One SC font designed by Vernon Adams https://fonts.google.com/specimen/Bowlby+One+SC

Download

0 formats

No download links available.

Is your Scratch code slow? Measuring lag in your game | Learning Scratch Game Coding Tutorial | NatokHD