Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem








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