News for hackers. Stuff that matters.
Re:Leveraging Rust and the GPU to render user interfaces at ... by ben-schaaf on Thursday March 09, 2023 @09:20AM (#35081411)
Scrolling requires redrawing most if not the whole framebuffer.
Re:Leveraging Rust and the GPU to render user interfaces at ... by HideousKojima on Thursday March 09, 2023 @10:56AM (#35082585)
With scrolling couldn't you just shift the existing framebuffer up/down and only draw the newly scrolled-to parts?
Re:Leveraging Rust and the GPU to render user interfaces at ... by kevingadd on Thursday March 09, 2023 @12:40PM (#35084072)
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.
Re:Leveraging Rust and the GPU to render user interfaces at ... by TylerE on Thursday March 09, 2023 @03:31PM (#35086263)
I suspect there are enough edge cases (semi-transparent things jumps to mind) that it's unlikely to be lossless, anyway.