bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.12k stars 156 forks source link

Try to figure out how to implement Branchless.boolToSingle and related. #783

Open bryanedds opened 5 months ago

bryanedds commented 5 months ago

Current implementations have been dummied out due to broken performance. Broken perf is likely due to the resulting value not landing in a floating-point enabled register. Unfortunately, I don't know of a performant way to land an int value into a floating point register with .NET.