Also, doing games development in C# doesn't make sense to me, C++ (maybe in combination with a scripting language like Lua) being the defacto standard for games. And if you are an independent that values productivity, C# has approximately the same drawbacks as Java. And there are successful games out there that make use of it, like RuneScape, Puzzle Pirates or Minecraft.
I mean, if you value productivity over runtime efficiency and want something that runs on top of a VM, might as well get something out of it, like portability.
Furthermore the highly popular Unity Game Engine offers C# as its scripting language which is the language of choice for every bigger and serious project because huge projects written in Javascript are alot more pain to maintain. Part of this is Visual Studio excellent features (you dont necessarily need Resharper).
So there actually is alot of C# in game development these days, mostly used as the Scripting language while the engine and APIs are written in C++.
I think you're confusing "xbox live arcade" with "xbox live." You don't have to create games with XNA to get them on xbox live. I specifically remember C++ code in Indie Game: The Movie (for Super Meat Boy). And I'd bet money that Jonathan Blow, the creator of Braid, prefers C++ over C#.
This isn't to say C# isn't a viable option on consoles. I believe FEZ is all C#...that game is incredible, from an art design standpoint at least. It did have visible garbage collection pauses though.
Coming back, proprietary technologies used in $$$ video games, support only windows operating system. Visual Studio can be one of the reasons too.
Why not? Not everyone is doing the next Crysis.
> I mean, if you value productivity over runtime efficiency and want something that runs on top of a VM, might as well get something out of it, like portability.
Why don't people learn about compiler design? languages != implementation
Are you aware that Mono also compiles to native code or that .NET on Windows Phone 8 is also compiled to native code?
Having said that, given the prevalence of Windows on the games industry, many studios have migrated their C++/MFC tooling to C#/Windows Forms/WPF, even AAA studios.
Good Graphics and Physics, where required needs performance. As the hardware is improving day by day, our demands are increasing two folds. Just think about the performance we would need, to render the real world as is !!!
We are going towards virtual reality. We need something with very fast optimised runtime.
Some games does not require cutting edge Graphics. Use anything there....
Fact is that eventually the optimizers for the given compiler get good enough for the task at hand and people move on.
Most intensive graphics and physics are already being done on the GPU anyway and there are quite a few ways to target them as well.
Also, GPU is a temporary technology. Wait for some time, and see CPUs getting more GPU like.
How exactly would CPU be more like GPU? What would happen to branching and out of order execution pipelines? Do you see today's complex superscalar cores so cheap and small in the future that you could have thousands of them on single die? What other way is there get vector computations to work as well as scalar computations on same hardware? Would you rather have few superscalar cores and a lot of SIMD's around it? Or do you envision a completely new architecture?
I'm just trying to get a picture of how this would be done. Any reading material would be welcome.
Yes they do when shared memory is used, not all GPUs have dedicated memory.
Even the PS4 will have shared memory between CPU and GPU systems.
> Also, GPU is a temporary technology. Wait for some time, and see CPUs getting more GPU like.
This is Intel's wish because their GPUs suck, I don't think it will happen.
Game devs head for it too, so that they don't have to manage a shader language.
It is inevitable. This will happen.
In addition, considering there's languages out there with much, much greater runtime inefficiencies of languages like python being used in the client/server side of massively complex games like Eve Online, there's a lot more that should be taken into consideration when choosing a language other than raw speed.
C++ might be an old workhorse for AAA titles needing the best of performance out of the platforms they're targeting (a very specific case), but aside from the loss of productivity, there's plenty of places C++ won't reach: Not everyone has native client, and writing your game as an ActiveX component is easily going to scare people off.
For example, Forth is more productive than say, perl to me; But perl is more productive for sys admins.
To top it off, many indie games are written in C++, 0ad is a good example.
In the games industry they probably overlap, but outside the games industry, Java's support is much broader.
That, and I haven't worked on a Java project yet, that didn't really annoy me.
Its the VM level portability that counts.
The thing is languages like C and C++ is that their runtime libraries are so thin that you end up being dependent on the OS API for anything useful.
Most other languages, even native compiled ones, tend to offer better set of libraries along side the compiler.
Visual Studio + C# + Resharper = .extremely. productive development environment.
Video games tend to require lots and lots and lots of code, so productivity is absolutely critical - especially for independent developers who don't have a dozen man-years to blow on a project. Using autocomplete I can produce raw code an order of magnitude faster than I could by typing out each symbol name by hand. That combined with amazing refactoring/cleanup tools makes windows extremely lucrative for gamedevs.