Timeline for Texture won't appear using a vector of unique pointers of an Object
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 1, 2018 at 16:55 | comment | added | Vaillancourt♦ | @stimulate Yeah, for now, I'd call it premature optimization. Look at how the bullets are deleted. Moving pointers is more efficient than moving objects. I'd focus on something that works. "Efficiency" will come later when they have more experience with this. | |
Sep 30, 2018 at 23:23 | comment | added | simulate | Also ask yourself if you really need the unique_pointers. Unless you need them, they will just be inefficient and less reliable compared to storing them directly in a vector of Bullet objects. | |
Sep 30, 2018 at 2:20 | answer | added | Vaillancourt♦ | timeline score: 2 | |
Sep 29, 2018 at 12:35 | comment | added | Vaillancourt♦ | What if you used a unique ptr for the texture in your bullet instead of a stack object? I'll be able to write an answer later tonight. | |
Sep 29, 2018 at 8:23 | history | asked | Arsh Panesar | CC BY-SA 4.0 |