9 ms·
>Even AAA games these days happily run on GC languages. Which games are these? Are you referring to games written in Unity where the game logic is scripted in
by jplusequalt 2y ago
>Even AAA games these days happily run on GC languages.
Which games are these? Are you referring to games written in Unity where the game logic is scripted in C#? Or are you referring to Minecraft Java Edition?
I seriously doubt you would get close to the same performance in a modern AAA title running in a Java/C# based engine.
- Jasper_ 2y agoUnreal Engine has a C++-based GC. https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-object-handling-in-unreal-engine#garbagecollection https://dev.epicgames.com/documentation/en-us/unreal-engine/...
- steveklabnik 2y agoUnreal Engine has a GC. You're right that there is a difference between "engine written largely in C++ and some parts are GC'd" vs "game written in Java/C#", but it's certainly not unheard of to use a GC in games, pervasively in simpler ones (Heck, Balatro is written in Lua!) and sparingly in even more advanced titles.
- jplusequalt 2y agoThanks for the Rust book!
- steveklabnik 2y agoYou're welcome!
- tuveson 2y agoI think Balatro uses the Love2d engine which is in C/C++.
- steveklabnik 2y agoSure, but you write games in it in Lua. That Love2d is implemented in C++ (GitHub says like 80% C++ and 10% C) doesn't mean that you're writing the game in it. In my understanding, Love2d uses reference counting (which is still GC) for its own stuff, and integrates those into Lua's tracing GC.
- neonsunset 2y agoC#? Maybe. Java? Less likely.