Is C# better than C++ for videogame development?
CRIME Shirt $21.68 |
DMT Has Friends For Me Shirt $21.68 |
CRIME Shirt $21.68 |
Is C# better than C++ for videogame development?
CRIME Shirt $21.68 |
DMT Has Friends For Me Shirt $21.68 |
CRIME Shirt $21.68 |
>considering Microshaft Java
Just use plain java at that point, it's even got a dump truck's worth of libs for it
You get C# supporter out of the box in godot and unity. What does java?
>java
Are you recommending fricking Java for game development? Ropemax.
>Ropemax
That's for people with a whole Bevy of problems.
From a scripting POV? Yes, definitely
From a game engine POV? It's definitely possible (Stride Engine), but you still need C++ for some low level stuff, afaik
C# is much, much easier to learn and offers more then enough performance. Sure, C++ is even faster, but at the cost of being more error prone and difficult.
>thinks Java is better then C#
Never was, maybe in .net framework days, please do not speak about topics you know nothing about
OptiFine, Sodium and many other optimization mods prove, that Mojang is just shit at optimizing code, not to mention that Minecraft doesn't use multithreading much
modern gpus can handle 2D mario shit on C#.
In the context of using it with Unity, it's basically just a scripting language, and it's fine.
like this anon said, c# is fine if you are making 2d pixelshit with XNA (like stardew valley or terraria), but I wouldn't trust it with much more than that.
I mean, one of the biggest engines basically makes you use it, so sure? It's 2024 anyhow. If you're just pulling a game engine off the shelf, all the "hard" stuff is done for you.
Easier development? Yes
Better performance? No
Good games made using it? Many but it depends on your taste
The problem here is unity game engine pricing and licensing, godot is a meme
Nope, probably a bit easier to develop as some other anons have said, usually C++ has better performance but that obviously depends on the game. There's plenty of C# indie games so if you really want to use it it's probably fine. In my experience C++ isn't that much harder than C# so personally I would go with C++ but you do you.
The empirical proof is looking at the top 500 selling games. Usually like half of them are made in Unity. I still don’t like Unity especially since its closed source. C# is decent, but it kind of kills me using it since I’m a programmer by trade. One of the reasons Beat Saber is so easily moddable is because of C#. It basically let’s you inspect interfaces and types at run time really easily.
>The empirical proof is looking at the top 500 selling games
#1 bestselling game: Minecraft
Language written in: Java
Java best programming language for gaming confirmed
It's a shame Minecraft was written in such an awful language (for performance at least). Microsoft's C++ version still isn't as good and has no mod support. Also he said top 500 not just a single one, please give me more incredibly well known Java games.
>It's a shame Minecraft was written in such an awful language (for performance at least)
>He thinks it's the fault of java not the fault of shit programming
It's a shame you suck KEEK
Having to run a game inside of the JVM certainly didn't help.
With C++ you actually have to think about where your objects live. In C# everything is just on the heap and the runtime is in charge of it, but in C++ you decide if objects are owned by a factory, by various classes, or just by whoever has a shared_ptr to them (like a poor man's garbage collector). But you shouldn't do the last one because then you should just use C#. But if you have to interact with a ton of native platform code with a C interface, using C++ badly might be easier than writing a ton of P/Invoke code and defining weird structs in C#
C# has plenty of tools these days (aside from aside from P/Invoke) to handle allocations in a performance centric way (such as Span<T>, pools, structs have their own cool stuff and of course there's unsafe for pointer stuff)
>It's mostly a matter of efforts you're willing to put into it.
pretty much this. It certainly has the tools available for fast code
>hello world in C# takes up like 42 TB of RAM
If that were true there would be no C# programs, which is demonstrably false.
There's an emulator that runs switch games written 95% in C#, so anyone talking about performance issues for 3D games ITT is empirically wrong.
It's mostly a matter of efforts you're willing to put into it.
>Is C# better than C++ for videogame development?
You mean Unity or Unreal? If you're making your own engine, C++
I use Beef. It's basically C# with manual memory management.
https://www.beeflang.org/
>webhosts hate this one weird trick to save spending on advertising
just buy an ad you homosexual, although no one is going to use your shit jeetlang
homie just use Unreal blueprints tf
What a cute cat
I hope he lives a long, happy life with his family. I wish I had a pet
go back to agdg cris