Memory optimization

I have some questions.

I use Unity 2022.3.20

I found settings for the Gfx allocator and set a small value for block size (default was 16 MB). It happened to decrease reserved memory. Why does a dedicated build target use the Gfx allocator? Can I set this value to 0 or a small value?

What about other allocators? Maybe I can decrease it for a server?

Also, I found materials, textures, and shaders in the dump. I set up “Enable dedicated server optimization,” but it didn’t help me. Do I need to cut this asset manually?

Is it possible to have a 100-150 MB server instance?

Hello!

Yes, you can reduce the Gfx Allocator size in servers. But keep in mind that servers can still use it for textures and meshes (for physics for instance), so I’d say a smaller non-zero value should be fine.

I’m definitely interested in knowing a bit more about this, do you know exactly which shaders/materials/textures are included? We know that some standard assets might still be there.

My bad; it cut all my shaders but kept the default shaders. Textures and material in memory without “pixels.” I will review all my bakers, scenes, etc, to cut this data.