You are viewing a single comment's thread.

view the rest of the comments →

0
1

[–] rwbj 0 points 1 point (+1|-0) ago 

C# is by no means less performant than even something like native C++ now a days. That hasn't been the case for years. Feel free to Google for benchmarks. You won't find many done in the past 6 or so years as once the difference became completely negligible benchmarks no longer served much purpose. Of course you are right though that there has been a dramatic spike in the number of games and developers using C#, and so of the proportion of all games using C# - including poorly optimized ones - has increased.

0
0

[–] enneract ago 

How can a managed language possibly be as fast as native code? All the run-time checks and especially garbage collection aren't free.

0
1

[–] rwbj 0 points 1 point (+1|-0) ago 

The garbage collector is pretty smart. It's not just going to randomly start arbitrarily running. It waits until it absolutely has to. It's also now nonblocking/asynchronous which makes it extremely low cost in most practical scenarios. The same is true of the run-time stuff. For instance in most practical scenarios where you're iterating on a non-mutated value, the bounds checks will be able to be completely optimized away. And even when it isn't able to be optimized away most modern architectures are going to be doing predictive execution (and other little tricks) that makes the check practically free.