mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-04-24 21:56:10 +03:00
[GH-ISSUE #4348] Persona 3 Portable - Map lines dissapear when internernal res is set to 1 #1768
Labels
No labels
Atrac3+
Audio
CPU emulation
D3D11
D3D9 (removed)
Depth / Z
Feature Request
Font Atlas
GE emulation
Guardband / Range Culling
HLE/Kernel
I/O
Input/Controller
MP3
Multithreading
Needs hardware testing
Networking/adhoc/infrastructure
No Feedback / Outdated?
OpenGL
PGF / sceFont
PSMF / MPEG
Platform-specific (Android)
Platform-specific (Windows)
Platform-specific (iOS)
PowerVR GPU
SDL2
Saving issue
User Interface
Vulkan
arm64jit
armjit
armv6
x86jit
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ppsspp#1768
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @internetakias on GitHub (Oct 28, 2013).
Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/4348
Pretty self explanatory I guess


1x Res
2x Res
@unknownbrackets commented on GitHub (Dec 8, 2013):
I know there were some tweaks here, I assume this still happens?
I wonder if the line width should be 1.5 or something...
-[Unknown]
@internetakias commented on GitHub (Dec 12, 2013):
Yes, it still happens with build v0.9.6-3-g551ba17
@dbz400 commented on GitHub (Dec 14, 2013):
Can you take a savestate for me to reproduce it ?
@internetakias commented on GitHub (Dec 15, 2013):
Here https://mega.co.nz/#!IBEBmBKA!EysEzU4CCb0ZHMPaD02EsFUIAwZ-ub4-Va_z2lQ_JoE
@dbz400 commented on GitHub (Dec 16, 2013):
Many thanks. Testing out
@dbz400 commented on GitHub (Dec 16, 2013):
Alright .At 1x , softgpu renders the lines okay but not GLES .At >=2x , both render the lines okay
GLES

SoftGPU

@dbz400 commented on GitHub (Dec 16, 2013):
I viewed at another scene , looks like the line is there but only very fade in color at 1x
@dbz400 commented on GitHub (Apr 23, 2014):
@internetakias , did latest buildbot look better for those lines?. Not too sure if it is relating to 2x alpha blending mode which makes those lines darker it should be.
@internetakias commented on GitHub (Apr 25, 2014):
Yep, bug's fixed it seems. So, time to close this, I guess


1X res
EDIT: Nevermind, it seems that the inner squares still disappear in 1x res
2X res
@unknownbrackets commented on GitHub (May 15, 2017):
This (at least the first pair of screenshots) is caused by texture scaling. When you set texture scaling high but have render resolution at 1x, this happens.
It's not really a bug per se - although perhaps we could avoid the issue by providing mipmap levels for scaled textures (which would just make the texture scaling waste time when drawn as small as the texture already was.)
As for the inner squares - I'm not certain if they are supposed to be there or not. The way it's drawing makes me think they are (they are part of the texture it uses to draw each grid cell), but they appear very faint for me.
-[Unknown]
@internetakias commented on GitHub (May 15, 2017):
It also happens with texture filtering set to "Nearest"
@unknownbrackets commented on GitHub (May 15, 2017):
That's pretty expected. "Auto" means "do what the game says." The game is asking for linear filtering here - forcing it to use nearest instead will change how it looks. It's even for the same reason.
It's drawing a 14x14 square using a 20x20 texture. And the 20x20 texture has a tiny gray line in it.
So nearest just "jumps over it". In linear filtering, it finds the two pixels next to each other, and splits the difference. So you get half a line with linear on.
It gets worse with texture scaling, though.
Even though the line is twice as wide, it's also picking less things from the texture to draw. And now, when it "splits the difference", it sees even less of the line to split. By the time you get to 3x, the line is invisible to those 14 arrows. It just slips right into a gap between them, like a ninja.
The general solution is "mipmapping". Mipmapping is basically the reverse of texture scaling. It's like 0.5x or 0.25x texture scaling. It makes it so the line won't get skipped - but it's "smart", so it uses 1x or 0.5x etc. based on how the texture is being used.
There's also anisotropic filtering (on by default.) The PSP just looks at two pixels, but anisotropic makes it look at more (i.e. maybe 16 pixels.) But it still averages them together - which means the line gets "diluted" still, and blurred out of existence.
So that's why I said we could workaround this by providing mipmaps - which would essentially mean using 1x texture scaling for this texture, since it's already larger (20x20 > 14x14) what is being drawn.
When you increase render resolution, it increases the 14x14 number, so 2x would be 28x28. That's a lot more arrows, so it finds the line.
-[Unknown]
@hrydgard commented on GitHub (Sep 3, 2022):
I think this is fixed with the new line drawing, right?