Engine performance optimization

Started by
3 comments, last by MefistoManna 11 years, 11 months ago
What kind of things can I do and what can't I do for earn any FPS?
Sorry for my bad English and thanks you.
Advertisement
Reduce the number of calls to drawing functions, grouping everything that has the same texture in one vertex/index buffer is one way to do it.
Organize the drawing order in a way you draw the close object first.(that way you will reduce the number of times you alter a pixel)
Limit the number of faces drawed, these one depends alot on your app.
Those are the main stuff you can do, of course there are a lot of more things you can do that I don't remember right now.
Coding both efficent and optimized on the GPU and CPU side. Arranging memory acces and waitstates.

And as such1 said, Organizing materials, rendercalls and more.
This is probably the hardest thing to just tell you "how to do", it´s more of an experiance thing. you just know how to optimize at the current situation!

But try to read some GPU architecture and some CPU architecture, those two things helps alot to understand how to optimize in a good & efficent way.
And remember to not optimze everything, only where it´s needed.
"There will be major features. none to be thought of yet"
First, get a profiler and/or use PIX to find out which parts are slow.
Thanks, you were very helpful. I will do more experience and I will understand how to do progressively.

This topic is closed to new replies.

Advertisement