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

Apply manual cleanups/refactorings to OpenGL backend #50

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

smoogipoo
Copy link

@smoogipoo smoogipoo commented Apr 30, 2024

I didn't previously apply cleanups here because I'm not sure where the backend stands for us at this point. It's coded as a "deferred" backend so that everything is done in one loop upon device.SubmitCommands(), but this is not a requirement for us since we only have one context.

We may end up removing the deferring aspect of it, removing most of the overheads in the process.

Comment on lines -40 to +44
if (this.gd.BackendType == GraphicsBackend.OpenGLES)
if (gd.BackendType == GraphicsBackend.OpenGLES)
Copy link
Author

Choose a reason for hiding this comment

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

This would've caused a nullref, though we don't use compute shaders.

@smoogipoo smoogipoo merged commit e3936de into ppy:master Apr 30, 2024
2 checks passed
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