4 ms·
C# is nice to program in, but I remember the unity garbage collector used to give me anxiety, it was a nightmare. Every tiny thing you do you have to second gue
by gentleman11 5y ago
C# is nice to program in, but I remember the unity garbage collector used to give me anxiety, it was a nightmare. Every tiny thing you do you have to second guess because it might allocate behind the scenes and you get these awful performance hiccups if you miss too many of these
- gameswithgo 5y agoHow long ago? Compared to 5 years ago C# performance has improved dramatically, and you have more tools available to control memory usage. That said, if you are trying to make a competitive first person shooter than never dips below 144fps, C# may not be a good choice. But there are popular competitive shooters out there using Unity, like Tarkov. But who knows how much pain they went through to get the performance they needed?
- jayd16 5y agoIts really not a big deal. Just preallocate as much as you can behind a load screen, and use pooling on your tight loops. You'd be doing this in any language, anyhow. If you really want to go overboard, C# has Span<T> now, if you want to do your own arena allocation. At least in Unity, the profiling is fairly well established so its easy to hunt down allocations.
- lostmsu 5y agoGC in Unity is different from the one in Stride.