Results 1 to 2 of 2

Thread: Memory issues Imagedata & textures.

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    4

    Memory issues Imagedata & textures.

    Hi,

    I'm having some difficulties with a webapp that I'm writing at the moment. Basically what I'm doing is working with a large array of images, and then creating textures of these images to draw in a 3D scene.

    This all works very well, but I'm facing some memory issues. (as in: the memory usage is enormous ) What I'm trying to do is delete (nullify) the image arrays, and continue to work with the textures after all is done. This works, I don't have any access to my image arrays left, but I can still use the textures. The problem is that the memory usage isn't any lower.

    My question: is it possible to delete the image array and keep the textures and free the memory of the images. Or is there still a reference from the textures to the image src and does this prevent it from freeing memory?.

    My Second question if the deletion is not possible: Is copyTexImage2D a useful option to consider? I presume that if I create a copy of the texture through the framebuffer, it won't have any references left to the image array and the garbage collector will free up the memory?

    Thanks!

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    4

    Re: Memory issues Imagedata & textures.

    Ok I found the solution. Seems like it was already answered in the forums.
    viewtopic.php?f=43&t=3367
    Sorry for the useless topic.

Similar Threads

  1. Textures using system memory instead of video memory
    By j.edwards in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 05-19-2009, 11:14 PM
  2. Rasteroid 3.1 - OpenVG & GL-ES Issues
    By WillPash in forum Cross API and window system integration
    Replies: 0
    Last Post: 11-20-2007, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •