tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 2e834c389bb28e1bd3de9b818c75ad059de54bf5
parent 90cc8fffc1ed1516b664cffe09943b8e646f6a71
Author: Brad Werth <werth@efn.org>
Date:   Thu, 13 Nov 2025 00:43:15 +0000

Bug 1985327 Part 1: Elevate the priority of gpu process at process launch. r=gfx-reviewers,lsalzman

This one-time sets the priority of the gpu process, which should have a
lasting effect, because it's not set anywhere else.

Differential Revision: https://phabricator.services.mozilla.com/D272101

Diffstat:
Mgfx/ipc/GPUProcessManager.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/gfx/ipc/GPUProcessManager.cpp b/gfx/ipc/GPUProcessManager.cpp @@ -615,6 +615,10 @@ void GPUProcessManager::OnProcessLaunchComplete(GPUProcessHost* aHost) { } #endif + // Set a high priority for the newly-created gpu process. + int pID = mProcess->GetChildProcessId(); + hal::SetProcessPriority(pID, hal::PROCESS_PRIORITY_FOREGROUND_HIGH); + ipc::Endpoint<PVsyncBridgeParent> vsyncParent; ipc::Endpoint<PVsyncBridgeChild> vsyncChild; nsresult rv = PVsyncBridge::CreateEndpoints(