4 ms·
>For example, creating tables causes an allocation which is slow, so forget about using tables for vector types I once added vector4 as a primitive type in my
by kgeist 4y ago
>For example, creating tables causes an allocation which is slow, so forget about using tables for vector types
I once added vector4 as a primitive type in my fork of Lua (to avoid allocations altogether) - it was surprisingly easy to add, took me a weekend.
- rahkiin 4y agoWe were using LuaJit which is a whole other beast.