Preserve native pet selection textures and capture benchmark CPU evidence
This commit is contained in:
parent
d4aca6fd31
commit
cc9f164109
@ -1,4 +1,4 @@
|
|||||||
Ruen UI - ESDF key map (2026.11.21.6-beta.1)
|
Ruen UI - ESDF key map (2026.11.21.7-beta.1)
|
||||||
|
|
||||||
MOVEMENT
|
MOVEMENT
|
||||||
Q W [E] R T
|
Q W [E] R T
|
||||||
|
|||||||
@ -4,7 +4,7 @@ A compact, class-aware **WoW: Forever** interface with ESDF controls, English/Ru
|
|||||||
|
|
||||||
**[Download the beta](https://scm.bstein.dev/bstein/ruen-ui/releases)** · **[Windows installation](docs/INSTALL.md)** · **[Инструкция на русском](docs/INSTALL-RU.md)** · **[Release review](docs/RELEASE-REVIEW.md)** · **[Report a problem](https://scm.bstein.dev/bstein/ruen-ui/issues)**
|
**[Download the beta](https://scm.bstein.dev/bstein/ruen-ui/releases)** · **[Windows installation](docs/INSTALL.md)** · **[Инструкция на русском](docs/INSTALL-RU.md)** · **[Release review](docs/RELEASE-REVIEW.md)** · **[Report a problem](https://scm.bstein.dev/bstein/ruen-ui/issues)**
|
||||||
|
|
||||||
Choose **Ruen-UI-2026.11.21.6-beta.1.zip** under release assets, not Gitea's automatic source ZIP. No account is needed to download. The download is small; setup then retrieves the selected companion addons directly from their authors.
|
Choose **Ruen-UI-2026.11.21.7-beta.1.zip** under release assets, not Gitea's automatic source ZIP. No account is needed to download. The download is small; setup then retrieves the selected companion addons directly from their authors.
|
||||||
|
|
||||||
## Windows quick start
|
## Windows quick start
|
||||||
|
|
||||||
@ -35,6 +35,8 @@ See the [staged update checklist](docs/UPDATE-PLAN.md) for implementation and re
|
|||||||
|
|
||||||
Installer transaction tests, Lua regressions, source review and prior local gameplay checks inform this release. **A clean native Windows installation and every class/spec in live raids have not been verified.** Automated layout simulations are not a guarantee against every possible addon or window combination. See the [release review](docs/RELEASE-REVIEW.md) for the tested scope and remaining limitations.
|
Installer transaction tests, Lua regressions, source review and prior local gameplay checks inform this release. **A clean native Windows installation and every class/spec in live raids have not been verified.** Automated layout simulations are not a guarantee against every possible addon or window combination. See the [release review](docs/RELEASE-REVIEW.md) for the tested scope and remaining limitations.
|
||||||
|
|
||||||
|
A focused local follow-up showed worse low-FPS readings than the baseline; performance verification remains open. `/ruen bench` now includes native addon CPU diagnostics to help identify the cause.
|
||||||
|
|
||||||
Ruen does not install graphics drivers, change GPU drivers, or install a background service. Its optimizer cannot guarantee temperatures or sustained FPS on every laptop.
|
Ruen does not install graphics drivers, change GPU drivers, or install a background service. Its optimizer cannot guarantee temperatures or sustained FPS on every laptop.
|
||||||
|
|
||||||
## Linux and development
|
## Linux and development
|
||||||
|
|||||||
93
RuenUI/Benchmark.lua
Normal file
93
RuenUI/Benchmark.lua
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
local _, P = ...
|
||||||
|
-- Read the client's already-running profiler only during /ruen bench. No
|
||||||
|
-- scriptProfile toggle, extra ticker, frame hooks, graphics edits or idle work.
|
||||||
|
local fields = {"gxApi", "gxAdapter", "RenderScale", "maxFPS", "maxFPSBk", "vsync",
|
||||||
|
"useTargetFPS", "graphicsShadowQuality", "graphicsSSAO", "graphicsViewDistance",
|
||||||
|
"graphicsEnvironmentDetail", "graphicsGroundClutter", "graphicsComputeEffects"}
|
||||||
|
local counters = {"CountTimeOver1Ms", "CountTimeOver5Ms", "CountTimeOver10Ms", "CountTimeOver50Ms"}
|
||||||
|
|
||||||
|
local function number(fn, ...)
|
||||||
|
if type(fn) ~= "function" then return end
|
||||||
|
local ok, value = pcall(fn, ...)
|
||||||
|
if ok and not (issecretvalue and issecretvalue(value)) and type(value) == "number"
|
||||||
|
and value == value and value >= 0 and value < math.huge then return value end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function settings()
|
||||||
|
local result = {}
|
||||||
|
if C_CVar and C_CVar.GetCVar then
|
||||||
|
for _, key in ipairs(fields) do result[key] = C_CVar.GetCVar(key) end
|
||||||
|
end
|
||||||
|
if GetPhysicalScreenSize then result.width, result.height = GetPhysicalScreenSize() end
|
||||||
|
local optimizer = RuenUIDB.optimizer
|
||||||
|
if optimizer then
|
||||||
|
result.calibrationEnabled = optimizer.enabled
|
||||||
|
for _, mode in ipairs({"world", "raid"}) do
|
||||||
|
local profile = optimizer.profiles and optimizer.profiles[mode]
|
||||||
|
if profile then result[mode.."Tier"] = profile.tier; result[mode.."Calibrated"] = profile.calibrated end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return result
|
||||||
|
end
|
||||||
|
|
||||||
|
local function metric(name)
|
||||||
|
local api, enum = C_AddOnProfiler, Enum and Enum.AddOnProfilerMetric
|
||||||
|
if not api or not enum or enum[name] == nil then return end
|
||||||
|
if api.IsEnabled then
|
||||||
|
local ok, enabled = pcall(api.IsEnabled)
|
||||||
|
if not ok or not enabled then return end
|
||||||
|
end
|
||||||
|
return number(api.GetAddOnMetric, "RuenUI", enum[name])
|
||||||
|
end
|
||||||
|
|
||||||
|
function P.StartBenchmarkDiagnostics()
|
||||||
|
local data = {release=P.release, settingsStart=settings(), samples={}, countersStart={}}
|
||||||
|
for _, name in ipairs(counters) do data.countersStart[name] = metric(name) end
|
||||||
|
return data
|
||||||
|
end
|
||||||
|
|
||||||
|
function P.SampleBenchmarkDiagnostics(data, fps)
|
||||||
|
if #data.samples >= 180 then return end
|
||||||
|
local row = {fps=fps, ruenRecentMS=metric("RecentAverageTime")}
|
||||||
|
if row.ruenRecentMS ~= nil and C_AddOnProfiler.GetOverallMetric then
|
||||||
|
row.allAddonsRecentMS = number(C_AddOnProfiler.GetOverallMetric, Enum.AddOnProfilerMetric.RecentAverageTime)
|
||||||
|
end
|
||||||
|
-- Keep the relevant neighbors on slow readings, not a scan of every addon.
|
||||||
|
if fps < 30 and row.ruenRecentMS ~= nil and C_AddOnProfiler.GetTopKAddOnsForMetric then
|
||||||
|
local ok, top = pcall(C_AddOnProfiler.GetTopKAddOnsForMetric, Enum.AddOnProfilerMetric.RecentAverageTime, 3)
|
||||||
|
if ok and type(top) == "table" then row.topAddons = top end
|
||||||
|
end
|
||||||
|
data.samples[#data.samples+1] = row
|
||||||
|
end
|
||||||
|
|
||||||
|
function P.FinishBenchmarkDiagnostics(data)
|
||||||
|
data.settingsEnd = settings()
|
||||||
|
data.settingsChanged = false
|
||||||
|
for key, value in pairs(data.settingsStart) do
|
||||||
|
if data.settingsEnd[key] ~= value then data.settingsChanged = true end
|
||||||
|
end
|
||||||
|
for key, value in pairs(data.settingsEnd) do
|
||||||
|
if data.settingsStart[key] ~= value then data.settingsChanged = true end
|
||||||
|
end
|
||||||
|
local total, count, maximum = 0, 0, 0
|
||||||
|
for _, row in ipairs(data.samples) do
|
||||||
|
if row.ruenRecentMS ~= nil then
|
||||||
|
total=total+row.ruenRecentMS; count=count+1; maximum=math.max(maximum,row.ruenRecentMS)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if count > 0 then data.sampledMeanMS=total/count; data.maxSampledRecentMS=maximum end
|
||||||
|
data.ticksOver = {}
|
||||||
|
for _, name in ipairs(counters) do
|
||||||
|
local before, after = data.countersStart[name], metric(name)
|
||||||
|
if before ~= nil and after ~= nil and after >= before then data.ticksOver[name] = after-before end
|
||||||
|
end
|
||||||
|
data.note = "Native recent metrics average the last 60 ticks; sampled once/second. Threshold deltas cover this benchmark, not the whole login."
|
||||||
|
local message
|
||||||
|
if data.sampledMeanMS then
|
||||||
|
local slow = data.ticksOver.CountTimeOver5Ms
|
||||||
|
message = string.format("Ruen CPU: sampled mean %.3f ms/tick; largest sampled recent average %.3f ms; ticks over 5 ms: %s.",
|
||||||
|
data.sampledMeanMS, data.maxSampledRecentMS, slow ~= nil and tostring(slow) or "unavailable")
|
||||||
|
else message = "Ruen CPU timing unavailable on this client; FPS alone cannot identify addon cost." end
|
||||||
|
if data.settingsChanged then message = message.." Graphics/calibration settings changed during this sample; comparison is inconclusive." end
|
||||||
|
return message
|
||||||
|
end
|
||||||
@ -21,10 +21,14 @@ end
|
|||||||
function P.StyleActionButton(button, prototype)
|
function P.StyleActionButton(button, prototype)
|
||||||
for _, kind in ipairs({"Normal", "Pushed", "Highlight", "Checked"}) do
|
for _, kind in ipairs({"Normal", "Pushed", "Highlight", "Checked"}) do
|
||||||
local source = region(prototype, kind)
|
local source = region(prototype, kind)
|
||||||
local atlas = source and source:GetAtlas() or defaults[kind]
|
local atlas = source and source:GetAtlas()
|
||||||
|
local texture = source and source:GetTexture()
|
||||||
local setter = button["Set" .. kind .. "Atlas"]
|
local setter = button["Set" .. kind .. "Atlas"]
|
||||||
if atlas and type(setter) == "function" then setter(button, atlas)
|
if atlas and type(setter) == "function" then setter(button, atlas)
|
||||||
elseif source and source:GetTexture() then button["Set" .. kind .. "Texture"](button, source:GetTexture())
|
elseif texture then button["Set" .. kind .. "Texture"](button, texture)
|
||||||
|
-- A native file texture is just as authoritative as an atlas. Falling
|
||||||
|
-- back before checking it replaces the Classic-style selection border.
|
||||||
|
elseif type(setter) == "function" then setter(button, defaults[kind])
|
||||||
end
|
end
|
||||||
local target = region(button, kind)
|
local target = region(button, kind)
|
||||||
if target then
|
if target then
|
||||||
|
|||||||
@ -995,19 +995,24 @@ end
|
|||||||
local function bench()
|
local function bench()
|
||||||
if ticker then say("An FPS sample is already running."); return end
|
if ticker then say("An FPS sample is already running."); return end
|
||||||
local samples, total, below = {}, 0, 0
|
local samples, total, below = {}, 0, 0
|
||||||
|
local diagnostics = P.StartBenchmarkDiagnostics()
|
||||||
say("Sampling FPS once per second for 3 minutes. Play normally and keep WoW focused.")
|
say("Sampling FPS once per second for 3 minutes. Play normally and keep WoW focused.")
|
||||||
ticker = C_Timer.NewTicker(1, function()
|
ticker = C_Timer.NewTicker(1, function()
|
||||||
local fps = GetFramerate()
|
local fps = GetFramerate()
|
||||||
samples[#samples + 1] = fps; total = total + fps
|
samples[#samples + 1] = fps; total = total + fps
|
||||||
if fps < 30 then below = below + 1 end
|
if fps < 30 then below = below + 1 end
|
||||||
|
P.SampleBenchmarkDiagnostics(diagnostics, fps)
|
||||||
if #samples == 180 then
|
if #samples == 180 then
|
||||||
ticker:Cancel(); ticker = nil
|
ticker:Cancel(); ticker = nil
|
||||||
table.sort(samples)
|
table.sort(samples)
|
||||||
local r = {time = time(), count = 180, mean = total / 180, minimum = samples[1], p10 = samples[18], below30 = below, note = "1-second FPS readings, not a per-frame 1% low"}
|
local r = {time = time(), count = 180, mean = total / 180, minimum = samples[1], p10 = samples[18], below30 = below, note = "1-second FPS readings, not a per-frame 1% low"}
|
||||||
|
local cpuMessage = P.FinishBenchmarkDiagnostics(diagnostics)
|
||||||
|
r.diagnostics = diagnostics
|
||||||
local reports = RuenUIDB.reports
|
local reports = RuenUIDB.reports
|
||||||
reports[#reports + 1] = r
|
reports[#reports + 1] = r
|
||||||
while #reports > 5 do table.remove(reports, 1) end
|
while #reports > 5 do table.remove(reports, 1) end
|
||||||
say(string.format("FPS sample: avg %.1f, minimum %.1f, 10th percentile %.1f; %d/180 readings below 30. Saved on logout/reload.", r.mean, r.minimum, r.p10, below))
|
say(string.format("FPS sample: avg %.1f, minimum %.1f, 10th percentile %.1f; %d/180 readings below 30. Saved on logout/reload.", r.mean, r.minimum, r.p10, below))
|
||||||
|
say(cpuMessage)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
local _, P = ...
|
local _, P = ...
|
||||||
P.version = 5
|
P.version = 5
|
||||||
P.release = "2026.11.21.6-beta.1"
|
P.release = "2026.11.21.7-beta.1"
|
||||||
P.graphicsVersion = 2
|
P.graphicsVersion = 2
|
||||||
P.layoutName = "Ruen UI - Clear ESDF"
|
P.layoutName = "Ruen UI - Clear ESDF"
|
||||||
function P.IsOurLayout(layout)
|
function P.IsOurLayout(layout)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
## Interface: 16001
|
## Interface: 16001
|
||||||
## Title: Ruen UI
|
## Title: Ruen UI
|
||||||
## Notes: ESDF, mouse and menu controls, inventory layout and Spoken language controls. /ruen help
|
## Notes: ESDF, mouse and menu controls, inventory layout and Spoken language controls. /ruen help
|
||||||
## Version: 2026.11.21.6-beta.1
|
## Version: 2026.11.21.7-beta.1
|
||||||
## Author: Ruen UI contributors
|
## Author: Ruen UI contributors
|
||||||
## SavedVariables: RuenUIDB
|
## SavedVariables: RuenUIDB
|
||||||
## SavedVariablesPerCharacter: RuenUICharacter
|
## SavedVariablesPerCharacter: RuenUICharacter
|
||||||
@ -25,5 +25,6 @@ DamageMeters.lua
|
|||||||
ClassAssist.lua
|
ClassAssist.lua
|
||||||
HardwareProfile.lua
|
HardwareProfile.lua
|
||||||
Optimizer.lua
|
Optimizer.lua
|
||||||
|
Benchmark.lua
|
||||||
AddonPresets.lua
|
AddonPresets.lua
|
||||||
Core.lua
|
Core.lua
|
||||||
|
|||||||
@ -26,6 +26,7 @@ CooldownViewer.lua
|
|||||||
CooldownViewerSettingsDataProvider.lua
|
CooldownViewerSettingsDataProvider.lua
|
||||||
ActionButtonUtil.lua
|
ActionButtonUtil.lua
|
||||||
Blizzard_SpellSearchUtil.lua
|
Blizzard_SpellSearchUtil.lua
|
||||||
|
AddOnProfilerConstantsDocumentation.lua
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -35,6 +36,7 @@ export RUEN_NATIVE_UI=/path/to/matching-native-fixtures
|
|||||||
luajit tests/check-layout.lua "$PWD/RuenUI/" unused /tmp/ruen-matrix.txt
|
luajit tests/check-layout.lua "$PWD/RuenUI/" unused /tmp/ruen-matrix.txt
|
||||||
luajit tests/check-pet-actions.lua "$PWD/RuenUI/"
|
luajit tests/check-pet-actions.lua "$PWD/RuenUI/"
|
||||||
luajit tests/check-meter.lua "$PWD/RuenUI/"
|
luajit tests/check-meter.lua "$PWD/RuenUI/"
|
||||||
|
luajit tests/check-benchmark.lua "$PWD/RuenUI/"
|
||||||
luajit tests/check-timers-optimizer.lua "$PWD/RuenUI/"
|
luajit tests/check-timers-optimizer.lua "$PWD/RuenUI/"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# Установка Ruen UI — бета
|
# Установка Ruen UI — бета
|
||||||
|
|
||||||
1. Установите **WoW: Forever** через Battle.net и дождитесь окончания загрузки.
|
1. Установите **WoW: Forever** через Battle.net и дождитесь окончания загрузки.
|
||||||
2. Откройте [Releases](https://scm.bstein.dev/bstein/ruen-ui/releases) и скачайте **Ruen-UI-2026.11.21.6-beta.1.zip**. Для скачивания регистрация не нужна.
|
2. Откройте [Releases](https://scm.bstein.dev/bstein/ruen-ui/releases) и скачайте **Ruen-UI-2026.11.21.7-beta.1.zip**. Для скачивания регистрация не нужна.
|
||||||
3. Полностью распакуйте ZIP. Закройте WoW.
|
3. Полностью распакуйте ZIP. Закройте WoW.
|
||||||
4. Для русского варианта запустите **Install-Russian.cmd**. Обычная установка: **Ruen-Setup.exe**. Установщик сам ищет игру; если нужно, укажите папку `_forever_`, в которой находится `Wow.exe`.
|
4. Для русского варианта запустите **Install-Russian.cmd**. Обычная установка: **Ruen-Setup.exe**. Установщик сам ищет игру; если нужно, укажите папку `_forever_`, в которой находится `Wow.exe`.
|
||||||
5. В Battle.net выберите WoW: Forever → шестерёнка → изменение установки. Установите английские и русские файлы игры. Выберите русский язык текста и речи в настройках **игры**, а не приложения Battle.net. Дождитесь 100% загрузки.
|
5. В Battle.net выберите WoW: Forever → шестерёнка → изменение установки. Установите английские и русские файлы игры. Выберите русский язык текста и речи в настройках **игры**, а не приложения Battle.net. Дождитесь 100% загрузки.
|
||||||
@ -34,4 +34,4 @@
|
|||||||
|
|
||||||
Панель питомца — это **10 стандартных ячеек и 2 расширения** с использованием свободных ячеек второй страницы панели действий. Игра не получает дополнительные стандартные ячейки питомца. Если свободных ячеек нет, Ruen сообщает об этом и не затирает существующие способности.
|
Панель питомца — это **10 стандартных ячеек и 2 расширения** с использованием свободных ячеек второй страницы панели действий. Игра не получает дополнительные стандартные ячейки питомца. Если свободных ячеек нет, Ruen сообщает об этом и не затирает существующие способности.
|
||||||
|
|
||||||
После обновления проверьте `/ruen status`, цифровые клавиши, смену защитной/пассивной стойки, вызов питомца и сумки при выбранной цели. Для сравнения FPS запустите `/ruen bench` и три минуты играйте, не переключаясь в другое окно: фоновое ограничение FPS иначе исказит результат. Подробные ограничения беты: [RELEASE-REVIEW.md](RELEASE-REVIEW.md).
|
После обновления проверьте `/ruen status`, цифровые клавиши, смену защитной/пассивной стойки, вызов питомца и сумки при выбранной цели. Для сравнения FPS запустите `/ruen bench` и три минуты играйте, не переключаясь в другое окно: фоновое ограничение FPS иначе исказит результат. Следующая строка показывает время CPU Ruen, если встроенный профилировщик доступен. При рывках сообщите обе строки; измерение не меняет настройки графики. Подробные ограничения беты: [RELEASE-REVIEW.md](RELEASE-REVIEW.md).
|
||||||
|
|||||||
@ -68,7 +68,7 @@ Run while playing a representative area, with the laptop powered and cooled as y
|
|||||||
python3 Ruen-Setup --wow '/path/to/_forever_' --optimize 30 --seconds 600
|
python3 Ruen-Setup --wow '/path/to/_forever_' --optimize 30 --seconds 600
|
||||||
```
|
```
|
||||||
|
|
||||||
The FPS target defaults to 60 (accepted range 20–240). Type `/reload` afterward to import the local hardware report. `/ruen bench` collects 180 one-second FPS readings: keep WoW focused for the full three minutes, since the background FPS cap can otherwise contaminate the result. Compare the same route, graphics settings and window size. This is not a per-frame 1% low. World and raid settings learn separately; a quiet outdoor sample cannot establish raid performance. Missing temperature/throttling counters are reported as unavailable, not proof of safe temperatures. `/ruen optimize status`, `pause`, `resume`, and `restore` control in-game calibration. No stress test or driver installation is performed.
|
The FPS target defaults to 60 (accepted range 20–240). Type `/reload` afterward to import the local hardware report. `/ruen bench` collects 180 one-second FPS readings: keep WoW focused for the full three minutes, since the background FPS cap can otherwise contaminate the result. Compare the same route, graphics settings and window size. This is not a per-frame 1% low. The next line reports Ruen CPU time from the built-in profiler when available; share both lines when investigating stutter. The saved report includes slow-tick deltas and start/end graphics settings. These diagnostics run only during the manual benchmark and do not alter settings. World and raid settings learn separately; a quiet outdoor sample cannot establish raid performance. Missing temperature/throttling counters are reported as unavailable, not proof of safe temperatures. `/ruen optimize status`, `pause`, `resume`, and `restore` control in-game calibration. No stress test or driver installation is performed.
|
||||||
|
|
||||||
## Undo
|
## Undo
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
# Release review — 2026.11.21.6-beta.1
|
# Release review — 2026.11.21.7-beta.1
|
||||||
|
|
||||||
Reviewed 21 November 2026. **Suitable for an opt-in public beta, not a general-availability certification.** This update coordinates pet presentation, character controls and layout reservations. Earlier gameplay confirmations apply to the earlier builds, not automatically to these changes. The current checks below were rerun against this candidate.
|
Reviewed 21 November 2026. **Suitable for an opt-in public beta, not a general-availability certification.** This follow-up corrects a native-texture selection regression and adds bounded CPU diagnostics to the manual FPS benchmark. The coordinated character/layout update is retained. Earlier gameplay confirmations apply to the earlier builds, not automatically to these changes. The current checks below were rerun against this candidate.
|
||||||
|
|
||||||
## Coordinated update
|
## Coordinated update
|
||||||
|
|
||||||
- Custom pet extensions copy native named texture regions, including selected-state geometry, opacity and blend mode. They display the engine's active command, rather than remembering the last click; Passive/Defensive/Aggressive selections remain mutually exclusive. Attack gets its separate flash treatment.
|
- Custom pet extensions copy native named texture regions, including selected-state geometry, opacity and blend mode. The preceding beta still chose a generic atlas when both atlas setters and native file textures existed; the corrected regression fixture now reproduces this live-client shape. They display the engine's active command, rather than remembering the last click; Passive/Defensive/Aggressive selections remain mutually exclusive. Attack gets its separate flash treatment.
|
||||||
- Number-key profiles are per character. Hunters/Warlocks default to pets on plain numbers; the other seven classes default to utility actions. Secure, non-priority overrides leave account bindings intact and hand off during possession/vehicles. Custom assignments win. Pet dismissal, rogue stealth and druid forms do not flip the profile.
|
- Number-key profiles are per character. Hunters/Warlocks default to pets on plain numbers; the other seven classes default to utility actions. Secure, non-priority overrides leave account bindings intact and hand off during possession/vehicles. Custom assignments win. Pet dismissal, rogue stealth and druid forms do not flip the profile.
|
||||||
- Role-aware mouseover defaults use a reported specialization/assigned role or an explicit choice. Unknown roles do not imply healing. Existing effective choices survive migration. Group-role changes are observed without polling.
|
- Role-aware mouseover defaults use a reported specialization/assigned role or an explicit choice. Unknown roles do not imply healing. Existing effective choices survive migration. Group-role changes are observed without polling.
|
||||||
- Cooldown/meter choices migrate from account defaults to character settings. New characters start with duplicate cooldown viewers off. Existing characters keep their selections; auto meters remain dungeon/raid only.
|
- Cooldown/meter choices migrate from account defaults to character settings. New characters start with duplicate cooldown viewers off. Existing characters keep their selections; auto meters remain dungeon/raid only.
|
||||||
@ -55,6 +55,7 @@ The common 96-button action layout is retained. It provides capacity, not automa
|
|||||||
| Damage meter | Native timer/visibility code with tracked-taint simulation passed 1,000 combat starts; no direct writes to native visibility state or calls to its refresh methods. PvE auto, PvP exclusion, manual modes, no-room recovery and combat deferral passed. The previous live error was also reported resolved after reload. |
|
| Damage meter | Native timer/visibility code with tracked-taint simulation passed 1,000 combat starts; no direct writes to native visibility state or calls to its refresh methods. PvE auto, PvP exclusion, manual modes, no-room recovery and combat deferral passed. The previous live error was also reported resolved after reload. |
|
||||||
| Audio | 94 checks against the pinned Gun Silencer Forever code and Ruen bridge passed, including default volume, existing choices, off/restore, failed playback and missing dependency. |
|
| Audio | 94 checks against the pinned Gun Silencer Forever code and Ruen bridge passed, including default volume, existing choices, off/restore, failed playback and missing dependency. |
|
||||||
| Timers/optimization | Swing lanes, idle sleep, secret values, world/raid separation, frame sampling, thermal input, pause and undo tests passed. No native Windows hardware/thermal validation is claimed. |
|
| Timers/optimization | Swing lanes, idle sleep, secret values, world/raid separation, frame sampling, thermal input, pause and undo tests passed. No native Windows hardware/thermal validation is claimed. |
|
||||||
|
| Benchmark diagnostics | Native profiler API availability/opaque values, per-run slow-tick deltas, 180-reading bound, low-FPS attribution, graphics-change warnings and zero automatic/idle work tested. Recent timing is a rolling 60-tick mean, not an exact per-frame maximum. |
|
||||||
| Privacy/package | First-party allowlist, blank hardware defaults, dependency-license review and scan for local paths/account data. Only legacy migration identifiers retain the former addon name. Release ZIP has a per-file SHA-256 manifest and a separate ZIP checksum. |
|
| Privacy/package | First-party allowlist, blank hardware defaults, dependency-license review and scan for local paths/account data. Only legacy migration identifiers retain the former addon name. Release ZIP has a per-file SHA-256 manifest and a separate ZIP checksum. |
|
||||||
|
|
||||||
Environments: solo, outdoor party, dungeon, 10/20/40-player raid and 10/40-player battleground. Displays: 1280×720, 1366×768, 1920×1080 at two scales, 2560×1440 at two scales and 3840×2160 at two scales.
|
Environments: solo, outdoor party, dungeon, 10/20/40-player raid and 10/40-player battleground. Displays: 1280×720, 1366×768, 1920×1080 at two scales, 2560×1440 at two scales and 3840×2160 at two scales.
|
||||||
@ -67,7 +68,7 @@ These are code and simulation findings. They do **not** guarantee an FPS budget,
|
|||||||
|
|
||||||
The added character profile and style helpers have no idle polling loop. Native button changes and role/binding events drive their work; repeated bindings use a cached signature. Selected-state updates do not write action slots. A pure Lua geometry microbenchmark is retained in `tests/benchmark-layout.lua`; it is not a game FPS benchmark and does not establish GPU/thermal behavior.
|
The added character profile and style helpers have no idle polling loop. Native button changes and role/binding events drive their work; repeated bindings use a cached signature. Selected-state updates do not write action slots. A pure Lua geometry microbenchmark is retained in `tests/benchmark-layout.lua`; it is not a game FPS benchmark and does not establish GPU/thermal behavior.
|
||||||
|
|
||||||
The focused local pre-update sample reported **56.1 FPS average, 47.5 minimum, 52.9 at the tenth percentile, and 0/180 readings below 30**. A preceding sample with uncertain window focus reached the configured 15 FPS background cap and was excluded as a reliable baseline. These are user-reported, one-second FPS readings, not per-frame lows. A matched post-update sample is pending; no FPS improvement is claimed. A hardware snapshot showed heavy GPU utilization without active GPU thermal slowdown; one snapshot cannot rule out intermittent throttling.
|
The focused local pre-update sample reported **56.1 FPS average, 47.5 minimum, 52.9 at the tenth percentile, and 0/180 readings below 30**. A preceding sample with uncertain window focus reached the configured 15 FPS background cap and was excluded as a reliable baseline. These are user-reported, one-second FPS readings, not per-frame lows. The user then reported a focused, comparable post-update run: **53.1 average, 21.4 minimum, 35.9 tenth percentile, 13/180 below 30**. This is an unresolved performance regression signal, not a passing gate. Its cause has not yet been attributed to Ruen, another addon or rendering/system load. No FPS improvement or performance parity is claimed. The follow-up benchmark samples the existing native profiler once per second and records per-run slow-tick counter deltas plus start/end graphics settings. It neither enables the expensive legacy script profiler nor changes graphics. The additional data still needs a live run. A hardware snapshot showed heavy GPU utilization without active GPU thermal slowdown; one snapshot cannot rule out intermittent throttling.
|
||||||
|
|
||||||
## Intentional overlap and capacity limits
|
## Intentional overlap and capacity limits
|
||||||
|
|
||||||
@ -80,9 +81,9 @@ The focused local pre-update sample reported **56.1 FPS average, 47.5 minimum, 5
|
|||||||
## Remaining beta checks
|
## Remaining beta checks
|
||||||
|
|
||||||
- Clean Windows 10/11 installation, launcher double-click, custom game path, narration downloads and real rollback on the destination machine.
|
- Clean Windows 10/11 installation, launcher double-click, custom game path, narration downloads and real rollback on the destination machine.
|
||||||
- Live confirmation of this update's pet artwork, character binding overrides, activation/autocast on both extra buttons across pet types, including combat and pet swaps. Earlier bugs demonstrate why native simulation alone is insufficient.
|
- The user confirmed that both extra pet actions work in beta 6, but selected-stance artwork remained incorrect. The native texture/atlas fix in this follow-up still needs live visual confirmation. Other pet types, autocast, pet swaps and live secure binding handoff remain incompletely tested.
|
||||||
- Live level-60 class/spec coverage and crowded raids/BGs, particularly healer mouseover workflows and low-resolution displays.
|
- Live level-60 class/spec coverage and crowded raids/BGs, particularly healer mouseover workflows and low-resolution displays.
|
||||||
- Sustained performance and available thermal telemetry on the destination laptop.
|
- Investigate the worse focused local FPS result with native addon CPU data; performance verification remains open. Sustained performance and available thermal telemetry on the destination laptop also remain untested.
|
||||||
- Other addon combinations, arbitrary aspect ratios, accessibility font sizes and all simultaneous window combinations.
|
- Other addon combinations, arbitrary aspect ratios, accessibility font sizes and all simultaneous window combinations.
|
||||||
|
|
||||||
Cooldown displays only expose lists supplied by WoW; they are not exhaustive or identical across classes. English audio selection is Alliance + Shared. Russian narration can fall back to installed English. Battle.net game-language choices can override an addon request and may need matching manually.
|
Cooldown displays only expose lists supplied by WoW; they are not exhaustive or identical across classes. English audio selection is Alliance + Shared. Russian narration can fall back to installed English. Battle.net game-language choices can override an addon request and may need matching manually.
|
||||||
|
|||||||
@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[1]
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
VERSION = '2026.11.21.6-beta.1'
|
VERSION = '2026.11.21.7-beta.1'
|
||||||
FILES = ['Ruen-Setup', 'Ruen-Setup.exe', 'Install-Ruen-UI.ps1', 'Install-Ruen-UI.cmd',
|
FILES = ['Ruen-Setup', 'Ruen-Setup.exe', 'Install-Ruen-UI.ps1', 'Install-Ruen-UI.cmd',
|
||||||
'Install-Ruen-UI-Russian.cmd', 'Install-Windows.cmd', 'Install-Russian.cmd',
|
'Install-Ruen-UI-Russian.cmd', 'Install-Windows.cmd', 'Install-Russian.cmd',
|
||||||
'Optimize-Ruen-UI.ps1', 'dependencies.lock.json', 'README.md', 'LICENSE',
|
'Optimize-Ruen-UI.ps1', 'dependencies.lock.json', 'README.md', 'LICENSE',
|
||||||
|
|||||||
@ -28,6 +28,7 @@ def main():
|
|||||||
('layout', ['luajit', 'tests/check-layout.lua', addon, 'unused', str(args.output.resolve() / 'matrix.txt')]),
|
('layout', ['luajit', 'tests/check-layout.lua', addon, 'unused', str(args.output.resolve() / 'matrix.txt')]),
|
||||||
('meter', ['luajit', 'tests/check-meter.lua', addon]),
|
('meter', ['luajit', 'tests/check-meter.lua', addon]),
|
||||||
('timers-optimizer', ['luajit', 'tests/check-timers-optimizer.lua', addon]),
|
('timers-optimizer', ['luajit', 'tests/check-timers-optimizer.lua', addon]),
|
||||||
|
('benchmark', ['luajit', 'tests/check-benchmark.lua', addon]),
|
||||||
('audio', ['luajit', 'tests/check-gun-audio.lua', str(args.audio_fixtures.resolve())]),
|
('audio', ['luajit', 'tests/check-gun-audio.lua', str(args.audio_fixtures.resolve())]),
|
||||||
('installers', [sys.executable, '-m', 'unittest', 'discover', '-s', 'tests', '-v']),
|
('installers', [sys.executable, '-m', 'unittest', 'discover', '-s', 'tests', '-v']),
|
||||||
]
|
]
|
||||||
|
|||||||
56
tests/check-benchmark.lua
Normal file
56
tests/check-benchmark.lua
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
local root=assert(arg[1])
|
||||||
|
local P={release='test'}
|
||||||
|
local cvars={maxFPS='60',maxFPSBk='15'}
|
||||||
|
RuenUIDB={optimizer={enabled=true,profiles={world={tier=2,calibrated=true}}}}
|
||||||
|
C_CVar={GetCVar=function(k)return cvars[k]end,SetCVar=function()error('benchmark must not change graphics')end}
|
||||||
|
function GetPhysicalScreenSize()return 1920,1080 end
|
||||||
|
-- No frame creation, timer, expensive script profiler or idle work is allowed.
|
||||||
|
function CreateFrame()error('benchmark must reuse the existing manual ticker')end
|
||||||
|
local opaque={};function issecretvalue(v)return v==opaque end
|
||||||
|
Enum={};APIDocumentation={AddDocumentationTable=function(_,d)
|
||||||
|
for _,t in ipairs(d.Tables or {})do if t.Type=='Enumeration'then
|
||||||
|
Enum[t.Name]={};for _,f in ipairs(t.Fields)do Enum[t.Name][f.Name]=f.EnumValue end
|
||||||
|
end end
|
||||||
|
end}
|
||||||
|
dofile(assert(os.getenv('RUEN_NATIVE_UI'))..'/AddOnProfilerConstantsDocumentation.lua')
|
||||||
|
local E=Enum.AddOnProfilerMetric
|
||||||
|
local readings={[E.RecentAverageTime]=.1,[E.CountTimeOver1Ms]=70,[E.CountTimeOver5Ms]=50,[E.CountTimeOver10Ms]=20,[E.CountTimeOver50Ms]=10}
|
||||||
|
local calls,topCalls=0,0
|
||||||
|
C_AddOnProfiler={IsEnabled=function()return true end,
|
||||||
|
GetAddOnMetric=function(name,k)assert(name=='RuenUI');calls=calls+1;return readings[k]end,
|
||||||
|
GetOverallMetric=function(k)assert(k==E.RecentAverageTime);return .4 end,
|
||||||
|
GetTopKAddOnsForMetric=function(k,n)assert(k==E.RecentAverageTime and n==3);topCalls=topCalls+1;return {{addOnName='Other',metricValue=.3}}end}
|
||||||
|
assert(loadfile(root..'Benchmark.lua'))('RuenUI',P)
|
||||||
|
assert(calls==0,'loading diagnostics started profiler work')
|
||||||
|
local d=P.StartBenchmarkDiagnostics()
|
||||||
|
for i=1,180 do
|
||||||
|
readings[E.RecentAverageTime]=i<=90 and .1 or .3
|
||||||
|
P.SampleBenchmarkDiagnostics(d,i<=167 and 60 or 25)
|
||||||
|
end
|
||||||
|
local before=calls;P.SampleBenchmarkDiagnostics(d,25)
|
||||||
|
assert(calls==before and #d.samples==180 and topCalls==13,'unbounded capture or top-addon scans')
|
||||||
|
readings[E.CountTimeOver5Ms]=53
|
||||||
|
local message=P.FinishBenchmarkDiagnostics(d)
|
||||||
|
assert(math.abs(d.sampledMeanMS-.2)<.0001 and d.maxSampledRecentMS==.3)
|
||||||
|
assert(d.ticksOver.CountTimeOver5Ms==3 and not d.settingsChanged,'used whole-session slow count')
|
||||||
|
assert(message:find('ticks over 5 ms: 3',1,true))
|
||||||
|
assert(d.samples[180].fps==25 and d.samples[180].allAddonsRecentMS==.4 and d.samples[180].topAddons)
|
||||||
|
assert(d.release=='test' and d.settingsStart.width==1920)
|
||||||
|
local changed=P.StartBenchmarkDiagnostics();cvars.maxFPS='72'
|
||||||
|
P.FinishBenchmarkDiagnostics(changed);assert(changed.settingsChanged and changed.settingsStart.maxFPS=='60')
|
||||||
|
-- Disabled/missing/restricted profiler never turns an FPS run into a Lua error
|
||||||
|
-- or invents a zero-cost report. Reset counters do not become negative counts.
|
||||||
|
for _,mode in ipairs({'disabled','missing','throws','opaque','nan'})do
|
||||||
|
local api=C_AddOnProfiler
|
||||||
|
if mode=='disabled'then C_AddOnProfiler={IsEnabled=function()return false end}
|
||||||
|
elseif mode=='missing'then C_AddOnProfiler=nil
|
||||||
|
elseif mode=='throws'then C_AddOnProfiler={GetAddOnMetric=function()error('unavailable')end}
|
||||||
|
elseif mode=='opaque'then C_AddOnProfiler={GetAddOnMetric=function()return opaque end}
|
||||||
|
else C_AddOnProfiler={GetAddOnMetric=function()return 0/0 end}end
|
||||||
|
local no=P.StartBenchmarkDiagnostics();P.SampleBenchmarkDiagnostics(no,25)
|
||||||
|
assert(P.FinishBenchmarkDiagnostics(no):find('unavailable') and not no.sampledMeanMS)
|
||||||
|
C_AddOnProfiler=api
|
||||||
|
end
|
||||||
|
local reset=P.StartBenchmarkDiagnostics();readings[E.CountTimeOver5Ms]=1
|
||||||
|
P.FinishBenchmarkDiagnostics(reset);assert(reset.ticksOver.CountTimeOver5Ms==nil)
|
||||||
|
print('PASS: bounded native profiler snapshots, per-benchmark slow-tick deltas, low-FPS attribution, graphics-change detection, unavailable/opaque data and no idle or graphics writes')
|
||||||
@ -252,7 +252,7 @@ assert(loadfile(root..'CharacterProfiles.lua'))('RuenUI',P)
|
|||||||
assert(loadfile(root..'LayoutPolicy.lua'))('RuenUI',P)
|
assert(loadfile(root..'LayoutPolicy.lua'))('RuenUI',P)
|
||||||
assert(loadfile(root..'Brand.lua'))('RuenUI',P)
|
assert(loadfile(root..'Brand.lua'))('RuenUI',P)
|
||||||
assert(loadfile(root..'ClassLayout.lua'))('RuenUI',P)
|
assert(loadfile(root..'ClassLayout.lua'))('RuenUI',P)
|
||||||
for _,file in ipairs({'ButtonStyle.lua','PetExtras.lua','SwingTimers.lua','ExtraBars.lua','OverlayLayout.lua','DamageMeters.lua','ClassAssist.lua','HardwareProfile.lua','Optimizer.lua','GunAudio.lua'}) do assert(loadfile(root..file))('RuenUI',P) end
|
for _,file in ipairs({'ButtonStyle.lua','PetExtras.lua','SwingTimers.lua','ExtraBars.lua','OverlayLayout.lua','DamageMeters.lua','ClassAssist.lua','HardwareProfile.lua','Optimizer.lua','GunAudio.lua','Benchmark.lua'}) do assert(loadfile(root..file))('RuenUI',P) end
|
||||||
local available={'JUMP','TARGETNEARESTENEMY','TARGETPREVIOUSENEMY'}
|
local available={'JUMP','TARGETNEARESTENEMY','TARGETPREVIOUSENEMY'}
|
||||||
for _,entry in ipairs(P.menuBindings) do available[#available+1]=entry[2] end
|
for _,entry in ipairs(P.menuBindings) do available[#available+1]=entry[2] end
|
||||||
function GetNumBindings() return #available end
|
function GetNumBindings() return #available end
|
||||||
@ -1610,3 +1610,25 @@ do
|
|||||||
edit.shown=false;tab.shown=false
|
edit.shown=false;tab.shown=false
|
||||||
print('PASS: shared obstacle reservations cover chat input/tabs and native profession/spellbook/map/character/auction panels without moving them')
|
print('PASS: shared obstacle reservations cover chat input/tabs and native profession/spellbook/map/character/auction panels without moving them')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Exercise the real slash-command/ticker integration with no native profiler.
|
||||||
|
do
|
||||||
|
local tick,count,cancelled
|
||||||
|
C_Timer.NewTicker=function(seconds,fn)
|
||||||
|
assert(seconds==1);count=(count or 0)+1;tick=fn;cancelled=false
|
||||||
|
return {Cancel=function()cancelled=true end}
|
||||||
|
end
|
||||||
|
function GetFramerate()return 55 end
|
||||||
|
local before=CopyTable(cvars)
|
||||||
|
for run=1,7 do
|
||||||
|
SlashCmdList.RUENUI('bench');SlashCmdList.RUENUI('bench')
|
||||||
|
assert(count==run,'duplicate benchmark ticker')
|
||||||
|
for i=1,180 do tick()end
|
||||||
|
assert(cancelled and #RuenUIDB.reports<=5,'ticker/report retention leak')
|
||||||
|
local report=RuenUIDB.reports[#RuenUIDB.reports]
|
||||||
|
assert(report.mean==55 and report.count==180 and #report.diagnostics.samples==180)
|
||||||
|
assert(report.diagnostics.release==P.release)
|
||||||
|
end
|
||||||
|
assert(eq(cvars,before),'benchmark changed graphics')
|
||||||
|
print('PASS: real bench command, one ticker, 180 readings, CPU diagnostics attached, five-report limit and no graphics changes')
|
||||||
|
end
|
||||||
|
|||||||
@ -28,7 +28,8 @@ local function frame(name,parent)
|
|||||||
function f:GetID()return 0 end
|
function f:GetID()return 0 end
|
||||||
function f:SetTexture(t)self.texture=t end
|
function f:SetTexture(t)self.texture=t end
|
||||||
function f:GetTexture()return self.texture end
|
function f:GetTexture()return self.texture end
|
||||||
function f:GetAtlas()return nil end
|
function f:GetAtlas()return self.atlas end
|
||||||
|
function f:SetAtlas(v)self.atlas=v;self.texture='atlas-file-'..v end
|
||||||
function f:SetAlpha(v)self.alpha=v end
|
function f:SetAlpha(v)self.alpha=v end
|
||||||
function f:GetBlendMode()return self.blend or 'BLEND'end
|
function f:GetBlendMode()return self.blend or 'BLEND'end
|
||||||
function f:SetBlendMode(v)self.blend=v end
|
function f:SetBlendMode(v)self.blend=v end
|
||||||
@ -53,6 +54,9 @@ local function frame(name,parent)
|
|||||||
for _,kind in ipairs({'Normal','Pushed','Highlight','Checked'})do
|
for _,kind in ipairs({'Normal','Pushed','Highlight','Checked'})do
|
||||||
f['Get'..kind..'Texture']=function(self)return self[kind]end
|
f['Get'..kind..'Texture']=function(self)return self[kind]end
|
||||||
f['Set'..kind..'Texture']=function(self,t)self[kind]=frame(nil,self);self[kind].texture=t;self[kind..'Texture']=self[kind] end
|
f['Set'..kind..'Texture']=function(self,t)self[kind]=frame(nil,self);self[kind].texture=t;self[kind..'Texture']=self[kind] end
|
||||||
|
-- Live buttons expose BOTH setters. Omitting atlas setters hid the bug where
|
||||||
|
-- a texture-backed native highlight was replaced by the fallback atlas.
|
||||||
|
f['Set'..kind..'Atlas']=function(self,t)self[kind]=frame(nil,self);self[kind]:SetAtlas(t);self[kind..'Texture']=self[kind] end
|
||||||
end
|
end
|
||||||
frames[#frames+1]=f;if name then _G[name]=f end;return f
|
frames[#frames+1]=f;if name then _G[name]=f end;return f
|
||||||
end
|
end
|
||||||
@ -197,6 +201,14 @@ assert(a.AutoCastOverlay.auto and a.cooldown.cd[2]==5)
|
|||||||
assert(a.Normal.texture=='native-Normal' and a.Checked.texture=='native-Checked','missing getter must use native named selected region, not generic glow')
|
assert(a.Normal.texture=='native-Normal' and a.Checked.texture=='native-Checked','missing getter must use native named selected region, not generic glow')
|
||||||
assert(a.Checked.alpha==1 and a.Checked.blend==PetActionButton1.Checked:GetBlendMode(),'selected artwork opacity/blending mismatch')
|
assert(a.Checked.alpha==1 and a.Checked.blend==PetActionButton1.Checked:GetBlendMode(),'selected artwork opacity/blending mismatch')
|
||||||
assert(a.Checked.points[1][1]=='TOPLEFT' and a.Checked.layer[1]=='OVERLAY','native artwork anchor/layer mismatch')
|
assert(a.Checked.points[1][1]=='TOPLEFT' and a.Checked.layer[1]=='OVERLAY','native artwork anchor/layer mismatch')
|
||||||
|
-- A modern atlas remains authoritative too; fallback art is used only when
|
||||||
|
-- neither a native atlas nor a native file texture exists.
|
||||||
|
local prototype,probe=frame(),frame()
|
||||||
|
prototype:SetCheckedAtlas('native-selected-atlas')
|
||||||
|
P.StyleActionButton(probe,prototype)
|
||||||
|
assert(probe.Checked:GetAtlas()=='native-selected-atlas','native atlas replaced by fallback')
|
||||||
|
P.StyleActionButton(probe,nil)
|
||||||
|
assert(probe.Checked:GetAtlas()=='UI-HUD-ActionBar-IconFrame-Mouseover','missing-art fallback unavailable')
|
||||||
assert(a.clicks[1]=='AnyDown' and a.clicks[2]=='AnyUp')
|
assert(a.clicks[1]=='AnyDown' and a.clicks[2]=='AnyUp')
|
||||||
PetActionBar:Hide();assert(not a:IsShown() and not b:IsShown(),'petless/vehicle visibility must follow native bar');PetActionBar:Show()
|
PetActionBar:Hide();assert(not a:IsShown() and not b:IsShown(),'petless/vehicle visibility must follow native bar');PetActionBar:Show()
|
||||||
local listener
|
local listener
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user