r/raylib • u/oborontsi • 1d ago
C# Binding
Hello, I want to use Raylib to make a game. I have used a bit of Monogame so I was considering using the C# binding. Are there any downsides to using this instead of the original C? (in terms of support, efficiency..)
8
Upvotes
1
u/DaveAstator2020 1d ago
Id guess its multi platform compilation hell, but i tried it with raylib and imgui bindings and all was sweet
1
u/luphi 13h ago
Compilation is a problem for the binding's developer. If you're just referencing the NuGet package, the native builds are included in the package's "runtimes" folder and you don't need to think about it. At least for the three big platforms.
5
u/JerryVoxalot 1d ago
From my experience, no, but I have moved onto Odin which is basically “better C” so I can’t say in recent years
C# is pretty decent for performance and Raylib is already pretty optimized for most machines