(01-17-2011, 06:46 AM)JamesDunne Wrote: [I think I can tackle that one. The biggest problem is we don't know ahead of time where textures are in the ROM to preload them. Then, how do we uniquely identify textures to look up in the preloaded cache when they are presented to the renderer? Furthermore, who's to say a texture address,I have based this on the thought that the content have to be streamed from disc and therefore somehow have an address which is related to this one here tex.texImage3[i&3].image_base) << 5.
SNIP....
Easy talk... load disc on startup, parse all contents and upload texs to gfx mem.
Afterwards if requested from disc patch adress x with y and so on...
The dynamic textures would be generated after this stage, so just flag them and give them a live timer...
But sorry for my stupid question... should have digged a little bit more into the code and find this out on my own. THX for the explanation
But at least the shader thingy should be useful