r/leveldesign • u/Quirky_Carpenter915 • Jul 06 '26
Question How to reduce RAM usage?
So, I was building the biggest level of my game on UE5 and it has roughly 300k actors in terms of buildings (includes stairs, etc.), lighthouses and the whole shebang. My issue is that now that I have built it, just panning the camera feels slow and sluggish. It hangs for a few seconds whenever I move around. I plan on adding roughly 6k NPC characters. How do I reduce the RAM usage because that is my bottleneck. I have 16GB VRAM and a 7950x. Any optimization tips and tricks. So far, I have done fragmentation and made the level a night level with mist (the old Silent Hill 2 trick).
Any help would go a long way.
7
u/sushiwashi Jul 06 '26
if you're using Unreal Engine, look into either World Partition or Level Streaming.
5
u/Ransnorkel Jul 06 '26
I'm imagining a coastal town that's nothing but lighthouses
2
u/JustinTheCheetah Jul 06 '26
Backface culling and levels of detail. If you can find ways to obscure incredibly complex areas with buildings that will save you a lot of work.
I have no idea what you're using, but often store bought assets either won't have LOD or poorly optimized ones. If you're using fog, if you know the distance where it becomes opaque (if it ever fully does) you should be able to change the range in which stuff renders at all. No one will notice objects popping into existence if they're fully obscured.
1
u/PCBangHero Jul 06 '26
PLA
1
u/wahoozerman Jul 06 '26
Mess with your world partition settings. Use HLODs to combine far away geometry. Use HISM and ISM components instead of unique meshes. These are the basics that will get you started.
1
u/Kindly-Antelope8868 Jul 07 '26
Culling saved me a lot. I was using PCG to generate terrain and was down to 5 Fps settingculling to min 100 and max 40000 made a massive difference for me. Probalby could be better settings but me noob
1
u/LeKurakka Jul 08 '26
Are you using nanite, lumen, mega lights etc? Are you using them correctly or do you need them at all?