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

Vertex shader runtime cache #1828

Merged
merged 4 commits into from Feb 8, 2020

Conversation

NZJenkins
Copy link
Contributor

@NZJenkins NZJenkins commented Feb 8, 2020

HLSL compilation is expensive and can cause stutter

This PR adds a runtime shader cache, to save compiling identical shaders more than once

Shaders are compiled async, meaning games that create shaders before they are used should have a faster boot e.g. JSRF

Improves performance in Azurik which currently repeatedly invokes shader compilation

Copy link
Member

@LukeUsher LukeUsher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR brings a dramatic performance increase on my laptop, especially during the early boot of games, great work.

@LukeUsher LukeUsher merged commit 51d5759 into Cxbx-Reloaded:develop Feb 8, 2020
@NZJenkins NZJenkins deleted the vertex_shader_source branch April 12, 2022 13:05
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.

None yet

2 participants