You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
godot-cpp doesn't generate a lot of the builtin types, especially the math heavy ones, as going back and forth through the Godot calling system would be cumbersome. Instead, they re-implement them in C++
We should take a similar approach in Dart, only copying values out to opaque memory when needed. The classes that should get this treatment are:
aabb
basis
color
plane
projection
quaternion
rect2
rect2i
transform2d
transform3d
vector2
vector2i
vector3
vector3i
vector4
vector4i
This will also allow us to simplify their interfaces, including allowing default parameters for constructors instead of using named constructors for everything but the default.
The text was updated successfully, but these errors were encountered:
The hope is that this is a bit more performant, as it doesn't jump to Godot every time it needs to do something, and it doesn't allocate memory for variables that are never sent to Godot.
This will be done for most of the math based Variants, but started with Vector3 to see what it was like.
refs: #8
godot-cpp
doesn't generate a lot of the builtin types, especially the math heavy ones, as going back and forth through the Godot calling system would be cumbersome. Instead, they re-implement them in C++We should take a similar approach in Dart, only copying values out to opaque memory when needed. The classes that should get this treatment are:
This will also allow us to simplify their interfaces, including allowing default parameters for constructors instead of using named constructors for everything but the default.
The text was updated successfully, but these errors were encountered: