3 ms·
C# is a perfectly reasonable choice for a phone game that can afford garbage collection pauses. This means turn-based. In every other case, you're better off u
by autoreleasepool 11y ago
C# is a perfectly reasonable choice for a phone game that can afford garbage collection pauses. This means turn-based.
In every other case, you're better off using a language whose resource management model doesn't fight you.
Swift is the best of both worlds in this regard.
- UK-AL 11y agoConsidering virtually every major mobile game is unity these days, is this really an issue?
- outworlder 11y agoNot at all. Memory management for games is something you have to pay close attention to, no matter what's your strategy for dealing with garbage. But this whole GC discussion is missing several years of technology development and best practices. Besides, it is not guaranteed that you'll succeed with a manual strategy for dealing with garbage. Naive strategies have a really low throughput. They may not stop the world, but will be slow.
- Narishma 11y agoUnity is a C++ engine. Only the game code is done in C#.
- pjmlp 11y agoYou mean like those engines done in Assembly with C and Turbo Pascal as scripting logic 20 years ago?
- deleted 11y ago[deleted]