Universal Script 📌
738 Views
163 Executions

Occlusion Culling Universal

Universal Script 📌
huezoangel57
huezoangel5710K executions
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Update script

  5. Script edited: Update script

View Raw
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


Comments

1
Log in to join the conversation. Login
Leumas's profile picture
Leumas7 months ago

Tuff

1

More universal scripts

See all
Universal Script 📌
1.8k
6.6k
Bumped 46 minutes ago
Script hub
23.3k
4.9k
Bumped 3 hours ago
Key System
Paid
High Quality Offering
Script hub
4.1M
544.8k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.0k
55.4k
Bumped 7 hours ago
High Quality Offering
Script hub
2.9M
974.9k
Bumped 7 hours ago
Key System
Universal Script 📌
9.2k
210.6k
Bumped 7 hours ago
Script hub
86.7k
363.4k
Bumped 8 hours ago
Key System
Universal Script 📌
9.0k
147.0k
Bumped 8 hours ago
High Quality Offering