Skip to content

A simple Roblox ChunkLoader module to improve render performance

License

Notifications You must be signed in to change notification settings

athar-adv/ChunkLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ChunkLoader

INSTRUCTIONS:

Copy the chunkLoaderModule code and paste it into a ModuleScript inside Studio.

Then just require the module inside of a LocalScript and you're set!

Code example:


local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local modules = ReplicatedStorage.Modules

local ChunkLoader = require(modules.OOP.ChunkLoader)

local chunkSize = 64 local renderDistance = 5 -- (chunks)

local Chunks = ChunkLoader.new(renderDistance, chunkSize, {workspace.WaterLayer})

Chunks:FillCache(workspace.SpawnLocation.Position, 100) -- 100 means 100 chunks of size chunkSize around SpawnLocation's position

Chunks:BindToRenderStepped() -- Updates cached chunks every RenderStep


About

A simple Roblox ChunkLoader module to improve render performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages