[PR #2626] [CLOSED] Memory allocation improvements #2871

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2626
Author: @diegolix29
Created: 3/8/2025
Status: Closed

Base: mainHead: Allocation-Improv


📝 Commits (1)

  • acb68f9 Memory allocation improvements

📊 Changes

1 file changed (+24 additions, -22 deletions)

View changed files

📝 src/core/memory.cpp (+24 -22)

📄 Description

Right now memory is allocated without checking for the best available block which can lead to fragmentation during gameplay, this try to improv that by fetching the larger contiguous blocks

also avoids skipping over useful gaps that could be used for future allocations

let me know if this is a good improvement. Or if its redundant. added like 5+ fps on my end for Bloodborne.


🔄 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/2626 **Author:** [@diegolix29](https://github.com/diegolix29) **Created:** 3/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `Allocation-Improv` --- ### 📝 Commits (1) - [`acb68f9`](https://github.com/shadps4-emu/shadPS4/commit/acb68f90d9ab0ca04d3ccf520a881da4f37d2924) Memory allocation improvements ### 📊 Changes **1 file changed** (+24 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/core/memory.cpp` (+24 -22) </details> ### 📄 Description Right now memory is allocated without checking for the best available block which can lead to fragmentation during gameplay, this try to improv that by fetching the larger contiguous blocks also avoids skipping over useful gaps that could be used for future allocations let me know if this is a good improvement. Or if its redundant. added like 5+ fps on my end for Bloodborne. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:33 +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#2871
No description provided.