-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for double precision floats #56
Comments
Added to the Line 13 in 18cd7b6
Soon there will be proper support for the rendering relative to the camera (work in progress) and implementation of 64-bit coordinates in other systems (audio, physics,..). Then, of course we will add documentation. By setting
We do have vector types |
Double-precision floats are necessary for games that take place on extremely large scales, such as in the vastness of space. There are workarounds, but they all come with issues. If Flax Engine wishes to support extremely large scales, it would make sense to add support for double precision floats.
For further justification on this feature, please see this proposal I made for Godot: godotengine/godot-proposals#892
As for the implementation, it is possible to support compiling with both single and double precision floats at the same time, if done correctly. This can be handled in C# via preprocessor directives by defining an alias, like this:
The downside is that this alias definition must be repeated in every C# file. For a more detailed example, see this file in Godot: https://github.com/godotengine/godot/blob/master/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3.cs
The text was updated successfully, but these errors were encountered: