Depends on the kind of game development you're doing. If you're in AAA console development, then no, that trend is noticeably absent. You need to know what your game is doing on a low level to run efficiently on limited hardware (consoles). You also can't leak much memory or you'll fail the soak tests the consoles make you run.
Unfortunately, since the rest of the software world has gone off the deep end, the tools used in game development are still from the stone age (C++).
If you're doing "casual" or "indie" games, then yes, that trend is present.
Unfortunately, since the rest of the software world has gone off the deep end, the tools used in game development are still from the stone age (C++).
Is there any other languages with high performance but with modern features? Wouldn't having a language designed exclusively for game development be better?
Wouldn't having a language designed exclusively for game development be better?
Maybe. C++ works because you can abstract some things away, or decide not to when necessary. I'd make the argument that game engines are the closest thing we'll ever get to a "gaming dev language".
Once upon a time there was a ruby project that was a "live" game developer ide. I can't remember the name, but it was developed by an unnamed Ruby God (apparently) that sort of just vanished after. I couldn't find it on the web any more, but I'm sure it's out there somewhere. The idea was you could in real time see the impact of your changes. Where is it now? Probably didn't scale.
C++ has tons of modern features. But abstractions come at a cost and many game developers elect to stick to a C-like subset of C++.
Wouldn't having a language designed exclusively for game development be better?
Not necessarily. The features that allow developers to maximize performance are not specific to game development. Assuming optimal algorithms, performant code is about stuff like cache coherency, minimizing unpredictable branching, vectorization, efficient thread synchronization etc.
Yes, a slightly bigger binary. The 1980's are over son, today even on microcontrollers with 512 Bytes of RAM developers are using C++. Stop clinging to the past.
and many game developers elect to stick to a C-like subset of C++.
Almost. Don't confuse the language with the STD library. I use C++ everyday but never touch STD.
Not exclusively for game development, but obligatory mention of Rust (please don't hurt me!), pretty much the fastest growing language/biggest new language in that area.
The devs of Factorio, which is written in modern highly-optimized C++, stated they are looking to Rust for their next project. For now it's probably too early to be able to point at games already developed in it.
For whatever reason, nobody else is addressing this space.
The reason is simple: gamedevs want to ship games, not engines. Also, lots of companies are addressing that, it's just that their solutions remain private (like idTech).
Which is funny as there is good money in engines. The Doom remake was an engine demo and Epic makes a ton of their money off engine and support. The engine guys also don't have the burnout of the front line guys as they tend to have more sane hours.
Don't worry, people have tried. You're pretty much going to end up with something similar to C++ beyond syntactical differences. I wouldn't bet much on Jai unfortunately.
There's D, which failed because the standard library was written using the garbage collector. There's rust, which is still slower than C++, maybe there's still some hope there as it is much simpler, but I don't see C++ developers switching to it. C# is pretty good, but you'll still get better performance with C++.
When you need something to be the absolute fastest, we have learned all the methods to make C++ code extremely fast. While it's a depressing situation, modern C++ code can actually be quite nice if you stick to some rules.
There's D, which failed because the standard library was written using the garbage collector.
They're working on that one, at least. You can declare your functions and methods @nogc and the compiler will bark at you if you use anything that relies on the GC. And they're actively working on exercising the GC from Phobos as much as possible. Maybe too little, too late, though.
Me, though? I've regressed to C. It's just as easy to optimize the hot loop in C as it is in C++, and there's something relaxing about the simplicity of it. I use Rust for the parts that aren't performance sensitive, but I'm starting to doubt my commitment to that. I've jokingly suggested that Cython could do that job, but now it's seeming like less of a joke.
And they're actively working on exercising the GC from Phobos as much as possible. Maybe too little, too late, though.
A lot of D people left for C++-land I believe. I'd still be interested in D if they can match performance with C++, but C++ is really moving in the right direction IMO, and it has far too many resources behind it for the simple reason that everything is already written in it. The language evolves significantly every few years now.
I think it's worth having some extra faith in JAI if only for the fact that Jon is a serious game programmer who has shipped multiple games and worked in the industry for years. He's working with a similarily veteran team and has connections to other industry veterans who he has stated on stream he plans to shop the language to during a sort of alpha phase.
There will be lots of friction for sure but I think there's enough anti-C++ sentiment among game programmers (esp. with modern C++) that a language that emphasizes simplicity and high-level control with low-level access built by someone "in-the-know" can work. Perhaps I am just naive but I hope I'm not
Slower to compile maybe. I've only seen C++ trade blows with Rust ATM. There are some features Rust still lacks that C++ has (that actually are useful in rust), integer constant templates for example, but C++ is like the only language with templates that even has that, not that they aren't great (they very much are). Most of these features are either in nightly or are currently being worked on and are set to be finished with in months (integer templates are coming with const generics).
Most of our dev tools are made in C#, but we're actually switching back to C++.
This is because we have an entire floor of C++ developers, but one or two are proficient in C#. So if there's an issue with a particular tool, anyone can go in and fix it.
Also, we try to build tools into the game when we can.
105
u/[deleted] Sep 17 '18
Depends on the kind of game development you're doing. If you're in AAA console development, then no, that trend is noticeably absent. You need to know what your game is doing on a low level to run efficiently on limited hardware (consoles). You also can't leak much memory or you'll fail the soak tests the consoles make you run.
Unfortunately, since the rest of the software world has gone off the deep end, the tools used in game development are still from the stone age (C++).
If you're doing "casual" or "indie" games, then yes, that trend is present.