mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Add some HDR related debug data and support info.
This commit is contained in:
parent
aebd22ed64
commit
7b2e82b27f
4 changed files with 96 additions and 28 deletions
|
|
@ -4,18 +4,57 @@ using ImGuiNET;
|
|||
using OtterGui;
|
||||
using OtterGui.Services;
|
||||
using OtterGui.Text;
|
||||
using Penumbra.Interop.Hooks;
|
||||
using Penumbra.Interop.Hooks.PostProcessing;
|
||||
using Penumbra.Services;
|
||||
|
||||
namespace Penumbra.UI.Tabs.Debug;
|
||||
|
||||
public class RenderTargetDrawer(RenderTargetHdrEnabler renderTargetHdrEnabler) : IUiService
|
||||
public class RenderTargetDrawer(RenderTargetHdrEnabler renderTargetHdrEnabler, DalamudConfigService dalamudConfig, Configuration config) : IUiService
|
||||
{
|
||||
private void DrawStatistics()
|
||||
{
|
||||
using (ImUtf8.Group())
|
||||
{
|
||||
ImUtf8.Text("Wait For Plugins (Now)");
|
||||
ImUtf8.Text("Wait For Plugins (First Launch)");
|
||||
|
||||
ImUtf8.Text("HDR Enabled (Now)");
|
||||
ImUtf8.Text("HDR Enabled (First Launch)");
|
||||
|
||||
ImUtf8.Text("HDR Hook Overriden (Now)");
|
||||
ImUtf8.Text("HDR Hook Overriden (First Launch)");
|
||||
|
||||
ImUtf8.Text("HDR Detour Called");
|
||||
ImUtf8.Text("Penumbra Reload Count");
|
||||
}
|
||||
ImGui.SameLine();
|
||||
using (ImUtf8.Group())
|
||||
{
|
||||
ImUtf8.Text($"{(dalamudConfig.GetDalamudConfig(DalamudConfigService.WaitingForPluginsOption, out bool w) ? w.ToString() : "Unknown")}");
|
||||
ImUtf8.Text($"{renderTargetHdrEnabler.FirstLaunchWaitForPluginsState?.ToString() ?? "Unknown"}");
|
||||
|
||||
ImUtf8.Text($"{config.HdrRenderTargets}");
|
||||
ImUtf8.Text($"{renderTargetHdrEnabler.FirstLaunchHdrState}");
|
||||
|
||||
ImUtf8.Text($"{HookOverrides.Instance.PostProcessing.RenderTargetManagerInitialize}");
|
||||
ImUtf8.Text($"{!renderTargetHdrEnabler.FirstLaunchHdrHookOverrideState}");
|
||||
|
||||
ImUtf8.Text($"{renderTargetHdrEnabler.HdrEnabledSuccess}");
|
||||
ImUtf8.Text($"{renderTargetHdrEnabler.PenumbraReloadCount}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Draw information about render targets. </summary>
|
||||
public unsafe void Draw()
|
||||
{
|
||||
if (!ImUtf8.CollapsingHeader("Render Targets"u8))
|
||||
return;
|
||||
|
||||
DrawStatistics();
|
||||
ImUtf8.Dummy(0);
|
||||
ImGui.Separator();
|
||||
ImUtf8.Dummy(0);
|
||||
var report = renderTargetHdrEnabler.TextureReport;
|
||||
if (report == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue