Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
local incrementAmount = 10
local fpsIncreaseInterval = 1 -- Time in seconds between each FPS increase
local maxFPS = 300 -- Maximum FPS limit (adjust as needed)
local cullDistance = 1000 -- Distance threshold for off-screen culling
local function ApplyFPSLimit(fps)
if fps > maxFPS then
fps = maxFPS
end
local frameTime = 1 / fps
-- Note: Actual FPS control may need different methods or external tools
end
local currentFPS = initialFPS
ApplyFPSLimit(currentFPS)
local function IncreaseFPS()
currentFPS = currentFPS + incrementAmount
ApplyFPSLimit(currentFPS)
end
timer.Create("FPSIncreaseTimer", fpsIncreaseInterval, 0, IncreaseFPS)
local function BruteForceCull()
local player = LocalPlayer()
if not IsValid(player) then return end
local playerPos = player:GetPos()
for _, ent in ipairs(ents.GetAll()) do
if IsValid(ent) and ent:IsSolid() and not ent:IsPlayer() then
local entPos = ent:GetPos()
local distance = playerPos:Distance(entPos)
-- Check if entity is within the culling distance
if distance > cullDistance then
ent:SetNoDraw(true) -- Disable rendering
else
ent:SetNoDraw(false) -- Enable rendering
end
end
end
end
timer.Create("BruteForceCullTimer", 0.5, 0, BruteForceCull)
BOOM
You're even more famous