tor-browser

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

commit d251e90a0e530f4b6aa09cf83103cee90b9c92a6
parent 129c6abca19ecfe16e39f8f8f3b12617034843ca
Author: Brad Werth <werth@efn.org>
Date:   Wed, 12 Nov 2025 16:19:19 +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(