🔒 Locked
Quick texture question
Advertisement
Original Post
Thanks, but my question (i obviously put it badly) was how does openGL handle a large number of textures. More than can fit in video memory? Say i have 100 textures, only 25 will fit in memory, but i only use 10 at any one time. Will openGL swap them in and out automaticly if a load all 100 at the start?
yes, OGL will automaticaly deal with making textures resident on the graphics card.
however, you can make life easier by not having textures loaded you wont need.
however, you can make life easier by not having textures loaded you wont need.
In reality, you shouldn't have a problem, what would be, OGL does for you. To control memory problems, do it like you may have done with tile game engines. Load the textures you know you need for the moment, like per level/world, then when done, delete them and load the new ones for the next dungeon etc... Besides that, OGL handles the video card part of it.
The OpenGL specification is pretty explicit about the fact that OpenGL preserves all the texture images you've successfully specified, and pages as necesary (although the paging algorithm is up to the implementation to decide).
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement