ps2dev / gsKit

gsKit is a C interface to the PS2 Graphics Synthesizer
Other
107 stars 28 forks source link

Optimize VRAM usage and fix VRAM memory leak #16

Closed rickgaiser closed 6 years ago

rickgaiser commented 6 years ago

Optimize VRAM allocation This saves a lot of VRAM for small textures. For instance 1 CLUT now uses 1KiB, instead of 16KiB. Most large textures will have no benefit. For more information read the GS User's Manual, chapter 8.

Fix delayed loading for BMP files The Texture->Delayed flag indicates if the texture should be uploaded to VRAM or not. For BMP files this flag was ignored when allocating VRAM for the CLUT. This resulted in a VRAM memory leak.