mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-19 06:20:16 +01:00
Updated Performance Tips (markdown)
parent
14f5f42d98
commit
3fb20728c3
@ -9,6 +9,7 @@ One drawing function like `DrawImage` or `Fill` is usually treated as one (inter
|
|||||||
* All the `ColorM` are same, or all the `ColorM` have only 'scale' operations
|
* All the `ColorM` are same, or all the `ColorM` have only 'scale' operations
|
||||||
* All the composite modes are same
|
* All the composite modes are same
|
||||||
* All the filter values are same
|
* All the filter values are same
|
||||||
|
* All the address values are same (only for `DrawTriangles`)
|
||||||
|
|
||||||
Even when all the above conditions are satisfied, multiple draw commands can be used in really rare cases. Ebiten images usually share an internal automatic texture atlas, but when you consume the atlas, or you create a huge image, those images cannot be on the same texture atlas. In this case, draw commands are separated. The texture atlas size is 4096x4096 so far. Another case is when you use an offscreen as a render source. An offscreen doesn't share the texture atlas with high probability.
|
Even when all the above conditions are satisfied, multiple draw commands can be used in really rare cases. Ebiten images usually share an internal automatic texture atlas, but when you consume the atlas, or you create a huge image, those images cannot be on the same texture atlas. In this case, draw commands are separated. The texture atlas size is 4096x4096 so far. Another case is when you use an offscreen as a render source. An offscreen doesn't share the texture atlas with high probability.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user