this post was submitted on 29 Apr 2025
83 points (92.8% liked)

Programming

19927 readers
165 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange 4 points 3 days ago (1 children)

Games might be an area where it isn't too bad since you can disable the GC while doing all your physics and graphics, and then just after you've dispatched a frame trigger a GC with a hard time limit.

I don't know if Unity works like that but it should.

[–] Mihies 1 points 2 days ago (1 children)

I don't think that's even possible - to have that much control over GC engine that is.

[–] FizzyOrange 1 points 2 days ago (1 children)
[–] Mihies 1 points 2 days ago (1 children)

It's not trivial as it seems. See https://github.com/dotnet/runtime/issues/37667 and enhancement that happened only in .NET 8.

[–] FizzyOrange 1 points 2 days ago

Interesting. From the sounds of it Unity added their own API for it though.