Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Misc > Re: use of C++ ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 889 of 1011
Post > Topic >>

Re: use of C++ Standard Library in the game industry

by Tom Plunket <gamedev@[EMAIL PROTECTED] > Apr 6, 2007 at 10:50 PM

Brandon J. Van Every wrote:

> A sanity check: is the C++ Standard Library (STL) used much in the
> game industry?

Some places use it extensively, some places avoid it like the plague. Of
those that use it, some use it out of the box (e.g. STL****t is widely
used on PS2), others write their own version of it with a focus on
console-specific allocation strategies.

My opinion being what it is, I use the Standard Library in tools but I
find the containers too general for use in games; the sorts of problems
I tend to want to solve usually come with specific requirements and
out-of-the-box std::whatever doesn't match them.  I use templates fairly
heavily, but in ways that are fairly lightweight; instead of std::vector
I'll use an Array<SomeType, NumElements> "container" that doesn't
allocate anything extra, maybe has sup****t for iteration, has bounds
checking in debug builds, and that's it.  I don't find std::map useful
in-game because I tend to avoid having to look things up by key, and in
those case where I do need to, a sorted array is much better.  Linked
lists are awful, yadda yadda.  Everyone has their own approaches,
obviously, and this is all in my experience and suits the way I make
games.  Folks that get adequate performance from their games while using
the Standard Library aren't going to hear me telling them they should do
something different.  ;)

-tom!

--
 




 3 Posts in Topic:
use of C++ Standard Library in the game industry
"Brandon J. Van Ever  2007-03-26 00:22:42 
Re: use of C++ Standard Library in the game industry
nathan@[EMAIL PROTECTED]   2007-03-26 14:36:31 
Re: use of C++ Standard Library in the game industry
Tom Plunket <gamedev@[  2007-04-06 22:50:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:08:29 CDT 2008.