How to render chunks at a time?

So I want to render a 100 x 100 x 100 chunk and as you wakk forward more appear and the ones behind you dissappear anyway of doing this?

Alternative suggestion: don’t.

If you’re using Terrain, ROBLOX handles optimization like that for you.

If you’re using custom terrain made of Parts, ROBLOX still handles most of the optimization for you.

Measure your performance with the profiler, and figure out what your bottleneck is. Then look into more specific optimizations.

Otherwise, do some research on quadtrees or something.

1 Like

Custom rendering logic has been used by a number of games. I’m pretty sure they’re sectioning Region3 on the client which then calculates “character to center of the Region3” distance.

I’ve seen something similar to this on YouTube.

:sunglasses: :ok_hand:

I meant like generating baseplates in front of the player as you walk further around etc

That’s exactly what custom rendering logic is, it takes account of chunks(Region3) and measures the distance between player and the chunk. Depending on the distance, it will toggle itself off the map.

I dont know how to get the baseplates positioned properly