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

Enable all debug output in glretrace #223

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@sulix
Contributor

sulix commented Feb 2, 2014

On (at least) nVidia systems, not all debug output is enabled by default. If we wish to have the driver tell us where it is placing buffer objects, for example, we have to enable all the debug channels by passing GL_DONT_CARE to everything in glDebugMessageControlARB(...).

The extra messages I get with this enabled, while not technically errors, can be useful diagnosing some types of performance issue. For example:
"Low severity API unknown issue 131185, Buffer detailed info: Buffer object 1 (bound to GL_PIXEL_UNPACK_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped in DMA CACHED memory."

Thoughts?

— David

Enable all debug output in glretrace
On nVidia systems, not all debug output is enabled by default. If we wish to
have the driver tell us where it is placing buffer objects, for example, we have
to enable all the debug channels by passing GL_DONT_CARE to everything in
glDebugMessageControlARB(...)
@jrfonseca

This comment has been minimized.

Member

jrfonseca commented Feb 3, 2014

Pushed. Thanks.

I had to add a limit to low severity messages, as some traces would become just too noisy ( fe6bb2b ).

@jrfonseca jrfonseca closed this Feb 3, 2014

@sulix sulix deleted the sulix:nvidia-debug-output branch Feb 3, 2014

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