gonetz / GLideN64

A new generation, open-source graphics plugin for N64 emulators.
Other
765 stars 176 forks source link

RE2 4 MB Freeze #2433

Open GhostlyDark opened 3 years ago

GhostlyDark commented 3 years ago

Game freezes at the "game is super violent" screen if Expansion RAM is disabled. This is caused by this setting in the custom.ini (BioHazard II and Resident Evil II):

frameBufferEmulation\copyFromRDRAM=1

Setting it to 0 fixes the freeze. Backgrounds load normally for both 4 MB and 8 MB memory. The freeze seems to only happen with mupen64plus.

Jj0YzL5nvJ commented 3 years ago

It works for me using:

--gfx mupen64plus-video-GLideN64.so --rsp mupen64plus-rsp-hle.so --audio mupen64plus-audio-sdl.so --set Core[DisableExtraMem]=True --set Video-GLideN64[DisableFBInfo]=False --emumode 1

Interestingly, this is the first time that mupen64plus-audio-sdl.so works better than mupen64plus-audio-sdl2.so. With --emumode 0, the audio is a total mess.

gonetz commented 3 years ago

copyFromRDRAM is necessary for end game credits.

This option is potentially dangerous, as any other writes to RDRAM. Most likely, it writes more data than necessary.

GhostlyDark commented 3 years ago

Credits are invisible, regardless if copyFromRDRAM is on or not.

The only issue I've seen are Leon and Ada getting invisible during their first cutscene. I'd have to confirm it happens due to the option set to 0 first though, but I saw it happening on my mupen configuration, for which I set it to 0.

The alternative is to use Interpreter with FBInfo being active. The option won't work with Dynarec however.

gonetz commented 3 years ago

Credits are invisible, regardless if copyFromRDRAM is on or not.

It's strange: "copyFromRDRAM is necessary for end game credits." dff219f26f8fd

GhostlyDark commented 3 years ago

Can't replicate the cutscene issue when Leon meets Ada, so it's not copyFromRDRAM that causes any trouble there.

Had a savestate before that cutscene, but it's for v1.1 (PJ64 built-in cheats work better for that version). ada v1.1.pj.zip

Here's a savestate before the credits roll, v1.0: credits v1.0.pj.zip

Credit text is invisible, regardless if copyFromRDRAM is set to 0 or 1.

olivieryuyu commented 2 years ago

credits are fine to me too

gonetz commented 2 years ago

Credit text is invisible, regardless if copyFromRDRAM is set to 0 or 1.

To display the credit text:

Tested with credits v1.0.pj.zip savestate.

GhostlyDark commented 2 years ago

Credit text is invisible, regardless if copyFromRDRAM is set to 0 or 1.

To display the credit text:

  • Set copyToRDRAM=0
  • Set copyFromRDRAM=1

These settings are set for RE2 in GLideN64.custom.ini.

Tested with credits v1.0.pj.zip savestate.

I didn't have custom settings on with Project64. My bad.

The issue of freezing at the disclaimer screen with 4 MB persists however. Only way to get around it is to either disable custom settings (mupen64plus and PJ64) or to use Interpreter with fbInfoDisabled=0 (mupen64plus only).