diff --git a/Performance-Tips.md b/Performance-Tips.md new file mode 100644 index 0000000..c96ed69 --- /dev/null +++ b/Performance-Tips.md @@ -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.