← Back to context

Comment by well_ackshually

2 hours ago

No you won't. Firstly because your software is one of dozens running and it doesn't get to take the privilege of fucking over my battery consumption and asking for my GPU to spin so you can edit markdown, and also because 2D rendering is miserable and non-performant in every single game engine you can think off. 2D sucks to make, 2D eats half of your frame time by just existing and slicing those triangles.

What?

You can try rendering a 2D rectangle as 2 quads in whatever GPU API you like the most, then try pushing the same amount of pixels to a CPU buffer via the widest CPU memory write instructions you can have (and then wait the GPU-accelerated compositor upload them to the GPU anyways to present them...).

I can tell you for a fact one will be 2 orders of magnitude faster, want to make bet which one?

Using a GPU api does not imply you have to render at the screen's refresh rate, or even that you have to update the entire window.