Results 1 to 2 of 2

Thread: How to or can I speed up animation using glut?

  1. #1
    Guest

    How to or can I speed up animation using glut?

    Hi,

    I am trying to program this stimulus for my experiment using glut, in which a complicated background and a superimposed simple patch will be presented. The luminance of the patch but not the background will udergo oscillation over time. The problem that I have now is to update the scene, after calling glutPostRedisplay, everything in the previous scene is cleared. And the time spent to draw the background (not the patch!!) is too long, of course partly also due to the relatively low performance of the machine . My question is how to, if I can, redraw only the patch part every time I update the scene?

    Your help will be greatly appreciated!!
    Xinmiao

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: How to or can I speed up animation using glut?

    glScissor will restrict clears + drawing to a piece of the screen.
    also with the wgl_arb_buffer_region (windows) extension u can store the screen (eg the background) somewhere for fast redraw later

Similar Threads

  1. GL2 2D animation w/o GLUT... I think I almost got it?
    By NathanHawks_US in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-30-2017, 03:55 PM
  2. how to do animation using glut
    By qawded in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-08-2013, 12:49 AM
  3. glut speed
    By davidib in forum OpenGL: General
    Replies: 1
    Last Post: 03-02-2005, 04:54 AM
  4. How to maintain animation speed!?!?
    By GL_ZERO in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-28-2003, 01:04 AM
  5. Exec speed between Windows and GLUT
    By fcoutel in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-08-2002, 07:10 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