PDA

View Full Version : Daedalus Further dynarec optimisation



BrooksyX
July 26th, 2006, 01:00
Taken from http://strmnnrmn.blogspot.com/ :


Further dynarec optimisation

I've spent the last couple of evenings working on adding support for additional instructions to the dynamic recompiler. With every instruction I add, the generated code becomes a bit more efficient as I can avoid various bookeeping work (such as flushing all the cached registers out to memory.)

I've added code to handle the following ops:

* MULT, MULTU (multiply, multiply unsigned)

* DIV, DIVU (divide, divide unsigned)

* MFLO, MFHI (move from lo/hi)

* MTLO, MTHI (move to lo/hi)

* LB, LBU (load byte, load byte unsigned)

* LH, LHU (load halfword, load halfword unsigned)

So far I'm seeing around a 5-6% speedup with these changes (on top of the 10-12% speedup I talked about on Sunday). I am generating slightly more code as a result of this work, but given the large savings I made over the weekend this isn't much of an issue.

My next job is to look at optimising the remaining load/store instructions - I just have LWU/SB/SH to do (ignoring the 64 bit instructions for now). Once that's done I'm going to have a look at optimising sequences of load/store operations by caching the base address between uses. I think that should give a significant speed up for memory intensive chunks of code.

-StrmnNrmn

Awesome news for the N64 emulator for the PSP :)

repuken2
July 26th, 2006, 01:30
GREAT NEWS!!!!

thanks a lot!!
i hope we can soon enjoy Mario Kart w/decent speed and stable.

salomon st
July 26th, 2006, 01:31
yeah i saw this also

aries2k4
July 26th, 2006, 01:38
Great!!! Keep ém coming StrmnNrmn.

NoQuarter
July 26th, 2006, 01:40
Awesome !

BL4Z3D247
July 26th, 2006, 01:59
freakin sweet, its always good to hear the word speed comin from strmnnrmn :D

xiringu
July 26th, 2006, 02:00
thnx for your efforts!

:)

felonyr301
July 26th, 2006, 02:38
wow thats great man keep up the great work.

idapimp
July 26th, 2006, 02:45
Yay!!!!!!!!!!

PSPCRACKER
July 26th, 2006, 02:47
can t wait to the r7 it b class

LAMPRO
July 26th, 2006, 02:51
YESSSSSSSS!!!!

great work strmn!!

r7 will be at least a 15% increase in speed= this is amazing news.. and its not even out yet so I know there will be more increases b4 the next release!!

oh im hype. r7 looks to be a great jump in quality!!

BrooksyX
July 26th, 2006, 03:01
Hopefully this means that mario will be running around 15-16 fps. If he can just get daedelus to pump 5 or 6 more fps in mario then it would be very playable.Which i bet he can, because he still has more things to improve on.

Harshboy
July 26th, 2006, 03:21
Awsome! I cant wait till R7!

Xiro
July 26th, 2006, 04:10
Hopefully this means that mario will be running around 15-16 fps. If he can just get daedelus to pump 5 or 6 more fps in mario then it would be very playable.Which i bet he can, because he still has more things to improve on.

well i highly doubt that it will be 15 FPS. Right now in most places mario gets 6-8 which means even with a 100 percent increase it will still only be 12-16, more than likely the low end.

I dont think people understand that right now a 10 percent increase in speed is only 1 fps (actually more like .7 frames per second), which dont get me wrong, is great, but not what most people are getting out of these updates

BrooksyX
July 26th, 2006, 04:41
well i highly doubt that it will be 15 FPS. Right now in most places mario gets 6-8 which means even with a 100 percent increase it will still only be 12-16, more than likely the low end.

I dont think people understand that right now a 10 percent increase in speed is only 1 fps (actually more like .7 frames per second), which dont get me wrong, is great, but not what most people are getting out of these updates

i get more like 8 - 10 in levels and 11 - 13 in the castle.

stotheamuel
July 26th, 2006, 04:41
exactly hes proboly dealing with 8-9 fps right now because 7 + 7(.1)=7.7
7.7 + 7.7(.05)= 8.1


8.1 fps is around where he's at:p

BrooksyX
July 26th, 2006, 05:24
exactly hes proboly dealing with 8-9 fps right now because 7 + 7(.1)=7.7
7.7 + 7.7(.05)= 8.1


8.1 fps is around where he's at:p

I know math, i was just trying to think on the bright side. Thats why i said HOPEFULLY. According to StrmnNrmn he has got up to an 18% speed increase. 13 x 1.18 = 15.34, 12 x 1.18 = 14.16.

Obviously we dont get 12 and 13 fps in every part of mario64 but we still do in some areas. Just trying to be positive here.

Wally
July 26th, 2006, 05:36
Folks here is the start of my R6 compatibility database

www.dosgames.com/~wally4000/daedlist

Enjoy

Emeriastone
July 26th, 2006, 06:56
I wish I knew what he was talking about, but God I love it.

Emeriastone
July 26th, 2006, 07:00
I know math, i was just trying to think on the bright side. Thats why i said HOPEFULLY. According to StrmnNrmn he has got up to an 18% speed increase. 13 x 1.18 = 15.34, 12 x 1.18 = 14.16.

Obviously we dont get 12 and 13 fps in every part of mario64 but we still do in some areas. Just trying to be positive here.

Just so you guys know, I read somewhere that the human eye only processes about 24 fps. Don't know it that's true or if I'm pulling it out of my ass, but if we get the average 14.16 fps, we're already halfway there. Now, by anymeans, 60 fps would be premo to me. Someone check the 24 fps thing, I would like to know, but I'm too lazy to research myself ;) .

emuking
July 26th, 2006, 07:32
the only thing i noticed was the 15 to 18 percent speed increase, since he will improve it more and probaly not release it till next month that means we might get mario at 15 to 20 fps if were lucky, god this guy is great :D

BL4Z3D247
July 26th, 2006, 08:38
i hope he releases it before/on my b-day that would be a kick @$$ present :D

mr_nick666
July 26th, 2006, 08:47
i hope he releases it before/on my b-day that would be a kick @$$ present :D

Whens your birthday?? Mines Saturday! It would be a sweeeeet gift! :D Like someone said - Whenever 'speed' is mentioned in the progress its a good thing! :p

Now for the geeky bit..

The 24fps myth originated from the fact that movies and PAL televisions run at a meagre 24fps. Go anywhere in the world that uses NTSC and it becomes the 30fps myth. So why do film and TV appear to run so smoothly at such a low frame rate? There are a myriad of reasons, but easily the largest factor can be summed up in two words – motion blur. This isn’t to say that 24fps isn’t unplayable, as your mind will soon get used to the low frame rate and help to fill in the gaps. However, as soon as you see it running above 60fps you’ll immediately notice how much smoother, and therefore more realistic, it appears. If you want a game’s motion to appear totally smooth, we need to hit around 70fps (it varies a little depending on the person viewing the action). Even this isn’t a rock solid figure, as some people say frame rates over the 100 mark are necessary, while those involved in console game development feel that 60 frames per second is the Holy Grail of Smoothness. It has been proven that the human eye can recognise an image that is shown for as little as 1/220th of a second, so it could be that 220fps is the most desirable figure. :eek:

crazy_biker420
July 26th, 2006, 08:52
looks like your learning allot

BL4Z3D247
July 26th, 2006, 08:54
well my b-days 8/8, so two weeks yayy!!! :D ohh and i was the one who said its always good to hear the word speed comin from strmnnrmn :)

tophead420
July 26th, 2006, 09:08
a 15-18% speed up overall good work man keep it up and cant wait for r7

Video_freak
July 26th, 2006, 09:39
well my b-days 8/8, so two weeks yayy!!! :D ohh and i was the one who said its always good to hear the word speed comin from strmnnrmn :)

my birthday is 3 days after yours :)

cant wait for r7!

BL4Z3D247
July 26th, 2006, 09:44
cool :D, i can't wait either

Malksta
July 26th, 2006, 10:26
Cool news, Looking forward to R7 :)

Yasir Said
July 26th, 2006, 10:27
Although im glad hes still working hard on it, i can wait for r7......i cant wait for r22 with a 600% speed increase :D

Video_freak
July 26th, 2006, 11:51
Although im glad hes still working hard on it, i can wait for r7......i cant wait for r22 with a 600% speed increase :D

and also with full sound, save support, and USB rumble back :rolleyes:

mr_nick666
July 26th, 2006, 13:08
Although im glad hes still working hard on it, i can wait for r7......i cant wait for r22 with a 600% speed increase :D


and also with full sound, save support, and USB rumble back :rolleyes:

Not forgeting its compatibility with GameCube ROMS! :p (LOL!)

Its amazing what has been achieved so far... :D

Video_freak
July 26th, 2006, 13:22
your right i forgot Gamecube roms lol :)
thinking seriously though, i'm surprised this emulator has even gotten this far. many people didnt believe that it would be possible....

mr_nick666
July 26th, 2006, 13:36
your right i forgot Gamecube roms lol :)
thinking seriously though, i'm surprised this emulator has even gotten this far. many people didnt believe that it would be possible....

True... People still underestimate the power of the PSP in the hands of a great coder! :D

Video_freak
July 26th, 2006, 13:40
True... People still underestimate the power of the PSP in the hands of a great coder! :D
i think people didnt think this was possible because back then we were having problems with the SNES emulator :rolleyes:

Zion
July 26th, 2006, 13:50
Brilliant news :D :D :D :D :D

D0N
July 26th, 2006, 13:51
Yep it sure is zion! Keep up the great work StrmnNrmn!

Mr. Shizzy
July 26th, 2006, 18:10
Hells yeah. Everbodys behind you strmnnrmn!!!
Goldeneye on PSP is an absolute dream come true!!!
Keep up the great work

gimpyjr
July 26th, 2006, 22:00
i think people didnt think this was possible because back then we were having problems with the SNES emulator :rolleyes:

that's because people don't bother to think. The PSP and the SNES have a very different architecture while the N64 and PSP are very simmilar. I knew since day one that this machine would be perfect for emulation. That is the reason I bought it. I got it 3 days after it came out in the states.

the PSP has a lot of potential :D

stotheamuel
July 27th, 2006, 08:08
well my b-days 8/8, so two weeks yayy!!! :D ohh and i was the one who said its always good to hear the word speed comin from strmnnrmn :)


hmm thats the day sealab season 4 comes out....

ask for it
watch it (you'll love it... better than simpsons imo)
and then mail it to me :D

BL4Z3D247
July 27th, 2006, 08:19
hmm thats the day sealab season 4 comes out....

ask for it
watch it (you'll love it... better than simpsons imo)
and then mail it to me :D
lmao yeh i like sealab i'm an adult swin-a-holic :D, but u gotta love the simpson it's a classic