improve speed of rendering.
Hi all,
I am building a terrain app, that loads data from a tga file.
so far, so good.
in order to keep things light, I render only a part of the terrain (that is around the camera).
the rendering is made with a nested loop,
and a drawing of a triangle strip.
my question is: is there a way to improve rendering speed with this methode?
I render a 50x50 square out of the terrain at any given time, and I get ~30-40 fps.
Its an old machine (p2 + banshee), but I used to get great 100+ fps on other simple demos.
thx.
Some simple ideas:
- (for OpenGL)The less times you have to call glBegin(...) the better
- If you don''t have to make a certain part of the terrain
very detailed, then don''t, save the polygons for another
area.
- Don''t regenerate a vertex''s coordinates if you don''t have to, that may sound like common sense, but just make sure that you aren''t getting new coordinates for vertices that stay the same.
That is all I could think of right now,. Hope it helps.
------------------------------
Trent (ShiningKnight)
NovaStorm Games
Project: OpenGL baby. None of that new-fangled Die-rect Three Dee
- (for OpenGL)The less times you have to call glBegin(...) the better
- If you don''t have to make a certain part of the terrain
very detailed, then don''t, save the polygons for another
area.
- Don''t regenerate a vertex''s coordinates if you don''t have to, that may sound like common sense, but just make sure that you aren''t getting new coordinates for vertices that stay the same.
That is all I could think of right now,. Hope it helps.
------------------------------
Trent (ShiningKnight)
NovaStorm Games
Project: OpenGL baby. None of that new-fangled Die-rect Three Dee
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement