News for hackers. Stuff that matters.
Re:Building a bare-metal bootable game for Raspberry Pi in C# by neonsunset on Tuesday December 12, 2023 @01:59PM (#38616692)
Hmm, out of all languages with GC, C# offers lowest level constructs (pointers, tracked references (refs), pure C structs and low/zero-overhead interop)*, which something all other options either don't offer at all, or offer partially or with higher overhead and worse UX. All of these are very useful for interoperating with graphics APIs directly and managing memory manually for performance sensitive code paths.

I don't think these were the reason behind C#'s rise in gamedev historically, but they do ensure it continues to be its mainstay.

*today you can also add powerful SIMD and BLAS-adjacent abstractions to this list, a good showcase of which would be Bepuphysics2 which is a heavily vectorized physics engine written in pure C# that is as fast as PhysX and faster than Jolt (another SIMD-using physics library written in C++)

https://github.com/bepu/bepuphysics2

There are no comments on this comment yet.