[PR #2885] [MERGED] add scePthreadSetaffinity and emulate affinity #3053

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2885
Author: @Fire-Cube
Created: 5/6/2025
Status: Merged
Merged: 5/7/2025
Merged by: @squidbus

Base: mainHead: pthread


📝 Commits (6)

📊 Changes

2 files changed (+72 additions, -0 deletions)

View changed files

📝 src/core/libraries/kernel/threads/pthread.cpp (+70 -0)
📝 src/core/libraries/kernel/threads/pthread.h (+2 -0)

📄 Description

Fixes spam in UE games and also applies affinity settings to the host cpu if it has at least 8 cores
Someone should test this on Linux because i only have Windows


🔄 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/2885 **Author:** [@Fire-Cube](https://github.com/Fire-Cube) **Created:** 5/6/2025 **Status:** ✅ Merged **Merged:** 5/7/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `pthread` --- ### 📝 Commits (6) - [`51ee55e`](https://github.com/shadps4-emu/shadPS4/commit/51ee55e8db3397611df2c52a35f2317e226ca971) add implementation - [`4e2402c`](https://github.com/shadps4-emu/shadPS4/commit/4e2402ca2106612d7c99f5a7ce9beea5cf7513cf) fix preprocessor - [`1057e5b`](https://github.com/shadps4-emu/shadPS4/commit/1057e5beefa7e3b5a4d6f83fcfbdab5569b8c2f6) fixes squidbus's comments - [`9f4e2e8`](https://github.com/shadps4-emu/shadPS4/commit/9f4e2e82c1b89297cda2aa687349e5286d1b9840) fix clang - [`6e57a07`](https://github.com/shadps4-emu/shadPS4/commit/6e57a076b73e689e6e099d88d160ccf108679d40) comment became fucked up? - [`a8e4363`](https://github.com/shadps4-emu/shadPS4/commit/a8e436358c151995dec5c8387fe4a4d86c5b6170) fix removed return ### 📊 Changes **2 files changed** (+72 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/threads/pthread.cpp` (+70 -0) 📝 `src/core/libraries/kernel/threads/pthread.h` (+2 -0) </details> ### 📄 Description Fixes spam in UE games and also applies affinity settings to the host cpu if it has at least 8 cores Someone should test this on Linux because i only have Windows --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:16 +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#3053
No description provided.