Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async sound and blackscreen flashes in background videos (tested with Dj Max 2) #3468

Closed
ppmeis opened this issue Aug 29, 2013 · 25 comments
Closed

Comments

@ppmeis
Copy link
Contributor

ppmeis commented Aug 29, 2013

Emulator: PPSSPP
Build: v0.9.1-259-g730f291
Game: Dj Max Portable 2 (ULKS46116)
Bugs: Pink transparency (already reported), async sound, black flashes on background videos.
http://youtu.be/EYxacCerBbY

@ppmeis
Copy link
Contributor Author

ppmeis commented Sep 1, 2013

I just tried with latest build, same issue, this time tested with Dj Max Portable.

@unknownbrackets
Copy link
Collaborator

Does the "low latency audio" setting improve it at all?

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Sep 1, 2013

No, doesn't help at all. I tried with Multithread and I/O thread on and off, same things. Its like song goes faster than notes :S.

@ppmeis
Copy link
Contributor Author

ppmeis commented Sep 15, 2013

Ok I get again this issue with latest build, same problem, BUT I notice if I disable both multithread and I/O thread the sound don't async more.

@unknownbrackets
Copy link
Collaborator

So, IO on a separate thread makes the sound come in asynchronously? I wonder if this is related to async IO thread priority.

Are the other issues resolved? So, this is only an issue with io thread and multithread? Does io thread off, multithread on work?

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jan 19, 2014

@unknownbrackets I will try it with latest build tomorrow to confirm.

@ppmeis
Copy link
Contributor Author

ppmeis commented Jan 20, 2014

@unknownbrackets I tried latest build from today:

PPSSPP version: v0.9.6-522-gf16fa45-windows-amd64
OS: Windows 8 Pro 64bits
PSP Titles:

  • DJ Max Portable [ULKS46050]
  • DJ Max Portable 2 [ULKS46116]
  • DJ Max Portable 3 [ULUS10538]

All of them are proper dumps. Notice that DJ Max Portable 3 has a anti piracy protection which makes game unplayable from the third song you play (stutter and deformed sound and graphic glitches on videos and gear).

You can see the configuration at the beginning of all videos. The most important is that both Multithread and I/O Thread are on, also latency audio is off.

Videos:

So, audio async seems to be fixed. Maybe there were some changes under thread setting since my last try. The blackscreen flashes seems to be fixed too, cause I didn't see them during latest gameplays. But Pink borders still present.

Regards.

@unknownbrackets
Copy link
Collaborator

Change texture filtering to "Auto" not "Linear", this can cause artifacts like the pink borders. Also, if you're using an ATI card, there is a setting you need to disable in the ATI control panel (it seems to change names based on the driver name, so I'm not sure what it's called, but it used to be called Catalyst AI or something.)

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jan 20, 2014

I tried with texture filtering Off and Auto and pink borders are still present. I am using Nvidia.

@unknownbrackets
Copy link
Collaborator

That sounds like texture scaling. There should be one with the following settings:

Auto
Nearest
Linear
Linear (videos)

For maximum chance of killing the pink, try "Render Resolution" at 1x and "Texture filtering" at "Nearest" (as well as "Texture scaling" off, not xBRZ or anything.) If that does fix it, does 1x / Auto work? Or 2x / Nearest?

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jan 21, 2014

@unknownbrackets I tried all combinations you said, still pink issue, Render Resolution at 1x and 2x, Nearest and Auto, no texture scaling.

I think that this is caused for something wrong during processing transparent textures, Is not normal that it happens on all DJ Max series, also in DJ Max 3 not default gear but most of them has the issue.

@unknownbrackets
Copy link
Collaborator

Possibly, but a lot of games use transparency in textures and do so in a very straight forward way.

If you go to Debug -> GE Debugger... in the menu when it's showing the pink, click "Step Frame", and then click "Step Prim" until you see it about to draw the thing that has pink (if you pass it, just click "Step Frame" again to start over.) You can "Step Tex" to kinda fast forward, but ultimately you want to be on the "Step Prim" that is about to draw the texture.

Hopefully this goes quickly, it is usually worse for heavy 3D games. Sorry.

Once you get there, I'd like a screenshot of the Texture tab (especially the Texture Format field.) If it's just using a CLUT, there's every reason it should work. If it's some sort of DXT texture, maybe that's the issue (although I know these work in Ys 6.)

Also, I'd like a screenshot of the Settings tab (maybe resize the window taller if possible.) Specifically, I'm wondering whether it uses a color test or any alpha blending, etc.

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jan 21, 2014

Here you have (i think though):

Texture tab:
image

Settings tab:
image

@unknownbrackets
Copy link
Collaborator

Hmm. The color test is using a mask (maybe geared toward bilinear filtering, I guess...) That's probably why.

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Apr 18, 2014

Update: The pink issue is still present on latest build.

@ppmeis
Copy link
Contributor Author

ppmeis commented May 12, 2014

Update: Issue still present under latest build.

@unknownbrackets
Copy link
Collaborator

Does this still happen in the latest build on Windows / Linux / GLES3? Unfortunately, I'm not sure if there's a good way to fix it for gles2...

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jul 1, 2014

As I said at #2843, pink issue is almost fixed. Now there's no pink borders when gear is empty of notes, but when a note appears you can see some pink lines. However is a good improvement:

No pink lines:
image

First notes appears, pink lines are visible:
image

Changing internal resolution does not help.

@ppmeis
Copy link
Contributor Author

ppmeis commented Jul 25, 2015

Tested with latest build. Pink lines are still visible, but only using higher IR than native. To mitigate this issue, using any texture scaling helps a lot:

10x IR and xBRZ
image

@unknownbrackets
Copy link
Collaborator

Well, higher resolutions are going to use filtering which makes the color test not work properly. If you force nearest filtering, is the pink gone at higher IR?

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Jul 25, 2015

@unknownbrackets yes, pink is gone using nearest (no filter scaling applied):

Nearest 10x IR:
image

Linear 10x IR:
image

@unknownbrackets
Copy link
Collaborator

So at best we could be detecting this situation and forcing linear filtering off for such textures. However this is directly at odds with issues like #4405. We have to pick a poison here.

-[Unknown]

@ppmeis
Copy link
Contributor Author

ppmeis commented Nov 5, 2018

Tested with latest build. Same issues.

@ghost
Copy link

ghost commented Dec 9, 2022

Still reproduce this issue?

@hrydgard
Copy link
Owner

hrydgard commented Dec 9, 2022

Most likely, but it's not really fixable on its own. Turn off filtering or run at 1x or live with pink lines.

I guess a compatibility flag that hacked up the color testing in this game could possibly work, but I don't really feel that it's worth it.

@hrydgard hrydgard closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants