Skip to content

Conversation

@keckj
Copy link
Contributor

@keckj keckj commented Jan 21, 2022

Since CUDA Python 11.6 now exposes the OpenGL-CUDA interop API (cupy/cupy#5711), it is now possible to use data sharing for OpenGL examples.

This PR adds support for CudaOutputBufferType.GL_INTEROP when available. This leads to a 90% fps increase for examples/dynamic_geometry.py with a 2080Ti (going from 450 fps to 850 fps). As a point of comparison, the Optix provided C++ example runs at 1250 fps with OpenGL-CUDA interop.

It also replaces cuda source relative path with absolute paths in examples hello.py, spheres.py and triangle.py.

@mortacious mortacious merged commit 6553d00 into mortacious:master Apr 10, 2022
@mortacious
Copy link
Owner

Hi, it seems like I totally missed this PR! Many thanks! I've just merged the changes.

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