-
Bug
-
Resolution: Unresolved
-
None
-
1.21.1, 1.21.2 Pre-Release 2
-
None
-
Confirmed
-
Resource Packs
The bug
If a resource pack is applied that wouldn't need as large of an atlas as the previous resource pack, the previous size of the atlas will be retained. (MC-263119) This can have some unwanted side effects.
How to reproduce
A resource pack that expands the blocks atlas to 16384x16384 (the maximum size) is attached to this ticket.
- Download this resource pack
- Observe an enchanted item
- Apply this resource pack
- Then remove this resource pack
- Look at an enchanted item again
- Press F3+S
Expected results
Removing the resource pack would revert the atlas to its previous size, so pressing F3+S would produce a 2048x1024 blocks atlas in the screenshots folder. In addition, enchanted items wouldn't look any different.
Actual results
Removing the resource pack does not revert the atlas's size, so pressing F3+S causes the game to produce a 16384x16384 image file, which takes a very long time. In addition, the enchantment glint looks different now (MC-276841).
How to fix
The needed atlas size should be recalculated every time the resource pack is reloaded and shrunk accordingly to avoid this issue.
Further notes
The attached texture atlas file has been run through FileOptimizer as to fit within the file size limits, and therefore is not the original 12MB size.