Skip to content
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

Preserve WebGL contexts by replacing thumbnails with snapshots when done #506

Closed
gwhitney opened this issue Nov 27, 2024 · 1 comment
Closed
Assignees
Labels
ui Something having to do with the user interface visualizer Has to do with a visualizer or the visualizer subsystem.

Comments

@gwhitney
Copy link
Collaborator

There are two parts to this planned change:

(A) In Thumbnails, run the animation until it gets to its (current) stopping point, then replace the Specimen with just a snapshot of the state it has gotten to, as a png displayed on the canvas. Make sure this frees up the WebGL context of the Specimen, if it had one.

(B) When a Thumbnail is first displayed, if it is a WebGL visualizer, and there are more than N (probably 8) active WebGL contexts, show an hourglass (or loading animation) until a WebGL context frees up, at which point start the usual animation and proceed as in part (A).

@gwhitney gwhitney added enhancement ui Something having to do with the user interface visualizer Has to do with a visualizer or the visualizer subsystem. labels Nov 27, 2024
@gwhitney gwhitney self-assigned this Nov 27, 2024
@gwhitney
Copy link
Collaborator Author

Resolved in ui2 by #517, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Something having to do with the user interface visualizer Has to do with a visualizer or the visualizer subsystem.
Projects
None yet
Development

No branches or pull requests

1 participant