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 4 of 4

Thread: GLUT Efficiency

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Lisbon, Portugal
    Posts
    17

    GLUT Efficiency

    Hi,

    If I choose to use GLUT to develop an OpenGL program instead a OS dependent toolkit, will that mean that it'll run a lot slower? The question is, will the use of GLUT create an efficiency issue on my program?

    Can GLUT be as efficient as any other toolkit?

    Best Regards,
    Paulo Matos
    Paulo J. Matos : pocm@mega.ist.utl.pt
    Instituto Superior Tecnico - Lisbon
    Computer and Software Eng. - A.I.
    - > http://mega.ist.utl.pt/~pocm
    ---
    -> God had a deadline...
    So, he wrote it all in Lisp!

  2. #2
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLUT Efficiency

    I believe that GLUT has an efficency problem if you do not use the special game mode. I do not know the exact reasons, but I have heard that GLUT does some strange things in "standard" mode.

    If you do use the game mode, I think the efficiency difference is negligable (compared to a native toolkit or a custom native wrapper).

    Hint: you may want to have a look at GLFW too, which is a platform independent toolkit that does not suffer from efficiency problems.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Lisbon, Portugal
    Posts
    17

    Re: GLUT Efficiency

    Originally posted by marcus256:
    I believe that GLUT has an efficency problem if you do not use the special game mode. I do not know the exact reasons, but I have heard that GLUT does some strange things in "standard" mode.

    If you do use the game mode, I think the efficiency difference is negligable (compared to a native toolkit or a custom native wrapper).
    What do you mean by game mode? How can I enable it and what are the differences from standard mode? Any references?

    Best regards,
    Paulo Matos
    Paulo J. Matos : pocm@mega.ist.utl.pt
    Instituto Superior Tecnico - Lisbon
    Computer and Software Eng. - A.I.
    - > http://mega.ist.utl.pt/~pocm
    ---
    -> God had a deadline...
    So, he wrote it all in Lisp!

  4. #4
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    853

    Re: GLUT Efficiency

    Code :
    glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
    glutGameModeString("640x480:16@60");
    glutEnterGameMode();
    ...
    glutLeaveGameMode();
    See "Help with glutGameMode" in http://www.mathies.com/glfaq/GLToolkitFAQ.html

Posting Permissions

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