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: Optimizing redraw

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2004
    Location
    Argentina
    Posts
    9

    Optimizing redraw

    Hi!

    I need to optimize drawing times. I'm using OpenGL in a WIndows environment.
    I have a scene made up of several objects. One of them is changed in position in a mouse_move event. How can I

    optimize the rendering so as not to redraw all the objects in every mouse_move?
    Can I redraw all the scene once, and just the object moved in the mouse_move? How?
    Thanks
    Angel

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    21

    Re: Optimizing redraw

    Hi,

    If your hardware supports it, I guess you could render the scene once, without the moving object. Then, you could save both the frame buffer and the depth buffer to textures. Therefore, rendering the whole scene would require two texture copy and one object rendering.

    Also, have you thought about using Vertex Buffer Objects (VBOs)? I was able to render more than a million triangles at 75 fps on a Radeon X800XT PE.

    I hope it helps.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2004
    Location
    Argentina
    Posts
    9

    Re: Optimizing redraw

    Thanks!
    Angel

Posting Permissions

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