Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 904931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:07:56+00:00 2026-05-15T16:07:56+00:00

Basically I do something like this: GenerateLinePoly(Contour[i].DrawingPoints, Contour[i].Outline.OutlineWidth); Contour[i].Outline.OutlineSize = OutlineVec.size() / 2; glBindBufferARB(GL_ARRAY_BUFFER_ARB,Contour[i].Outline.OutlineVBO);

  • 0

Basically I do something like this:

GenerateLinePoly(Contour[i].DrawingPoints, Contour[i].Outline.OutlineWidth);
     Contour[i].Outline.OutlineSize = OutlineVec.size() / 2;

 glBindBufferARB(GL_ARRAY_BUFFER_ARB,Contour[i].Outline.OutlineVBO);
     glBufferDataARB(GL_ARRAY_BUFFER_ARB,sizeof(GLfloat) * OutlineVec.size(),
         &OutlineVec[0],GL_DYNAMIC_COPY_ARB);

in my class constructor I do GlGenBuffers for all of these and I guarantee that I use GlDeleteBuffersARB in the deconstructor.

The system memory usage goes up as expected. But after destroying the object the memory occupied by thebuffers remains. I don’t think this is a memory leak. I call GlDeleteBuffers and it doesn’t clear all the memory it uses. Is that normal behavior? What could cause this?

If I only do:

GenerateLinePoly(Contour[i].DrawingPoints, Contour[i].Outline.OutlineWidth);
     Contour[i].Outline.OutlineSize = OutlineVec.size() / 2;

Then my memory is managed perfectly as I would expect.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:07:57+00:00Added an answer on May 15, 2026 at 4:07 pm

    Man page of glDeleteBuffers

    It doesn’t say anywhere that the memory should be released immediately. If it’s not leaking (which is a driver bug), then i would say that what you’re expecting is not happening. The GL implementation is free to do the real deallocation anytime it wants, specially if the resources are still used. Remeber that since the CPU and GPU run in parallel, the GPU might be using some resource while the CPU is doing other things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So basically I have something like this <div class=iframe-holder> <span></span> <iframe src=iframe.html width=200 height=200
Basically what I need is to do something like this App.CommentView = Backbone.View.extend({ className:
Basically, I want to do something like this (in Python, or similar imperative languages):
I just want to ask if anybody has done something like this. Basically, it's
So I wanted to have something like in this image . Basically you have
I basically have something like this: class CGlToolBase { public: CGlToolBase(void) { } virtual
Basically I have something like this: public void Form1_btnStart_click() { Void1() NextLine } Public
I have an int variable that basically looks something like this: 101137111 What I
Basically I would like to do something like this at the top of my
Lets say I have something like this: http://gyazo.com/642987562175afc6d11a962762327744.png?1329570534 Basically, the user fills out this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.