ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

S.Y.K: Renshouden Portable text box corrupt

Open benderscruffy opened this issue 3 years ago • 5 comments
trafficstars

Game or games this happens in

S.Y.K: Renshouden Portable ULJM05867

What area of the game / PPSSPP

the text box is corrupt PPSSPP v1 13 1-234-g5434bd83e - ULJM05867 _ S Y K ~蓮咲伝~ Portable 8_08_2022 1_03_39 PM PPSSPP v1 13 1-234-g5434bd83e - ULJM05867 _ S Y K ~蓮咲伝~ Portable 8_08_2022 1_04_30 PM

What should happen

text box should not be corrupt

here is what it is supposed to look like 02584-04

Logs

ppsspplog.zip

Platform

Windows

Mobile phone model or graphics card

AMD RX 580

PPSSPP version affected

PPSSPP v1.13.1-234-g5434bd83e

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

  • [X] Test in the latest git build in case it's already fixed.
  • [X] Search for other reports of the same issue.
  • [X] Try resetting settings or older versions and include if the issue is related.
  • [X] Try without any cheats and without loading any save states.
  • [X] Include logs or screenshots of issue.

benderscruffy avatar Aug 08 '22 05:08 benderscruffy

The texture looks a bit broken. It's almost like swizzling isn't being applied correctly. Was it working in v1.13.1?

Could you try exporting a GE frame dump? These help a lot. Just make sure to export it when you see the issue - it's almost like a screenshot. If you make it while the issue isn't happening, it won't help.

See here for instructions - it's not hard and works on Android too: https://github.com/hrydgard/ppsspp/wiki/How-to-create-a-frame-dump

You can zip that and then drag and drop it into a reply here.

Separately (but I could tell this with the frame dump), does it work in software rendering?

-[Unknown]

unknownbrackets avatar Aug 08 '22 05:08 unknownbrackets

here is the ge frame dump ULJM05867.zip no it doesnt work in software rendering and no it isnt working in 1.13.1

benderscruffy avatar Aug 08 '22 06:08 benderscruffy

If you try some older versions of PPSSPP like 1.12, 1.11, etc, was it working at any point before?

hrydgard avatar Aug 08 '22 08:08 hrydgard

yes broken in 1.12

benderscruffy avatar Aug 11 '22 08:08 benderscruffy

The text is drawn separately on top of the background, so the issue here is the background only. It's drawn at 7/49.

It should correctly look like this indeed: Rendering with smooth background for text

To get this, I turned off the swizzle flag from the texture (0x08849300 in the dump.) Rendering using a PSP shows the incorrect background, just like PPSSPP. I suspect that somehow, emulation is causing it to not set the correct swizzle flag.

It does explicitly set it:

09FBF188 C2000001 TexMode 000001 (swizzle, 0 levels, shared clut)

And later, it sets it back off before 9/49:

09FBF274 C2000000 TexMode 000000 (no swizzle, 0 levels, shared clut)

The actual text characters are swizzled, and the flag is correct for them.

This presumably must be some kind of HLE or CPU bug, I guess?

-[Unknown]

unknownbrackets avatar Aug 12 '22 03:08 unknownbrackets

Well, did this only happen on that machine? It seems to be a game-specific, not machine-specific bug, so I'm gonna re-open.

hrydgard avatar Nov 30 '23 21:11 hrydgard