Homebrew A way to port the PokeMini emulator to 3ds homebrew?

nop90

Well-Known Member
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
could you share a precompiled version of it?
I really want to test it :D

I'll release when it's finished. There is nothing to test, the core is the original pokemini source, I'm only porting the platform dependent IO functions.

Pokemini is really well structured for portability.
 

AshleyCummings

Gamer Girl
OP
Member
Joined
Dec 14, 2011
Messages
545
Trophies
1
Age
36
Location
My own world
XP
430
Country
United States
Nice job ! nop90 you seem well experienced and very nice ^-^ you gave me hope for the hombrew community and what can be done thank you ! And thank you very much for porting this and taking your time to do so ^-^
 

nop90

Well-Known Member
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
Framerate is terrible on o3ds (about 25 FPS) so sound is out of question.

Attached you can find a compiled preview in 3dsx format. Place roms in the same folder of the 3dsx file.

Config save doesn't work, everythin else should be fine.

To make it run faster on o3ds I should study the emulator core and rewrite it with a lot of optimization (i.e. eliminating the several layers of code introduced for portability ), but I'm not going to do this.

Let me know how is the speed on n3ds. I could integrate sound at least for n3ds users.
 

Attachments

  • PokeMini - Preview.zip
    230.9 KB · Views: 162

Vague Rant

Deceptively cute
Member
Joined
Aug 7, 2008
Messages
2,464
Trophies
2
Location
Melbourne
Website
vaguerant.tumblr.com
XP
3,316
Country
I think you're vastly underestimating PokeMini if you think it can't run full speed on the original 3DS. It even ran full speed on the original DS. Did you take a look at "sync cycles" in the Options? This allows you to trade off accuracy for speed; higher values run faster but may cause compatibility issues.

On the New 3DS, gameplay seems to be full speed even with sync cycles on 8 (the slowest/most accurate). It's hard to say definitely because I'm not aware of a framerate display in PokeMini, but nothing "feels" slow from what I've tried so far.
 

nop90

Well-Known Member
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
I think you're vastly underestimating PokeMini if you think it can't run full speed on the original 3DS. It even ran full speed on the original DS.

If you look in the Pokemini code you'll see that the ds version utilizes a 8bit palette and some custom video renderig functions. For 3ds I used a standard 16bit palette on a 32 bit screen and I hade to force to 0xff the alpha channel byte before rendering.

Optimizing these functions for the 3DS it's possible to gain some speed, but utilizing the standard ones is difficoult to reach 60 fps.

I tryed also the 16 bit screen mode to lower memory writings, but wasn't able to make it work with sf2dlib.
 

AshleyCummings

Gamer Girl
OP
Member
Joined
Dec 14, 2011
Messages
545
Trophies
1
Age
36
Location
My own world
XP
430
Country
United States
Awww there goes my hopes .... Wait a min now ...the O 3DS is faster then a dang ds and when I had my ds phat this emu worked on it what did they do dumb down the O3DS?!
... If something like this doesnt work on a O3DS then theres no hope for anything decent on hombrew I have 2 friends with O3DS were excited to see this especially sense all they needed to get this was a youtube app thats been on there systems for years and a dns number XD .. but if this cant run .. Wow idk guess ill just watch ...im rooting for it to be stable on a O3DS which im sure many people own .. Please dont give up ...
 

nop90

Well-Known Member
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
It can run on 3ds optimizing the code, remember that this is only a preview for testing, not a release.

The point is that I don't know if I have time to make it now. But maybe sooner or later I'll spend a couple of days on it.

I have some ideas to speed up the fps, but I have to rewrite the port from scratch, optimizing the internal draw function and making it draw directly on a RGB565 framebuffer (like the way does the code for the DS or the PSP versions).
 
Last edited by nop90,

AshleyCummings

Gamer Girl
OP
Member
Joined
Dec 14, 2011
Messages
545
Trophies
1
Age
36
Location
My own world
XP
430
Country
United States
Oh thank you O.O I was worried you would give up on trying to get it to work on a old 3DS and take your time nobody's rushing ^-^ just making sure it will run on O3DS thats what got me worried .. Never Give Up, Never Give In, Go For The Goal To Win Win Win! I believe in you nop90 !!
 

pdapanda

Well-Known Member
Member
Joined
Nov 19, 2014
Messages
730
Trophies
0
Age
32
XP
1,169
Country
Switzerland
Framerate is terrible on o3ds (about 25 FPS) so sound is out of question.

Attached you can find a compiled preview in 3dsx format. Place roms in the same folder of the 3dsx file.

Config save doesn't work, everythin else should be fine.

To make it run faster on o3ds I should study the emulator core and rewrite it with a lot of optimization (i.e. eliminating the several layers of code introduced for portability ), but I'm not going to do this.

Let me know how is the speed on n3ds. I could integrate sound at least for n3ds users.

On New 3DSLL it works well,except for silence
 

nop90

Well-Known Member
Member
Joined
Jan 11, 2014
Messages
1,556
Trophies
0
Location
Rome
XP
3,136
Country
Italy
Yesterday night I played with the screen blit function to handle the alpha channel in a more efficient way and introduced a frameskip of 1 (like the way the PSP version does).

This way, with a 2x zoom and a sync cycles value of 16, I doubled the speed and now it can reach about 50 FPS. The perfect value should be 72 FPS, but now the speed is not bad at all.

I introduced also an option to chance the screen resolution (1x and 2x) and it's zoom value (none, fit height, stretch to full screen).

I tested this only on Citra, but tonight on a real o3DS I expect that with an 1x resolution (zoomed to fullscreen with HW rendering) I could gain some more FPS.

So now I have enough speed to work on sound.
 

loco365

Well-Known Member
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
Y'know what would be awesome? IR support!

That way you could send the reward items to a GameBoy Colour with a Pokémon GSC cartridge!
If memory serves, the IR protocol on the 3DS is extremely limited. I don't think it'd work, but if someone could play around with this a bit and allow the 3DS to do this, I'd be for it. It'd make me want to get a GBC!
 

AshleyCummings

Gamer Girl
OP
Member
Joined
Dec 14, 2011
Messages
545
Trophies
1
Age
36
Location
My own world
XP
430
Country
United States
Yesterday night I played with the screen blit function to handle the alpha channel in a more efficient way and introduced a frameskip of 1 (like the way the PSP version does).

This way, with a 2x zoom and a sync cycles value of 16, I doubled the speed and now it can reach about 50 FPS. The perfect value should be 72 FPS, but now the speed is not bad at all.

I introduced also an option to chance the screen resolution (1x and 2x) and it's zoom value (none, fit height, stretch to full screen).

I tested this only on Citra, but tonight on a real o3DS I expect that with an 1x resolution (zoomed to fullscreen with HW rendering) I could gain some more FPS.

So now I have enough speed to work on sound.


I hopes this is for O3ds as well if so WOA CONGRATS!!!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    cearp @ cearp: and Psi - I had a cd player / radio that played mp3 cds once, very cool