PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
Other
10.62k stars 1.54k forks source link

Meta: Vertex trace overflow #5137

Open RedDevilus opened 2 years ago

RedDevilus commented 2 years ago

Description

Some games have floating math problems where it goes beyond the scope that PCSX2 should handle:

Reason

Track vertex trace overflow

Examples

What to look out for in the Program Log is this message: Vertex Trace: float overflow detected ! min 3.402823e+38 max 3.402823e+38

Sources: https://forums.pcsx2.net/Thread-Inconsistent-Experiences-Evil-Dead-Regeneration?highlight=Vertex+Trace%3A+float+overflow https://forums.pcsx2.net/Thread-Street-Fighter-EX3-missing-effects?highlight=Vertex+Trace%3A+float+overflow https://forums.pcsx2.net/Thread-Valkyrie-Profile-2-Silmeria-Game-Protection-disabled?pid=602894#pid602894 https://github.com/PCSX2/pcsx2/issues/551 https://github.com/PCSX2/pcsx2/issues/1107 https://github.com/PCSX2/pcsx2/issues/1684 https://github.com/PCSX2/pcsx2/issues/4761

Danke-Boi commented 2 years ago

I have Disney Pixar's UP, and I saw 0 graphical glitches. Performance was perfectly fine as well. HW: M1 MacBook Air, so that may be why performance is decent, as UP isn't a demanding game.

Reran the game with the log open, and found this error Vertex Trace: float overflow detected ! min 3.402823e+38 max 3.402823e+38 So confirmed, sorry

Screen Shot 2022-03-14 at 1 53 58 PM

Also, error appears when the opening cutscene begins to play, no sooner than the very first frame of the cutscene.

noigeaR commented 1 year ago
* [ ]  Disney's Up (Not confirmed)

Disney Pixar's Up throws the "Vertex Trace: float overflow" error even when you only run a single frame GS dump. I think the status can be changed to confirmed.

gs_20220702133822_Disney Pixar - Up_SLUS-21864.zip

The range is smaller in the GS dump. Vertex Trace: float overflow detected ! min 3.191373e+34 max 6.488020e+35 But I also get min 3.402823e+38 max 3.402823e+38 during the intro like Danke-Boi reported.

The subtitle rendering problem reported in #4761 is still in 1.7.3082, but depending on the Texture Preloading setting it may behave differently. Since issue #4761 was closed, I'll add my findings here.

What the subtitles are supposed to look like (software mode) gs_20220702172250_Disney Pixar - Up_SLUS-21864

The subtitles are completely invisible with Texture Preloading set to Partial or Full (Hash Cache) in hardware mode gs_20220702172255_Disney Pixar - Up_SLUS-21864

The subtitles appear grey and unreadable with Texture Preloading set to none (hardware mode) gs_20220702133822_Disney Pixar - Up_SLUS-21864

The subtitles aren't always the same shade of grey though. If you load the GS Dump provided above and switch between software and hardware multiple times, the subtitles are sometimes bright grey, sometimes dark grey and sometimes they are completely invisible. It seems to depend on the timing when switching from software to hardware mode. With Texture Preloading enabled the subtitles are always invisible.

MrCK1 commented 11 months ago

Overflow in Cold Winter occurs in pause menu background (SW). Still active as of 1.7.4871

[ 17.5230] Vertex Trace: float overflow detected ! min 3.402823e+38 max 3.402823e+38

Rename GS dump to .xz Cold Winter_SLUS-20845_20230804192554.gs.zip

TheTechnician27 commented 3 months ago

Overflow occurs in both SpongeBob SquarePants: Revenge of the Flying Dutchman (prevents the camera lock sprite from showing) and in Spider-Man: The Movie (with no obvious negative effect).