Save memory by loading JPEGs as RGB by default (#9203)
JPEGs can't have an alpha channel, so it's optimal to load them as RGB textures instead of RGBA. This saves 25% of texture memory on OpenGL-based WebGL implementations. The optimization is especially significant on memory-constrained mobile platforms.
Showing
想要评论请 注册 或 登录