
738 Views
163 Executions
Occlusion Culling Universal
Universal Script 📌
huezoangel5710K executions
11 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
This scripts make roblox to not render things that the player dont see
Updates
Script edited: Update script
Script edited: Update script
Script edited: Update script
Script edited: Update script
Script edited: Update script
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local CONFIG = {
UpdateInterval = 0.15,
MaxDistance = 180,
NearDistance = 70,
FOVAngle = 90,
MinSize = 5,
MaxObjectsPerFrame = 15,
MaxTotalObjects = 300,
RegisterDelay = 0.5,
}
local trackedObjects = {}
local objectLookup = {}
local lastUpdate = 0
local currentIndex = 1
local isRegistering = false
local excludedClasses = {
"Terrain", "Camera", "Sound", "Script", "LocalScript", "ModuleScript",
"Attachment", "Constraint", "WeldConstraint", "Motor6D", "Decal", "Texture"
}
local excludedNames = {
["Baseplate"] = true,
["Terrain"] = true,
}
local function shouldExclude(obj)
if not obj:IsA("BasePart") then return true end
for _, class in ipairs(excludedClasses) do
if obj:IsA(class) then return true end
end
if excludedNames[obj.Name] then return true end









Tuff