Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Freeing up memory

  1. #1
    Intern Newbie
    Join Date
    Jan 2013
    Posts
    30

    Freeing up memory

    Hi,

    I have used glvertex3f to store the vertices of a triangle. It has used up a lot of CPU memory. How can I delete that memory so that I can create another view using different data.

    Thanking you in advance

    MacSam

  2. #2
    Intern Newbie
    Join Date
    Jan 2013
    Posts
    30
    Or can I delete it?

  3. #3
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,124
    Quote Originally Posted by macsam View Post
    I have used glvertex3f to store the vertices of a triangle. It has used up a lot of CPU memory. How can I delete that memory so that I can create another view using different data.
    You might post a little code to illustrate your use case.

    In general, once you upload your vertices to the GPU and store them in a buffer object, you can just delete (or reuse) the CPU memory buffer in your application that previously contained them, if you have no further need for them on the CPU-side in the future.

Posting Permissions

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