System.Numerics or Stride.Math #2210
Replies: 8 comments 1 reply
-
Adding comments from Eideren that went over this already but they are getting lost in the discord.
|
Beta Was this translation helpful? Give feedback.
-
Another comment from Ethereal to keep in mind
|
Beta Was this translation helpful? Give feedback.
-
final thing I found that we should keep in mind is Silks ongoing work for 3.0. They are apparently dealing with this exact issue. |
Beta Was this translation helpful? Give feedback.
-
Yes there was a big one. Those types just didn't exist when the engine was first being worked on. And after they were introduced they had at first slightly worse performance. |
Beta Was this translation helpful? Give feedback.
-
With regard to what Eideren said, I think it would be beneficial in many places to replace some implementations in One thing I recommend is marking the overloads with By marking the obsoletions with some specific diagnostic ID, subsequently suppressing that warning in each project, people can go about their business without getting swamped with warnings while some issue tracks removing the suppression on a per-project basis, starting with the most specific projects and working backwards to the core Stride projects. |
Beta Was this translation helpful? Give feedback.
-
Another discussion found thanks to Eideren that will need to be considered for matrices #291 |
Beta Was this translation helpful? Give feedback.
-
Another natural occurrence of system.Numerics ideas #2238 (comment) I would wonder if FieldOffset could also be used as a conversion between the Stride Matrix and |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I'd like to provide some feedback, as this is something I'd really like to see implemented (using System.Numerics where possible). I feel it would be an overall benefit to the project in the long term. Of course, I'm not a game engine programmer, and I'm aware that there are limitations to System.Numerics, but overall I think the benefits outweigh the drawbacks. Backwards compatibility: The issue of not controlling the types, vs the custom types in the engine: Implicit Conversions: Math types that don't currently exist in System.Numerics: Consolidating math utils under one MathUtils static class: tannergooding's comment on public fields: |
Beta Was this translation helpful? Give feedback.
-
I wanted to open a tracked discussion on using System.Numerics instead of Strides created types.
As far as I understand it the only breaking change would be that users would need to add an extra using statement to their existing projects for .NETs math libraries.
Beta Was this translation helpful? Give feedback.
All reactions