AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Using a Smart Pointer in a Game Is a Good Idea
In a game you have to work with an unlimited amount of memory so you have to destroy these things. If you just naively delete something then some other entity that's trying to follow that thing is now following it. Smart pointers are more about like kind of hiding things and magically stuff happens later when i don't exactly know right it's the wrong thing. So how do you actually consult that your meta program can say like well you put an entity pointer in this data structure and that data structure is not in this whitelist that I have over here? Is that better than the rest approach I don't know I think it will be but I certainly offer you no proof of that right statement I