Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Set preserveDrawingBuffer in webgl and add example to freeze notebooks#52

Draft
klarh wants to merge 1 commit intomasterfrom
vispy_scene_freeze
Draft

Set preserveDrawingBuffer in webgl and add example to freeze notebooks#52
klarh wants to merge 1 commit intomasterfrom
vispy_scene_freeze

Conversation

@klarh
Copy link
Copy Markdown
Collaborator

@klarh klarh commented Mar 16, 2020

This PR makes the webgl contexts created by vispy set the preserveDrawingBuffer flag on creation, which may reduce flicker in some cases with many primitives drawing at once and allows for the canvas image to be manipulated in javascript in notebook environments, as demonstrated in the example that is added with the PR.

It shouldn't be merged until vispy 0.7 is released with changes from vispy/vispy#1693 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant