PDA

View Full Version : Will this work for speedup??



GarlicGL
02-19-2002, 09:20 AM
Hi all,
I'm wondering if this approach will work in speeding up the FPS of my scene. Say I read a scene from some geometry file and all I want to do is fly through the scene. Since the values I read in are not changing and only the eyepoint is, sould I use display lists to increase performance? Would a change in the eyepoint position constitute a change in the state of the scene? Now, with every new eyepoint, actaully with every new frame I call glBegin/glEnd and draw my scene one facet at a time.

Thanks,
GGL

tempocrew
02-19-2002, 11:01 AM
Yes, if you're geometry is not changing you definetly can use display lists, and then translate and rotate the matrix to move the camera around. And display lists will speed this up under almost all circumstances.

satan
02-19-2002, 11:32 AM
Originally posted by tempocrew:
...and then translate and rotate the matrix to move the camera around.
why not glulookat? made things for me easier than this glrotate stuff esp. if you wanne fly around


[This message has been edited by satan (edited 02-19-2002).]

Leyder Dylan
02-19-2002, 11:43 AM
Yeah, display list 're cool

Your can add a QuadTtree system, it'll speed up the performance and a Frustum Culling.

It's not difficult to add these 2 things.

02-19-2002, 04:59 PM
Display lists are cool. So is gluLookAt.

GarlicGL
02-19-2002, 07:08 PM
Thanks folks. I just coded the app and things look good. I use glLookAt. It's easy. The next thing to do it calculate FPS and see.

Again, thanks. http://www.opengl.org/discussion_boards/ubb/smile.gif

GGL