I'm trying to write a 2D Game using Starling, and most textures are up to 4k, and I'm getting a resource limit exception.

Is there a way or an algorithm, idea, to get HD Textures and use them with that limited texture resources in stage3d ? Compression ?

有帮助吗?

解决方案

Stage3D (which Starling uses underneath) has a max texture size of 2048x2048. If your textures are larger than this, then you are going to have to split them and stitch them together at runtime.

If you find yourself running out of memory (rather than the dimensional size limit) then you can look into compression using ATF textures.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top