mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #2934] [MERGED] build: Target x86-64-v3 CPU architecture #3095
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3095
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:avx2📝 Commits (1)
00a8025build: 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-v3as 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-v3also 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.