-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(shaders/directx): replace modulus with bitwise operator #3499
Conversation
Replace modulo operation with bitwise operation to optimize performance and remove warning messages on some GPUs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A neat optimization.
I would suggest adding a comment on what's happening at least (even if I have no idea why it is needed).
Added comment
Sorry for the spam, trying to clean this up from GitHub ui. |
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3499 +/- ##
=========================================
- Coverage 7.87% 7.87% -0.01%
=========================================
Files 90 90
Lines 15803 15803
Branches 7487 7487
=========================================
- Hits 1245 1244 -1
- Misses 12131 12133 +2
+ Partials 2427 2426 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
Replace modulo operation with bitwise operation to optimize performance and remove warning messages on some GPUs