bafipawi/SS14 — Issue #3: Create a texture management system
Author: sensae
Created: 2012-03-07 00:25:52+00:00
State: open
Labels: enhancement

Util::GetTexture() is currently the closest we have to a texture management system in the source. Every time this function is called, it opens a file socket to the texture file, loads it into VRAM and returns a pointer to this memory segment. This imparts a non-trivial performance hit, but it currently isn't an issue.

A texture management system needs to be written which keeps track of what textures have already been loaded to VRAM, and simply returns the pointer to the texture already in memory instead of re-copying it every time it is requested.