Code center > Darwinbots3
Release date
Numsgil:
--- Quote from: Moonfisher ---A history of popular FPS game engines, noticed Crysis is in C++, as are most of them...
http://upload.wikimedia.org/wikipedia/comm...8/Fpsengine.svg
--- End quote ---
Video game coders tend to be about a decade behind the curve as far as adopting new languages or ideas that the rest of the software industry embraces. At my job right now, it's an uphill battle to use stl (I'm not allowed to use any of the containers, for instance), and most of the code would charitably be described as C with classes. OO design is lacking at best. On the other hand, it's pretty much solely video games that are driving any of the computing advances on PCs these days. So it's a weird dichotomy of super high tech hardware and super ancient software.
Moonfisher:
I was always under the impression that it was a performance and memmory thing. It seems easyer to optimize performance in C++.
But I'm not geting the impression they're behind the times though. Not sure C++ is to be considered ancient technology, it's an old language by now, but I can't imagine all these people are using it just because they know it better. It shouldn't take too long for them to learn C# if that's what they wanted to use...
Unreal Engine 3 just buildt their own scripting language for the engine, and generaly OOP seems to be rather important, you're not forced to make it OO but it invites you to do so, and most of the things you make will become a base for many different types (NPC's, weapons, projectiles, asf...) so you don't realy have a choice.
I'm assuming the reason they used C++ was because it was the language in which it was easyest for them to reach the performance they needed. If there was a better way I don't see why they wouldn't try it.
Numsgil:
Adopting C++ is a very recent development. Halo, for instance, was coded entirely in C. Super Nintendo games were coded in assembly. Programming with good OO design is rare in the industry, usually you have old salty programmers who like to code down to the metal in C or assembly still. Ostensibly it's for performance reasons, but IMO this is a good case of Premature Optimization.
EricL:
Also, codebases are old. Word, Excel, etc. have decades of history. Porting is hard hard hard. Code written in a specific language tends to stay in the language.
Blacksmith:
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version