-1
votes
1answer
228 views

Storing texture ID's for fast global retrieval [closed]

Simple question: What is the fastest way to retrieve a texture ID, given an enum value? Say I have 100 textures, what would be the fastest way to get one texture ID? Make a texture manager with a ...
8
votes
1answer
2k views

Game Engine Design – Ubershader - Shader management design

I want to implement a flexible Ubershader system (with deferred shading). My current idea is to create shaders out of modules, which deal with certain features (FlatTexture, BumpTexture, Displacement ...
6
votes
1answer
2k views

How to manage shaders?

I've done some shader programming some time ago but only simple stuff. I'm especially interested in how do you manage shaders? Do you just write one of each kind, or do you need more of them? If so, ...
4
votes
2answers
246 views

How can I determine a budget for RAM used (LRU involving VRAM, in particular)

After some profiling, I've determined that one of my most expensive functions involves drawing text. As a solution, I'd like to implement a LRU type of cache that will "remember" the vertices, tex ...