[PR #2934] [MERGED] build: Target x86-64-v3 CPU architecture #3095

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2934
Author: @MajorP93
Created: 5/14/2025
Status: Merged
Merged: 5/14/2025
Merged by: @squidbus

Base: mainHead: avx2


📝 Commits (1)

  • 00a8025 build: Target x86-64-v3 CPU architecture

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 CMakeLists.txt (+3 -3)
📝 documents/Quickstart/Quickstart.md (+3 -3)

📄 Description

As discussed in #2819 the usage of AVX2 ops could improve performance quite significantly in a lot of cases which is why this PR sets -march=x86-64-v3 as the target CPU architecture. This strikes a good balance between enabling performance-critical instructions (e.g., AVX2) and maintaining compatibility with relatively older systems.

The x86-64-v3 target corresponds to Intel's Haswell era architectures. Haswell was introduced in 2014. The vast majority of users today have CPUs that are significantly newer. Systems with pre-Haswell CPUs are unlikely to meet the performance requirements for PS4 emulation, making support for them impractical.

As -march=x86-64-v3 also implies -mtune=x86-64-v3, the mtune part was removed.


🔄 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/2934 **Author:** [@MajorP93](https://github.com/MajorP93) **Created:** 5/14/2025 **Status:** ✅ Merged **Merged:** 5/14/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `avx2` --- ### 📝 Commits (1) - [`00a8025`](https://github.com/shadps4-emu/shadPS4/commit/00a80256d4e8f8323fd394d87b63fd203f41719c) build: Target x86-64-v3 CPU architecture ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -3) 📝 `documents/Quickstart/Quickstart.md` (+3 -3) </details> ### 📄 Description As discussed in #2819 the usage of AVX2 ops could improve performance quite significantly in a lot of cases which is why this PR sets `-march=x86-64-v3` as the target CPU architecture. This strikes a good balance between enabling performance-critical instructions (e.g., AVX2) and maintaining compatibility with relatively older systems. The x86-64-v3 target corresponds to Intel's Haswell era architectures. Haswell was introduced in 2014. The vast majority of users today have CPUs that are significantly newer. Systems with pre-Haswell CPUs are unlikely to meet the performance requirements for PS4 emulation, making support for them impractical. As `-march=x86-64-v3` also implies `-mtune=x86-64-v3`, the mtune part was removed. --- <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: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#3095
No description provided.