ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

Burnout dominator have lighting issue (recursive rendering in framebuffer border)

Open marosis opened this issue 7 years ago • 31 comments
trafficstars

screenshot_20180529-085605 Sun in the tunel?!? OK!!!!! Backend: OpenGL

marosis avatar May 29 '18 07:05 marosis

~~Yeah, I believe the game is asynchronously reading from the depth buffer to figure out if the sun might be visible or not. This is hard to implement in GL without murdering performance, but we might be able to get this approximately right (with a frame delay) in Vulkan. Something for the future as it's quite tricky stuff...~~

EDIT: This is actually not what's going on! See https://github.com/hrydgard/ppsspp/issues/11100#issuecomment-698589470 below.

hrydgard avatar May 29 '18 07:05 hrydgard

@hrydgard This is probably the same as this issue https://github.com/hrydgard/ppsspp/issues/10229, right?

Leopard20 avatar May 29 '18 09:05 Leopard20

Not certain but quite likely!

hrydgard avatar May 29 '18 10:05 hrydgard

@hrydgard so what with this? Still waiting?( If yes no problem but depth buffer readback can fix lot of games)

marosis avatar Dec 14 '18 14:12 marosis

+interresting in this game Is that, when you are rotated to the sun, you will get really big performance decrease.

marosis avatar Dec 14 '18 18:12 marosis

Hm, I thought the big perf decrease was only in Burnout Legends, where it currently does do a readback when the sun is visible..

hrydgard avatar Dec 14 '18 19:12 hrydgard

If we will fix it can it fix performance?

marosis avatar Dec 18 '18 10:12 marosis

@marosis Turning off "Simulate block transfer" fixes the performance issue.

Leopard20 avatar Dec 19 '18 13:12 Leopard20

Screenshot_2020-08-06-14-56-59-49_2f85358b2198d26f8aca533d68bee793 Here's a GE Dump: recording.ppdmp.zip

Panderner avatar Aug 06 '20 07:08 Panderner

Screenshot_2020-08-06-14-56-59-49_2f85358b2198d26f8aca533d68bee793 Here's a GE Dump: recording.ppdmp.zip

No sun light issue on my phone mali-450 gpu opengl I'm using your ge dump 🤔 Screenshot_20200921-141933

PPSSPP v1.10.3-725 git build

ghost avatar Sep 21 '20 06:09 ghost

@Gamemulatorer the sun issue still happens in-game. When i making the GE Dump for sun in the tunnel or building the sun disappears.

Here's a GE Dump: recording (2).ppdmp.zip

Panderner avatar Sep 21 '20 06:09 Panderner

Maybe opengl 2.0 device are not affected by this issue 😅

ghost avatar Sep 21 '20 07:09 ghost

Maybe opengl 2.0 device are not affected by this issue 😅

@Gamemulatorer could you send me the screenshot of this game are you playing?

Panderner avatar Sep 21 '20 07:09 Panderner

This game is very very slow on my phone when the sun is showing :( Screenshot_20200921-154457 Screenshot_20200921-154508 But when I'm inside the tunnel the sun doesn't show :) Screenshot_20200921-154621 Screenshot_20200921-155413

ghost avatar Sep 21 '20 07:09 ghost

Weird that it's so slow. I'm gonna have to investigate how the sun is done in this game too. We've solved the sun in Legends as good as we can get it, I think, though...

hrydgard avatar Sep 21 '20 08:09 hrydgard

Performance is good on my phone with sun is showing @1X rendering resolution but the graphics is too much pixelated unlike before 🙁 Screenshot_20200921-193543

ghost avatar Sep 21 '20 12:09 ghost

Performance is good on my phone with sun is showing @1x rendering resolution but the graphics is too much pixelated unlike before 🙁 Screenshot_20200921-193543

@Gamemulatorer change the texture filtering to linear since the auto in texture filtering uses nearest for Burnout games all other games uses linear since the BlockTransferAllowCreateFB change for Burnout Legends

Panderner avatar Sep 21 '20 12:09 Panderner

There's gonna be some new mipmapping option soon that will help fight the pixellated look as well that some games have.

hrydgard avatar Sep 21 '20 13:09 hrydgard

Checked in a change that gets rid of readbacks for the sun effect, but it's still not fixed, just a bit faster.

This game is evil and renders to the same texture it's reading from while downsampling the region around the sun, forcing a full framebuffer copy - since it does that stuff out in the border of the main render target... Sigh.

I believe it then uses the result of that as a CLUT (color palette) to adjust the strength of the sun effect. This old PR has a clue: https://github.com/hrydgard/ppsspp/pull/8246

Continued in new post below: https://github.com/hrydgard/ppsspp/issues/11100#issuecomment-1242807848

hrydgard avatar Sep 24 '20 21:09 hrydgard

The sun same happens for PS2 version of Burnout Dominator running on PCSX2 see https://github.com/PCSX2/pcsx2/issues/883 for more info for other burnout games.

Panderner avatar Sep 24 '20 23:09 Panderner

Screenshot_2020-08-06-14-56-59-49_2f85358b2198d26f8aca533d68bee793 Here's a GE Dump: recording.ppdmp.zip

No sun light issue on my phone mali-450 gpu opengl I'm using your ge dump 🤔 Screenshot_20200921-141933

PPSSPP v1.10.3-725 git build

Sorry about this but I think I'm wrong issue also present on my phone 😅 Screenshot_2020-09-30-16-50-28 But why it can't reproduce this on a ge dump?

ghost avatar Sep 30 '20 10:09 ghost

This game is evil and renders to the same texture it's reading from while downsampling the region around the sun, forcing a full framebuffer copy - since it does that stuff out in the border of the main render target... Sigh.

Does it do this with region or scissor parameters that could perhaps clue us in on it being safe to use a separate framebuf?

-[Unknown]

unknownbrackets avatar Feb 16 '21 05:02 unknownbrackets

I can reproduce this on my Redmi Note 9 Vulkan & OpenGL graphics using latest git build. Screenshot_2021-05-02-23-06-28-387_org ppsspp ppsspp

ghost avatar May 02 '21 15:05 ghost

screenshot_20180529-085605 Sun in the tunel?!? OK!!!!! Backend: OpenGL

This is also happen on Vulkan Screenshot_2021-05-10-02-01-44-063_org ppsspp ppsspp Im using the latest git build apk

ghost avatar May 09 '21 18:05 ghost

yeah, still have no fix for this, sorry.

hrydgard avatar May 09 '21 18:05 hrydgard

software rendering Screenshot_2021-10-05-08-50-52-757_org ppsspp ppsspp hardware rendering Screenshot_2021-10-05-08-49-12-389_org ppsspp ppsspp

ghost avatar Oct 05 '21 00:10 ghost

I can also reproduce this in motorstorm arctic edge.

ghost avatar May 10 '22 13:05 ghost

I can also reproduce this in motorstorm arctic edge.

@Gamemulatorer screenshot?

Panderner avatar May 10 '22 23:05 Panderner

I can also reproduce this in motorstorm arctic edge.

@Gamemulatorer screenshot?

Screenshot_2022-05-11-10-29-12-700_org ppsspp ppsspp

ghost avatar May 11 '22 04:05 ghost

And also Need for Speed: Shift. Screenshot (40)

Panderner avatar May 11 '22 08:05 Panderner