Skip to content

Commit

Permalink
vita: overclock and add extra mem for videos
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Mar 14, 2019
1 parent 0838c9f commit 3367cb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ if (VITA_BUILD)
SceAppMgr_stub
)

set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d ATTRIBUTE2=12")

vita_create_self(${SHORT_NAME}.self ${SHORT_NAME} UNSAFE UNCOMPRESSED)
vita_create_vpk(${SHORT_NAME}.vpk ${VITA_TITLEID} ${SHORT_NAME}.self
VERSION ${VITA_VERSION}
Expand Down
6 changes: 6 additions & 0 deletions src/platform/julius.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ static void teardown(void)

int main(int argc, char **argv)
{
#ifdef __vita__
scePowerSetArmClockFrequency(444);
scePowerSetBusClockFrequency(222);
scePowerSetGpuClockFrequency(222);
scePowerSetGpuXbarClockFrequency(166);
#endif
const char *custom_data_dir = NULL;
for (int i = 1; i < argc; i++) {
// we ignore "-psn" arguments, this is needed to launch the app
Expand Down
2 changes: 1 addition & 1 deletion src/platform/vita/vita.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <malloc.h>
#include "SDL.h"

int _newlib_heap_size_user = 192 * 1024 * 1024;
int _newlib_heap_size_user = 300 * 1024 * 1024; // max is 330 MB with -d ATTRIBUTE2=12 otherwise max is 192

int chdir(const char *path)
{
Expand Down

0 comments on commit 3367cb7

Please sign in to comment.