Skip to content

Support for multiple GL windows with context sharing #312

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
processing-bot opened this issue Dec 5, 2021 · 3 comments
Closed

Support for multiple GL windows with context sharing #312

processing-bot opened this issue Dec 5, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@processing-bot
Copy link
Collaborator

Created by: codeanticode

Currently, multiple windows can be created from a Processing sketch, but when using the GL renderer, they do not share the GL context. This means, in particular, that GL resources cannot be shared among the windows, which would the default assumption when creating multiple windows in the first place.

JOGL has introduced some new APIs to enable context sharing between multiple GLWindows:

https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLSharedContextSetter.html

GL object synchronization seems to be an issue, specially on Mac:

https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLSharedContextSetter.html#synchronization

@processing-bot
Copy link
Collaborator Author

Created by: benfry

This checks out with the version I'd been hacking on, so I'm merging #313 for beta 3 so we can shake out any potential issues.

We can keep this open until we're comfortable that it's resolved properly.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Fully incorporated for 4.0 beta 3.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant