title: Opengl: how to handle many textures/images?
body: <p>Total opengl noob here.</p>
  
  <p>I have a whole directory of images that I end up loading into memory and building textures from parts of these images.  Constructing the textures from the subparts of these images on the fly is bogging the system down, but I won't know beforehand what portions of these images will need to be selected to build the textures.  Is there a better way to handle this than creating a large number of textures?  For instance, making one texture for each image and then sampling a subset of that texture to apply to each surface?</p>
  
  <p>I can post code if it helps, but there is a lot of it.  I was hoping for more of general guidelines and orientation towards using textures in an efficient way.</p>