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: Refresh just a part of the scene

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2002
    Posts
    1

    Refresh just a part of the scene

    I want to refresh just a part of the scene to speed-up the drawing. Is there any opengl function for doing this? Many thanks.

  2. #2
    Member Regular Contributor
    Join Date
    Nov 2000
    Posts
    409

    Re: Refresh just a part of the scene

    Write your own routine to clear the screen...ie, don't use glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    (or whatever flags you use)

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

    Re: Refresh just a part of the scene

    Speeding up rendering is a complex topic.
    You need to know exactly what your bottleneck is first, then you'll need to decide how to improve that.
    Do you mean part of the window or part of the geometry?
    Part of the window does work with glScissor() and glEnable(GL_SCISSOR_TEST) to specify the area you want to clear and refresh. (glScissor() is one of the few calls which affect glClear.)
    Your app needs to be fillrate bound to take advantage of that.
    For partial geometry updates you can establish a backing storage with the buffer region extension(s) which allow to save and restore the buffer data which is not changing. Search the forum on that.

Posting Permissions

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