Editing the .NET application configuration file to support >2GB objects

Godot Version

4.3 .NET

Question

I need to set a parameter in the application configuration file of the C# project, to allow objects over 2GB in size. But it looks like the file is autogenerated when I press play in the editor, so there’s no obvious way of controlling what goes into that file.

Any ideas? Anybody else had the same issue?

Thanks

I don’t have a direct answer, but perhaps a hint. Since .NET 6 you can control the value via the environment variable DOTNET_gcAllowVeryLargeObjects, but the default value is 1 anyway (which means activated).

gcAllowVeryLargeObjects refers to the classic .NET framework (v4.5 and so on).

1 Like