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.22k stars 2.17k forks source link

how to solve the thin glitchy lines in the UI,is that can't fix? #19422

Open LzZzkK opened 1 month ago

LzZzkK commented 1 month ago

Game or games this happens in

Tokiden

What area of the game / PPSSPP

微信图片_20240829200745 My texture filtering is set to automatic, linear filtering, and automatic best quality; when the rendering resolution is set to 4x, there are boxes and thin lines, which also appear in other games but not as frequently.

What should happen

It should not appear boxes and thin lines appear, just as when using nearest.

Logs

No response

Platform

Android

Mobile device model or graphics card (GPU)

odin 2

PPSSPP version affected

v1.15.4

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

LunaMoo commented 1 month ago

You can only properly fix those problems by running affected game at X1 resolution or using texture replacement with high res textures changed to match game's math at selected res.

It can also be hidden by forcing nearest texture filtering or using xbr texture scaling, but sometimes those just look bad.

PSP games were not designed for high res nor tested with it and are full of such issues and it's not an emulation issue.

anr2me commented 1 month ago

Does high-res texture replacement really help in this case? This kind of issue usually happened when tiling a part of texture that's on the edge of the atlas isn't? where linear scaling blends the color with the black color outside of the atlas (depends on how the texture clamping/wrapping mode, it can also be a repetition of the edge pixels or something)

Reference ![img](https://github.com/user-attachments/assets/a8701fa3-05eb-4529-b363-397fdad66cd5)

Edit: i guess using hi-res texture can help in reducing the dark lines, since the affected pixels are smaller than the original texture that gets enlarged (causing the darkened part being enlarged too)

hrydgard commented 1 month ago

Try the "Smart 2D texture filtering" option, it doesn't work in all games but can clean up some of these issues.

LzZzkK commented 1 month ago

尝试“智能2D纹理过滤”选项,它并不适用于所有游戏,但可以解决其中的一些问题。

I try it,but only has a little change, until I use tex4xbrz,black lines are disappear,but the words look weird,can I find other texture filtering to improve this situation?