Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
Refer to the post 4.1 of 乐府, allow the texture to be recycled and the space to be released
Use frame-by-frame merging to gradually reduce the drawcall, not requiring a one-time merge, and merging one texture per frame
Refer to the post 4.3 to adopt a ranking strategy for the textures to be merged, prioritizing the merging of small, regular-sized, and low-frequency altered images (such as UI backgrounds) to maximize the merging benefit
optimize the space allocation algorithm and allow image rotation to ensure full utilization of space. Due to the use of frame-split merging, the performance should not be much worse than before.
Use Case
all games
Problem Description
https://forum.cocos.org/t/topic/135586 Many users complained about the poor space utilization of the dynamic atlas packing.
Proposed Solution
A solution from 乐府 https://forum.cocos.org/t/topic/98157
优化空间分配算法,允许图片旋转,确保空间充分利用。由于采用分帧合图,性能上应该不会比之前差很多。
How it works
No response
Alternatives Considered
nothing
Additional Information
No response