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

Avoid allocating shaders when values are default #1570

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

wixoaGit
Copy link
Member

There's no need to duplicate a new shader when the values end up with the default rendering behavior. This about halves the allocations per frame when observing on Paradise (~2MB per frame to ~1MB per frame).

@wixoaGit wixoaGit enabled auto-merge (squash) December 27, 2023 19:28
@wixoaGit wixoaGit merged commit 3ccb916 into OpenDreamProject:master Dec 27, 2023
6 checks passed
@wixoaGit wixoaGit deleted the avoid_shader_allocations branch February 6, 2024 01:15
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.

1 participant