World Rendering Issue

Let me try to put this into perspective as much as I can.

I have two folders, one in ReplicatedStorage, and one in the Workspace.

I have a local script inside of the StarterPlayer>PlayerScripts

The local script controls rendering, any blocks within a 70 stud radius will be sent into the workspace folder to make it visible and interactable. Anything over a 70 stud radius will be sent inside of the ReplicatedStorage folder to make it invisible and un-interactable for the client side.

I also have a server script inside of the ServerScriptService and parented by the server script is a grass block. The script handles generating land and works PERFECTLY FINE but is not my focus of this post however.

Anyway, the local script that handles the rendering is failing. The game is still lagging out.

It is a gradual lag and starts off running fine but increases with server run time slowly.

My question however is why is it lagging. Am I not unloading and loading the blocks correctly?

Keep in mind that the generating is infinite and has a delay of 0.1 seconds and that also all parts are anchored and remain completely still.

Thanks for the help.

I have tried:

  1. Messing(lowering and bringing up) with the render distance

maybe there are too many items inside the replicated storage and making the computer run out of memory? How about instead of placing items inside a folder, you make it more memory efficient by saving essential properties inside a table

1 Like

So you suggest I delete and replace the blocks as you move?

yeah, I think that would be best

1 Like

I will try this and update as soon as I can! Thank you.

1 Like

It worked, no lag and the render is fully functional.