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

Reduce batch flushes #187

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Reduce batch flushes #187

merged 1 commit into from
Jun 9, 2023

Conversation

JamesTKhan
Copy link
Owner

In Scene we call batch.begin and batch.end often. This is fine from my understanding, but I see that we can reduce the amount of times we call end. This will reduce how often we are flushing the batch. It may provide a small performance boost as we are executing less code by batching more of the rendering together. Thoughts?

@Dgzt
Copy link
Collaborator

Dgzt commented Jun 8, 2023

Good catch. Yes, I think it can be combined into one batch flush.

@JamesTKhan JamesTKhan merged commit 7f719ea into master Jun 9, 2023
@JamesTKhan JamesTKhan deleted the reduce-batch-flushes branch June 9, 2023 16:25
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