Skip to content

Enable all debug output in glretrace #223

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

Closed
wants to merge 1 commit into from

Conversation

sulix
Copy link
Contributor

@sulix 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

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
Copy link
Member

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 nvidia-debug-output branch February 3, 2014 15:08
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