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

Make it possible to share the memory between several gifio.OnDiskGif objects #9763

Open
deshipu opened this issue Oct 27, 2024 · 0 comments
Open

Comments

@deshipu
Copy link

deshipu commented Oct 27, 2024

Since the gifio.OnDiskGif always uses RGB565 format for its bitmap, instead a indexed image as it should, it uses a lot of memory (four times more than it would do for a 16-color image normally). To work around that for large gifs, it would be nice to display several smaller gif images instead, but share the bitmap object, or at least its memory buffer, between the OnDiskGif instances, so that we could update several smaller images, wait for the next frame, update them again, wait for the next frame, etc.

One simple way of doing it would be to allow to pass the bitmap object to the OnDiskGif when it's created, so instead of creating a new bitmap, it would reuse the one being passed. There are probably other ways of doing it.

@dhalbert dhalbert added this to the Long term milestone Oct 28, 2024
@dhalbert dhalbert added the gifio label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants