I’m finalizing my map and making the last few modifications. I’ve recently added another large section. The map doesn’t exceed the size of two full baseplates, and it’s fully built out. However, I’m encountering a significant issue. When I join the game and equip a tool from the ACS (Advanced Combat System) or another similar system, I experience a lag spike. Interestingly, if I delete a part of the map, the lag disappears, it’s also not because of any gun system i can remove it and it still have some random freeze in game.
Does anyone know how I can resolve this issue?(Enabling StreamingEnable change nothing since i go in some zones with lots of parts again)
There might be a few issues:
Script optimisation - Any other systems that you’ve added besides the ACS.
Viruses - Hidden viruses, check any free models before you add them into the game.
Workspace - Might be because of the map - having many parts in-game will lag your game but it would be a constant lag.
Can you please check if you’re lagging only if you’re looking in a certain direction?
Can you go in-game (studio) and enable script performance in the view bar? Pay attention to the list of %, and when you’ll have a lag spike, I’m pretty sure it’ll appear there.
I litteraly got why it lags everytime like that and it wasnt a problem of script at all i just grouped a big part of the map but why grouping a large section should remove the lags in game ?
probably too many duplicate meshes or unions or with many vertices, also maybe an infinite loop or some virus, also remember to optimize the acs, it is poorly optimized
Usually just because of how roblox registers models. Models are considered as one sort of part and loaded like one part, it’s a better practice to use folders.