pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

[BUG]: FFX FMV Flickering

Open larwood opened this issue 3 years ago • 23 comments

Describe the Bug

Most but not all FMVs in Final Fantasy X flicker when the Renderer configured is OpenGL. When the Renderer configured is Software there is no issue.

Once the FMV flicker begins if I quickly toggle the Renderer with F9 from OpenGL -> Software -> OpenGL the issue no longer occurs.

I have not yet watched all 50 FMVs in the The Sphere Theater (Luca Sphere Theater) but the issue does not appear to trigger there. Perhaps becuase I have to press X to begin the FMV so the transition is different?

I have tested on my Notebook and Desktop with different hardware and the issue is present on both.

There is no difference in behaviour if I load from a Memory Card save or from a Save State.

I have shared logs and a GS dump.

A short 17 second video https://www.youtube.com/watch?v=11W2vXuybwU

Forum discussion https://forums.pcsx2.net/Thread-Final-Fantasy-X-Internal-Resolution-Scaling-Incorrect-During-Gameplay-Cutscenes?page=2

Reproduction Steps

Load the game from either Memory Card save or Save State and wait for transition from in game play to FMV.

The majority but not all FMVs will exhibit the flickering behaviour.

Expected Behavior

Game play to FMV transition occurs with no flickering.

PCSX2 Revision

v1.7.2184

Operating System

Windows 10 (64bit)

If Linux - Specify Distro

No response

CPU

Intel Core i7 8750H

GPU

NVIDIA GeForce GTX 1060

GS Settings

Fresh install no changes from defaults

Emulation Settings

Fresh install no changes from defaults

GS Window Screenshots

No response

Logs & Dumps

GS dump https://drive.google.com/file/d/1VsfQnN5RrWuSIebTjE_q79dTrFtGblBz/view?usp=sharing

Logs https://drive.google.com/file/d/1Jm_py7zY8s99x44UNyBKtvx0GgrNoPws/view?usp=sharing

larwood avatar Jan 01 '22 11:01 larwood

I think this has been around for at least a while, but I suspect it will happen randomly depending on what's in VRAM. Any chance you could check back to when it started happening, if it used to not be an issue?

Of course don't check every build in turn, jump back to 1.7.2000 or something, see if that works, if not, try 1000, then narrow it down etc.

refractionpcsx2 avatar Jan 01 '22 14:01 refractionpcsx2

Looks like you forgot to upload the savestate and memory card save you were talking about in first post.

prafullpcsx2 avatar Jan 01 '22 19:01 prafullpcsx2

@prafullpcsx2 here is a link to a memory card and save state. The memory card has two saves. The first is at Lake Macalania where you can walk to the lake to chat with Yuna. It takes a while to get to the FMV so that is what the Save State is for. The second save I have purchased all the Movie Spheres so you can visit Luca Theatre to view them all but so far I have not triggered the issue here.

https://drive.google.com/file/d/1f2sU6EAJsgeCaXW6C_n6aFVQjKmxm6hg/view?usp=sharing

larwood avatar Jan 02 '22 04:01 larwood

@refractionpcsx2 I did test v1.7.2003 back in late November 2021 as part of the discussion in the PCSX2 Forums and the issue was occurring there as well.

Looking at the Releases page I can't view any v1.7.x versions older than v1.7.2003. I'm happy to test if you can direct me to a location to download older versions of the v1.7.x branch. https://github.com/PCSX2/pcsx2/releases?page=19

larwood avatar Jan 02 '22 04:01 larwood

I tested this today and it seems to be a problem with using savestates. If I do a fresh boot then the problem doesn't occur. If I load the savestate first time the problem doesn't occur. The flickering starts when you use the savestate second time.

prafullpcsx2 avatar Jan 02 '22 07:01 prafullpcsx2

100% not a problem with using savestates. If you load up the memory card save from Lake Macalania and don't use the Save State it will flicker but you will have to wait 5 minutes or so for the scene with Yuna to play out.

larwood avatar Jan 02 '22 09:01 larwood

Load it 4 times. Didn't flicker even once

prafullpcsx2 avatar Jan 02 '22 09:01 prafullpcsx2

Interesting. I had multiple instances throughout the game of FMVs flickering with OpenGL. There were some that didn't but the majority did. I can reproduce the flickering 100% of the time with the lake scene both from the Save State and from the Memory Card save. With the software renderer no problems ever.

To clarify regards the save state. I didn't use save states at all through this game. I only created the one I uploaded to save the Devs some time as that lake scene is quite long before the FMV plays.

larwood avatar Jan 02 '22 11:01 larwood

On further testing this seems to be a strange bug.

Native- bug happens everytime. 2x Native + Conservative buffer - bug happens everytime. Rest all - bug happens only on using savestate twice.

I assume you were using one of the first two options?

Also if you go into graphics settings the flickering stops automatically (even if you don't change any option).

prafullpcsx2 avatar Jan 02 '22 14:01 prafullpcsx2

My testing was using Native. A clean install of PCSX2 with no modifications. I just dropped in the bios, memcards and iso files.

I can confirm your discovery that just entering the Graphics settings and exiting with no actual changes stops the flickering.

Additionally I found an easier way to test. Load the 'Luca Stadium - Main Gate' save. Walk up to the Save Sphere and select 'Board airship'. Once on the airship talk to the Captain and select Sin from the destination list. This loads a short FMV which exhibits the flickering behaviour for me 100% of the time. Once you arrive at Sin you can walk up to the Save Sphere and board the airship again then repeat this loop as many times as you like.

larwood avatar Jan 02 '22 23:01 larwood

I tested using AetherSX2 and the FMV flickering occurs in that app as well. This is expected as I believe the code is shared between the two projects.

larwood avatar Jan 03 '22 00:01 larwood

I believe the code is shared between the two projects.

Yup

F0bes avatar Jan 03 '22 00:01 F0bes

Testing the new option 'Use Software Renderer for FMVs' in AetherSX2 allows both the Lake Macalania and Sin FMVs to play with no flickering.

larwood avatar Jan 10 '22 10:01 larwood

We have that option back too..

refractionpcsx2 avatar Jan 10 '22 10:01 refractionpcsx2

OK yes I see that option now. I must have missed that commit notes email.

I tested out v1.7.2218 with both FMVs by enabling the option 'Use Software Renderer for FMVs' under Games Fixes. The FMVs still flicker if I have configured 'Graphics Settings > Renderer > Automatic'. The renderer being used in this case is 'OpenGL HW' according to the Window Title. However if I specifically set the renderer 'Graphics Settings > Renderer > OpenGL' the FMVs run with no flickering.

larwood avatar Jan 10 '22 12:01 larwood

I wonder if Enabling Large Framebuffer / Disable Conservative Framebuffer Allocation also helps with the issue.

RedDevilus avatar Jan 15 '22 01:01 RedDevilus

I did some testing during my recent FFX-2 playthrough, since I ran into the same issue. Looking back at my notes from my testing using v1.7.2003 (I forgot to report the issue since IRL stuff happened):

-)All FMVs are affected; problem most easily replicated by watching the opening cutscene, so it's not a savestate related issue -)Reproduced on both DX11/OGL backends -)Not affected by ANY graphical settings I tested with in either graphics mode -)Software Renderer not affected

Also, this is a possible seizure risk* so it should probably get looked at ASAP. I didn't bisect when the problem started (IRL stuff) but I can do so this weekend if no ones looked at this yet.

*Not a doctor, but I have to imagine this is a problem.

gamerk2 avatar Feb 11 '22 04:02 gamerk2

This seems to happen when subtitles are disabled

zelgodis avatar Feb 12 '22 12:02 zelgodis

Rocky: Legends (SLUS-20890): similar FMV flickering problem (only with HW renderer) rockylegendsflickeringFMV GSDump: https://www.mediafire.com/file/f2w4w9gyf1h2kgi/rocky_legends_%2528SLUS-20890%2529_-_gsdump_Menu_with_FMV.7z/file

@RedDevilus Large Framebuffer: yep, no more flickering with "Conservative Buffer Allocation: Off".

AhayriSG avatar Jul 14 '22 00:07 AhayriSG

why do you have Deinterlacing set to "none"?

refractionpcsx2 avatar Jul 24 '22 10:07 refractionpcsx2

why do you have Deinterlacing set to "none"?

bc testing with "Samsung SyncMaster 1100MB"

AhayriSG avatar Jul 24 '22 10:07 AhayriSG

why do you have Deinterlacing set to "none"?

bc testing with "Samsung SyncMaster 1100MB"

That has nothing to do with it? Your monitor might not be interlaced, but the PS2 is. Turning that off tells the game that it's not interlaced and causes it to try and allocated too much height for the picture and it gets confused.

refractionpcsx2 avatar Jul 24 '22 11:07 refractionpcsx2

why do you have Deinterlacing set to "none"?

bc testing with "Samsung SyncMaster 1100MB"

That has nothing to do with it? Your monitor might not be interlaced, but the PS2 is. Turning that off tells the game that it's not interlaced and causes it to try and allocated too much height for the picture and it gets confused.

Oh okay my bad. I thought that it's not important bc emu "knows" i'm using CRT with interlaced resolution/mode, anyway thanks. 👍

AhayriSG avatar Jul 24 '22 11:07 AhayriSG

This is already fixed in master in https://github.com/PCSX2/pcsx2/releases/tag/v1.7.2800 , so closing

refractionpcsx2 avatar Oct 20 '22 14:10 refractionpcsx2