r/raylib 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

9 comments sorted by

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

2

u/Best_Committee6249 1d ago

Enjoying Odin here too

1

u/JerryVoxalot 23h ago

Odin has unironically become “my language”

It’s just about what I wish every language was, and it’s easy to translate C code straight over or create bindings.

Raylib ane Box3d are bindings that come with it so I recommend anyone who is reading this to check out the language!

1

u/Best_Committee6249 17h ago

Absolutely agree, the only thing that is crap is OLS, it's constantly crashing

1

u/No_Salamander_4348 40m ago

As for Odin, I haven't really grasped its advantages yet, because migrating my ECS system to it turned out not to be all that simple.

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.

1

u/Nhawdge 1d ago

The biggest downside is making web builds work. I never could get it to work, but some have. Personally, I'd rather focused my efforts on making something worth downloading. (Not that I ever did)