From d6eda430ac57860138c3a1ae58d6c901ea657455 Mon Sep 17 00:00:00 2001 From: avitasia Date: Wed, 4 Feb 2026 19:55:10 -0800 Subject: [PATCH] add PB_DoodadRenderDist to options --- Bindings.xml | 3 --- GUIDE.md | 4 +++- README.md | 1 + settings.lua | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/Bindings.xml b/Bindings.xml index ce8b9f0..d632749 100644 --- a/Bindings.xml +++ b/Bindings.xml @@ -1,5 +1,4 @@ - SlashCmdList.PBENABLE() @@ -8,7 +7,6 @@ SlashCmdList.PBHIDEALLPLAYERS() - SlashCmdList.PBTOGGLEPLAYERRENDERIST() @@ -21,5 +19,4 @@ SlashCmdList.PBCYCLEPLAYERVISIBILITY() - diff --git a/GUIDE.md b/GUIDE.md index 1c75df7..297653c 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -21,7 +21,7 @@ If you go to Esc -> Keybinds and scroll down you should see a section for PerfBo The 2 most common ways to use the keybinds: - Have all/most players shown by default and temporarily hide everyone using "Toggle 0 player render distance" when you need the extra fps or want to be able to see better -- Have all/most players hidden by default using a low player render distance and temporarily show everyone using "Toggle show all players" for fights that require it +- Have all/most players hidden by default using a low player render distance and temporarily show everyone using "Toggle show all players" for fights that require it. Or can macro these commands if you prefer ``` @@ -41,6 +41,7 @@ Or can macro these commands if you prefer - Totem/Guardian distance 0 yd - Corpse distance 0 yd - In cities distance 5yd +- Doodad render distance 60yd ## Max Performance - Set either Default or In combat (when most people suffer fps drops) player render distance to 0 yd @@ -50,6 +51,7 @@ Or can macro these commands if you prefer - Totem/Guardian distance 0 yd - Corpse distance 0 yd - In cities distance 5yd +- Doodad render distance 15yd ## Player whitelist/blacklist commands If you are using small player render distances you might find it useful to set tanks to always render. diff --git a/README.md b/README.md index 239d290..3d23c67 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ A configuration addon for the perf_boost.dll mod https://gitea.com/avitasia/perf ### Other Rendering - **Corpse Render Distance** - Max distance to render corpses (-1 to disable, 0-100 yards) +- **Doodad Render Distance** - Max distance to render doodads (trees, crates, lamps, etc.). Interactable game objects are not hidden. (-1 to disable, 0-100 yards) ### Spell Visual Settings - **Show Other Player Spell Visuals** - Whether to show spell visual effects from other players (spell casts, ranged weapon projectiles, wanding, etc.) diff --git a/settings.lua b/settings.lua index 31b0f19..ab65898 100644 --- a/settings.lua +++ b/settings.lua @@ -928,3 +928,24 @@ if has_debug_shown_spells then end, } end + +local has_doodad_render_dist = pcall(GetCVar, "PB_DoodadRenderDist") +if has_doodad_render_dist then + PerfBoost.cmdtable.args.rendering.args.PB_DoodadRenderDist = { + type = "range", + name = "Doodad/Game Object Render Distance", + desc = "Max distance to render doodads. Interactable game objects (chests, doors, quest objects, etc.) are not hidden.", + order = 42, + min = -1, + max = 100, + step = 1, + get = function() + local val = GetCVar("PB_DoodadRenderDist") + return val and tonumber(val) or 0 + end, + set = function(v) + PerfBoost.db.profile.PB_DoodadRenderDist = v + SetCVar("PB_DoodadRenderDist", tostring(v)) + end, + } +end