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 6 of 6

Thread: A lot of memory usage, why?

  1. #1
    Intern Newbie
    Join Date
    Mar 2005
    Posts
    41

    A lot of memory usage, why?

    I have an app that has switches to enable and disable the entire use of opengl. In the app there is only one window with no child controls and no textures are created in the opengl app.

    The gdi app uses 3000kb while the opengl app uses 6000kb. Where is the extra memory being used? 3000kb seems a bit rediculous. Is there any way to reduce it?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: A lot of memory usage, why?

    Do you mean bits or Bytes ? Is it the whole size of the file ? Is it the memory used when the program is running ?

    Well, when you use a library generally, you need to use some variables. Those ones take a certain amount of memory. Ie, opengl apps generally needs a context, a display, and surely opengl needs some more variables internally.

  3. #3
    Intern Newbie
    Join Date
    Mar 2005
    Posts
    41

    Re: A lot of memory usage, why?

    But 3 megabytes extra seems a bit much. Why would it need that much?

  4. #4
    Intern Newbie
    Join Date
    Mar 2005
    Posts
    41

    Re: A lot of memory usage, why?

    Another thing I noticed is that the mem usage is the same with double buffing. Why is that also?

  5. #5
    Guest

    Re: A lot of memory usage, why?

    Maybe it's the GL driver, since it loads when a GL program runs. NV's and ATI's is 3 or 4 MB which is peanuts by todays standards. Don't worry about it.

  6. #6
    Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    322

    Re: A lot of memory usage, why?

    W.r.t. double-buffering not making any difference: that's probably because the backbuffer is in graphics memory, not main memory.

Posting Permissions

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