Results 1 to 8 of 8

Thread: how can i make my 3D program run faster ?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Yangzhou,Jiangsu,China
    Posts
    4

    how can i make my 3D program run faster ?

    hi,i want to write a program to make the user interface into 3D world,but my program runs not as fast as i want.
    sorry,i'm not good at English.
    my program runs under linux + Xwindow,the source is here: http://download.gro.clinux.org/mywor...0.1_1.7.tar.gz
    the demo is here: http://download.gro.clinux.org/mywor...0.1_1.7.tar.gz
    need glut

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Nanjing,China
    Posts
    116

    Re: how can i make my 3D program run faster ?

    Here ,i am chinese too.Nice to meet you
    But I think your post is a little too broad to answer ,people here tend to answer more specific problem,usually not code/bug analysis .
    The
    Red book page 678 has peformance tips like use glcalllist ,something like that that i don't repeat here.
    Give it look and Good Luck

  3. #3
    Guest

    Re: how can i make my 3D program run faster ?

    For the gllist all you have to do is:

    Glcalllist ListNumber, GL_COMPILE
    DrawModel()
    GlEndList

    that will save the rendereing information inside OpenGL

    then when you run the program and want to draw that list you call

    GlCalllist ListNumber

    Thats it, real easy, and it made my programs jump from 5 FPS to 60 FPS

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Yangzhou,Jiangsu,China
    Posts
    4

    Re: how can i make my 3D program run faster ?

    thank you all ~~
    and i want to do frustum culling , how ?

  5. #5
    Guest

    Re: how can i make my 3D program run faster ?

    culling is very simple (now i just have to remeber how to do it...)

    to enable first call, glEnable GL_CULLFACE
    then call glCullFace and then the method; either front and back, front, or back

  6. #6
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Yangzhou,Jiangsu,China
    Posts
    4

    Re: how can i make my 3D program run faster ?

    3q,but this is just back face culling,how about the object culling ?

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    Re: how can i make my 3D program run faster ?

    google with the keywords "view-frustum culling" gave this interessting link:
    http://www.cg.tuwien.ac.at/studentwo...ykoraJJelinek/

    I think it explains in detail what you are looking for.

    Jan.
    GLIM - Immediate Mode Emulation for GL3

  8. #8
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Yangzhou,Jiangsu,China
    Posts
    4

    Re: how can i make my 3D program run faster ?

    .........
    i'm a Chinese and my English is not good
    so many English words .... my god .....

Similar Threads

  1. how to make glTexImage2D faster?
    By freesui1984 in forum OpenGL ES
    Replies: 3
    Last Post: 09-15-2009, 09:39 AM
  2. how can i make my rendering faster
    By mithun_daa in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-20-2003, 11:53 AM
  3. How can i make my lighting even faster...?
    By ewan_s in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 11-05-2003, 04:51 AM
  4. tips how make it faster
    By jirkamelich in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2002, 10:27 PM
  5. How to make it faster
    By imported_Dominik in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-31-2001, 09:49 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