Digot
Digot
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
Which security checks are there on the fixed buffer?
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
I guess it would be fine to do it once, just so I understand it...why would it faster with 16 double fields?
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
Would a 16 double field struct be better than
private unsafe fixed double row1[4];
private unsafe fixed double row2[4];
private unsafe fixed double row3[4];
private unsafe fixed double row4[4];
private unsafe fixed double row1[4];
private unsafe fixed double row2[4];
private unsafe fixed double row3[4];
private unsafe fixed double row4[4];
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
Yeah individual access is happening a lot
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
I'll have four of them to represent a 4x4 double Matrix. So I'll do calculations with the values and recreate some matrices few times a frame
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
If I want something with "similar" performance I would just go for a fixed double buffer[4] I guess?
18 replies
CC#
Created by Digot on 9/10/2023 in #help
❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4
Oh ok, thanks for the explanation! Is there alternative?
18 replies