Game Idea
So me and a group of developers are starting a very ambitious game project. For this game we need an absolute massive map as it will be mainly open-world.
Problem
We generated a map that is 221,408,919,552 studs large. And as you can probably tell, filling up this area with buildings and roads may cause a lot of lag.
Currently the game runs smoothly as smooth terrain is quite lag-free due to the fact it reduces triangle count when far away as to save memory. My main concern are the buildings we will need to set up. The roads are meshes, and if I’m not mistaken, meshes are highly optimized.
Question Is: (TL:DR)
Does anyone have any tips for how to optimize a game so that players don’t experience lag due to high part count and a massive map?
Well, sun rays will only show for people who have set their graphics high, as will detailed water and stuff. You could use a script to ensure everything has loaded, something like this
local Workspace = game:GetService[‘Workspace’]
Workspace:WaitForChildren
Sorry I can’t put it in a code block cause I’m on my phone and I can’t find the things for it.
Personally, if your going for efficiency and optimisation I strongly recommend you do not use a large amount of terrain. Terrain is very costly on performance, especially if you have lots of it. You will notice that the majority of the games on front page do not use terrain, and the one notable one that does, jailbreak, is arguably the least performant.
If you can achieve the same effect with parts I recommend you do so / reduce the map size where possible since you don’t necessarily need that much empty space. If you do need a huge map. I believe vesteria uses terrain + multi place, so using multi place is always an option.