Skip to content

Commit ba204d9

Browse files
alex-spataruclaude
andcommitted
@
fix: hide dashboard header in runtime mode; always apply Windows perf boost Drop the compat-shim opt-out from the Windows performance path so the HIGH priority boost and MMCSS ingest registration always apply, and hide the Dashboard pane header when running in runtime mode. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> @
1 parent cc45a92 commit ba204d9

3 files changed

Lines changed: 4 additions & 18 deletions

File tree

app/qml/MainWindow/Panes/Dashboard/DashboardLayout.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Widgets.Pane {
3636

3737
title: qsTr("Dashboard")
3838
icon: "qrc:/icons/panes/dashboard.svg"
39-
headerVisible: mainWindow.toolbarBarShown && !isExternalWindow
39+
headerVisible: mainWindow.toolbarBarShown && !isExternalWindow && !app.runtimeMode
4040

4141
//
4242
// Required data inputs

app/rcc/ai/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

app/src/Platform/AppPlatform.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -266,22 +266,11 @@ static void enableWorkingSetPrivilege()
266266
}
267267

268268
/**
269-
* @brief True when the loader launched us under a Windows compatibility shim (it exports
270-
* __COMPAT_LAYER): legacy compat scheduling makes the priority/MMCSS boosts starve DWM.
271-
*/
272-
[[nodiscard]] static bool runningUnderCompatibilityShim()
273-
{
274-
return GetEnvironmentVariableW(L"__COMPAT_LAYER", nullptr, 0) > 0;
275-
}
276-
277-
/**
278-
* @brief Opts the process out of EcoQoS throttling and prevents idle sleep; the process-wide
279-
* HIGH priority boost is skipped under a compat shim where it crawls the desktop.
269+
* @brief Opts the process out of EcoQoS throttling and prevents idle sleep.
280270
*/
281271
static void enableWindowsPerformanceMode()
282272
{
283-
if (!runningUnderCompatibilityShim())
284-
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
273+
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
285274

286275
# if defined(PROCESS_POWER_THROTTLING_CURRENT_VERSION)
287276
PROCESS_POWER_THROTTLING_STATE state = {};
@@ -569,9 +558,6 @@ bool lockMemoryResident(const void* ptr, size_t len)
569558
void registerIngestThreadWithMmcss()
570559
{
571560
#if defined(Q_OS_WIN)
572-
if (runningUnderCompatibilityShim())
573-
return;
574-
575561
static bool registered = false;
576562
if (registered)
577563
return;

0 commit comments

Comments
 (0)