Game laggy and taking forever to load! [SOLVED]

Hello Developers,
Recently i released my new game Murph’s and we noticed how long it takes to load and completely crashes on most lower-end devices along with taking forever to test in studio. We tried deleting all the textures and disabling every script local and normal and nothing is working. One thing we noticed was when we looked at small things such as the simple parking lot it was fine but when looking at thee huge building it lags more. Someone please help we have been trying soo long and we now even have to retexture our entire game. Also one time it crashed for someone and said it had trouble receiving data.

Thanks,
Cullis_WullisAlt

3 Likes

Could you screenshot the workspace selecting the three buildings. Also, what are you using voxel terrain, mesh parts, unions, etc? How much memory is the game peaking at? Do you have filtering enabled on? Game Link? Map dimensions? Are the three buildings anchored? Are you using freemodel scripts?

Basically saying you need to include more information.

1 Like

Okay, I checked the game out. The game peaks at 1.4GB of memory usage. The game is most likely lagging due to script side. I don’t feel lag from the buildings.

image

1 Like

Alright thanks. By the way I put the game back to before it was changed with textures and trees but we tried disabling all scripts and it still took a while to load in studio.

No Unions are Horrible, they preserve the creation of the union. It’s better to convert to a mesh instead of a union or just keep them as a part. They can corrupt unlike parts and they have a max of 5k parts. Unioning isn’t optimization.

2 Likes

Saving it on Roblox just saves the model in Roblox. Once you put it into workspace again it still keeps all the information of how it was created. It’s not optimization.

3 Likes

Do you have any ideas on what to do if disabling every script didnt really help and if it would than it would ruin the game so.

1 Like

I don’t script in Lua but it’s probably poorly optimized code. You should ask in #help-and-feedback:scripting-support and show the code. You should compare the memory usage without the scripts and just the map first.

Don’t think the terrain is the problem because I work with huge terrain and they’re only aroun 600-800mb and they’re like 30k studs^2.

unknown

2 Likes

Did you use any free models?
30

1 Like

The only free models that were used were made by the official roblox i filtered the toolbox to only show them by the account Roblox nobody else

1 Like

Ok.
Can you provide screen shots of your game?
That would be helpful thanks

Main Area:

and other then this there are just a few simmple other dining areas

1 Like

Having everything as a union is a bad idea. For one unions can only have one texture, so that messes up a lot of stuff. They also have weird collision, blocking stuff off sometimes. It also makes editing the game later more time consuming and annoying.

2 Likes

Any errors/warnings in the output? If there’s an absolute flood of them, then it’s probably something to do with scripts.

2 Likes

Not many and we thought it might be the DS2 script but it wants

1 Like

I will admit that a lot of my code is a mess and it could be better

1 Like

Did you not see the recent CSG update? Unioning is definetely the way to go now. Plus unions won’t get corrupted anymore.

2 Likes

It might be a backdoor/virus. Be sure to check your experience for them.

1 Like

Unions still have a chance of getting corrupted and are actually really bad for optimisation (in most cases making performance worse compared to meshes).

4 Likes

I’ve had an issue similar to this. When I tried to test the game, it took 4 minutes before the loading screen went away. I removed a model I imported from the toolbox and the game loaded instantly. Check the models imported into the game from the toolbox. Delete, test, Undo until you find the what is causing the issue.(If you have any assets imported from the toolbox.

2 Likes