Skip to content

Calculate flex memory size#4058

Open
par274 wants to merge 13 commits intoshadps4-emu:mainfrom
par274:calculate-flex-memory-size
Open

Calculate flex memory size#4058
par274 wants to merge 13 commits intoshadps4-emu:mainfrom
par274:calculate-flex-memory-size

Conversation

@par274
Copy link
Contributor

@par274 par274 commented Feb 20, 2026

Based on: #4055 (comment)

I'm calculating flexible memory accounting based on VMM; module code is counted towards the flexible quota; host-side trampoline region is not counted.

This can solve some startup problems in games like Uncharted 4 and TLOU2.

I'm still learning process, ttrampoline will probably cause problems in other games.

@par274
Copy link
Contributor Author

par274 commented Feb 20, 2026

89171d8

This will likely resolve the patch addressing issue in other games. I'm tested on Bloodborne, everything is fine.

@par274
Copy link
Contributor Author

par274 commented Feb 20, 2026

I think DevKit/Extra DMem is being miscalculated in games like TLOU2. I'm not using these settings right now. I think PR could be merged.

@par274 par274 marked this pull request as ready for review February 20, 2026 22:50
@par274
Copy link
Contributor Author

par274 commented Feb 21, 2026

@StevenMiller123

I tried to reduce unnecessary overhead. I avoided a second vma scan in flexible usage accounting. Perhaps that corrected the complexity you were trying to explain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants