Use faster method for packing the UI atlas

This commit is contained in:
Henrik Rydgård committed 2026-01-24 10:44:00 +01:00
1 parent 68a8ba856f
commit 1bef13c227
1 file changed
+1 -1
+1 -1
View File
@@ -409,7 +409,7 @@ static bool GenerateUIAtlasImage(Atlas *atlas, float dpiScale, Image *dest, int
int imageWidth = RoundToNextPowerOf2((int)sqrtf(area));
Instant bucketStart = Instant::Now();
bucket.Pack(imageWidth);
bucket.Pack2(imageWidth);
INFO_LOG(Log::G3D, " - Packed in %.2f ms (image size: %dx%d)", bucketStart.ElapsedMs(), bucket.w, bucket.h);
Instant resolveStart = Instant::Now();