openglfx icon indicating copy to clipboard operation
openglfx copied to clipboard

NVidia NSight profiling

Open jodysowald opened this issue 1 year ago • 9 comments

I have a question* Is there any way to collect data with NVidia NSight while using OpenGLFX?

jodysowald avatar Dec 27 '23 21:12 jodysowald

As I remember, NSight can only connect to DirectX and Vulkan

husker-dev avatar Dec 27 '23 21:12 husker-dev

I have never used it before, but was given the advice, relative to working with OpenGL, that it can automatically give me performance profiling and comparison of multiple runs of the code. NSight does appear to have information collection for OpenGL looking at its front page image

jodysowald avatar Dec 27 '23 21:12 jodysowald

I'll see how it can be used soon

husker-dev avatar Dec 27 '23 21:12 husker-dev

Thank you!

jodysowald avatar Dec 27 '23 21:12 jodysowald

Unfortunately, Nsight can only capture windows with a single rendering (created through glfw, for example). And since openglfx renders everything inside "offscreen" buffer and then glues the result to javaFX, this makes it impossible to catch.


Alternatively, you can use RenderDoc - it has support for such buffers. Look at the readme to enable it in openglfx.

husker-dev avatar Jan 06 '24 14:01 husker-dev

Theoretically it is possible to create a "debug" mode, in which openglfx rendering will occur in a separate window. This will make it possible to use NSight

husker-dev avatar Jan 06 '24 15:01 husker-dev

Thank you!

yetyman avatar Jan 06 '24 16:01 yetyman

Are there any plans for this?

jodysowald avatar Sep 09 '24 14:09 jodysowald

Yes, progress is slow, but work is underway

husker-dev avatar Sep 09 '24 14:09 husker-dev