https://bugs.winehq.org/show_bug.cgi?id=56427
Bug ID: 56427 Summary: Regression on Battlefield 2 in the new wow64 mode Product: Wine Version: 9.3 Hardware: aarch64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: shnall93@gmail.com Distribution: ---
Created attachment 76190 --> https://bugs.winehq.org/attachment.cgi?id=76190 Enabled game HUD
Hardware: MacBook Pro 14 (M1 Pro cpu) OS: Ubuntu 22.04 ARM64 on virtual machine (VMWare Fusion) Game: Battlefield 2 (32Bit, DirectX 9) on Wine 9.0 WOW64
Problem: Low FPS, around 20-50fps on low settings
I noticed that if turn off the HUD in the game I get over 200-300FPS on low settings and >100FPS on max settings, and the game starts working very smoothly.
I do same on x86 Windows PC and enabling/disabling HUD does not affect FPS (maybe 1-3fps more)
I also did a few tests on an Intel PC with wine 9.0 (WOW64), which show the same problem
Galium Hud: Enabled game HUD: Draw Calls: ~250 Frametime, ms: ~40ms
Disabled game HUD Draw Calls: ~230 Frametime, ms: ~4ms (10x less)
Question: It is possible to somehow debug\profile why this is happening? It's just HUD, why does it need so many resources.
here is video how it's looks like https://www.youtube.com/watch?v=dm1UZNgICKw
Steps to repeat:
1. download demo -> https://www.moddb.com/downloads/battlefield-2-updated-demo 2. install dx9 dlls over winetricks 3. enable\disable hud over console, press ~ in game -- Enable `renderer.drawHud 1` -- Disable `renderer.drawHud 0` -- Show in game FPS counter `renderer.drawFps 1`
-- Disable frame rate limit `game.lockFps 0`
https://bugs.winehq.org/show_bug.cgi?id=56427
--- Comment #1 from Sehii shnall93@gmail.com --- Created attachment 76191 --> https://bugs.winehq.org/attachment.cgi?id=76191 HUD off
https://bugs.winehq.org/show_bug.cgi?id=56427
--- Comment #2 from Sehii shnall93@gmail.com --- I also try launch with `WINEDEBUG=warn+all` and notice when we enable HUD console report many 0114:warn:d3d_perf:wined3d_cs_map_upload_bo
https://www.youtube.com/watch?v=vqbnpqDVH2I