[PR #1636] [MERGED] ci: Use link-time optimization for building #2214

Closed
opened 2026-02-27 21:15:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1636
Author: @MajorP93
Created: 12/1/2024
Status: Merged
Merged: 12/13/2024
Merged by: @raphaelthegreat

Base: mainHead: lto


📝 Commits (2)

  • 992e1e4 ci: Use link-time optimization for building
  • 1c7f1c5 cmake: Set CMP0069 policy to new for external dependencies

📊 Changes

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

View changed files

📝 .github/workflows/build.yml (+6 -6)
📝 externals/CMakeLists.txt (+3 -0)

📄 Description

This PR enables LTO if the respective build toolchain supports it.

During my tests LTO enabled builds of shadPS4 performed noticeably better in certain games (e.g. Bloodborne).
Especially 1% low FPS measurement results were better and perceived stutter was less.

This observation was backed by other testers that were given a test build by me.


🔄 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/1636 **Author:** [@MajorP93](https://github.com/MajorP93) **Created:** 12/1/2024 **Status:** ✅ Merged **Merged:** 12/13/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `lto` --- ### 📝 Commits (2) - [`992e1e4`](https://github.com/shadps4-emu/shadPS4/commit/992e1e42e738eebb6c17c03b618d45a02d2cf950) ci: Use link-time optimization for building - [`1c7f1c5`](https://github.com/shadps4-emu/shadPS4/commit/1c7f1c579e02f0ebd8bf0ce252a68d659840af48) cmake: Set CMP0069 policy to new for external dependencies ### 📊 Changes **2 files changed** (+9 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+6 -6) 📝 `externals/CMakeLists.txt` (+3 -0) </details> ### 📄 Description This PR enables LTO if the respective build toolchain supports it. During my tests LTO enabled builds of shadPS4 performed noticeably better in certain games (e.g. Bloodborne). Especially 1% low FPS measurement results were better and perceived stutter was less. This observation was backed by other testers that were given a test build by me. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:37 +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#2214
No description provided.