Skip to content
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

Merged
merged 6 commits into from
Dec 30, 2024

Conversation

iMakeSoftware
Copy link
Contributor

Replace modulo operation with bitwise operation to optimize performance and remove warning messages on some GPUs

Replace modulo operation with bitwise operation to optimize performance and remove warning messages on some GPUs
Copy link
Collaborator

@FrogTheFrog FrogTheFrog left a 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
@ReenigneArcher ReenigneArcher changed the title Update base_vs.hlsl fix(shaders/directx): replace modulus with bitwise operator Dec 30, 2024
@ReenigneArcher
Copy link
Member

Sorry for the spam, trying to clean this up from GitHub ui.

Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.87%. Comparing base (3e47cd3) to head (6d9daa4).
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
Linux 8.42% <ø> (ø)
Windows 5.36% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

@ReenigneArcher ReenigneArcher merged commit 3b81d0f into LizardByte:master Dec 30, 2024
34 of 37 checks passed
qiin2333 pushed a commit to qiin2333/Sunshine-Foundation that referenced this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants