[PR #2105] [MERGED] video_core: Use adaptive mutex on Linux #2494

Closed
opened 2026-02-27 22:00:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2105
Author: @ngoquang2708
Created: 1/9/2025
Status: Merged
Merged: 1/18/2025
Merged by: @squidbus

Base: mainHead: use-mutex


📝 Commits (1)

  • 7d15615 video_core: Use adaptive mutex on Linux

📊 Changes

3 files changed (+41 additions, -0 deletions)

View changed files

src/common/adaptive_mutex.h (+27 -0)
📝 src/video_core/buffer_cache/word_manager.h (+7 -0)
📝 src/video_core/page_manager.h (+7 -0)

📄 Description

Fix performance regression with #1973 on SteamDeck (https://github.com/shadps4-emu/shadPS4/issues/2048).

Tested with reduced resolution to reduce GPU load and vblank divider set to 2.

SteamDeck

main

pm+wm

Laptop

https://github.com/user-attachments/assets/6bb79808-4dea-4c1e-b596-8d11d5a8652d

https://github.com/user-attachments/assets/ede4ebbf-bd15-4ed7-b024-7487cae36d05


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2105 **Author:** [@ngoquang2708](https://github.com/ngoquang2708) **Created:** 1/9/2025 **Status:** ✅ Merged **Merged:** 1/18/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `use-mutex` --- ### 📝 Commits (1) - [`7d15615`](https://github.com/shadps4-emu/shadPS4/commit/7d15615181d8a7d47526b60b1a74fa9cafaf21bb) video_core: Use adaptive mutex on Linux ### 📊 Changes **3 files changed** (+41 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/common/adaptive_mutex.h` (+27 -0) 📝 `src/video_core/buffer_cache/word_manager.h` (+7 -0) 📝 `src/video_core/page_manager.h` (+7 -0) </details> ### 📄 Description Fix performance regression with #1973 on SteamDeck (https://github.com/shadps4-emu/shadPS4/issues/2048). Tested with reduced resolution to reduce GPU load and vblank divider set to 2. # SteamDeck ![main](https://github.com/user-attachments/assets/ebb4a200-5c55-4a05-a18c-1bb2d4d329a1) ![pm+wm](https://github.com/user-attachments/assets/d53609ad-c6f6-4a8f-87af-a552e03c1dfa) # Laptop https://github.com/user-attachments/assets/6bb79808-4dea-4c1e-b596-8d11d5a8652d https://github.com/user-attachments/assets/ede4ebbf-bd15-4ed7-b024-7487cae36d05 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2494
No description provided.