ScratchData LogoScratchData
Back to sly_i's profile

Scanner with some optimizations v2

SLsly_i•Created November 6, 2023
Scanner with some optimizations v2
6
5
48 views
View on Scratch

Instructions

Added some optimizations to improve scanning & render speed of @geotale/@griffpatch's scanner Tap on picture to scan each background Press up and down to change render resolution Press space to render from encoded string Griffpatch's reference scanner project: https://scratch.mit.edu/projects/827805681

Description

The update added a reasonable fast method for encoding with a fast method to decode frames using a branchless RLE structure based on @awesome-llama data structure -Moves per line: 3 decimal -XChange: 2 hex (0-255) -Color: 4 hex (as 16k colors is the limit of scratch scan precision) Circle Food example using this fast decode method https://scratch.mit.edu/projects/922728675 Scan Speed up from using LastY, merge the first 3 scan pass's, hardcoded check8 numbers, use custom block calls versus using broadcast. Render speedup: use branchless RLE render Decode from string is only 50% slower than using the 3 fully expanded RLE lists

Project Details

Project ID919975360
CreatedNovember 6, 2023
Last ModifiedFebruary 6, 2024
SharedNovember 9, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root