How to make large, detailed maps while keeping it optimized?

So, I’ve been planning this big, Grand Theft Auto-style game. I wanted to start working on the map, however, I don’t know how to keep it optimized. I want it to be a giant map, roughly a little smaller then the GTA V map, and I want it to be pretty detailed, around the same level of detail as GTA 4.

However, my biggest fear is optimization. I don’t know how to go about making this while still keeping the game from running like garbage. I’ve already though of some stuff, like making interiors for missions in a different game that teleports you, however that would probably be annoying to have to teleport every time you want to do into a building.

I do plan on implementing a LOD system, where far-away building load in as basic squares, using only a few nature meshes, and I’m avoiding using textures as much as possible, but I don’t know if this would be enough. What are your thoughts?

use Box collision for basically every Mesh, disable CastShadows on unnecessary parts, etc

It would be hard to get the same kind of detail like gta considering roblox is not very optimized, what StoneSlabEnjoyer said is how to do it, just try to optimize your game as much as possible while trying to make it as detail as you can

Disabling shadows on parts will not improve performance.

Yeah, I do wish Roblox was more optimized, but I’ll have to work with what I got.

I’ll definitely keep it very light on the unions and extra parts, and try my best to keep it optimized, but at the end of the day I’ll just have to see how bad it actually is.

do you have like ANY supporting evidence for this AT ALL

Main thing is dont use terrain, that lowkey murders performance. Otherwise, i’d say to make sure to utilize unions and overall keep the part count as in control as possible.

Also avoid using particles if u can. :slight_smile:

Weird, I’ve always heard the opposite - avoid unions as much as possible, and use terrain instead of parts.

Oh wait what. Hold up let me check my research real quick i aint tryna spread misinformation over here

Ok after further evalutation i seem to have gotten unions mixed up with mesh parts or smth smh

In the documentation for BasePart.CastShadow it is written “this property is not designed for performance enhancement.”
https://create.roblox.com/docs/reference/engine/classes/BasePart#CastShadow

To make a huge map with a lot of detailing and expecting it to be optimized that too on roblox is something thats not going to happen for years. All i can say is that you can make different games for different parts of the map , I know it sounds crazy but at this point the chances are really less to get the game optimized.

Disabling CastShadow does improve performance, but it’s not specifically intended to be used as an optimization measure because it will have inconsistent results depending on what lighting tech you use. (Which is mainly important now because of Unified Lighting)

If you disable CastShadow on a mass scale for small parts, you will see a performance improvement. Most notable with local lights on Future.

Thanks for the correction. So you should disable CastShadow when possible?

I think it depends more on the scene you’re making, if you have a lot of small parts that will cast shadows that players are unlikely to actually notice/see (like for instance, books on a bookshelf), disabling shadows is probably a good choice. But really, you should just enable/disable and see how it looks/how it performs, in most cases the performance bump is going to be pretty mild unless you have a lot of parts or moving lights.