Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Adjust some memory stats
Browse files Browse the repository at this point in the history
  • Loading branch information
GrapheneCt committed Jul 14, 2021
1 parent e24fd4b commit 4235053
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Binary file modified ElevenMPV-A/CONTENTS/module/shell_plugin.suprx
Binary file not shown.
17 changes: 10 additions & 7 deletions ElevenMPV-A/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ void pafLoadPrx(SceUInt32 flags)
SceSysmoduleOpt sysmodule_opt;

if (flags)
init_param.global_heap_size = 12 * 1024 * 1024 + 512 * 1024;
init_param.global_heap_size = 12 * 1024 * 1024;
else
init_param.global_heap_size = 4 * 1024 * 1024 + 512 * 1024;
init_param.global_heap_size = 5 * 1024 * 1024;

init_param.a2 = 0x0000EA60;
init_param.a3 = 0x00040000;
Expand Down Expand Up @@ -202,13 +202,16 @@ int main() {
fwParam.applicationMode = Framework::Mode_ApplicationA;
//fwParam.optionalFeatureFlags = Framework::InitParam::FeatureFlag_DisableInternalCallbackChecks;

if (s_memGrown)
fwParam.defaultSurfacePoolSize = 12 * 1024 * 1024;
else
if (s_memGrown) {
fwParam.defaultSurfacePoolSize = 11 * 1024 * 1024;
fwParam.textSurfaceCacheSize = 2 * 1024 * 1024;
}
else {
fwParam.defaultSurfacePoolSize = 4 * 1024 * 1024;
fwParam.textSurfaceCacheSize = 1 * 1024 * 1024;
}

fwParam.textSurfaceCacheSize = 512 * 1024; // Small sizes may break text display
fwParam.graphMemSystemHeapSize = 512 * 1024 * 2;
fwParam.graphMemSystemHeapSize = 512 * 1024;
//fwParam.graphicsFlags = 7;

Framework *fw = new Framework(&fwParam);
Expand Down

0 comments on commit 4235053

Please sign in to comment.