From c5686681497c67b963345932e62985d44d5da886 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 17 Feb 2023 02:06:37 +0900 Subject: [PATCH] examples/subimage: add a comment Updates #2471 --- examples/subimage/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/subimage/main.go b/examples/subimage/main.go index 90e287782..8db2b24da 100644 --- a/examples/subimage/main.go +++ b/examples/subimage/main.go @@ -58,6 +58,8 @@ func (g *Game) Draw(screen *ebiten.Image) { g.subImages[i][j] = img } + // Rendering onto a sub image should be efficient, + // but this is not efficient some environments like browsers (#2471). clr := color.RGBA{byte(0xff * float64(i) / cx), byte(0xff * float64(j) / cx), 0, 0xff} img.Fill(clr) }