Just a few hours ago I delivered my Faster C++ talk at the 2012 Game Developers Conference. This was my thirteenth GDC presentation! The large room was packed, which is awesome, so the topic seemed relevant to the game development community. The great thing is that all major compilers support rvalue references, so it’s very actionable material. In fact, just by upgrading to C++11 you get a free performance boost. If you attended the talk, thanks for coming. You can find a link to the slides here: http://www.tantalon.com/pete.htm. Enjoy move-enabling your game code!
-
Recent Posts
Recent Comments
pkisensee on References For The Win brucedawson on References For The Win www on C++ Rebirth Unreal Engine 4: use… on Baking with Swarm Bora Doğrular on Baking with Swarm Archives
- April 2024
- May 2017
- April 2017
- May 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- February 2015
- November 2014
- September 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- December 2013
- November 2013
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- October 2011
- September 2011
- August 2011
- June 2011
- April 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Categories
Meta
I enjoyed your GDC presentation, thanks.
I’ve added move constructors to some of our classes and it helped reduce memory allocation churn from copying. Usually we try to avoid the copying through other means, but move constructors are convenient.
Once nice thing about move constructors is that they are transparent to the code that uses the objects, so we can conditionally compile them for those compilers that currently support them. It just requires having a few lines of code in the class declaration and the client code automatically uses them when available.
The bad news is that since we don’t yet have support for move constructors in all of our compilers we can’t count on the performance improvements, so we still have to use other methods to reduce object copying overhead.
Hi there, I would like to subscribe for this website to get most up-to-date
updates, so where can i do it please help.
Click “Entries RSS” on the bottom right of the page to add the site to your RSS feeds.