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

Thread: How to improve FPS.

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    13

    Question How to improve FPS.

    After I import a model with large vertex data,the fps is too low.
    I 've already used the GLSL.Could you give me some suggestion about how to improve the fps?
    I would appreciate your kiddly help.
    Click image for larger version. 

Name:	无标题.jpg 
Views:	29 
Size:	14.3 KB 
ID:	1087
    You can download my program here.(Most is the model.The program just hold a small part.)
    https://files.one.ubuntu.com/PnJQKtYgRYWbrrncDxbKwg

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    I can't access your code without creating an account.

    Generally keep your state changes to a minimum, keep the total number of OpenGL to a minimum, have large buffeer so you can draw alot with a single call

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    13
    Quote Originally Posted by tonyo_au View Post
    have large buffeer so you can draw alot with a single call
    You mean calling draw function too many times would slow down the render speed?

  4. #4
    Newbie Newbie
    Join Date
    Jul 2013
    Posts
    1
    You can get excellent performance by using Vertex Buffer Objects (VBOs). Use them in conjunction with "index buffers" for shared vertices and your performance goes way up.

    One of the biggest tricks to performance in OpenGL is trying to make you scene/application run within the GPU's video memory as much as possible, and minimizing transfers between main memory and video memory. VBOs, textures and index buffer arrays help you keep your data on the GPU, and reduce the overhead of function calls sending data between the CPU and GPU.

    On a reasonable video card with 1 GB or more of video RAM you should expect to be rendering millions of polygons at 60 Hz.

    Google tutorials on VBOs and index buffers and you'll see lots of examples.

  5. #5
    Junior Member Newbie
    Join Date
    Jan 2013
    Posts
    13
    Thank you very much.

Posting Permissions

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