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.
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.
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.
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.
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.
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.
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.
Unions still have a chance of getting corrupted and are actually really bad for optimisation (in most cases making performance worse compared to meshes).
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.