Skip to content

initial commit, plasma effect is rendering#1608

Draft
rparolin wants to merge 6 commits intoNVIDIA:mainfrom
rparolin:rparolin/graphics_cuda_interop
Draft

initial commit, plasma effect is rendering#1608
rparolin wants to merge 6 commits intoNVIDIA:mainfrom
rparolin:rparolin/graphics_cuda_interop

Conversation

@rparolin
Copy link
Collaborator

image

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Feb 12, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@rparolin rparolin self-assigned this Feb 12, 2026
# (c) Unmap happens automatically when the `with` block exits.
# The PBO now belongs to OpenGL again.

stream.sync()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this sync be inside the above context to avoid a potential race with the unmap call making the memory available to OpenGL and triggering the barrier that ensures all the PBO values have been written.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stream.sync() shouldn't be required as the unmap call has an implicit stream sync guaranteeing all cuda work is complete before handing the memory back to OpenGL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +243 to +245
HANDLE_RETURN(
cydriver.cuGraphicsMapResources(1, &raw, cy_stream)
)
Copy link
Contributor

@Andy-Jost Andy-Jost Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: you could make the unmap more reliable (and avoid the duplicated calls to cuGraphicsUnmapResources) by making this into a resource, similar to the handle.

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