ScratchData LogoScratchData
Back to OriginallySystemized's profile

Lag test project

OROriginallySystemized•Created April 26, 2017
Lag test project
0
0
7 views
View on Scratch

Instructions

Test to see lag under heavy processing between 'frames', and how it responds with key-press/repeat and mouse events. Try different browsers if you can. See instructions top of player. Report the following in comments: 1. browser (and version might be useful) 2. version of flash player (e.g. 11.6.602.180) 3. operating system (and any version, e.g. OSX 10.6.8) 4. specs of machine you're running on (e.g. Intel i5 3GHz) 5. frame counter behaviour, and sprite behaviour when: a) tapping a key b) holding keys with key-repeat speed high c) holding keys with key-repeat speed low or switched off d) clicking and dragging the sprite e) dragging sprite while holding keys (e.g. rotating) f) moving the cursor in and out of the player bounds 6. rough idea of average list length created between frames 7. if the list length is clearly different for 5a/b/c/d/e/f above

Description

Between each frame, this projects clears a list then adds as many items as it can to it within one eighth of a second. It then makes the changes to the Scratch sprite for that frame before repeating the process. So it can't run better than 8 FPS, but since it always does the heavy work for only 1/8sec between each change, the power of the machine it's running on gets largely 'cancelled out' - the more powerful your machine, the more it has to do, but always only just enough to fill 1/8sec between frames. It also means that the amount of extra work it does when you're holding down keys or dragging should be pretty negligible compared to the list-filling work during that 1/8th second. So any extra lag seen when pressing/holding keys or clicking/dragging must be due to some internal problems in Scratch and/or Flash and/or the way they 'talk' to the browser. I have to say, I'm pretty impressed with how quickly Scratch deals with lists, given what it's doing - tens of thousands of items in 1/8th second seems pretty good...

Project Details

Project ID157588377
CreatedApril 26, 2017
Last ModifiedApril 27, 2017
SharedApril 27, 2017
Visibilityvisible
CommentsAllowed