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

Lazily initialize render registry #105

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

kasper0406
Copy link
Contributor

Before this PR: When creating multiple windows the render registry will be created multiple times, resulting in an error as the OpaqueRenderPhase will be initialised twice.

After: The RenderRegistry is statically created and shared between different renderers.

@aclysma aclysma merged commit c0b2e50 into aclysma:master Jan 6, 2022
@kasper0406 kasper0406 deleted the lazy-render-registry branch January 6, 2022 12:31
ctrlcctrlv pushed a commit to MFEK/skulpin.rlib that referenced this pull request Jan 16, 2022
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.

2 participants