View Full Version : PBO Texture update double vram needed?
04-17-2008, 02:06 AM
If I'm updating a tetxure with an pbo will then the double texture size in vram be neccessary for the update? If not what exactly does the update process then?
04-17-2008, 12:30 PM
In conventional way, the texture source is loaded into the system memory first, before copying it to the texture object in VRAM.
By using PBO, you can load the texture source into a PBO directly. The difference is this PBO is OpenGL managed memory, not by CPU.
(Compare this diagram with the previous.)
In order to access PBO from your client application, OpenGL provides a memory mapping mechanism, glMapBuffer()/glUnmapBuffer().
04-17-2008, 12:38 PM
That's a good explanation but I still don't know if the double texture space is needed in vram ^^
04-19-2008, 06:22 AM
Depending upon your usage model, the driver will decided whether it belongs in VRAM or system memory. STATIC_DRAW is a pretty good indicator that things belong in VRAM. Everything else is a toss up as to whether it gets put in VRAM or system memory. So, IF the PBO does get put into VRAM, then it uses up that VRAM at least for the duration of your TexSubImage call and you end up with double VRAM usage.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.