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

wgpu: Don't use textures for shader cache keys #17014

Merged

Conversation

adrian17
Copy link
Collaborator

@adrian17 adrian17 commented Jul 6, 2024

This reduces number of shader recompiles in ShaderPairAgal::compile:

  • OimoPhysics: 3/frame -> 0
  • FPA4: 12/frame -> 0

This results in major (2x, 4x) fps improvements on web (tested on firefox) on a lot of Stage3D content.

On FPA4, there are still some runtime webgl shader recompiles left; that's still to be researched :(

@adrian17 adrian17 force-pushed the dont-recompile-shaders-on-texture-change branch 3 times, most recently from 879f5fd to 3375a92 Compare July 6, 2024 17:23
@adrian17 adrian17 force-pushed the dont-recompile-shaders-on-texture-change branch 3 times, most recently from 9b3d2e3 to 08cf01f Compare July 6, 2024 17:37
@adrian17 adrian17 force-pushed the dont-recompile-shaders-on-texture-change branch from 08cf01f to 5e35ba1 Compare July 6, 2024 20:33
@adrian17 adrian17 enabled auto-merge (rebase) July 6, 2024 20:37
@adrian17 adrian17 merged commit 9394f77 into ruffle-rs:master Jul 6, 2024
17 checks passed
@adrian17 adrian17 deleted the dont-recompile-shaders-on-texture-change branch July 6, 2024 20:59
@n0samu n0samu added A-rendering Area: Rendering & Graphics T-perf Type: Performance Improvements newsworthy labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rendering Area: Rendering & Graphics newsworthy T-perf Type: Performance Improvements
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants