[PR #4063] [CLOSED] macos/Linux timer optimizations, FSR bandwidth optimization #3910

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/4063
Author: @evill33t
Created: 2/21/2026
Status: Closed

Base: mainHead: main


📝 Commits (9)

  • 5c6b45f Add QoS class adjustment for macOS in emulator initialization
  • c2ca9e5 Add HDR support in FSR image creation logic
  • 91fb8df macos/possible linux optimizations
  • 90e925b improve sync by switching to vk::PipelineBarrier2
  • 18263de fix windows build "use of undeclared identifier 'start_time'"
  • a184223 optimize swapchain image acquisition to minimize blocking
  • 988e407 Merge branch 'shadps4-emu:main' into main
  • 6d32df7 Merge branch 'shadps4-emu:main' into main
  • fa7af15 Merge branch 'shadps4-emu:main' into main

📊 Changes

7 files changed (+192 additions, -60 deletions)

View changed files

📝 src/common/thread.cpp (+105 -4)
📝 src/common/thread.h (+6 -1)
📝 src/emulator.cpp (+2 -0)
📝 src/video_core/renderer_vulkan/host_passes/fsr_pass.cpp (+4 -4)
📝 src/video_core/renderer_vulkan/host_passes/fsr_pass.h (+1 -1)
📝 src/video_core/renderer_vulkan/vk_presenter.cpp (+45 -46)
📝 src/video_core/renderer_vulkan/vk_swapchain.cpp (+29 -4)

📄 Description

  • fsr_pass only use eR16G16B16A16Sfloat if HDR is enabled otherwise fall back to eR8G8B8A8Unorm
  • on macOS set thread priority to QOS_CLASS_USER_INTERACTIVE
  • drift-free absolute timer pacing using monotonic clock and platform specific timing code for macOS and linux (only tested on macOS)
  • improve sync by switching to vk::PipelineBarrier2
  • optimize swapchain image acquisition to minimize blocking

🔄 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/4063 **Author:** [@evill33t](https://github.com/evill33t) **Created:** 2/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (9) - [`5c6b45f`](https://github.com/shadps4-emu/shadPS4/commit/5c6b45ff894d82a86020966c1a89fafc2a285860) Add QoS class adjustment for macOS in emulator initialization - [`c2ca9e5`](https://github.com/shadps4-emu/shadPS4/commit/c2ca9e55a827917506a1072d40bc5458e37c74a2) Add HDR support in FSR image creation logic - [`91fb8df`](https://github.com/shadps4-emu/shadPS4/commit/91fb8df634d9bfdde7e93208c818ada6cbadde20) macos/possible linux optimizations - [`90e925b`](https://github.com/shadps4-emu/shadPS4/commit/90e925bcfc68a6a37552c98ccfde8633c8e43ea8) improve sync by switching to `vk::PipelineBarrier2` - [`18263de`](https://github.com/shadps4-emu/shadPS4/commit/18263de90224aa401e3fade11d184eeb6680e890) fix windows build "use of undeclared identifier 'start_time'" - [`a184223`](https://github.com/shadps4-emu/shadPS4/commit/a184223426e5752c3be384732bb4a0ba4b16401a) optimize swapchain image acquisition to minimize blocking - [`988e407`](https://github.com/shadps4-emu/shadPS4/commit/988e40761ba5bf95531814111b94c4103cbc6ffe) Merge branch 'shadps4-emu:main' into main - [`6d32df7`](https://github.com/shadps4-emu/shadPS4/commit/6d32df73784c211fe650cd3996a413a82ef38cb7) Merge branch 'shadps4-emu:main' into main - [`fa7af15`](https://github.com/shadps4-emu/shadPS4/commit/fa7af15b951c1a8ccb8bc9e65139da80125190a0) Merge branch 'shadps4-emu:main' into main ### 📊 Changes **7 files changed** (+192 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `src/common/thread.cpp` (+105 -4) 📝 `src/common/thread.h` (+6 -1) 📝 `src/emulator.cpp` (+2 -0) 📝 `src/video_core/renderer_vulkan/host_passes/fsr_pass.cpp` (+4 -4) 📝 `src/video_core/renderer_vulkan/host_passes/fsr_pass.h` (+1 -1) 📝 `src/video_core/renderer_vulkan/vk_presenter.cpp` (+45 -46) 📝 `src/video_core/renderer_vulkan/vk_swapchain.cpp` (+29 -4) </details> ### 📄 Description * fsr_pass only use eR16G16B16A16Sfloat if HDR is enabled otherwise fall back to eR8G8B8A8Unorm * on macOS set thread priority to QOS_CLASS_USER_INTERACTIVE * drift-free absolute timer pacing using monotonic clock and platform specific timing code for macOS and linux (only tested on macOS) * improve sync by switching to vk::PipelineBarrier2 * optimize swapchain image acquisition to minimize blocking --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:25 +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#3910
No description provided.