Re:Ask HN: What are the performance gains using native C++ i...
by z3phyr on Wednesday February 20, 2013 @07:13AM
(#5249990)
Unreal Engine is writern in C++. So is Unity3d. They just provide an abstraction layer to US and C# respectively....
Re:Ask HN: What are the performance gains using native C++ i...
by BSousa on Saturday February 23, 2013 @10:14AM
(#5269838)
Yes, and as I mentioned, I really doubt you are at the level where those performance gains matter. If you use c# you will be working with DirectX, which most means much of the heavy lifting is done there. Unreal and Unity have teams of programmers working trying to squeeze the last bits of performance (Unreal winning there for sure) of every platform. Which leads to my other point. I think the main reason for anyone (unless we are talking 50+ people team on the engine) to use c++ is portability NOT speed.
There are speed differences, but this is greatly dependent on what you are doing and unless you are Epic or iD, I doubt it will matter. And if you are asking this question, I really doubt you will be able to use C++ to get the optimisations those engines have.
You can take a look at http://benchmarksgame.alioth.debian.org to get an idea, c# in the mono runtime is about 3-4 times slower than C (from other benchmarks, the mono runtime is slower than the microsoft one)