FAForever / FA-Binary-Patches

FA Engine Patches
MIT License
6 stars 6 forks source link

Decouple Vector3, Vector2 and Quaternion matatables and optimize operations on them #93

Open 4z0t opened 2 days ago

4z0t commented 2 days ago

Right now game sets for Vector3, Vector2 and Quaternion same metatable that makes it hard to work with them. See https://github.com/FAForever/fa/pull/6438 . This can be fixed with binary patch as well as introducing new functions for math operations on them with focus on performance. image

4z0t commented 2 days ago

I think @lL1l1 may be interested to help with that.

4z0t commented 2 days ago

We can create our own metatables https://github.com/4z0t/FA-Binary-Patches/blob/MetaTableFactory/section/MetaTableFactory/MetaTableFactory.h