My game lags to a INSANE level, to the point where low-end pcs almost crash from opening the game. Is there anyway I can fix this? I know the buildings are super high part count and I’m not sure what to do to reduce the part count, I’ve tried hiring countless builders and I’ve basically been scammed with the results that come out of it. The map is 1k x 2k studs and 46k parts (I know its a ton) . Any help is appreciated
Grouping won’t help with lag.
What I do recommend is turning your unions and parts into meshes. That will reduce lag.
It’s really, really easy to do so. Just:
-
Right click the thing (union, part, or group) you want to turn into a mesh,
-
Choose Export and export as an .obj file, and then,
-
Re-import it in. It’s that simple.
Y̶o̶u̶ ̶d̶o̶n̶’̶t̶ ̶e̶v̶e̶n̶ ̶n̶e̶e̶d̶ ̶t̶o̶ ̶t̶o̶u̶c̶h̶ ̶B̶l̶e̶n̶d̶e̶r̶ ̶o̶r̶ ̶a̶n̶y̶ ̶o̶t̶h̶e̶r̶ ̶e̶x̶t̶e̶r̶n̶a̶l̶ ̶s̶o̶f̶t̶w̶a̶r̶e̶.̶
EDIT: After making your object a mesh, you should put it through blender to reduce geometry.
I’ve tried that but the problem is they are still dealing with tons of buildings, either way that won’t change that the map is 46k parts. I’m not a builder nor do I have the time to go building by building to reduce part count so that really won’t work either. As I’ve said I’ve hired multipler builders now and they have all disappointing me.
Well get them to use better methods, for example: In Jailbreak they use decals on some buildings to reduce lag by A LOT.
I mean I would but the problem is the map that I’ve already spent tens of thousands of robux on needs fixed, I’d rather not spend another 20k+ on a new map.
Okay, well watch the video and see if that helps, otherwise idk.
I heard this works but I’ve never actually tried it, I’ll try it soon thanks for reminding me. I’ll mark it as solution if it works otherwise if anyone else has a idea on how to reduce lag please let me know.
The best method to reduce lag is to have Mesh parts and decals. Since parts uses so much space it can be really laggy in game when there are thousands and thousands of parts. You might wanna work hard to get mesh made and decals for any texture related stuff. Those 2 might be the only solutions I can think of.
Hope this helps!
I already said decals lol. He said he doesn’t want to rebuild the map so best method for him would be Meshes.
Decals can sometimes look ugly but example if you look at Jailbreaks as Aidan said:
to hire like a really good artist and make decals for any sort of road textures, stair textures, window textures, wall textures, and many other things in need. It might look ugly to you but you just gotta work hard for it and hope the best out from it!
(Reply to @SquidyCakez)
We’ll uh the part count might be so high that doesn’t even work, Blender might be needed… only half a building btw
Have you tried splitting buildings into smaller parts? Try having, for example, each side’s windows be separate meshes.
That could solve your problem. And if not,
I’d recommend searching a tutorial on how to reduce triangle count via Blender. I’m unfortunately not experienced enough in this area to directly help you out, but good luck.
EDIT: Listen to this guy, he can help you better than I can.
EDIT AGAIN:
After making your object a mesh, you should put it through blender to reduce geometry.
See @posatta’s post-
These resources should help you:
Ill try to list some though I may be incorrect on some Large mass of parts in one area being rendered Changing properties/rendering things such as material/color/transparency increase lag. Objects that are transparent between 1 and 0 (Ex: 0.9, 0.99, 0.01, 0.05) cause more stress though might not be that noticable Meshes/any unions that contain difficult rendering problems/collisions (If you’re using the default collision fidelity thing) increase lag. Collisi…
Although this is certainly a good method in converting unions to meshes, I’d recommend cleaning them up and optimizing them beforehand as to get better results. As @posatta has also mentioned, there is no signifcant performance boost however, it should help you somewhat : First off, lets say you had a more complicated union that has multiple negates + merges/union. [image] https://gyazo.com/6639bdfb324fb831dcf00aa142111dfb Now what we want to do is take the image and convert it to a obj of …
Anyways, to add onto this SIMPLIFY your buildings. Your buildings have too many unneccessary details from the amount of window parts to other things, parts that are even out of view still have an unloaded neccessary amount of parts.
Use scripts that unload parts from a wide distance away from it to decrease rendering costs, use fog/atmosphere as well.
Simplify collisions and disable them if needed/player wont access them.
Tbh all of your buildings should’ve been mesh except for the ones which will be used for interior designs. Almost every games uses this. Jailbreak, Madcity and other type of city games.
Yeah I know, its the result of a small map being expanded upon by multiple builders. Could have been prevented if the map was made with a bit more care.
I’ll try it out, ty for the links.
Do you use free models? Because sometimes if you use free model they have unnecessary scripts that are not needed that cause lag. However if you don’t use free models, I learnt that if you have scripts that aren’t properly coded can cause lag. That’s just two things I can think of from my knowledge.
It’s really, really easy to do so. Just:
- Right click the thing (union, part, or group) you want to turn into a mesh,
- Choose Export and export as an .obj file, and then,
- Re-import it in. It’s that simple.
This will have no noticeable benefit. The reason meshes are better is because unions often generate unnecessary geometry, but if you’re not simplifying them at all in Blender the different datatype isn’t going to magically make your game faster.
You can’t reduce the lag with that much parts no matter how you change it. But I got a couple of solutions, note that all of this is easier to say than done:
- Requirement: A little bit of scripting skills and (decal alternative for the buildings (optional))
Cons: Not guaranteed
Check the player surroundings using a script that runs everytime, if the buildings are within the player range of magnitude, then spawn the parts that makes up the details of the building. If the buildings are out of range, you can either switch the buildings details to a decal alternative, or just remove the details of the building.
- Requirement: Decals for the details of the building
Cons: Loss of details
This is the easiest solution you can do, just switch all of the buildings details to decals.
- Requirement: 3d modelling skills and a modelling software (blender, it’s free)
Cons: Take a lot of time + Not guaranteed
This is the hardest solution, use a modelling software and then remove unnecessary faces on each details. Each dot is the faces on the details, each faces equals 2 triangles that adds up to the triangle count.