Remove `IsNaN` checks from `min()` and `max()`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, unity
- Domain
- performance
Research direction
Start by locating the min() and max() implementations and their IsNaN checks in the Unity.Mathematics.math library. Remove the checks so NaN propagation follows the issue's stated IEEE754 and native SIMD expectations, then verify the affected math behavior and generated code.
Written by the indexing model from the issue text.
Description
-
horrendous code gen
-
hides NaNs which would otherwise be easily caught while debugging
-
propagates throughout the entire
Unity.Mathematics.mathlibrary -
... while breaking the rule of NaN propagation
-
checking for
NaNdoes neither comply to IEEE754, nor any native SIMD instruction sets, nor any C/C++ library - not evenUnityEngine.Mathf -
if we want to copy HLSL 1:1, at least flush denormals to zero and make it even more expensive ;)
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unity-Technologies/Unity.Mathematics
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Unity-Technologies/Unity.Mathematics#245 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Unity-Technologies/Unity.Mathematics#240 · 1 reaction ·
All issues in Unity-Technologies/Unity.Mathematics
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·