I’m making an open world game and i want the map to be quite large. I plan on using 4 baseplates in size. Will this be too big of a map and will lag become an issue? I also plan on using the terrain generator to generate terrain over all 4 of the baseplates.
It depends how detailed your build will be. Terrain I believe is fairly optimized, so using terrain for your world is probably fairly performant.
My advice would be to use as minimal parts and unions as possible, using as many meshes as you can. Parts are extremely expensive in large quantities (from experience). Meshes are indeed more performant over parts, so definitely try to use them more when possible.
4 2048x2048 baseplates will have no lag.
It depends on what else you put in the game as @C_Sharper said.
A ton of Parts in a small area can cause lag, but if you make as many as possible CanCollide and CanTouch false (off) then it will help because the server and local versions will not have to calculate as much for that kind of Part.
If you are using Terrain then you won’t need baseplates anyway but that size of Terrain should be fine. Think about other games you’ve played on Roblox because many of them are a whole lot bigger than 4 baseplates and they have no lag at all.
Ok perfect. Im making an open world RPG game so theres also going to be quite a lot of humanoids as well. So with the size of the map and the amount of humanoids + mesh, do you think it will be better to have a teleport system where players can teleport between places? My game right now will consist of hundreads of humanoids on a single map.
Im using low poly models. All mesh. Nothing over 2k triangles will be added to the game.
i dont think the 4 baseplates would cause lag, just the items within them. also, be careful with how you place your parts; ive heard that builds get a little buggy if you build far past 0,0,0.
Lots of Humanoids are probably going to be an issue.
@tacticallysrupid the issue with building far from 0,0,0 doesn’t really come up until you get really far from center. The problem is floating point error, which happens when digital equipment tries to convert from base 10 (decimal) numbers, to base 8 (binary) numbers, and back. A number like 0 or 0.125 converts correctly to base 8, but other base 10 numbers can’t be converted to base 8 and this causes very small decimal errors which are fine near center, but can cause issues when really far from center.
I was planning on deactivating the humanoids when a player is not within a certain distance. I’ve also read on here someone had a script which allowed about 1300 humanoids with very little lag.
that’s amazing brother!! one problem though, i dont rlly remember askin. also, binary is base 2, not 8.
gn
If you want a tutorial on binary (base 2) and denary *(base 10),
I can do a quick rundown.
Let’s take for example the denary number, 5
.
Obviously, 5
in binary is 101
.
This is because, binary only has 2 so-called digits
, (1 and 0).
You said that binary was base-8, ( it’s called octal ), which it isn’t.
If binary was base-8, it would include the digits, (0,1,2,3,4,5,6,7), by the way.
So now, you mention some numbers can’t be converted into binary without small decimal errors.
I’m not going to describe and explain how decimals work in binary to you, but I can tell you that it works, and it works well.
Eg, let’s take some mysterious, ugly, long denary number. (0.76245260238647460938)
Ugly right?
Well it works and converts beautifully into binary, it covers to (0.110000110011000000011)
So I hope this helped!
- Zander
Hehe, yeah, sorry. I was thinking bits to bytes. Not a ton of sleep on my end.
I realize I didn’t explain the important part about the rounding errors involved either, like 1/3 being 0.3 with an infinite line of 3s after it so rounding it over long calculations (like distances from 0,0,0) can result in ‘weirdness’ in Part Positions…
Baseplates are essentially just parts, so you’re having to ask yourself “will 4 large parts lag my game?” The answer would depend solely on the scale and ultimate goal of your game. Are 4 full size baseplates needed? If you make only what is needed, that will also help.
EDIT: I read your post wrong, apologies!