xemu-project / xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
https://xemu.app
Other
2.57k stars 258 forks source link

Camera angle can tank performace #1137

Open Triticum0 opened 2 years ago

Triticum0 commented 2 years ago

Bug Description

Some games with variable camera angles can lose lots of performance depending on where the camera is pointing, This mostly affects sports games and some other outliers.

Games Affected https://xemu.app/titles/54540091/#College-Hoops-2K6 https://xemu.app/titles/545400af/#College-Hoops-2K7 https://xemu.app/titles/4b4f0002/#Crimson-Sea https://xemu.app/titles/53450031/#ESPN-NBA-2K5 https://xemu.app/titles/53450030/#ESPN-NFL-2K5 https://xemu.app/titles/53450037/#Major-League-Baseball-2K5 https://xemu.app/titles/54540096/#Major-League-Baseball-2K5-World-Series-Edition https://xemu.app/titles/54540092/#Major-League-Baseball-2K6 https://xemu.app/titles/545400b1/#Major-League-Baseball-2K7 https://xemu.app/titles/5454008d/#NHL-2K6 https://xemu.app/titles/545400ad/#NHL-2K7 https://xemu.app/titles/434d0021/#Club-Football https://xemu.app/titles/434d003f/#Club-Football-2005 https://xemu.app/titles/4541009f/#Madden-NFL-07 https://xemu.app/titles/454100ac/#Madden-NFL-08 https://xemu.app/titles/4541023b/#Madden-NFL-09 https://xemu.app/titles/544d0007/#Knights-of-the-Temple-Infernal-Crusade

Expected Behavior

Should be stable performance no mater where the camera pointing

xemu Version

Version: 0.7.55 Branch: master Commit: https://github.com/mborgerson/xemu/commit/db389b15086753cb7b72e05b24af205baa742bc3 Date: Sun Jun 26 05:58:57 UTC 2022

System Information

Field | Value -- | -- OS | Windows 10 CPU | AMD Ryzen 5 2600 Six-Core Processo Graphics Device | NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 Graphics Driver | 4.0.0 NVIDIA 512.95

Additional Context

No response

RetroPCYT commented 2 years ago

One game more affected for this 'issue": GTA Vice City.

MaouYumisu1 commented 2 years ago

Used debug build for 06-07 to showcase the camera issue. 07's debug matches retail build. FPS gets worse the further you get from White Tees. https://user-images.githubusercontent.com/56532164/177433870-e360ddab-1b06-43f3-8f2b-cd307485c1a2.mp4 https://youtu.be/8fkrYXTLp4Y Affects https://xemu.app/titles/45410021/#Tiger-Woods-PGA-Tour-2003 in specific spots as shown in clip. https://xemu.app/titles/4541007e/#Tiger-Woods-PGA-Tour-06 06 is very obvious https://youtu.be/55DY0mQF6-c. https://xemu.app/titles/454100a4/#Tiger-Woods-PGA-Tour-07 Same issue like with 06. https://youtu.be/XstLSi_JFsM I presume the issues aren't there in 04 and 05. I know they aren't for these two on 0.7.2 for these two games. I'll most likely need to test more on 03 to find more fps drops due to the camera on the latest build.

SolusGrimwelder commented 3 months ago

In Crimson Sea which I just tried in latest stable build I noticed what seemed to be a double buffering issue when rotating camera. Framerate dropped straight to 30 when it couldn’t maintain 60. Not sure if this is the issue being described in all of these cases, but I noted it occurred most often when panning the camera. Never played the game on original hardware so I can’t say if this is an emulation issue or if the game was double buffered from the start, but if the latter than the game is in fact performing correctly. Would need a triple buffer patch to address. Will do some more experimenting.

On phone so couldn’t watch linked videos above. Will update post later with any new info.

PeruvianPanda commented 1 week ago

I tried out Crimson Sea and here's what I see: some areas / camera angles run at half speed. An easy way to see it is the first level, you spawn in at half speed (30 fps), run forward and around the corner, now you're at full speed (60 fps). Next corner you're back at 30 then around the corner after that you're up to 60 again. Turn around and you can run through this area backwards at 60 but will be at 30 again when you turn back around. The whole first level is similar to this.

I thought it might always be when looking "north" but it's not, it seems to be when you're looking toward your next objective. Going from let's plays on youtube, original hardware doesn't have the slowdown and runs at 60 fps for the whole level.

OrganicOstrich commented 5 days ago

World Series Baseball 2K3 can be removed as have tested and no performance issues.