logoalt Hacker News

drnick1yesterday at 11:46 PM4 repliesview on HN

A GC language is a non-starter for a game engine, I thought this was "game development 101" level knowledge. There is a reason every major game engine actually used to make games is written in C++, with some scripting language on top of that for game logic if necessary.


Replies

efskaptoday at 1:03 AM

Why not respond to the author's justification for it, displayed right on the linked page?

maccardtoday at 12:47 AM

Every game made with Unreal has GC bolted onto it. GC is absolutely viable for shipping games.

show 1 reply
mvdtnztoday at 12:57 AM

The author calls this out and tries to brush it off with FPS figures,

> The current version of the base engine renders extremely fast, faster than most would think a garbage collected language could go. In my testing a release mode build of a game in Unity with nothing but a black background and a cube runs at about 1,600 FPS.

But straight-up FPS is generally not the main concern with GC in a game engine, it's GC pausing which can make an otherwise smooth game feel almost unplayable. I don't know anything about Go so maybe this is less of a concern in that language?

wredcolltoday at 12:53 AM

Minecraft.

show 1 reply