ScratchData LogoScratchData
Back to fezzinate's profile

SpritePerf Tests

FEfezzinate•Created November 26, 2016
SpritePerf Tests
3
2
55 views
View on Scratch

Instructions

This is a project to test the performance of sprite scaling. Test 1: Scales each sprite up and down as they move around Test 2: Scales each sprite up 200% and back down to 100% every frame, so although it's scaling, you don't see any change Press Ctrl+M (Cmd+Shift+M on mac) to toggle Hardware Acceleration

Description

So turns out that you don't pay the cost of scaling if you make sure to set the scale back to what it was before the screen refreshes. This is a very useful hack to allow sprites to scroll off-screen without getting stuck on the edges. Also note, that performance is improved tremendously once you add an effect block, which will enable hardware acceleration

Project Details

Project ID132857349
CreatedNovember 26, 2016
Last ModifiedNovember 28, 2016
SharedNovember 26, 2016
Visibilityvisible
CommentsAllowed