Results 1 to 5 of 5

Thread: display lists leed to big win386.swp

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2000
    Location
    germany
    Posts
    25

    display lists leed to big win386.swp

    hi all! i have 3 displaylists (600+ quads) that need to be recalculated periodically. This process

    1. glDeleteLists(1, 3) // if existing
    2. glNewList(1), ... glNewList(2), ... glNewList(3) .... // rebuild lists
    3. display // looks really good!!
    4. do certain things and GOTO STEP 1

    seems to leave significant amounts of memory in the swapfile every cyclus. i tested this on different gfx boards (s3, ati, nvidia) -> same result.

    any idea?

    thank you!

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: display lists leed to big win386.swp

    Difficult to answer with these few informations.
    If it happens on different OpenGL implementations chances are high that the program itself leaks memory.

    Actually you don't need to delete the lists. Just call glNewList with the desired id and the currently existing list will be overwritten.
    glDeleteLists when you exit the program.

    BTW, if you periodically regenerate geometry, you might want to look at vertex arrays instead of display lists, too.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: display lists leed to big win386.swp

    just in case, do you call glEndList() for each corresponding glNewList()?

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2000
    Location
    germany
    Posts
    25

    Re: display lists leed to big win386.swp

    Originally posted by coco:
    just in case, do you call glEndList() for each corresponding glNewList()?
    I do! I didn't want to post the whole code. sorry!

  5. #5
    Member Contributor
    Join Date
    Jan 2001
    Location
    france
    Posts
    60

    Re: display lists leed to big win386.swp

    Don't be afraid to show us more if you want more help....
    Sharing pieces of code won't kill trust me

Similar Threads

  1. please help me in display lists
    By saaasaaan in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-11-2013, 05:06 PM
  2. What exactly do display lists do?
    By ViolentHamster in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 09-24-2009, 09:58 PM
  3. cg & display lists
    By nib in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 11-04-2006, 07:22 PM
  4. display lists inside display lists...
    By architekt in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-22-2002, 08:55 PM
  5. display lists
    By lee in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-15-2001, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean