In VGA mode of the PC and in some older game consoles, it is possible to scroll the display by a pixel by incrementing a register. This only uses a single CPU instruction.
In modern devices, including laptops and mobiles with GPUs, do they still use this method or do they do something like the following pseudocode, when we scroll an app or a webpage:
for x in 0..framebuffer_width {
for y in 0..framebuffer_height {
framebuffer[x][y] = framebuffer[x][y+1];
}
}
thus requiring far more CPU instructions?