|
|
|
|
|
by kragen
13 days ago
|
|
Even without the GPU, you don't have to peg the CPU when scrolling a 4K 120Hz display. 3840 pixels/row × 2160 rows/frame × 120 frames/second × 4 bytes/pixel is 4 gigabytes per second. The laptop I'm typing this on can memcpy() to main memory at 10 gigabytes per second on one core and 17–19 gigabytes per second on two cores. So we're talking about more like a 25% CPU load if we can avoid extra copies, maybe better than that if most of the work is something like colormapping 8-bit grayscale font-glyph pixels. (If you're mostly memcpying from a font that fits in cache, you should get a higher fill rate than this.) Using a GPU is of course much better, but not necessary to reach the level of performance you're talking about. |
|
All that to say, your example of blitting a single color is very, very far away from the practical reality of rendering a GUI.