husker-dev / openglfx

OpenGL implementation for JavaFX
Apache License 2.0
80 stars 10 forks source link

NVidia NSight profiling #75

Open jodysowald opened 6 months ago

jodysowald commented 6 months ago

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

husker-dev commented 6 months ago

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

jodysowald commented 6 months ago

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
husker-dev commented 6 months ago

I'll see how it can be used soon

jodysowald commented 6 months ago

Thank you!

husker-dev commented 6 months ago

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 commented 6 months ago

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

yetyman commented 6 months ago

Thank you!