mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 04:22:05 +01:00
Updated Performance Tips (markdown)
parent
b549b8d76e
commit
3a5b1d7200
@ -31,3 +31,11 @@ B.DrawImage(A, op)
|
|||||||
# Avoid using the screen as a render source
|
# 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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user