Message from C, C++ discussions

December 2019

— The declaration of a function in C89 is at least the return type of the function followed by its name and parentheses. In C99, the type of the parameters is also required, separated by commas, within the parentheses

Message permanent page


Functions and types declarations (struct, typedef, enum) are statements and hence terminated by a semicolon

— Take care of yourself more

— I do

— Hey guys I want to rewrite my game engine an Im thinking about to use C# instead of C++ because the development itself is much faster - do you think my games will have much less fps?

Message permanent page

— Definitly

— Https://

— The definitive answer to that is: it depends

— It mostly depends on whenever you wrote your code in a slightly unoptimized way in C++ and write it in a better way in C#, and on if you write it in a way that pleases the .NET runtime your user uses so that it gets nicely vectorized

Message permanent page

— But the starting time will, as for it, definitely suffer

— Yeah but I dont think that C# can win against the sse/avx optimized code. But writing c++ dx11 code is just a pain in the ass :P

Message permanent page

— Imagine C# as a worse compiler that C++'s but that always compile for the native CPU you are using, meaning that it may use instructions your C++ compiler may avoid in fear of not being exactly compatible with the architecture

Message permanent page