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

GL/Vulkan: Grand Theft Auto V graphical issues #3959

Open
8 of 9 tasks
MarioSonic2987 opened this issue Dec 20, 2017 · 51 comments
Open
8 of 9 tasks

GL/Vulkan: Grand Theft Auto V graphical issues #3959

MarioSonic2987 opened this issue Dec 20, 2017 · 51 comments

Comments

@MarioSonic2987
Copy link
Contributor

MarioSonic2987 commented Dec 20, 2017

Graphical issues:

Footage (June 25, 2019)

Log OpenGL
Shaderlog OpenGL
RenderDoc OpenGL (Loading screen and ingame)

Original comment With https://github.com/RPCS3/rpcs3/commit/a08e79f4267b5e9fab82949a5f011eb40aca76b0, GTA V renders its UI like this (look at the Rockstar's logo):

image

But with RenderDoc, I was able to modify the shaders. I went to the vertex one to investigate what was causing that bug. And I found these two lines of code:

rd1
By changing bits 216 and 217, it fixed Rockstar's logo's orientation somehow, but the rest of UI is moved and rotated.
rd2

In conclussion, this bug is caused, likely, by a vertex shader instruction badly implemented.

Log OpenGL
Shaderlog OpenGL - It's important the latest generated vertex shader.
RenderDoc OpenGL

@kd-11
Copy link
Contributor

kd-11 commented Dec 20, 2017

Actually that change just changes referenced data that is uploaded from the cpu. There is no ARL preceding it meaning the values are intentionally that way (also confirmed in that swapping them rotated everything). Might be a vertex register misalignment or something broken in cell side calculations.

@MarioSonic2987 MarioSonic2987 changed the title Grand Theft Auto V: Distorted UI elements GL/Vulkan: Grand Theft Auto V graphical issues Apr 25, 2018
@MarioSonic2987
Copy link
Contributor Author

With 345f92a:

This screenshot is taken with PPU interpreter fast and SPU interpreter precise, and there's no graphic difference.

RSX Capture Loading screen (Vulkan)

gta v-ppu spu prec

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Oct 14, 2018

Ace Combat Infinity, like GTA V, has the same distorted UI bug. With these settings and with/without Force CPU blit, it doesn't improve.

Screenshot of the bug:

RSX Capture (ACI and GTA V)

@MarioSonic2987
Copy link
Contributor Author

I've attached the latest capture of the distorted UI glitch.
image

RSX Capture (Pause menu)

@MarioSonic2987
Copy link
Contributor Author

This game needs Write Color Buffers to fix lighting outside.

Screenshot comparison

Without WCB:
image
With WCB:
image

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Aug 20, 2019

I've attached a RDC in Los Santos to show the graphical issues.
image

RenderDoc VK

@MarioSonic2987
Copy link
Contributor Author

I've attached a OpenGL renderdoc trace for the dark shadows. Tested with 0.0.7-8700-32a4c224.

RenderDoc OpenGL

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Jan 1, 2020

Raindrops are rendered by using WCB+WDB+RCB+RDB.

Missing raindrops

image
image

Models no longer turn black in certain camera angles. But the red textures are still there:
image
image

@The-SamminAter
Copy link

The-SamminAter commented Jan 16, 2020

I'm getting severely distorted/laggy audio, and for some reason characters are red.
FPS_ 16 54 _ Vulkan _ 0 0 8-9349 _ Grand Theft Auto V  BLES01807  2020-01-15 5_10_52 PM

I'm also getting distorted graphics
FPS_ 30 13 _ Vulkan _ 0 0 8-9349 _ Grand Theft Auto V  BLES01807  2020-01-15 5_15_35 PM

@MarioSonic2987
Copy link
Contributor Author

Reflections are broken, like in these puddles.
image
image

@MarioSonic2987
Copy link
Contributor Author

Sea isn't vertex-exploded if you disable WCB, as well the weird garbage glitch:
image
image

With WCB enabled:
image
image

@xddxd
Copy link
Contributor

xddxd commented Jun 17, 2020

Ambient occlusion seems to be broken as well.

Prologue shots

RPCS3
Screenshot_4
RealHW shot from Youtube
Screenshot_6
PC
sspcprologue

Franklin's house

RPCS3
Screenshot_3
PC
sspc

![RPCS3.log.gz](https://github.com/RPCS3/rpcs3/files/4792648/RPCS3.log.gz) PC and RPCS3 renderdocs https://www.dropbox.com/s/7jj8lff29mc5yne/gtavrdc.7z?dl=0

@kd-11
Copy link
Contributor

kd-11 commented Jun 17, 2020

For post-processing missing bugs, please make sure to test with all the buffer options enabled in case the game is using SPUs for some effects.

@kd-11
Copy link
Contributor

kd-11 commented Jun 17, 2020

And also accurate xfloat just in case. There's a very large chance this effect is not done GPU-side given how weak the shader pipes are on RSX.

@xddxd
Copy link
Contributor

xddxd commented Jun 17, 2020

In the image WCB+WDB+RCB+RDB and accurate xfloat are enabled, no change.
image
In addition to the settings mentioned above, I tried SRM and CPU blit as well, no change.

@MarioSonic2987
Copy link
Contributor Author

Broken ambient occlusion is now fixed.

image
image

@MarioSonic2987
Copy link
Contributor Author

I attached two RSX Captures for the broken UI bug.

RSX Captures (Pause menu and brightness calibration screen)

@Xcedf
Copy link

Xcedf commented Sep 19, 2020

Dudes don't turn red anymore during intro mission
https://youtu.be/LE8C-12tIKw
unfortunately game froze during capture, but still

@MarioSonic2987
Copy link
Contributor Author

@Xcedf I can confirm that the red texture bug is fixed, even if you get injured.
image
image

But it still happens with OpenGL.
image

Cellphone screen has now correct colors. Previously, colors were inverted.
image
image

Although car reflections are missing in OpenGL. Vulkan shows them correctly.
image
image

@Xcedf
Copy link

Xcedf commented Sep 20, 2020

@MarioSonic2987 can't get to Franklin mission in the car shop cause of freezing, maybe Setarian strange monkey face bug is also fixed. Besides do you know maybe game need some special settings to maintain stability?

@MarioSonic2987
Copy link
Contributor Author

@Xcedf You need to change Driver Wake-Up Delay to, at least, 400 μs.

The "monkey face" bug is still there, but it happens when a character is too close to the camera. It also happens in the prologue in the same manner (see Michael's jacket in my previous comment).
image
image

@Xcedf
Copy link

Xcedf commented Sep 20, 2020

@MarioSonic2987 Freezes for me even on 5000μs.

@Xcedf
Copy link

Xcedf commented Jul 31, 2021

Water in the ocean seems to be no longer vertex exploding
recent master build, wawes are fine
https://youtu.be/yW397eIr-_U
for example some older build, feels like it's boiling
https://youtu.be/xN0pUXDlx9o
Reflections are still mess, but water in the pool no longer radioactive on Vulkan as well
image

@MarioSonic2987
Copy link
Contributor Author

I can confirm water doesn't freak out in certain camera angles:
image

But reflections are still borked.
image

However, when you dive into the water, it looks fine.
image

@MarioSonic2987
Copy link
Contributor Author

Broken reflections in vehicles and puddles in OpenGL is a regression caused by PR #8710.

@jokoputera
Copy link

How about in the KD11 latest release?
#10764

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Aug 27, 2021

Nothing changed with #10764.

Remaining issues:

@aakh1361
Copy link

In Gta V Most of the time, loud noises are made when entering the tunnel

@Xcedf
Copy link

Xcedf commented Aug 28, 2021

@MarioSonic2987 you're saying that rainbow artifacts is an old regression, so it worked on Vullkan at some point?

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Sep 12, 2021

Rainbow blocky artifacts regression present in Vulkan are caused by PR #6359. Commit 91d7110. Discovered by Xcedf.

@MarioSonic2987
Copy link
Contributor Author

Characters no longer turn black in cutscenes:
image

@MarioSonic2987
Copy link
Contributor Author

Not a graphical fix, but loud noises in most situations, like this cutscene, are no longer present.
image

@Darkhost1999
Copy link
Contributor

Not a graphical fix, but loud noises in most situations are no longer present.

Indeed loud noises are still present at randomly occurring times but nowhere near the amount of frequency as before. Very rare for pops and bangs now.

@Xcedf
Copy link

Xcedf commented May 13, 2022

@Darkhost1999 remove PPU Cache and try again, it was LLVM fix

@Darkhost1999
Copy link
Contributor

@Darkhost1999 remove PPU Cache and try again, it was LLVM fix

I have removed all of my caches and compiled them all again.
The loud pops and bangs are rare not gone.

@Xcedf
Copy link

Xcedf commented May 13, 2022

@Darkhost1999 can you run this palce in prologue
this is how it sounded before(door sound)
https://youtu.be/ESm0c1cHzlI?t=8
and this is after the fix
https://youtu.be/jW1jHhpoTrY?t=6

@Darkhost1999
Copy link
Contributor

That would defeat the entire purpose of the error still exists but occurs less often. Because now you're asking me to pick and choose an area of the game that works now to record and prove my point that will not come to past because it'll only prove your point.

@Darkhost1999
Copy link
Contributor

In the end wrong issue ticket anyways.

@Xcedf
Copy link

Xcedf commented May 13, 2022

Did you remember me asking to change or drop your point? I can't. I'm just asking to test this certain place in the game that's it, to make sure that at least this is working.

@Darkhost1999
Copy link
Contributor

Alright but that section of the game does work and is fixed. So if that's what you want to know. It is indeed working there Simone's was worse I'll record later then.

@Darkhost1999
Copy link
Contributor

In the event it has not been said water is a regression.

Build with regression #6359

Screenshot_20220803-002533.png

Zerox used illusions build as a base. Then just reverted things from there.
https://discord.com/channels/272035812277878785/272035812277878785/934899723461066772
Although I still see no source code or anything to show what changes were made if you find this useful. Maybe the fix can be added to master soon

@Lucas7yoshi
Copy link

A regression occured, the game completely locks up at the "Get to the car" stage of prologue, FPS not changing

This has occured every time for 5 times.

0.0.24-14133
GTA 5 is updated with all updates to 1.27

Using all compatibility options described here https://wiki.rpcs3.net/index.php?title=Grand_Theft_Auto_V

Footage/log is from fresh cache
Video: https://www.youtube.com/watch?v=J6wHd1I3ccI
Log file: https://sx.l7y.ca/gta5_2022_09_08_lucas7yoshi_RPCS3_fH8nLmQz8.log.gz

@Darkhost1999
Copy link
Contributor

Darkhost1999 commented Sep 11, 2022

the game completely locks up at the "Get to the car" stage of prologue

Debugger wouldn't stop mentioning getllar so I enabled accurate RSX reservation access and it worked. I tested as far back as #12234 and gave up.
Just enable accurate RSX reservation access then as soon as you're Franklin you don't "need" the setting anymore. But it also prevents freezing when swimming as anyone later in game.

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Sep 27, 2022

Tested on 0.0.24-14195.

OpenGL issues

It has broken ambient occlusion, missing car reflections and minor vertex explosions in the water:
image
image

Character's portrait in the pause menu is rendered black (correct in Vulkan):
image
image

Red models in certain conditions (when someone gets injured, for example) are no longer present:
image

Vulkan-exclusive glitches (rainbow garbage and broken reflections) are still present.

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Oct 7, 2022

PR #12762 breaks graphics in Vulkan. OpenGL works fine.
image

Edit: Fixed.

@MSuih
Copy link
Member

MSuih commented Oct 7, 2022

Vulkan regression might be fixed by #12768

@MarioSonic2987
Copy link
Contributor Author

That PR fixes this regression.
image

@kd-11
Copy link
Contributor

kd-11 commented Dec 13, 2022

Check if water is fixed by #13070

@MarioSonic2987
Copy link
Contributor Author

MarioSonic2987 commented Feb 1, 2023

Flickering rainbow glitches are now almost fixed in PR #13077:
image

It's still there, but it's MUCH better than before.
image

But the water still looks wrong.
image
image

@Ordinary205
Copy link
Contributor

Ordinary205 commented Aug 19, 2023

Intermittent vertex explosions on vehicles still occurs even on the latest master.

Desktop.2023.08.19.-.19.54.06.02_Trim.mp4

RPCS3.log.gz

@Lethality5001
Copy link

Will water be fixed soon? Or car flickering when damaged enough

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