hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.25k stars 2.17k forks source link

Dante's Inferno: transparent graphics + green line in cutscenes #17577

Open Felipefpl opened 1 year ago

Felipefpl commented 1 year ago

Game or games this happens in

ULES 01384

What area of the game / PPSSPP

When using dx9, dx11 or opengl i get those transparent graphics in the ground occasionally: ULES01384_00000

Aside those i also get quick "flashes" where the screen gets dark for 1 second in the opening video in the forest.

I also have a strange green line in the bottom of the screen that flickers, my max resolution is 1600x900, i run the game as 2xPSP with a 960x544 resolution.

PPSSPP reports a Broken_NAN_IN_Conditional in the driver bugs section, the option to find alternative solutions to driver's bugs is enabled.

What should happen

Game should run fine. Or not given my AWESOME video card. :P

Logs

No response

Platform

Windows

Mobile phone model or graphics card

Intel HD 2000

PPSSPP version affected

The latest i got today (June 13, 2023)

Last working version

No idea

Graphics backend (3D API)

Other

Checklist

hrydgard commented 1 year ago

Can you check if 1.15.4 has this problem on your computer?

(When you say "the latest", I assume you got from the buildbot? Or did you just download the latest from the main site?)

Felipefpl commented 1 year ago

Can you check if 1.15.4 has this problem on your computer?

Downloaded 1.15.4 from ppsspp's site, the same problems happen with it.

(When you say "the latest", I assume you got from the buildbot? Or did you just download the latest from the main site?)

Yes, i got the latest release today from buildbot.

Edit: i'll understand if this can't be fixed, i know my card sucks but i cant buy a new computer so dont worry too much about this. ;) :+1:

Edit 2: the specs of my video card are here:

https://www.techpowerup.com/gpu-specs/hd-graphics-2000.c1248

hrydgard commented 1 year ago

OK, anyway, thanks for reporting. There might be something to be done, or there might not be.

hrydgard commented 8 months ago

The green line at the bottom is easily reproducible in cut scenes, we're drawing from an oversized buffer and need to clamp UV:

Screenshot_20240210-081811

Felipefpl commented 8 months ago

I see, thanks for the update. I dont remember seeing this at the time.

hrydgard commented 8 months ago

Yeah I just added it here as a reminder to self to fix, no worries.

hrydgard commented 2 months ago

When the green flicker line is happening, it's drawing from a 512x512-specified texture that's larger than the actual content, but this is really just another case of bilinear filtering outside stuff by accident. The game is doing some really wacky stuff when drawing the video buffer (drawing R, G and B separately as CLUT8 textures) so we can't just detect that a video decode is happening and resize the target framebuffer. The problem still exists (though weaker) at 1x though, but I think that it might actually happen on real hardware too.

Not going to prioritize fixing it since it'll require a pretty nasty hack.

Felipefpl commented 1 month ago

@hrydgard - I understand, thanks for looking into this issue. Indeed it's better to wait till a better solution comes. 👍

hrydgard commented 1 month ago

GuffManDude on Discord reported occasional black flickers on iOS, in Vulkan only:

https://github.com/user-attachments/assets/67f636aa-7906-4134-a03a-b1081308c216

Felipefpl commented 1 month ago

Strange, i dont notice the black lines, only the green background. :)

hrydgard commented 1 month ago

Not sure i understand? the line (under video) is green and not black... no black lines.

Felipefpl commented 1 month ago

I was talking about the black flickers on iOS. :P

hrydgard commented 1 month ago

Then why say black lines and not flickers? And what green "background"?

Felipefpl commented 1 month ago

My mistake about black "lines". About the green just check the background. I dont remember seeing those colors in the game running on console.