Uploaded November 2014 | Updated September 2026, 2 weeks ago
Today we improve the efficiency of our spritebatch class so that it is not constantly having to call new and delete! This should give us a nice rendering boost!
Commented Source Code: dropbox.com/s/vvrtqke2ekqm1ef/BenGraphicsTut30.zip?dl=0
New level1.txt: pastebin.com/XrsfXiVG
Donate Via Paypal: goo.gl/ifsOMt
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
Today we improve the efficiency of our spritebatch class so that it is not constantly having to call new and delete! This should give us a nice rendering boost!
Commented Source Code: dropbox.com/s/vvrtqke2ekqm1ef/BenGraphicsTut30.zip?dl=0
New level1.txt: pastebin.com/XrsfXiVG
Donate Via Paypal: goo.gl/ifsOMt
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com




![C++/Game Tutorial 27: new, delete, and delete[]
In this episode we learn how to allocate variables on the heap using the new operator, and how to delete them from the heap with delete or delete[]! We also learn a little more about the difference between a by reference parameter and a pointer, and we learn that we should use nullptr instead of NULL :)
Twitter: https://twitter.com/ChillstepCoder
Seed Of Andromeda Channel: https://www.youtube.com/user/DubstepCoder
Seed Of Andromeda Website: http://www.seedofandromeda.com/ C++/Game Tutorial 27: new, delete, and delete[]](https://i.ytimg.com/vi/LMpkhZc17Z0/mqdefault.jpg)





