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

Implement caching at runtime for shader programs #2681

Open
jellysquid3 opened this issue Aug 16, 2024 · 0 comments
Open

Implement caching at runtime for shader programs #2681

jellysquid3 opened this issue Aug 16, 2024 · 0 comments
Labels
T-enhancement Type: Enhancement

Comments

@jellysquid3
Copy link
Member

jellysquid3 commented Aug 16, 2024

The terrain shaders get recompiled every time the renderer is reloaded. This is often unnecessary and can make switching worlds (especially in multiplayer) slower than it needs to be.

We should only compile these shaders once, and keep them loaded until the game is shut down. There should also be a hotkey (probably only within a developer workspace) to reload these shaders.

Furthermore, if the shaders fail to compile, we should not crash the game (since this makes development _terrible.) Either a toast message needs to be shown that shaders failed to compile (if we have no cached shaders), or the last-good shaders need to be kept loaded.

@jellysquid3 jellysquid3 added the T-enhancement Type: Enhancement label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant