Dolphin, the GameCube and Wii emulator - Forums

Full Version: Synchronised FIFO patch (for Eternal Darkness)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(06-17-2010, 07:26 AM)skid Wrote: [ -> ]Would it be possible for you to send me a save state or a save game near the part where the game is freezing every time? Is it easy to get to in the PAL version of the game?

The 40fps may be an unrelated Dolphin slowdown. I'll try to optimise the patch a bit later on.

It looks like Rogue Leader is suffering from a JIT or MMU/TLB hack issue. I took a closer look at the TLB hack yesterday and did not find any bugs with the code. I will keep looking.

Here is that SaveState for you, for the NTSC version mind you, hit F6:

http://www.megaupload.com/?d=HFV6KXYP

And yeah it is easy to get to in the PAL as well, its basically the first area as Pious Augustus, you begin the temple teleported in, and then as soon as you go down the stairs you find that hallway. Now I've tried this on both OpenGL-Texture and RAM, with RAM I managed to make it to the door, then in the second room with the green cube it froze again.

I'd note that EVERYTIME you have enemies in game it will slow down considerably, probably something to do with the targeting mechanism (hunch), it seems to bottom out for me at 40fps-OpenGL, whether I use to RAM or Texture, its the same 40fps.

By the way, I appreciate the work you're doing, I am slowly working on a Computer Science Degree and find myself understanding dolphin source more and more as I go, I wish I had a better way to help you but at least I can do this for now. I never want to be one of those whiners that just complains the game is broken, dude, honestly I am happy just to walk around the manson in ED, this game is still retarded-scary to me and I am 26 in a week. Haha.
Found some other interesting stuff just tinkering about with PAL-ED:

How it was DTK music giving me the crazy garbled sound in PAL, and how if you switch to OpenAL and use HLE and Audio Throttle you don't get it, buttt it also removes some sounds, such as the Voice Acting.

I actually can get through all the menus and everything if I use a safe texture cache, distance alpha pass, and the BP Hack, I honestly believe that it is infact the Twilight bloom hack which is causing the game to freeze... Could be wrong though, once you get in game like that and you go to menu the game freezes.

Everything also runs pretty smooth when you disable the EFB, and/or the CPU>EFB access. Only the frame rate goes to shit obviously, and if I try to use idle skip it wont let me past the first quote naturally.

Dunno, the PAL version seems way more unstable for me. Now I'm going to try to dink around with NTSC for a few minutes the same way.+
Thank you for the reports. Much appreciated. Will verify later today.
Alrighty, so this is the last one I have for ya, its the NTSC version, ill do DX9 first:

First of all using any XFB breaks the game, in both OpenGL or DX9.

Oh, and Lock Threads to cores is a huge speed up for it, about 20fps boost.

DX9 is actually really nice as usual, only thing is there seems to be some sort of trouble with the menu, and opening doors. Right clicking on the game, i used these settings to get a stable menu-beginning systemSadenable EFB to CPU access) Enable Dual Core, Enable EFB to Texture, Safe Texture Cache (on safe), Distance Alpha Pass, and FiFO hack, and obviously the twilight bloom hack. ------- Now the only problem with this rig is when you try to open your menu or a door, you get a nice ol game freeze, and no panic handler to look at either. Frames just die.

I was going to write a big ass thing about OpenGL now, but it seems like I have broken it the same way as DX9, I try a door and the game freezes........ LOL. So after another 20 mins I have to say I am done and walk away before I get sick of the game before I even play through it on dolphin.
Strange, this modified build seems to fix Resident Evil 4 PAL not booting issue. The game was broken by r5023 or 5024 an has been that way since then (see issue 2498 - http://code.google.com/p/dolphin-emu/issues/detail?id=2498 ).
Any idea what is wrong with fifo gatherpipe? I'd really like to test your fifo patch on the latest revisions but I am unable to because the changes to fifo gather pipe broke this patch.

Any more progress made, chances of when will see an updated patch or it being committed to the repository. Not trying to rush anything, just curious, needs quite a bit of testing. I'll try testing Eternal Darkness a bit more and report any issues, my goal is to see if it's playable from beginning to end with the patched build you posted. Tongue
I tried to merge my changes into the current trunk and it failed miserably. Not a single game worked.

I then tried to merge the current trunk into the sync fifo code and it worked a little better but it still isn't as compatible as before.

I'll still need to work on either of the above a bit more. It involves laborious comparing of the code. I just have to find the motivation Smile Give me a few weeks to play with this stuff. I am interested in reports like zezoman's below which tell me that the patch has made a difference from what is in svn currently.

I tested the current svn GPFifo.cpp with my changes and they are now compatible (good job, Ayuanx).

Xtreme2damax, in light of that, what you can do is this:

Apply the sync fifo patch to the version it was designed for. Then after it is patched, copy out these files - fifo.cpp, fifo.h, commandprocessor.cpp, commandprocessor.h, opcodedecoding.cpp, opcodedecoding.h to another location.

Pull down a fresh copy from svn. Copy the files above into the fresh copy, overwriting what is in svn.

fifo, commandprocessor and opcodedecoding are pretty stand-alone, and the sync fifo code is a total replacement.

Let me know how you go.
Thanks I'll try it, I could of sworn I already tried that though and it didn't work. Seems to be a change after revision 5688 that broke the patch, not sure if it's that CheckGatherPipe code as you mentioned in a comment on the svn repository.
I've just played through as Pious, picking up the four granite cubes and inserted them into the walls. I then destroyed the statue and claimed one of the artifacts and turned Pious into a mummy. The game then reset.

jinnai3k, was this the area where you said you were getting hangs?
I don't know what happened with Eternal Darkness ,I tried skid build,I tried Every thing,both NTSC and PAL versions....
nothing is helping,I still Stuck and the Intro....
my only hope is a Game Saves from someone that manage to get to the menu.can someone upload here as attachment?
please no rapidshare cuz I have problems with it.

EDIT:

I just tried the NTSC save version I found here,it makes the emulator crash...
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18