Drawing trees
I'm making a RTS game were there are a lot of trees, currently I'm drawing them one by one with billboarded textures, is there a faster way?
Thanks.
I always thought that billboarding was one of the quicker ways. What kind of rts, 2D or 3D? (I'm assuming 3D)
How does your game recognize the trees, as a seperate class or just regular textured plains? And how exactly are you rendering them, and how many at a time?
(Sorry for answering a question with several, but I just made coffee :-)
How does your game recognize the trees, as a seperate class or just regular textured plains? And how exactly are you rendering them, and how many at a time?
(Sorry for answering a question with several, but I just made coffee :-)
Plain billboarding is one of the fastest ways. I don't know if you do much processing on it, like lighting and such, nor do I know the design of your renderer, but I think you'll have to look at other ways to optimize performance. Which may include using less trees.
Have you tried profiling your code to see what exactly is costing most time?
Have you tried profiling your code to see what exactly is costing most time?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement