ScratchData LogoScratchData
Back to ChromeCat_test's profile

Very fast triangle fill (7500/sec)

CHChromeCat_test•Created August 30, 2021
Very fast triangle fill (7500/sec)
167
143
1898 views
View on Scratch

Instructions

One of the fastest stamped fillers on scratch.* Close tabs and plug in portable device for fastest speeds. - *See comparisons in credits. - Loads instantly and uses under 500MB ram - Handles any triangle with perfect corner accuracy. Important: Only works for cases where colour saturation doesn't matter. It uses scan line fill for triangles with height less than 8px or which has an angle less than 2°. For all others it uses a 3-stamp tri fill. The costumes are all bitmaps. For instructions on how it works please see inside.

Description

Thank you to @elitheultimate for suggesting using bitmaps over vectors and reducing custom block overhead, making it about 20% faster. Comparison of triangle filler speeds: On 16gb ram, i7 1.8ghz computer: This: 7100-8000 tris/sec bobojoeho: 5500 tris/sec https://scratch.mit.edu/projects/484568659/ --Rex--: 5000 tris/sec https://scratch.mit.edu/projects/509029922/ geotale: 4900 tris/sec https://scratch.mit.edu/projects/406665845/ logfather: 4300 tris/sec https://scratch.mit.edu/projects/24828481/

Project Details

Project ID564912364
CreatedAugust 30, 2021
Last ModifiedSeptember 26, 2023
SharedSeptember 2, 2021
Visibilityvisible
CommentsAllowed