mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #3070] [MERGED] video_core: Page manager/region manager optimization #3195
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#3195
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/3070
Author: @LNDF
Created: 6/9/2025
Status: ✅ Merged
Merged: 6/20/2025
Merged by: @georgemoralis
Base:
main← Head:memory-tracker📝 Commits (10+)
ab20598Bit array test331e366Some corrections3c4dce5Fix AVX path on SetRange0a11c48Finish bitArraycfad5c9Batched protect progressbf10666Inclusion fix14a33d3Last logic fixes for BitArray2fc62b5Page manager: batch protect, masked ranges6b60a85Page manager bitarrayed1e3c5clang-format📊 Changes
10 files changed (+786 additions, -366 deletions)
View changed files
📝
CMakeLists.txt(+4 -2)➕
src/common/bit_array.h(+411 -0)📝
src/video_core/buffer_cache/buffer_cache.h(+1 -1)📝
src/video_core/buffer_cache/memory_tracker.h(+1 -1)➕
src/video_core/buffer_cache/region_definitions.h(+28 -0)➕
src/video_core/buffer_cache/region_manager.h(+208 -0)➖
src/video_core/buffer_cache/word_manager.h(+0 -296)📝
src/video_core/page_manager.cpp(+123 -62)📝
src/video_core/page_manager.h(+7 -1)📝
src/video_core/texture_cache/texture_cache.cpp(+3 -3)📄 Description
Rewrite parts of the page manager and region manager to be faster
Use a bit array that uses AVX to accelerate.
Also tries to batch mprotects in the same region (another pr is needed to take advantage of this)
I have done zero testing right now with this and i rewrote parts of the memory tracker so there is a very high chance I broke something.
This is part of a series of PR with the hope of improving performance of games that use DMA, since it is currently quite slow (mainly because the ammount of memory protections and synced buffers).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.