UIKit-cross-platform icon indicating copy to clipboard operation
UIKit-cross-platform copied to clipboard

Allow using 8bit alpha textures in CGImage

Open ephemer opened this issue 7 years ago • 0 comments

Motivation

We want to be able to support 8bit textures in order to reduce the occurrence of OutOfMemoryErrors in certain situations. SDL_gpu uses 32bit textures by default, so this change would reduce memory usage by at least 75% in many situations.

Proposed solution

We'd need to use bgfx or another renderer, because SDL_gpu doesn't seem to support anything but its default setting.

ephemer avatar Dec 13 '18 12:12 ephemer