Sign in to follow this  
makorihi

Rendering 3D World Quickly

Recommended Posts

makorihi    122
Hellooo, I am having this problem in my program, where if i try to render more than 3 or 4 3D objects, it starts getting significantly slower. The 3D objects are just a buncha verts compiled into a display list and they have textures. When creating the display lists, i use OGL calls, glVertex3f, glColor3f, glTex.... and i use SDL for windowing. Soo, i'm wondering what i could do to speed it up. I know that many other games have hundreds of objects that are being rendered, but are still fast. Please and thanks!

Share this post


Link to post
Share on other sites
makorihi    122
my gfx card is a nVidiaGeForceGo 6800, and i'm rendering a decent amount of verts. Though, i dont want a solution that will only work for a set amount of verts(i guess enough for a nice tree X however many trees) or my specific grafics card.

Share this post


Link to post
Share on other sites
wodinoneeye    1689


Are you doing any sorting to group all the facets that use the same textures???

Constantly switching textures can be a performance dog.

Likewise constantly copying data into the graphics memory (from system memory)
can also cause slowdowns.


Backface culling turned on ??

Share this post


Link to post
Share on other sites
eirland    122
Quote:
Original post by wodinoneeye


Are you doing any sorting to group all the facets that use the same textures???

Constantly switching textures can be a performance dog.

Likewise constantly copying data into the graphics memory (from system memory)
can also cause slowdowns.


Backface culling turned on ??


Yeah, render-state changes are very bad for performance so you want to group render-states as much as possible. Use VBOs also since that puts the verts in video memory instead of sending them across the bus every frame.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this