Mark Shaxted
07-30-2007, 08:55 AM
Forgive my ignorance, but I have made some assumptions which I'd like someone to confirm (or not!).
I've established that OGL keeps textures in system memory, and copies them to video memory on demand. So assuming all textures fit into video RAM, and assuming both (system & video RAM) have the same storage requirements (32 bit RGBA for example) it's safe to assume that the memory required to store said textures is twice as much as necessary(one copy in system RAM and another in video RAM).
Here is where I'm confused. If I alter a texture using RTT am I correct in thinking that the driver is esentially 'blind' to this. In other words the texture in video RAM is no longer reflected in system RAM, hence the need for an expensive readpixels? If this is the case, and the altered texture ceases to be resident, does the driver copy the altered texture into system RAM for when it's next needed, or does the driver just re-use the original (unaltered) texture?
I know this doesn't really belong in the advanced forum, but I have another related question after the above is clarified.
Many thanks
Mark
I've established that OGL keeps textures in system memory, and copies them to video memory on demand. So assuming all textures fit into video RAM, and assuming both (system & video RAM) have the same storage requirements (32 bit RGBA for example) it's safe to assume that the memory required to store said textures is twice as much as necessary(one copy in system RAM and another in video RAM).
Here is where I'm confused. If I alter a texture using RTT am I correct in thinking that the driver is esentially 'blind' to this. In other words the texture in video RAM is no longer reflected in system RAM, hence the need for an expensive readpixels? If this is the case, and the altered texture ceases to be resident, does the driver copy the altered texture into system RAM for when it's next needed, or does the driver just re-use the original (unaltered) texture?
I know this doesn't really belong in the advanced forum, but I have another related question after the above is clarified.
Many thanks
Mark