News for hackers. Stuff that matters.
Re:Unity's Mono problem: Why your C# code runs slower than i... by 999900000999 on Sunday December 28, 2025 @06:31PM (#46415582)
We'll see when it actually ships.

I've seen this issue before, they're making progress but theirs no firm release date.

Plus you then have to extensive testing to see what works in Web builds and what doesn't. I REALLY enjoy vibe coding in Godot, but it's still behind Unity in a lot of ways.

Re:Unity's Mono problem: Why your C# code runs slower than i... by ramon156 on Sunday December 28, 2025 @07:21PM (#46415952)
Naive question but why not use GDscript? I haven't had any issues with it
Re:Unity's Mono problem: Why your C# code runs slower than i... by 999900000999 on Sunday December 28, 2025 @07:49PM (#46416119)
I'll vibe code stuff in GDscript, and I guess I more or less understand some of it.

But C# is what I've used for over a decade. C# has vastly better IDE support. It's a more complete language.

Plus a lot of C# assets/libraries don't really have GDScript counterparts.

Re:Unity's Mono problem: Why your C# code runs slower than i... by eole666 on Monday December 29, 2025 @04:30AM (#46418924)
I'll add that C# have better performances than gdscript. It doesn't make a difference for most of the things you code in a game, but it comes in handy when needed.
Re:Unity's Mono problem: Why your C# code runs slower than i... by runevault on Monday December 29, 2025 @07:00PM (#46427696)
I'd caveat this slightly as "it depends"

For mathy stuff, 100% c# is going to be better. But if you need to round trip to the engine a lot getting stuff in and out of the dotnet heap can actually hurt performance. You also have to be _really_ careful because there are a lot of cases you generate accidental garbage (biggest one is when you use strings that are getting implicitly converted to StringNames every time you run a function, you can avoid this by pre-generating them as consts but I've run into a fair few people who never ran dotmemory or the like to see the issues).

Re:Unity's Mono problem: Why your C# code runs slower than i... by eole666 on Tuesday December 30, 2025 @04:00AM (#46431096)
Yes, it tooks me 2 years to see how much garbage strings conversion to String Names generates and how a fool I was calling something like Input.IsActionPressed("move_right") every frame (sadly it's the example given in the input documentation).
Re:Unity's Mono problem: Why your C# code runs slower than i... by runevault on Tuesday December 30, 2025 @01:39PM (#46436443)
Yup. I remember running dotmemory on a whim and being confused by all the stringnames until I noticed what was in them. They really should put that in the docs to just make a const stringname somewhere. I use a global static class for anything I want in multiple files. But I also tend to just use statics instead of autoloads if I'm doing everything in c#.