Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Scrolling requires redrawing most if not the whole framebuffer.


With scrolling couldn't you just shift the existing framebuffer up/down and only draw the newly scrolled-to parts?


The GPU buffering model doesn't usually let you read the previous frame like that these days, so you would need a scratch surface. That increases your bandwidth and memory requirements, so shifting doesn't end up being much faster if it's faster at all.


I suspect there are enough edge cases (semi-transparent things jumps to mind) that it's unlikely to be lossless, anyway.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: