aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2009-08-17 23:54:40 +0000
committerJoost Peters2009-08-17 23:54:40 +0000
commiteb11cca7888c01256550d4aac429cc73eb0330e2 (patch)
tree54d0d6d367f13d3509ee63f7c60f19c637a0b8a1
parent2fc7660e43f581b811fdc979c25e8c87a17d1456 (diff)
downloadscummvm-rg350-eb11cca7888c01256550d4aac429cc73eb0330e2.tar.gz
scummvm-rg350-eb11cca7888c01256550d4aac429cc73eb0330e2.tar.bz2
scummvm-rg350-eb11cca7888c01256550d4aac429cc73eb0330e2.zip
PSP: increase optimization level and change clock rate to 333mhz
svn-id: r43498
-rw-r--r--backends/platform/psp/Makefile2
-rw-r--r--backends/platform/psp/psp_main.cpp3
-rwxr-xr-xconfigure2
3 files changed, 5 insertions, 2 deletions
diff --git a/backends/platform/psp/Makefile b/backends/platform/psp/Makefile
index ad22a853e1..0190cdf8c9 100644
--- a/backends/platform/psp/Makefile
+++ b/backends/platform/psp/Makefile
@@ -62,7 +62,7 @@ endif
INCDIR := $(srcdir) . $(srcdir)/engines/ . $(PSPSDK)/include
LIBDIR := $(LIBDIR) . $(PSPSDK)/lib
-CXXFLAGS = -O2 -Wall -D__PSP__ -DNONSTANDARD_PORT -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DUSE_ZLIB -Wno-multichar `$(PSPBIN)/sdl-config --cflags`
+CXXFLAGS = -O3 -Wall -D__PSP__ -DNONSTANDARD_PORT -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE -DUSE_ZLIB -Wno-multichar `$(PSPBIN)/sdl-config --cflags`
CXXFLAGS:= $(addprefix -I,$(INCDIR)) $(CXXFLAGS)
LDFLAGS := $(addprefix -L,$(LIBDIR)) $(LDFLAGS)
LIBS =
diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp
index 37080c7bf9..3ea6c55368 100644
--- a/backends/platform/psp/psp_main.cpp
+++ b/backends/platform/psp/psp_main.cpp
@@ -146,6 +146,9 @@ int main(void) {
SetupCallbacks();
+ //change clock rate to 333mhz
+ scePowerSetClockFrequency(333, 333, 166);
+
static const char *argv[] = { "scummvm", NULL };
static int argc = sizeof(argv)/sizeof(char *)-1;
diff --git a/configure b/configure
index a0973f14ab..ef1cb5f7a2 100755
--- a/configure
+++ b/configure
@@ -1178,7 +1178,7 @@ case $_host_os in
# TODO nds
;;
psp)
- CXXFLAGS="$CXXFLAGS -O2 -G0 -I$PSPDEV/psp/sdk/include -D_PSP_FW_VERSION=150"
+ CXXFLAGS="$CXXFLAGS -O3 -G0 -I$PSPDEV/psp/sdk/include -D_PSP_FW_VERSION=150"
;;
wince)
CXXFLAGS="$CXXFLAGS -O3 -march=armv4 -mtune=xscale -D_WIN32_WCE=300 -D__ARM__ -D_ARM_ -DUNICODE -DFPM_DEFAULT -DNONSTANDARD_PORT"