From 30358022feb5278c0df0e9f1989bf72ed9b58506 Mon Sep 17 00:00:00 2001 From: avitasia Date: Thu, 12 Feb 2026 10:05:30 -0800 Subject: [PATCH] add PB_DoodadRenderDistInCitiesAndRaids --- PerfBoostSettings.toc | 2 +- settings.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/PerfBoostSettings.toc b/PerfBoostSettings.toc index 91b5f83..a963a88 100644 --- a/PerfBoostSettings.toc +++ b/PerfBoostSettings.toc @@ -1,5 +1,5 @@ ## Interface: 11200 -## Title: Perf_boost Settings v1.9.1 +## Title: Perf_boost Settings v1.10.0 ## Notes: the companion compatibility addon to the mod of the same name. ## SavedVariablesPerCharacter: PerfBoostSettingsDB ## X-Embeds: Ace2, FuBarPlugin-2.0, CompostLib, DewDropLib, TabletLib diff --git a/settings.lua b/settings.lua index f939530..e774ebc 100644 --- a/settings.lua +++ b/settings.lua @@ -980,5 +980,26 @@ if has_doodad_render_dist then PerfBoost.db.profile.PB_DoodadRenderDist = v SetCVar("PB_DoodadRenderDist", tostring(v)) end, + } +end + +local has_doodad_render_dist_in_cities_and_raids = pcall(GetCVar, "PB_DoodadRenderDistInCitiesAndRaids") +if has_doodad_render_dist_in_cities_and_raids then + PerfBoost.cmdtable.args.rendering.args.PB_DoodadRenderDistInCitiesAndRaids = { + type = "range", + name = "Doodad/Game Object Render Distance in Cities and Raids", + desc = "Max distance to render doodads while in cities and 40 man raids. Takes priority. Interactable game objects (chests, doors, quest objects, etc.) are not hidden. Ignored if you are PvP flagged.", + order = 43, + min = -1, + max = 100, + step = 1, + get = function() + local val = GetCVar("PB_DoodadRenderDistInCitiesAndRaids") + return val and tonumber(val) or 0 + end, + set = function(v) + PerfBoost.db.profile.PB_DoodadRenderDistInCitiesAndRaids = v + SetCVar("PB_DoodadRenderDistInCitiesAndRaids", tostring(v)) + end, } end