add PB_DoodadRenderDist to options

This commit is contained in:
avitasia
2026-02-04 19:55:10 -08:00
parent a504a34909
commit d6eda430ac
4 changed files with 25 additions and 4 deletions
-3
View File
@@ -1,5 +1,4 @@
<Bindings>
<Binding name="PERFBOOSTENABLE" header="PERFBOOST">
SlashCmdList.PBENABLE()
</Binding>
@@ -8,7 +7,6 @@
SlashCmdList.PBHIDEALLPLAYERS()
</Binding>
<Binding name="PBTOGGLEPLAYERRENDERIST" header="PERFBOOST">
SlashCmdList.PBTOGGLEPLAYERRENDERIST()
</Binding>
@@ -21,5 +19,4 @@
SlashCmdList.PBCYCLEPLAYERVISIBILITY()
</Binding>
</Bindings>
+3 -1
View File
@@ -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.
+1
View File
@@ -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.)
+21
View File
@@ -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