Updated Performance Tips (markdown)

Hajime Hoshi 2017-08-24 10:58:18 +09:00
parent b549b8d76e
commit 3a5b1d7200

@ -31,3 +31,11 @@ B.DrawImage(A, op)
# Avoid using the screen as a render source
The screen is a special image because the image is cleared at every frame. As explained above, Ebiten records a drawing function calls but using the screen as a render source makes the calculation complicated.
# Don't call (*Image).ReplacePixels too much
ReplacePixels is a relatively heavy function that calls glTexSubImage2D internally.
# Don't call (*Image).At too much
At is also heavy that tries to solve all the queued draw commands.