mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-05 15:34:28 +01:00
Created Performance Tips (markdown)
parent
ba988ede10
commit
4b8c05746c
13
Performance-Tips.md
Normal file
13
Performance-Tips.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Draw commands
|
||||||
|
|
||||||
|
The less draw commands, the better the performance is.
|
||||||
|
|
||||||
|
One drawing function like `DrawImage` or `Fill` is treated as one (internal) draw command, but there is an exception. The two or more successive commands are treated as one draw command when
|
||||||
|
|
||||||
|
* All functions are `DrawImage`
|
||||||
|
* All the render targets are same
|
||||||
|
* All the render sources are same
|
||||||
|
* All the color matrices are same
|
||||||
|
* All the composite modes are same
|
||||||
|
|
||||||
|
examples/sprites is a good example to draw > 10000 sprites with one draw commands.
|
Loading…
Reference in New Issue
Block a user