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

Profile GPU time for draw calls via query objects #11

Closed
httpdigest opened this issue Aug 18, 2017 · 0 comments
Closed

Profile GPU time for draw calls via query objects #11

httpdigest opened this issue Aug 18, 2017 · 0 comments

Comments

@httpdigest
Copy link
Member

Currently, we only count the CPU/host time it takes between two consecutive glfwSwapBuffers calls.
More interesting for bottleneck analysis however would be to know the actual time it takes the GPU to perform a draw call.

So, for contexts that support it, we could use OpenGL Query Objects with glQueryCounter and the GL_TIMESTAMP target to count the GPU time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant