Ive been trying to get rid of lag in my game but i dont know why it isnt working i went into a test place copy of the game and deleted every union with a script and i was still lagging but only when i looked at one spot the building i even deleted every mesh and no diffrence what do i do?
You probably inserted some free model(s) with viruses. Simply go to the search bar on the right side of your screen and type in “Script.” Then delete every script you don’t recognize.
Like @Turned_Away said, you may have a virus, you can try what he said, but if you have a lot of script in your game, I would say get a anti virus, like this one:
Big games will lag. There’s just nothing you can do except lower the complexity of your builds. Of course this assumes it’s caused by your builds, more details would be helpful. Lag can also be caused by inefficient code.
Do you have filtering enabled on?
filtering enabled is always on, you can’t turn it off.
To @spydercam500 , there could be a virus in your game. Or it may be your device issues. Try allocating more RAM to Roblox Studio and delete any suspicious scripts.
Sorry, I meant Streaming Enabled
Maybe try lowering part count? Optimize your game and delete parts under maps or where players can’t see and remove detail where players can’t see.
Try what other’s have suggested above if that doesn’t work.
if viruses aren’t the cause, try optimizing collision. for some reason precise convex decomposition is sometimes less complex than default. if collision is not needed at all, go with hull or box.
this is assuming you use unions and meshparts in your build
Well we try our best not to use free models and clean them out and this is all in studio not testing or in game or anything. So scripts cant be running.
@NGC4637 @ComplicatedParadigm @Dan_foodz @Turned_Away @warmasterx11 @capture_nest @JamminRedPandaMan
The only thing i can think of that could be it is the amount of parts there is currently about 60k+ parts in the game right now but i dont think thats it i believe you would need 500k parts to get the lag im getting it cant be my computer because i run the wild west on max graphics with around 40 fps just fine if it is my pc here are my specs.
CPU:AMD Ryzen 5
GPU:Nivida GEFORCE GTX 1650
Try disabling all the scripts and see if it still lags
Used a script to delete all scripts in a test place copy of the game didnt clear any lag up…
Any welds or other suspicious objects in the game?
Nothing that i know of i deleted all welds with command bar aswell and no changes.
Is there a concentration of unanchored parts? That could do it.
This is all in studio not testing or ingame therefore parts that are unanchored appear anchored until you play the game.
Maybe try copying half the map into another game and see if it lags. That way, you would know if it’s just the part count or something else.
Maybe that 60k is probably in a dense spot. Also 60k would definitely make my computer with not as good specs as yours lag out horribly, so you should consider doing that anyway for the sake of other people’s devices unless it is a personal project of yours.