mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-24 23:36:00 +03:00
[PR #3396] video_core: garbage collector (part 2) #3436
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#3436
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/3396
Author: @LNDF
Created: 8/6/2025
Status: 🔄 Open
Base:
main← Head:gc2📝 Commits (10+)
22e103bUse general dirty flag0f70970clang-formatdff3048Handle non-linear image downloadd9958deLayout transition58b5618Invalidate buffer cache memory on image download5b8057dSync texture downloads9d267beCorrectly capture argumentsa8cd9e3Account for big downloadsa63d1da(test) image gpu dirty542b8feRevert "(test) image gpu dirty"📊 Changes
13 files changed (+364 additions, -97 deletions)
View changed files
📝
src/video_core/buffer_cache/buffer.cpp(+27 -0)📝
src/video_core/buffer_cache/buffer.h(+48 -0)📝
src/video_core/buffer_cache/buffer_cache.cpp(+103 -28)📝
src/video_core/buffer_cache/buffer_cache.h(+21 -4)📝
src/video_core/buffer_cache/memory_tracker.h(+25 -0)📝
src/video_core/buffer_cache/range_set.h(+3 -3)📝
src/video_core/page_manager.h(+4 -0)📝
src/video_core/renderer_vulkan/vk_instance.h(+2 -1)📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+14 -7)📝
src/video_core/renderer_vulkan/vk_shader_hle.cpp(+11 -2)📝
src/video_core/texture_cache/image.h(+3 -1)📝
src/video_core/texture_cache/texture_cache.cpp(+95 -45)📝
src/video_core/texture_cache/texture_cache.h(+8 -6)📄 Description
This is a contiuation of #3350.
This will implement non-linear GPU modified image collection without losing the GPU modifications. This will reduce memory leaks even further (for example, in Bloodborne).
Currently, this depends on #3374 which implements tilers, required for non-linear image download.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.