Skip to main content
4 events
when toggle format what by license comment
Jul 29, 2011 at 17:29 comment added Zan Lynx In a game performance matters. So vectors of the same object times have better locality of reference. Also, polymorphic objects with virtual pointers have awful performance because they cannot be inlined into the update loop.
Jun 27, 2011 at 12:53 comment added Juicy For my purposes the map does own the entities, since map here is analogous with 'level'. I'll consider your idea about messages, thanks.
Jun 27, 2011 at 12:48 comment added Juicy Your suggestion about polymorphism isn't really relevant. I have them stored in separate vectors so I can iterate over each type individually, such as in the drawing code (where I will want certain objects drawn first) or in collision code.
Jun 27, 2011 at 12:33 history answered PrettyPrincessKitty FS CC BY-SA 3.0