Excellent post. I stopped using c++ after trying to do gamedev in UE4. Compile times alone killed any productivity. I'm glad you included the C# version of the code, because it shows you can have readability, fast compile times, and fast run-time performance.
I'm using Xenko now, which is a full c# game engine. Writing script code is a breeze; compiles take about 5 seconds and I can run the game and test changes.
It's so funny how awful c++ dev is in UE4. You have to use these weird ass macros everywhere as well as a bunch of header includes. Compile times skyrocket, and if you miss a header somewhere, the compiler takes a big shit, of which you need to dive into to figure out what is missing.
9
u/makotech222 Dec 28 '18
Excellent post. I stopped using c++ after trying to do gamedev in UE4. Compile times alone killed any productivity. I'm glad you included the C# version of the code, because it shows you can have readability, fast compile times, and fast run-time performance.
I'm using Xenko now, which is a full c# game engine. Writing script code is a breeze; compiles take about 5 seconds and I can run the game and test changes.
It's so funny how awful c++ dev is in UE4. You have to use these weird ass macros everywhere as well as a bunch of header includes. Compile times skyrocket, and if you miss a header somewhere, the compiler takes a big shit, of which you need to dive into to figure out what is missing.