Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 Nov 2012
Offline Last Active Sep 28 2016 11:29 AM

#5307140 Unexpectedly horrible optimization. VS2015. x64 target.

Posted by on 22 August 2016 - 01:49 AM

Not really familiar with ASM, but codegen bugs/shortcomings are not unheard of. Which VS 2015 version BTW? FYI, Update 3 introduced a completely new optimizer which is on by default.

#5237865 C++ as a scripting language

Posted by on 01 July 2015 - 08:36 AM

Check out http://runtimecompiledcplusplus.blogspot.com/. The code is available at https://github.com/RuntimeCompiledCPlusPlus/RuntimeCompiledCPlusPlus. At least one integration example to an existing game engine can be found http://urho3d.prophpbb.com/topic308.html.

#5151136 what happens when std::vector is left empty?

Posted by on 03 May 2014 - 03:29 AM

Typically you want to declare your variables upon the first usage and not beforehand. Also, you don't want to declare an unused variable: this will likely produce a compiler warning and the variable is most likely removed by the compiler optimizations altogether anyways. An empty std::vector will take some bytes of memory, but the exact size depends on the used compiler, STL implementation, and target architecture. F.ex. figures for couple different MSVC implementations can be found here: http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx

#5024081 Version control for begginers

Posted by on 21 January 2013 - 05:32 PM

Simply learn both SVN and Git. I'd highly recommend learning SVN first, due to Git's steep learning curve. SVN will give you a decent understanding of VCSs in general quickly, after which you can hop into more advanced topics. I personally first hated Git when I tried to learn (and am still learning...) it after SVN, but once I got some sort of hold of it, I realized there's no going back (to SVN). As your focus is in making games, you probably end up using SVN more, assuming you will work with not-so-tech-savvy people (artists etc.). If you can, use TortoiseSVN and TortoiseGit - they'll make your life a lot easier.