libretro / pcsx_rearmed

ARM optimized PCSX fork
GNU General Public License v2.0
167 stars 120 forks source link

Neon plugin enhanced resolution: texture glitches in some games #841

Open pcercuei opened 3 months ago

pcercuei commented 3 months ago

PCSX-ReARMed Version

master (19f1a7d2de)

Your device

PC

Operating System of your device

Linux (or Linux-based like RetroPie etc.)

CPU architecture

x86-64 (64bit Intel, AMD, etc.)

Issue description

Vertical white line on the title screen of Final Fantasy VII.

Happens with the Neon GPU plugin, does not happen with Unai or Peops.

Capture d’écran du 2024-07-27 17-54-23

Step-by-step reproduction and logs

No response

notaz commented 3 months ago

Seems like you're using double resolution hack. With that there are single pixel texture u v interpolation issues. Trying to increase the interpolation multiplier glitches other games. There is "Texture Adjustment" hack option but it also breaks other games. I don't know how this can be solved or how other emu hires hacks do it.

pcercuei commented 3 months ago

Right - I forgot I had this ON.

hizzlekizzle commented 3 months ago

I don't know how this can be solved or how other emu hires hacks do it.

I believe they usually put a clamp/boundary on the texture UVs to not allow sampling any of the neighboring textures that occupy the same sheet.

notaz commented 2 months ago

I've reworked the texture adjustment hack to not be harmful any more and enabled it by default. But the code is quite awful and there is a small performance hit, so the option is still there. Some testing would be appreciated.