It is currently Thu Mar 28, 2024 5:37 pm


All times are UTC [ DST ]




Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Daphne Handheld Project!
PostPosted: Mon Dec 05, 2005 10:00 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
PROJECT STATUS:
26 Jul 07 - I now have the gp2x's second cpu doing all of the mpeg decoding, and it's fast enough to play a low bitrate mpeg at 30 fps (when I say low bitrate, I'm talking 250kbps-500kbps which doesn't look that great but it's a lot better than the results I was getting before!). Getting the two cpu's to work together efficiently has been a little bit challenging but now I have got Dragon's Lair playing at full speed (better than "nearly" full speed) without sound. The cpu emulation thread is using a lot more processor power than it should be, so I should be able to free up some more cpu here and there. So my targets for now will be Dragon's Lair and Space Ace. The other games that use video overlay will take more work and may not ever be playable at full speed. We'll see ...

2 Jul 07 - Dragon's Lair now plays at nearly full speed if I disable sound! YUV hardware acceleration is working.

19 May 06 - The latest gp2x firmware provides TCP/IP networking support via the USB cable to the gp2x, which makes developing and debugging MUCH easier. I finally got the problems resolved with GCC4 and ARM assembly language (basically I worked around what I consider to be compiler bugs) and so I was able to do some profiling with daphne running Dragon's Lair. It looks like the SDL_GetTicks function is calling gettimeofday which apparently is a huge resource hog on the gp2x. So either optimizing SDL_GetTicks or replacing it completely should provide a nice speed boost. (SDL_GetTicks is used heavily to make sure that the emulation runs at the correct speed).

08 May 06 - Some gp2x hackers are currently doing some work to try to figure out how to use the second cpu for video decoding work. I currently feel that this is the best option. While I wait for them to make some progress, I will be working on other Daphne enhancements and fixes.

29 Mar 06 - I did some optimization work on m80 (z80 emulator, the cpu used by Dragon's Lair) yesterday. I was able to identify several unnecessary pieces of code that were getting executed often that can be removed. I also was able to re-arrange some critical code to make it run a lot faster. What does this mean? It means that we are one step closer to having Dragon's Lair run at full speed on the gp2x.

20 Mar 06 - Here is the problem with gcc4 and the branch macro, as far as I can tell:
The branch macro currently creates a line of code like this:
PC = PC + buf[PC++];

gcc2, gcc3, and visual studio all seem to interpret this line as:
tmp = buf[PC]; PC = PC + 1; PC = PC + tmp;
but gcc4 is (incorrectly?) interpreting it as:
tmp = PC + 1; PC = PC + buf[PC]; PC = tmp;

So far, this is the only problem that I know of concerning daphne and gcc4.

17 Mar 06 - I've been working on the gp2x port again (woohoo!). It seems that most of the gp2x development is being done with GCC 4, which unfortunately does not compile daphne's z80 emulator properly (GCC 2 and 3 both work fine). I did a little work on troubleshooting what is wrong, and found that the branch macro is not being compiled properly. I can probably provide a workaround for gcc4 (at the cost of a little speed). Hopefully that is the only bug in gcc 4 that will hinder things from working.

21 Feb 06 - Here's a little update for you guys. I am in the process of moving to a new house which is taking up a considerable amount of time. In addition, my wife's mother has become critically sick and is in critical condition in the hospital in Boise, Idaho (which is a 5 hour drive away from where we live). I made this drive last weekend and may end up doing it again. Therefore, this is not the best time for me to do work on the handheld project. The good news is that I will continue to work on it when I can, and I will continue to make progress on it. Though the progress may be slower at times (such as this one), it will still be moving forward.

2 Feb 06 - I am going to pursue the idea of trying to do a lot of heavy work using the 2nd cpu. First I will try writing a very small test program to run on the 2nd cpu to make sure I can communicate between cpu's with the necessary information.

27 Jan 06 - Ok, it looks like some people have successfully been able to use the 2nd cpu on the gp2x. Unfortunately, there are some restrictions to doing this, including the inability to do file I/O. It may be possible to do some clever tricks to have all file I/O only done on the 1st cpu, but this would require some fairly non-trivial redesign. Still, it's an option.

25 Jan 06 - I've successfully gotten the dragon's lair video to play on the gp2x using the gp2x's YUV surfaces. This is without any kind of emulation (it's just the video playing), but it is using the VLDP code.

18 Jan 06 - Good news! I got some of the hacker samples that have been released to compile and work properly using a different compiler. My previous attempt at this had failed, which was putting a serious roadblock in my way. RGB scaling is working. YUV scaling works in theory but I have not yet seen this working in action, and this is something we will need in order to get fixed resolution games like Super Don working.

09 Jan 06 - Looks like a few people in the gp2x hacking community have figured out how to support YUV surfaces! This is indeed a good sign. YUV surface support is equivalent to the hardware acceleration that Daphne already uses, and is a necessary thing in order to have Daphne play at full speed on the gp2x.

04 Jan 06 - In case I forgot to mention this here, the gp2x does have quite a bit of built-in hardware to accelerate video playback, and the 'official' video player seems to be able to handle xvid videos at full speed just fine (according to my tests). So it should be possible to get Daphne running at full speed. The main problem is that accessing these accelerated hardware features is unknown to most of the community at this point; documentation is sparse, and tutorials/examples are all but non-existant. Hackers have been figuring out how stuff works slowly. I've been looking at the linux kernel source changes made for the gp2x and also the mplayer source code changes.

03 Jan 06 - I just got back from a mini New Years vacation. Unfortunately, my optimizations were not enough to get Dragon's Lair playing at an acceptable speed. The current problem is that when playback begins, it needs to drop a bunch of frames before any video actually is displayed. I've seen this same problem when trying to play Daphne from a DVD. It may be because the play command takes 'too long' to get to the VLDP thread. This may be a problem on fast computers too, that just doesn't get noticed because only 1 frame needs to be dropped.

28 Dec 05 - I've rewritten the cpu code to only use integers and it seems to be working! I will test it on the gp2x soon to see how much of a speed improvement it yielded. My fingers are crossed :)

26 Dec 05 - As a stroke of ill luck, my wife and I both became extremely sick last Thursday (the 22nd) and are still feeling somewhat sick even now. Yes, we were sick through Christmas. I wasn't able to get much work done on the gp2x port during this time. I am hoping to get back to it tomorrow.

21 Dec 05 - I've been optimizing the timing stuff in Daphne, specifically replacing floating point operations with integer operations. For the heck of it, I tried running Dragon's Lair on the gp2x (in daphne) with a very low bit rate mpeg and no sound. It was pretty choppy, but the attract mode was running! I am hoping to get a nice boost from optimizing the cpu emulation stuff (which currently uses a lot of floating point math).

18 Dec 05 - I got the Dragon's Lair attract mode to play in 320x240 at 18 FPS (full speed is 24 FPS). This is encoded at a bitrate of 1000kbps, and the picture quality looks acceptable to me. Without video, I have it decoding around 40 FPS. I have a few ideas on some optimizations I can do to get the framerate up to where it needs to be.

17 Dec 05 - I've got Daphne (including vldp) completely compiled on the gp2x. I've got Dragon's Lair, Super Don, and Cliff Hanger running in 'noldp' mode. I also got seektest working using vldp, but it is currently too slow to be useful. After doing some research, I've discovered that the gp2x does not have a floating point unit, which means that I can get a lot of speed increase just by replacing many (all?) of the floating point functions that Daphne uses. Cliff Hanger in noldp mode currently uses about 50% of one of the cpu's according to my calculations. The 'sweet spot' is 5% or less, so we'll see what I am able to do.

16 Dec 05 - I've received the gp2x!! Dang, that was fast considering it came from the UK. I got shareware Quake's introduction working and am impressed with the framerate! Now I am checking out the SDK.

14 Dec 05 - I've received notification that the gp2x has been shipped.

10 Dec 05 - I've received a response from gbax. Thanks for your help! :) The response said that if I choose to go ahead with my order that it will be dispatched within the next few days. I've told them to go ahead and send it.

9 Dec 05 - I have a minor problem that maybe someone could help me with. I ordered the gp2x unit from http://www.gbax.com, which is a UK site on the 5th. Then the next day, I learned that there was a US distributor, so I thought maybe I could get it faster from the US distributor. So I emailed the contact address (sales@cdworld.co.uk) and asked them if it was too late to cancel my order. Unfortunately, I have not heard back from them. Now... the situation is even less simple than you think (name that movie):
- My credit card has been charged
- I have no way of knowing if gbax canceled my order or if it's being shipped.
- I will be buying a house soon so my billing address will only be good for at most 2 more months (at minimum 1 more month) and for some reason, gbax either never asked for my shipping address or I missed the spot on the form to indicate that my shipping and billing address should be different.
- I talked to a representative to the US distributor and he said that they have no gp2x units in stock, so my original thought to order from the US distributor may not have been such a good idea.

So basically, what I need is for someone to help me get ahold of gbax in the UK and figure out what is going on with my order. Since my CC was charged, I am assuming that the order was not canceled and is being shipped very soon, which should work out fine. If my CC was charged but they are out of stock and won't be shipping for another month, there could be a problem since I am moving. If my order was canceled and they just didn't confirm the cancelation with me, then I need to re-order from the US distributor and wait for them to get more in stock.
I am hoping that someone reading this has access to more resources to resolve this problem than I have. Thanks for your help and patience. I want to get started on this project as badly as you do :)

5 Dec 05 - The unit has been ordered!


-------------------------------------------------------------------------------
PROJECT DESCRIPTION:

Due to popular demand (see https://www.daphne-emu.com/phpBB2/viewtopic.php?t=1894 and https://www.daphne-emu.com/phpBB2/viewtopic.php?t=1932) I am going to port Daphne to the new GP2X handheld! (official page is http://www.gbax.com)

But I will need your help. I will need $200 to buy a unit to do the development on. If you guys provide the donations, I will provide my expert programming skills :) and together we will make this a reality.

I will update the donations received here.

People are excited about Daphne on a handheld, including me. I think it will be so cool to walk into work with lasergames running on a little screen, so I can show it to people without having to take time to do any installation. And think about those long vacations... :)

Send this post to news sites, your friends, anyone you can think of. I will track the donations received on here and let you guys know when we've reached our goal.

As of right now, we have reached our goal to get started on the project, but donations will still help to move the project forward!

Donators will get to beta test and will be the first to get to play the finished version :)
As an added bonus, to show my appreciation, I will let donators decide what I work on in DAPHNE after I finish this project.


Even if you are strapped for cash, every little bit helps!


UPDATE : Wow, you guys are amazing!
Thanks go to:
Richard Weeks (http://www.mygp2x.com)
Rockford
Brad Oldham
Michael Lenardon
Tony M. Victorino
Chip Sbrogna
Rikuum
Deadkat37
RCade
Martin Dolphin
yuckymucky
Guppy
Tough Joe
Soljr
Demolition Man
Vladamire Steelwolf
atar1g1rl
Jeremy Schwab
Jerryhargabyte
Scott Cartier
Colin Crisanti
Jason Tipton


Last edited by Matt Ownby on Tue Mar 30, 2010 5:39 pm, edited 44 times in total.

Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 4:04 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator

Joined: Thu Aug 14, 2003 7:13 am
Posts: 17
I donated, just because I hope that somebody can help me get Daphne running on my computer.


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 4:07 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Soljr,

I'll help you... no worries. Thx for the donation.


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 5:56 am 
Grizzled Veteran
Grizzled Veteran

Joined: Wed Aug 13, 2003 1:13 pm
Posts: 70
DUDE!! I wish I had seen this before today! I totally want to donate but I can't do Paypal! Email me, Matt with some other options!

Pariah 8)

_________________
Come on back to the arcade, 3dArcade!
http://3darcade.mameworld.net


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 7:22 am 
Grizzled Veteran
Grizzled Veteran

Joined: Wed Oct 22, 2003 11:09 pm
Posts: 207
Location: Australia
Pariah wrote:
DUDE!! I wish I had seen this before today! I totally want to donate but I can't do Paypal! Email me, Matt with some other options!

Pariah 8)


Yep, same here (no Paypal)

Andrew


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 7:54 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Borf,

I emailed you a while ago and didn't hear back so I don't know if the email address on this site is still valid. At any rate, if you never heard from me, then email me and we'll talk... :)


Last edited by Matt Ownby on Tue Dec 06, 2005 8:10 pm, edited 1 time in total.

Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 8:52 am 
Grizzled Veteran
Grizzled Veteran

Joined: Wed Oct 22, 2003 11:09 pm
Posts: 207
Location: Australia
LOL I love the question for the e-mail :lol:

And I have updated my address

Andrew


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 4:31 am 
Registered User
Registered  User

Joined: Wed Dec 07, 2005 4:00 am
Posts: 1
Donation sent as I support the emulation community.


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 7:01 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Demolition Man wrote:
Donation sent as I support the emulation community.


thankyou very much! :)


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 7:02 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Pariah wrote:
DUDE!! I wish I had seen this before today! I totally want to donate but I can't do Paypal! Email me, Matt with some other options!

Pariah 8)


email sent. If you didn't get anything, let me know!


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 8:43 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator

Joined: Wed Dec 07, 2005 8:31 am
Posts: 1
Hey! Shane R. Monroe over at the Retro Game Radio forums told us about your project, so you can thank him for my donation (besides, I'm planning on picking up one of those units myself, and this sounds awesome). Anything to help the emu scene! :)

Keep It Retro!


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 1:15 pm 
Registered User
Registered  User

Joined: Thu Jun 10, 2004 3:58 pm
Posts: 33
hehe...New games like Fear or "Doom 3000 3D Quadrashooter MegaBloodbath FPS Extreme" really don't bring me the kind of fun emulation does. :)


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 5:46 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Vladamire Steelwolf wrote:
Hey! Shane R. Monroe over at the Retro Game Radio forums told us about your project, so you can thank him for my donation (besides, I'm planning on picking up one of those units myself, and this sounds awesome). Anything to help the emu scene! :)

Keep It Retro!


thx Vlad! I appreciate it!


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Dec 09, 2005 7:36 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
I added new status information at the top just now ...


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 5:05 am 
DAPHNE Gold Donator
DAPHNE Gold Donator

Joined: Sat Aug 16, 2003 3:47 am
Posts: 34
Just donated, once again, to a great cause!

PS. Something important to me personnaly. I just graduated from Florida Atlantic University with a BA in English. 20+ literature classes, 37 research papers, and over 240 literature books later and im finally done!

Luckily I had Daphne to keep me level headed througout the 3 years of classes. Always glad to help the Daphne community.

Anthony

_________________
Smile - You look better.


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 5:15 am 
DAPHNE Gold Donator
DAPHNE Gold Donator

Joined: Sat Aug 16, 2003 3:47 am
Posts: 34
Matt,

According to the Visa and Mastercard policies, no merchant is authorized to charge your credit card unless the item is actually shipped. So "technically", this means your GPX2 should have been shipped. This is not a policy unique to the US.

However, not all merchants follow the rules. It could be that they are just inundated with holiday orders. Just a thought.

Anthony

_________________
Smile - You look better.


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 5:34 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
tough joe wrote:
Just donated, once again, to a great cause!

PS. Something important to me personnaly. I just graduated from Florida Atlantic University with a BA in English. 20+ literature classes, 37 research papers, and over 240 literature books later and im finally done!

Luckily I had Daphne to keep me level headed througout the 3 years of classes. Always glad to help the Daphne community.

Anthony


tough joe,

congratulations on your accomplishment! And thanks for your continued help!


Top
Offline Profile  
 
 Post subject: !
PostPosted: Mon Dec 12, 2005 11:12 pm 
Registered User
Registered  User
User avatar

Joined: Fri Apr 08, 2005 6:00 pm
Posts: 8
Location: São Paulo, SP, Brasil
OH MY GOD!
this is a DREAM comming true
thank you very much! i was considering writing a daphne-like engine for my own game (pc game i would port for the gp2x) but it looks like you will already do the work, all I can say is congratulations.
ive been having fun for ages playing all those good games on the pc thanks to you, tried the xbox version but having it on the gp2x will just be awesome!
im just posting this at emuholic.com now...

_________________
...* .Gogeta§§J4BR. *...
...* Roberto Civille Rodrigues - 06/11/87 *...
...* Vila Matilde - São Paulo - SP - Brasil *...
...* roberto.cr@gmail.com - ICQ:136146274 *...


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 21, 2005 11:45 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
More updated news today :)


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Dec 27, 2005 6:55 am 
Registered User
Registered  User

Joined: Tue Dec 27, 2005 6:18 am
Posts: 2
Glad to see the project appears to be moving along at a good clip. Best of luck to you on implementing the port, I have my GP2X on order and am anxiously awaiting an opportunity to play some laserdisc games on it (but I probably need to get a bigger SD card ;) )


Top
Offline Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 11:43 am 
DAPHNE Team
DAPHNE Team

Joined: Thu Feb 08, 2001 1:00 am
Posts: 906
Location: Earth
get well soon! (Heather too!)


Top
Offline Profile  
 
 Post subject: Dropped frames
PostPosted: Wed Jan 04, 2006 1:34 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator

Joined: Wed Jan 04, 2006 1:32 am
Posts: 3
I hope the dropped frame problem is resolvable, this would be so cool. Have you tried overclocking the GP2X to 250MHz?


Top
Offline Profile  
 
 Post subject: Re: Dropped frames
PostPosted: Thu Jan 05, 2006 12:02 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Guppy wrote:
I hope the dropped frame problem is resolvable, this would be so cool. Have you tried overclocking the GP2X to 250MHz?


No, I've not tried overclocking. This would be more of a last resort since I want Daphne to work "out of the box".


Top
Offline Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 7:01 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator
User avatar

Joined: Tue Nov 01, 2005 8:40 am
Posts: 31
I donated 1.00. Hopefully, I will be able to donate 20.00 by next week. :)

_________________
Image

Looks like a long way down.


Top
Offline Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 7:19 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Thanks Jerry, I appreciate it :)


Top
Offline Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 5:50 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator
User avatar

Joined: Tue Nov 01, 2005 8:40 am
Posts: 31
It's np. It's the least I can do for an emulator that has given me joy for many months. :)

_________________
Image

Looks like a long way down.


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 3:08 am 
Registered User
Registered  User

Joined: Tue Dec 27, 2005 6:18 am
Posts: 2
family first, I hope everything is OK.


Top
Offline Profile  
 
 Post subject: Donation
PostPosted: Thu Mar 30, 2006 7:38 am 
DAPHNE Bronze Donator
DAPHNE Bronze Donator

Joined: Wed Jan 04, 2006 1:32 am
Posts: 3
Here's a $20, hope it helps the cause


Top
Offline Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 5:51 pm 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
I appreciate your help, Guppy.


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 1:40 pm 
Registered User
Registered  User

Joined: Wed Dec 19, 2001 1:00 am
Posts: 2
Hi Matt,

I know it's easier working with your own code, especially when it comes to CPU emulators. But, have you looked at Reesy's Dr.z80 core yet? It's written in Arm asm and quite well optimized for the GP2x.

Between the dev forums at gp32x.com and the IRC channel #gp2xdev on efnet, there are lot's of folks who'd be happy to help you integrate this core into your code.

Just a thought,

Cheers
igboo


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net