From 414a64ce785d359e4804ce053a40ebefbcd21bc7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 24 Jun 2021 21:31:31 +0900 Subject: [PATCH] internal/atlas: Allow extending a texture atlas As PBO is no longer used (#1678), using a big atlas with ReplacePixels is no longer problematic. Closes #1674 Updates #1675 --- internal/atlas/image.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/atlas/image.go b/internal/atlas/image.go index 20dd0162c..268763a2f 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -715,10 +715,7 @@ func BeginFrame() error { if len(theBackends) != 0 { panic("atlas: all the images must be not on an atlas before the game starts") } - // Use 8192 as a minimum texture size to reduce chences to extend the texture (#1675). - // For example, extending a texture size from 4096px to 8192px might be slow in some environments. - // TODO: Extending a texture to 16384px can be very slow (#1674). - minSize = min(8192, restorable.MaxImageSize()) + minSize = 1024 maxSize = restorable.MaxImageSize() }) if err != nil {