Nintendo DS - Vector class = too slow?

Discussion in 'Game Development General Discussion' started by Trenton_net, Oct 25, 2009.

  1. Trenton_net

    Trenton_net AKA SUPERCOM32

    Joined:
    Apr 13, 2007
    Messages:
    2,378
    Likes Received:
    58
    Hey Everyone,

    So I'm writing some NDS code and I need to create an array that grows or shrinks dynamically. Right now I do it all manually with an array, but I was thinking about using a Vector class since it does all the work for me.

    The question I had was, is the Vector class too slow (Too much overhead) when used on the NDS, or should it be ok?
     
  2. subbie

    subbie Guardian of the Forum

    Joined:
    Feb 25, 2005
    Messages:
    4,749
    Likes Received:
    94
    Should be ok but you can always make your own template class that acts like a dynamic array. This way you can minimize the overhead that you would get from the STL library.

    They're pretty easy to write.
     
    Last edited: Oct 25, 2009
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page