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

wipes/restores on linux framebuffer #1954

Closed
dankamongmen opened this issue Jul 19, 2021 · 3 comments
Closed

wipes/restores on linux framebuffer #1954

dankamongmen opened this issue Jul 19, 2021 · 3 comments
Assignees
Labels
bitmaps bitmapped graphics (sixel, kitty, mmap) enhancement New feature or request
Milestone

Comments

@dankamongmen
Copy link
Owner

#1369 laid the groundwork for Linux framebuffer graphics via the Notcurses abstraction. It needs further work, though. At a minimum, we need wipes and rebuilds. I believe that we can do the former by writing a black block where the cell was, and damaging the corresponding glyph. The latter ought be as simple as replaying the relevant chunk of the copied data. This ought give us performance/complexity comparable to Kitty+animations, which is pretty damn good.

@dankamongmen dankamongmen added enhancement New feature or request bitmaps bitmapped graphics (sixel, kitty, mmap) labels Jul 19, 2021
@dankamongmen dankamongmen added this to the 3.0.0 milestone Jul 19, 2021
@dankamongmen dankamongmen self-assigned this Jul 19, 2021
@dankamongmen
Copy link
Owner Author

This isn't going to be too hard. I just implemented fbcon_wipe(), though it still needs to save the auxvec. This will be an old-kitty-style auxvec, holding the original alpha values. in fbcon_blit(), we need check the TAM and zorch out anything that's annihilated...just got that done. we need pack the auxvec from there as well. we need rebuild, and then some glyph invalidation, and we're done! it looks fantastic =].

@dankamongmen
Copy link
Owner Author

we're preserving the auxvec now

dankamongmen added a commit that referenced this issue Jul 25, 2021
@dankamongmen
Copy link
Owner Author

Both wipe and restore now appear to be working. The frame count on ncplayer now works as expected. The greatscott image in intro is now properly cleared. Good stuff!

@dankamongmen dankamongmen modified the milestones: 3.0.0, 2.4.0 Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitmaps bitmapped graphics (sixel, kitty, mmap) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant