Thread: Coding style.
View Single Post
  #7 (permalink)  
Old 06-09-2008, 03:57 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 523
Last Blog:
Just over the next hil...
Credits: 0
Rep Power: 10
G_Morgan is a jewel in the roughG_Morgan is a jewel in the roughG_Morgan is a jewel in the rough
Default Re: Coding style.

Quote:
Originally Posted by Xav View Post
The code should be as efficient as possible, though, especially when writing games.
I think this might be on the wrong thread but I disagree strongly here. It's been proven nearly the point where its a law of nature that about 3% of our code accounts for 95% of our run time. Even if you reduce the overhead of the other 97% to zero you are only saving 5% of your resources.

The best approach is to produce the absolute simplest design possible and keep code cohesive and decoupled. This wrecks performance but makes optimisation easy. The worse thing you will ever have to do is try and optimise a code base that has been 'optimised' already. It makes real advancement extremely difficult. Premature optimisation really is the root of all evil. That said games development is well understood and they know exactly which sections will need the most efficiency.
Reply With Quote