HalfLifeAssetManager icon indicating copy to clipboard operation
HalfLifeAssetManager copied to clipboard

Optimize texture loading and remapping

Open SamVanheer opened this issue 4 years ago • 0 comments

Currently texture loading and remapping is handled inefficiently. Textures are first converted from 8 bit indexed to 32 bit RGBA, then resized if power of 2 textures are enabled, and then uploaded.

If a texture requires remapping this process is repeated after first updating the palette.

This should be optimized by incorporating remapping into the initial loading process, and performing the format conversion at the same time as the resizing.

SamVanheer avatar Dec 28 '20 15:12 SamVanheer