Updates YOU want to see in Makecode

Fx8 is a namespace/interface to handle 8-bit numbers, i still waste like 56 bits (64 bit float - 8 bits)! a Uint8Array would have no extra memory though.

I don’t really understand what you mean? But take turbowarp for example. It is just scratch but like 50x faster. I copy-pasted my raytracer into an actual js compiler, and it ran SUPER fast. (only the main function and controller was changed, not the hitbox collision or raytracer or player or anything else.) On my computer, a 140x140 on makecode ran at 14 FPS. the actual js, I had a 900x900 (81 times bigger) and it still ran fast (20 FPS)! I think the best keyword to make makecode not compile a function into a huge switch would be “sync”, like sync function add(a: any, b: any) { return a + b}, since makecode compiles because it doesn’t know if a function pause the thread or not (e.g. pause(...), waitUntil(...), etc.).

so if my functions were actually something like sync function traceRay(...), my raytracer would become roughly 53x faster.

(also i dont think i said this yet, but im making a topic on how makecode compiles.)

1 Like