Hacker News new | ask | show | jobs
by weixiyen 5225 days ago
You just have to think lower level. There's the CPU to figure out what to draw, then there's the CPU (or GPU if using webgl) to actually draw what it figured out. More screen space increases rendering time b/c now you are drawing potentially 4x as much in the same timeframe.

Similarly, an image of 30kb takes more time to draw than an image of 10kb, even if they take up the same dimensions and space on the screen.

If you think this way, it's quite intuitive.

1 comments

True. I guess I'm just surprised by the magnitude of the effect. Thanks for the input.
it doesn't manifest itself until you put it in a loop and try to draw every 16 ms.
Good point :)