maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   PPSSPP A portable PSP emulatorFree & 100% Open Source (https://talk.maemo.org/showthread.php?t=87812)

B-RUNO 2012-11-10 20:19

PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Hey what's up guys does anyone heard about PPSSPP emulator the PSP emu?
I've just found out about it today and thought sharing with you.

Quote:

PPSSPP is an open source project, licensed under the GPL 2.0. Anyone is welcome to contribute their improvements to the code, and the hope is that over time this will resolve the compatibility problem.

Fast and portable
PPSSPP is written in C++, and translates PSP CPU instructions directly into optimized x86, x64 and (soon) ARM machine code, using an efficient JIT compiler.

PPSSPP can thus run on quite low-spec hardware, including stronger Android phones and tablets, as long as there's support for OpenGL ES 2.0.
Official Website
http://www.ppsspp.org/

Preview Video

http://i.imgur.com/OzwZR.png

I hope enjoy :D

Hurrian 2012-11-11 00:01

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
When the proposed ARM HLE support rolls around, we can then build this on the N900 and N9/50

CarM14 2012-11-11 00:30

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
hey, i was going to make a thread about this, haha , but i hope it can be ported to N9, my brother test it on his xperia play, and works quite well...

Kangal 2012-11-11 01:35

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Sweet, I've been waiting for this for a while.
Does anyone know the state of Dreamcast and PS2 implementations ??


PS This is why I like Qt > Java. It runs much faster, on slower hardware (efficiency) and it is just as compatible, if not more when the App is created in C++ first then converted to iOS and Dalvik.

Crogge 2012-11-11 05:27

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Impressive and it runs at least such "2D" games surprisingly fast already :o

kanser 2012-11-13 21:55

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Ok just a noob question: haves the psp lover hardware specs than the n9?

aStrike 2012-11-13 22:44

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
@kanser: The n9 has better specs (quite big difference).
The PSP uses one 333 MHz MIPS32 R4000-based CPU and includes 32 MB RAM. In comparison, the n9 has a 1G'Hz ARM Cortex-A8 CPU and 1GB of RAM. You can read the wiki pages of the two for more info.
However, you can't really compare the two as they are used for different purposes, one is a portable gaming console and the other is a mobile phone. (Other than that, they alsp have diffrent CPU architectures that's why emulation is required).

MINKIN2 2012-11-13 22:50

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Excellent work, looks like early days yet. Wake me when we can play GoW ;)

Kangal 2012-11-13 22:58

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Just by clockspeed alone the N9 is 3 times faster. And remember the architecture and RAM are also faster on the N9. I would say its at least 10 times faster than the PSP.

I don't think the N9 is powerful enough to emulate it properly (compared to like PSX emulator), but even with sloppy coding the N9 can show superior graphics...to that 8 (?) year old device.

aStrike 2012-11-13 23:11

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
As a rule of thumb, for a good emulation you need a hardware at least 10 times faster than the emulated hardware if I recall correctly...

Kangal 2012-11-13 23:57

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
That used to be the rule of thumb, doesn't apply anymore.

The software has gotten much more detailed and sophisticated that you need considerably more.

Imagine what its going to need to emulate the PS3, a cluster server computer?

vakkov 2013-01-06 14:11

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
It now has a Qt version for Symbian and BlackBerry 10.

AapoRantalainen 2013-01-06 17:37

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Seems we very first need newer cmake (2.8.8?) : https://github.com/hrydgard/ppsspp/issues/344

zaidk9 2013-01-06 18:35

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
anyone building this for harmattan?????

AapoRantalainen 2013-01-07 00:02

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Ok, got it compiled for Fremantle. Not yet tested on device. OpenPandora-camp got it already running (rumours), but it is not yet very fast (also rumours) without JIT-support on ARM.


If you want contribute just now you need cmake-2.8.8 (almost trivial to compile). Then check kludge on: https://github.com/hrydgard/ppsspp/issues/347

And then apply these (not yet in issue tracker)
Quote:

diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp
index cbd3bce..e4e0f91 100644
--- a/Core/Util/PPGeDraw.cpp
+++ b/Core/Util/PPGeDraw.cpp
@@ -416,3 +416,20 @@ void PPGeDisableTexture()
WriteCmd(GE_CMD_TEXTUREMAPENABLE, 0);
}

+int GetPow2(int x)
+{
+ int ret = 0;
+ int val = 1;
+ while(x > val)
+ {
+ ret++;
+ val *= 2;
+ }
+ return ret;
+}


diff --git a/GPU/GLES/ShaderManager.cpp b/GPU/GLES/ShaderManager.cpp
index ec5b60e..e796078 100644
--- a/GPU/GLES/ShaderManager.cpp
+++ b/GPU/GLES/ShaderManager.cpp
@@ -24,6 +24,7 @@
#include "ShaderManager.h"
#include "TransformPipeline.h"

+typedef char GLchar;
Shader::Shader(const char *code, uint32_t shaderType) {
source_ = code;
#ifdef _WIN32

sifo 2013-01-07 00:10

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Quote:

Originally Posted by AapoRantalainen (Post 1311700)
Ok, got it compiled for Fremantle. Not yet tested on device. OpenPandora-camp got it already running (rumours), but it is not yet very fast (also rumours) without JIT-support on ARM.


If you want contribute just now you need cmake-2.8.8 (almost trivial to compile). Then check kludge on: https://github.com/hrydgard/ppsspp/issues/347

And then apply these (not yet in issue tracker)

Man you're awesome !! :D
hopefully we'll see it in the repositories soon

vakkov 2013-01-07 09:17

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
I am working on a harmattan port (although I don't have an N9). These are the build errors from Qt Creator - http://pastebin.com/PeP34MSa . There should be an Arm Jit in the next version (0.6) however I don't think it will be smooth on Fremantle (n900) or most of the android phones (except for the very simple games)

EDIT: Ok, I am now here - https://github.com/hrydgard/ppsspp/issues/347

AapoRantalainen 2013-01-07 10:32

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
I also tested with qmake for Fremantle. For Settings.pri (otherwise it tries with GL, not GLES)
Code:

-unix:!blackberry:!symbian:!macx: CONFIG += linux
+unix:!blackberry:!symbian:!macx: CONFIG += linux mobile_platform

And then it ends:
Code:

../../native/base/QtMain.h:9:24: fatal error: QAudioOutput: No such file or directory
../../native/base/QtMain.h:10:24: fatal error: QAudioFormat: No such file or directory


arthurartoria 2013-01-07 11:41

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
My god, plz add oil !
Fully support from a n900 and n9 user :)

pali 2013-01-07 12:04

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Quote:

Originally Posted by AapoRantalainen (Post 1311829)
I also tested with qmake for Fremantle. For Settings.pri (otherwise it tries with GL, not GLES)
Code:

-unix:!blackberry:!symbian:!macx: CONFIG += linux
+unix:!blackberry:!symbian:!macx: CONFIG += linux mobile_platform

And then it ends:
Code:

../../native/base/QtMain.h:9:24: fatal error: QAudioOutput: No such file or directory
../../native/base/QtMain.h:10:24: fatal error: QAudioFormat: No such file or directory


I read somewhere that Audio in Qt for maemo is not supported...

vakkov 2013-01-19 22:09

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
I forgot about this thread - this file should be working (I don't have an n9 to test on). The main Qt guy in this project (xsacha) said he had tested it on his n9 and the problem was that n9's gpu is slow. Hopefully when they implement the arm jit it would get better. This .deb is built by me with qt creator and again - i am 99% sure it should work. Please test :) Download: http://www.mediafire.com/?q36f2ih61osh856

mdbxh 2013-01-20 06:09

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
1 Attachment(s)
Quote:

Originally Posted by vakkov (Post 1315979)
I forgot about this thread - this file should be working (I don't have an n9 to test on). The main Qt guy in this project (xsacha) said he had tested it on his n9 and the problem was that n9's gpu is slow. Hopefully when they implement the arm jit it would get better. This .deb is built by me with qt creator and again - i am 99% sure it should work. Please test :) Download: http://www.mediafire.com/?q36f2ih61osh856

:confused::confused::confused::confused::confused:
work,but have some isuess

Akkumaru 2013-01-20 06:17

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Quote:

Originally Posted by mdbxh (Post 1316020)
:confused::confused::confused::confused::confused:
work,but have some isuess

MINECRAFT HAS INVADED :D
JK

Thanks for trying it out for the rest of us :)

ThraxZzz 2013-01-20 08:10

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Cant install....

recluse 2013-01-20 09:08

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Hey guys,

I believe this is the installable .deb you are looking for ;)

http://www.mediafire.com/?vaxq4ezxlr8ticw

Edit: I put the assets in there as well as a .desktop launchable.

mdbxh 2013-01-20 11:20

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Quote:

Originally Posted by recluse (Post 1316038)
Hey guys,

I believe this is the installable .deb you are looking for ;)

http://www.mediafire.com/?vaxq4ezxlr8ticw

Edit: I put the assets in there as well as a .desktop launchable.

the same #22

vakkov 2013-01-20 11:33

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Oh, sh*t. I have forgotten to put the assets.. the .deb is useless. The assets folder should be in the same directory as the executable and the libs should be in a folder called libs ...

recluse 2013-01-21 03:25

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
The libs aren't used.

MINKIN2 2013-01-31 19:17

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
6.1 has now been released with the preliminary ARM JIT

AapoRantalainen 2013-02-04 10:39

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Seems ppsspp can't be compiled with gcc-4.2. It uses "-std=c++0x" / "-std=c++11", e.g. code uses 'auto iter' which is introduced in gcc-4.4.

---
So using gcc-4.7.
1) Compile (or package) cmake (2.8.9) inside scrathbox. Install.

2) Fetch code for ppsspp (seems this can't be done inside sb)
Code:

git clone  https://github.com/hrydgard/ppsspp.git
cd ppsspp
git submodule update --init

3) patch
file: Common/Log.h
Code:

#if !defined(_WIN32) && !defined(PANDORA)
+//ucontext.h will be then skipped
+#define _SYS_UCONTEXT_H 1
#include <signal.h>
#endif

(Reason: some files includes <signal.h> (currently first time is Common/Log.h). Signal.h includes /usr/include/sys/ucontext.h which uses names R0...R10 (registers) which then clashes with names in Common/ArmEmitter.h.
This hack/patch skips loading of sys/ucontext.h (and we seriously hope nothing else will not broke) [https://github.com/hrydgard/ppsspp/issues/347])

4) compile (inside sb)
Code:

mkdir build
cd build
cmake .. -DARM:boolean=ON -DX86:boolean=OFF -DUSING_GLES2:boolean=ON -DHEADLESS:boolean=OFF
make

5) copy to the device
file: build/PPSSPPSDL
directory: build/assets/

I have compiled version git-eb97a3bd15e021789f81bfe5c3eb3be1bb5b7e90 (but haven't tested to run it at all).

SSLMM 2013-02-08 20:01

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Any hopes of seeing a fremantle port? :)

samipower 2013-02-18 01:02

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
I tried ppsspp 0.6.1 in nitdroid 1150mhz cpu and dragon ball evolution ultra-slow

http://www.youtube.com/watch?v=cd4lG...ature=youtu.be

kownas 2013-03-21 19:02

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
anybody will continue this thread and develope the eumulator?

AapoRantalainen 2013-03-21 21:19

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
Quote:

Originally Posted by kownas (Post 1330590)
anybody will continue this thread and develope the eumulator?

I'm working on it for Maemo5. Very recent code needs some tuning, I haven't yet posted them to the authors. And running the emulator stops right to the start:

EGL_BAD_CONFIG (0x3005)
EGL ERROR: Unable to create GLES context!

So it needs some maemo tuning also for initializing GLES.

[EDIT]
Cube test works:

get recent cmake (and cmake-data), e.g from: http://cc.oulu.fi/~rantalai/maemo5/squeeze/repo/

Code:

git clone git@github.com:aapo/ppsspp.git
cd ppsspp
git clone git@github.com:aapo/native.git
mkdir build
cd build
cmake .. -DMAEMO:boolean=ON
make
scp -r assets/ PPSSPPSDL user@192.168.1.111:ppsspp

On device:
#test intro and main menu
./PPSSPPSDL

#Test demo
wget http://ppsspp.org/files/cube.elf
./PPSSPPSDL cube.elf

Debian package and video will be released soon.
[/EDIT]

kownas 2013-03-22 22:24

Re: PPSSPP A portable PSP emulatorFree & 100% Open Source
 
i wrote to developer of ppsspp with question if he can compile application to our n900. he wrote me back:

On 21.03.2013 21:01:00 CET, Henrik Rydgård <hrydgard@gmail.com> wrote:

> Nope, I have no such device or any development environment. Maybe you can
> find a developer who does to do it for you, I'd accept such a port in the
> project.

So our hope is in you.

sorry for my english. good luck


All times are GMT. The time now is 09:03.

vBulletin® Version 3.8.8