Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > DeSmuME Discussion
Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old February 7th, 2008   #21 (permalink)
Eric Cartmenez
 
dreampeppers99's Avatar
 
Join Date: Jul 2006
Location: Here
Posts: 303
Talking

NHervé is very nice see your progress... You telling us your experience is great. Keep the good work...
dreampeppers99 is offline   Reply With Quote
Old February 7th, 2008   #22 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by NHervé View Post
A new :

I think the 2D GFX system needs to be rewritten. It slows down the emu.
I started rewriting it. Now the emu is much faster (20-30 fps instead of 5 in the menu of New Super Mario Bros) but the screen is white, so the games aren't very playable :P:P.
Well, most of the official 2D system is quite broken. I added some acceleration by using an strange pixel blitter system (it gave about a 10-30% speed increase), but it's still slow. It could be accelerated by rewriting the mess of function call that it's currently, so good luck. Just remember to profile properly whatever you rewrite, so you don't end up having a slower system :P

By the way, what did the profiler told about the 2D core CPU usage? I mean, my profiling sessions showed other parts to be hell a lot more demanding :P

By the way, if you want to test your implementation robustness, check this. I remember I was able to pass 2/3 tests of revision 7 or 8 with my version, so I could help there. Official version passed 0/3 tests :P
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 7th, 2008   #23 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 264
My emu 6/6
__________________
iDeaS Emulator

R4+EZ3In1+WifiLink+AceKard (however is better than R4)
I think is better Sorry you must work. It's the life... You must be the winner.

Bye bye, the end is near...
Lino is offline   Reply With Quote
Old February 7th, 2008   #24 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by Lino View Post
My emu 6/6
Mario 64 looks better and faster on my emu XD No seriously, I'm happy some emulators pass all the tests, it's good to have accurate emulators

By the way, I wouldn't like this to become an emulator comparison :P
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 7th, 2008   #25 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
thanks.

I don't understand anything from the old GFX core and the screen reversing is broken (ie PsgPlayer and ArmWrestler). This GFX core slows down the emu very much and the sky background, in the menu of New Super Mario Bros, is not correctly animated.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 7th, 2008   #26 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by NHervé View Post
thanks.

I don't understand anything from the old GFX core and the screen reversing is broken (ie PsgPlayer and ArmWrestler).(...)
Known, it's easy to fix.

EDIT: Bah, I just committed a fix to the official CVS, here you can see what I changed, from this file.

Quote:
Originally Posted by NHervé View Post
This GFX core slows down the emu very much
If you've sound enabled, keep in mind that it's the sound core eating CPU there. It had to be rewritten in fixed point, due to the abuse of ftol, but CyberWarriorX left the project before doing so. Use a cpu profiler like VTune and you'll see. If you disable the sound core by code, you'll get a huge speed up.

Quote:
Originally Posted by NHervé View Post
and the sky background, in the menu of New Super Mario Bros, is not correctly animated.
I don't have my DS here, but seemed correct, what's wrong with it?
__________________
Emulator development blog

Last edited by shashClp; February 7th, 2008 at 19:31.
shashClp is offline   Reply With Quote
Old February 8th, 2008   #27 (permalink)
Eric Cartmenez
 
dreampeppers99's Avatar
 
Join Date: Jul 2006
Location: Here
Posts: 303
Talking

Quote:
Originally Posted by shashClp View Post
If you've sound enabled, keep in mind that it's the sound core eating CPU there. It had to be rewritten in fixed point, due to the abuse of ftol, but CyberWarriorX left the project before doing so. Use a cpu profiler like VTune and you'll see. If you disable the sound core by code, you'll get a huge speed up.
It's so grateful see the tech conversation about DS emu...

[tomorrow will be 9th february... after new content on shash's blog]
dreampeppers99 is offline   Reply With Quote
Old February 8th, 2008   #28 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
I start well. For the moment there is no image, only white screen when disabled, else red screen, and I tested armwrestler and psgplay, the red screen is at good place.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 8th, 2008   #29 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by NHervé View Post
I start well. For the moment there is no image, only white screen when disabled, else red screen, and I tested armwrestler and psgplay, the red screen is at good place.
I don't know what you mean, but the code that I committed yesterday to the official CVS fixes reserved screens on homebrew that doesn't care to setup screens properly I also tested a few commercial games, and naturally none is affected :P

(left screenshots is the old one, right one is the new one)
Attached Images
File Type: png desmume_old.png (7.6 KB, 30 views)
File Type: png desmume_new.png (7.7 KB, 29 views)
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 8th, 2008   #30 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
Okay.
I'm rewriting 2d core and I included a new GPU struct, no more MainScreen.gpu and SubScreen.gpu. There are 2 gpus, gpuA and gpuB, each has an offset of 0 or 192. If bit15 of powcnt1 is clear the screens are reversed and so the gpus' offsets are also reversed.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 8th, 2008   #31 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by NHervé View Post
Okay.
I'm rewriting 2d core and I included a new GPU struct, no more MainScreen.gpu and SubScreen.gpu. There are 2 gpus, gpuA and gpuB, each has an offset of 0 or 192. If bit15 of powcnt1 is clear the screens are reversed and so the gpus' offsets are also reversed.
Ok, as you wish, I'll check and profile it whenever you release it. Good luck.
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 10th, 2008   #32 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
My new GFX engine is far from complete, but it starts to work. I provided a screenshot of it running a text homebrew and displaying it correctly. I also provided a screenshot of PSGplay, it's displaying on the good screen but it is broken, it displays anything.

You'll notice I included DesMuMe icon in the screenshots.
Attached Images
File Type: jpg new_gfx.jpg (6.7 KB, 32 views)
File Type: jpg new_gfx_broken.JPG (24.1 KB, 29 views)
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 10th, 2008   #33 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Nice. Just a question, did you profile the CPU usage of the 2D core before starting the rewrite? I'm curious if you got any numbers or you're doing this without them :P
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 11th, 2008   #34 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
No, I don't.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 11th, 2008   #35 (permalink)
Emu author
 
shashClp's Avatar
 
Join Date: Sep 2006
Location: VisualC
Posts: 656
Quote:
Originally Posted by NHervé View Post
No, I don't.
And how did you know that the 2D core was the culprit?
__________________
Emulator development blog
shashClp is offline   Reply With Quote
Old February 11th, 2008   #36 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
My 2d core is now supporting VRAM display. Here is a screenshot of ArmWrestler displayed on the good screen.

PS : sorry for poor colors, this is due to JPEG compression, but the bitmap files are too big.
Attached Images
File Type: jpg printscreen.JPG (9.9 KB, 27 views)
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 11th, 2008   #37 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
PS2 : shash : When I commented the code of the 2d core, the music of the menu of New Super Mario Bros was running faster, and the FPS was around 20-30.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!
NHervé is offline   Reply With Quote
Old February 11th, 2008   #38 (permalink)
Eric Cartmenez
 
dreampeppers99's Avatar
 
Join Date: Jul 2006
Location: Here
Posts: 303
Waiting for the mod2...
dreampeppers99 is offline   Reply With Quote
Old February 11th, 2008   #39 (permalink)
Emu author
 
Lino's Avatar
 
Join Date: May 2007
Location: Italy
Posts: 264
yes we are waiting.... release please
__________________
iDeaS Emulator

R4+EZ3In1+WifiLink+AceKard (however is better than R4)
I think is better Sorry you must work. It's the life... You must be the winner.

Bye bye, the end is near...
Lino is offline   Reply With Quote
Old February 11th, 2008   #40 (permalink)
Plugin author
 
NHervé's Avatar
 
Join Date: Jul 2007
Location: Nulle part
Posts: 370
I know why PsgPlayer is broken : it is using 16-color tiles, whereas my text demo is using 256-color tiles.

PS : I'll release it when my 2d core will be a little more working. Extended funcs such as rotscale will be implemented in mod 3.
__________________
Pcsx2 is great emulator and Megapad is great pad plugin !!!

Last edited by NHervé; February 11th, 2008 at 19:38. Reason: Automerged Doublepost
NHervé is offline   Reply With Quote
Reply

Thread Tools