News for hackers. Stuff that matters.
Re:Everything About React Server Components by csande17 on Sunday January 17, 2021 @12:50AM (#25808511)
Games, particularly ones written with engines like Unity, actually look a lot like websites in this respect. You have a core engine written in C++ that runs the event loop and draws things on the screen and stuff, but all the actual game logic is written in an interpreted language.
Re:Everything About React Server Components by josephg on Sunday January 17, 2021 @04:06AM (#25809315)
> but all the actual game logic is written in an interpreted language.

I was listening to a talk by Jonathan Blow the other day where he was saying using interpreted languages (like lua) inside a game engine isn't considered good practice anymore. And indeed, in unity most games write all their logic in C# - which unity somehow compiles down to native code.

Re:Everything About React Server Components by tomduncalf on Sunday January 17, 2021 @04:41AM (#25809450)
Unity specifically uses C# as the language for your logic, but it gets compiled to auto generated C++ code when you export (if you export to iOS you can take a look at the generated source). Of course games do sometimes make use of languages like Lua for scripting behaviour, I’m not sure if these usually remain interpreted or get compiled.