From c1c0306471d34b38d3bab195b6466632eed5b104 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 19 Jan 2019 22:14:04 +0900 Subject: [PATCH] graphics: Update the document about DrawImage --- image.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/image.go b/image.go index 351dee4df..83d12c020 100644 --- a/image.go +++ b/image.go @@ -218,14 +218,14 @@ func (i *Image) disposeMipmaps() { // when the successive calls of DrawImages satisfies the below conditions: // // * All render targets are same (A in A.DrawImage(B, op)) -// * All render sources are same (B in A.DrawImage(B, op)) -// * This is not a strong request since different images might share a same inner -// OpenGL texture in high possibility. This is not 100%, so using the same render -// source is safer. // * All ColorM values are same, or all the ColorM have only 'scale' operations // * All CompositeMode values are same // * All Filter values are same // +// 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. +// // For more performance tips, see https://github.com/hajimehoshi/ebiten/wiki/Performance-Tips. // // DrawImage always returns nil as of 1.5.0-alpha.