I know this has been a topic in Roblox games, and I don’t mean to make duplicate posts if this sort of thing already exists. I’m just looking for feedback on a little building I’m making.
I’ve been working on a Facility map for my game. It’s around 1250 parts, and I’ve never had this kind of lag on a Roblox game. I have a relatively fast laptop that supports anything at high FPS and parts, even at 10 graphics. It’s only now I’ve been getting this lag, as I haven’t been getting it in other Roblox places.
That memory usage is off the .It should not exceed 1gb and what is the object density in the parts of the map how optimized are the textures.These are all the possibilities of the cause of lag
I dont have many plug-ins, and I’m sure that none are backdoors.
I’ve checked all scripts, and I’m sure that everything is legitimate as well.
Even at 1 graphics, lag still goes off the walls.
you can probably try using the command bar to loop through workspace and search for welds and delete them.
-- Make a backup of your place first, I have no clue if this line is correct :sweatemoji:
for i, v in ipairs(workspace:GetChildren()) do if v:IsA("Weld") then v:Destroy() end
Just make sure you don’t delete any important welds you have in your game (if you have any).
Can you also try disabling all your plugins and playing the game again to see if lag is still present?
Part amount shouldn’t be much of an issue unless you decided to cram 500 parts into one single location. Or you go showcase levels and have 15000 parts.
Deleted all the bad welds, still a lot of important welds, but it shouldn’t be the issue. There’s nothing else ingame and I don’t know what the issue is. I’ll try moving maps in serverstorage to other places and see if it works.
Can you provide a link to this place so the memory usage can be checked? Using F9, you can open up the log menu which also lets your check exactly what is taking up memory (and much more), and being able to go into this place and analyze the logs would help narrow down what the problem actually is. It’s not “just” memory either, since your CPU response time is in the hundreds of milliseconds.
Yikes, that’s a lot of doorscripts. Do you think you could provide us a copy of your current game? (Or if you don’t exactly want to give up your game, just the door model script itself. It might be due to scripts, since a 1270 part game lagging like this isn’t exactly believable for building.
The Doorscripts aren’t really big, but they’re around 100 lines and use tweenservice to operate. This shouldn’t create lag at all because there aren’t loops or anything serious in the script. Plus, it was lagging before I put the doorscripts.
I deleted all the unnecessary welds and I can’t really give up my scripts or place. I guess I’m just really confused why there’s lag in my game but not in my other games.
Turns out, moving my map into a separate baseplate proved to be nice. There’s no lag, even with all my doorscripts and stuff.
Thanks guys for the help, I really appreciate it.