Hiya,
I'm trying to get my head around the resource cache presented in the book, and I had a question I was hoping someone could answer...
The resource cache seems to be great at loading and cahing primitive resources like bitmaps, mesh files, etc. My design has resources like ITexture and IMesh, though, that internally hold DirectX objects, not the bitmap or X files they are stored as. I'm not sure if the resource cache is meant for caching objects like this.
As an example, say a list of dynamic objects are created. Each one has a pointer to the IMesh object that represents it, amongst other things. That mesh object loads from an X file in the resource cache. Then the cache sits around doing... what? To be honest, it seems like a bit of an unnecessary intermediate stage for loading from an archive file.
I don't know if I'm trying to use the cache for something it's not designed for. Is it for caching game objects and the like, or just resources that will be used to create those objects while they are being loaded, or what?
I really hope that was clear enough, but any help would be very much appreciated
I'm trying to get my head around the resource cache presented in the book, and I had a question I was hoping someone could answer...
The resource cache seems to be great at loading and cahing primitive resources like bitmaps, mesh files, etc. My design has resources like ITexture and IMesh, though, that internally hold DirectX objects, not the bitmap or X files they are stored as. I'm not sure if the resource cache is meant for caching objects like this.
As an example, say a list of dynamic objects are created. Each one has a pointer to the IMesh object that represents it, amongst other things. That mesh object loads from an X file in the resource cache. Then the cache sits around doing... what? To be honest, it seems like a bit of an unnecessary intermediate stage for loading from an archive file.
I don't know if I'm trying to use the cache for something it's not designed for. Is it for caching game objects and the like, or just resources that will be used to create those objects while they are being loaded, or what?
I really hope that was clear enough, but any help would be very much appreciated
The post was edited 1 time, last by beebs1 ().