News for hackers. Stuff that matters.
Re:Emerging Rust GUI libraries in a WASM world by birracerveza on Thursday April 27, 2023 @05:39AM (#35725563)
If drawing all 8000 nodes consumes less resources than rendering your average homepage, is it really wasteful? I understand it can be optimized, but that optimization often comes at a cost which may end up being even more wasteful.
Re:Emerging Rust GUI libraries in a WASM world by galangalalgol on Thursday April 27, 2023 @05:53AM (#35725682)
Yeah, when a gpu is involved it is often cheaper to process everything rather than check what meeds to be processed.
Re:Emerging Rust GUI libraries in a WASM world by ReleaseCandidat on Thursday April 27, 2023 @06:51AM (#35726132)
I don't know how egui or the OP's app works, but we aren't talking about costly intersections of arbitrary surfaces but the sending of vertex data (for the vertex shader) in an integer interval (of nodes). This isn't about half or 1/10, but about 1/1000th of the data.
Re:Emerging Rust GUI libraries in a WASM world by ReleaseCandidat on Thursday April 27, 2023 @06:35AM (#35726014)
> If drawing all 8000 nodes consumes less resources than rendering your average homepage, is it really wasteful?

That may not have been clear, but I am talking about drawing less nodes in any case, also when using egui.