3 ms·
- Redrawing the entire screen on every frame is indeed disastrous - Redrawing entire application windows every time something gets moved around a bit and somet
by exikyut 7y ago
- Redrawing the entire screen on every frame is indeed disastrous
- Redrawing entire application windows every time something gets moved around a bit and something gets a paint event is also higher load than necessary
- Drawing things that won't change every frame into textures (not shaders), and then compositing those textures together on every frame, is by far the most efficient approach today, on all platforms
I am genuinely interested to hear the definition of "less" that you refer to. It's possible some piece of assumed context is being lost in translation.
- kllrnohj 7y ago> Drawing things that won't change every frame into textures (not shaders), and then compositing those textures together on every frame, is by far the most efficient approach today, on all platforms Not really true. It's a lot more efficient to draw quite a few things from scratch than it is to use a cache texture. Texture composition requires a lot of memory bandwidth, which tends to be a rather constrained resource. It is very effective to do things like put each window in its own texture, yes. Within a given window using caching textures tends to be a net-loss, though.