So... I ended up scrapping the data structure classes again, and am now starting from scratch. I am no longer going to make use of the STL when it comes to data structures, because while they may be convenient, they really are just too bloated compared to what I am setting up. Plus, for the life of me, I could not figure out how to remove an element that is stored in the middle of a vector<> and then remove the entry from the list. You could delete an entry, but then if you set the pointer it stored to null, the next time the list was walked, the application would crash and burn.
That is why I am making my own structure to work with, which is a doubly linked list made to store pointers. Plus, I am adding procedures to remove the entry from the list so these issues can be avoided. I am hoping this will be the last time I will have to do this...
Thursday, October 8, 2009
Tuesday, October 6, 2009
Making good headway!
Today the Entity Graph for the engine has officially been implemented... well... almost. I plan to make a special container class to replace the STL vectors that I am currently using to contain children entities. I should be able to get really good performance because it will basically be a singly linked list with all the crap stripped out, leaving only bare functionality to walk the list. I'll probably do that sometime next week, but for now, the vectors are working fine.
Greetings and Salutations!
Welcome to the opening of the Insom devblog. Not much here yet as this is still an obscure student project, but it is my hope that the engine/framework gains momentum in the open source world.
Subscribe to:
Posts (Atom)