ScratchData LogoScratchData
Back to finnagin5's profile

(UPDATED) 3D Projection Speed Comparison

FIfinnagin5•Created April 10, 2023
(UPDATED) 3D Projection Speed Comparison
16
12
124 views
View on Scratch

Instructions

Comparing more 3D projection methods for speed. About 100x faster on Turbowarp. 1. @TheGoodGuy2000: Very fast. To the best of my knowledge, the fastest on Scratch, but not by much. Although it uses more variables and more complex math than #3, it's about 1% faster at 5.4μs per point. (Update: a faster method has been developed. LOL) 2. @iaobardar: Quite fast, but far too much usage of trig functions, making it much slower than the other methods here. About 9μs per point. 3. @iaobardar, @ChuckSploder: Really fast, uses precalculated trig functions and optimized math for up to 55% more speed than #2. About 5.5μs per point. This was previously the fastest method (but still the simplest) for use on Scratch. Notes: I edited @iaobardar's method a tiny bit because the accuracy was off; certain variables were being changed before they could be used in the proper context. I also edited @TheGoodGuy2000's method because the X axis was inverted.

Project Details

Project ID833367052
CreatedApril 10, 2023
Last ModifiedApril 13, 2024
SharedApril 10, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root