ScratchData LogoScratchData
Back to kriblo_test's profile

Custom block is faster than Broadcast (simple test)

KRkriblo_test•Created March 23, 2021
Custom block is faster than Broadcast (simple test)
13
9
116 views
View on Scratch

Instructions

Four sprites which all changes a variable 100 000 times when clicked, using four different ways to call the procedure each iteration: - Custom block with screen refresh - Custom block without screen refresh - Broadcast - Broadcast and wait Using a custom block is faster than broadcasts. Using "no screen refresh" (which is not really necessary in this example), appears to be slightly slower on Scratch! Using "Broadcast and wait" seem to be marginally slower, compared to using "Broadcast". The difference is even more striking at Turbowarp: https://turbowarp.org/506189448/fullscreen At Turbowarp, the custom block is about 10 times faster at 100 000 iterations. Vector block costumes from: http://scratchblocks.github.io/#?style=scratch3

Project Details

Project ID506189448
CreatedMarch 23, 2021
Last ModifiedMarch 24, 2021
SharedMarch 24, 2021
Visibilityvisible
CommentsAllowed