-
Notifications
You must be signed in to change notification settings - Fork 5
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
Random low fps #9
Comments
Do you have multiple monitors? I have no idea why but in my case - I get up to 20-30fps more when I have game window on main screen (internal screen if you use laptop). It seems ZZZ does some scaling based on screen type/size? It's really weird. I have external 1920x1080@75Hz monitor where I get 30-50fps and 99% GPU usage (Vega 8 iGPU) but when I switch to internal, thinkpad screen that is 1920x1080@60Hz - I suddenly get 50-60fps and ~85% GPU utilization. Both have sync enabled. What I also got once or twice - some scenes/animations are hard locked on 30fps and you can get small freeze when that scene starts/ends but sometimes game seems to not detect end of that special scene and you're suddenly playing in soft locked 30fps. |
I have a single-screen laptop, and the screen is 1920*1080@144Hz (but I don’t know why the game’s default resolution is 2k, and the frame rate has not changed significantly after changing it back to 1080p). The problem of low frame rate often occurs to me. Every time I start it, I can only pray that it will appear in a copy or an interface that is not often opened, otherwise I will have to restart the game. |
Do you use fractional scaling? It may be issue of that. Wine/Proton are still running in xwayland and x server scales your whole screen X times bigger and then downscales to cheat you into thinking you have proper scaling. If you do use 1.25, 1.50 scaling, etc. - please try going to standard 1.0 and then launch game and see if that helps. |
|
Then honestly I don't have any idea. Can only say that ZZZ seems to be problematic for quite a few people on launch, those issues will probably get fixed in next 2-3 releases. For now you can either try using different scripts like on Lutris (checked it works but idk if better or worse) or just go back to Windows for time being. |
Thank you for taking the time to help me troubleshoot the problem. It seems that I can only try using other scripts and wine before zzz is updated. |
I had a similar problem, I was using wayland, multiple monitors and fractional scaling at the same time. But I think it has nothing to do with these. I found that ZZZ seems to take up a lot of vram, and more and more, until zram is not enough and suddenly drops to a very low frame rate, and because the vram overflows, the graphics card will work at a very low occupancy rate. If you restart or login to the game again, the vram usage will drop significantly, and then it will take up more and more as you play until it is not enough. |
You are right, it seems to be a vram problem here as well, caused by overflow of vram usage in random scenes. |
Are you both using nvidia cards by chance? I looked bit more and it seems to leak vram only on nvidia cards and only when using wine/proton - on windows with "native" game it's fine. |
my card is nvidia and has these stutters as well |
Yes, I'm using a nvidia graphics card, gtx1650. |
You can choose wine-tkg-9.12 to launch the game. In the discussion on discord, this seems to be a solution that can reduce the speed of vram leaks, but it still cannot completely solve the problem of vram leaks. NOTE: Our test graphic card is AMD Radeon 7900GRE |
for me it doesnt seem to be working, if anything it feels like i have more stuttering now |
Are you using an AMD graphics card? Our test platform is radeon 7900gre |
i have a
i have a NVIDIA GeForce GTX 1660 SUPER is there another version you recommend? |
No, I have only tested this version for now. If there are other versions that can reduce vram leaks, I will inform you in time. |
alright thank you |
For now, it seems only way to play ZZZ with nvidia graphics without trouble is to either use Windows 11 or play through virtual machine with windows - yes you get bit more latency but then it just works (fps are about the same). |
Yes, the best way at the moment is to use dual systems to play ZZZ |
so far wine staging tkg 9.10 seems to be the most consistent one for me, it even managed to unstuck itself more than once for a while |
wine staging tkg 9.10 didn't make a difference for me. I can most easily reproduce the issue by opening and closing the menu |
Lutris with the HoyoPlay launcher didn't seem to make a difference either compared to sleepy-launcher, I was watching vram usage in My current test card in my linux machine is a GTX 1080, which meets the game's system requirements otherwise. As for using a windows vm, I run into vm detection so that doesn't work either for me.
At game launch the vram usage is around 1800MiB. Opening and closing the menu a few times quickly gets it to the reported usage of 5083MiB where lagging starts to happen. |
so there is no fix for this problem except running the game on windows? |
I got curious and tried playing the game with the Nouveau drivers instead of the official Nvidia drivers. Sadly no way exists to measure the VRAM usage when using Nouveau, however after about 5min in, and after switching a bunch of times between menus and locations, the game (and my entire wayland session) crashed on me while I was pulling on a banner. I'm guessing it ran out VRAM. |
wait |
What hardware and driver version are you using? My report was on driver 555.58.02 which as far as I can tell is the most recent version. |
A few more things I found out: |
If you use dxvk in Windows, will there be video memory issues as well? |
I tested some scenes (such as streets or cities, include battle scenes) and some UI menus. Both on Linux and on Windows: So I think, the vram behaviors in game on Linux and Windows is the same. But, notice that, the game always uses more vram on Linux than on Windows. And also ZZZ itself uses more vram than Genshin Impact and Honkai Star Rail. But there are still somethings that you can try to decrease the vram that used by the system (except the game):
2, close any other applications that use much vram, you can check this by using something like nvtop. |
When zzzz's video memory leaks start it all drains all the video memory very quickly, no matter how much video memory one has it's never enough. |
Can't say, not sure why you would even try using dxvk on windows for this though as the problem seems to occur less on windows
Are you sure about this ? Can anyone with an Nvidia 12GB+ VRAM GPU confirm this ?
Steamdeck uses an AMD APU, and from the previous comments it seemed like the problem was limited to Nvidia GPU's, so Steam Deck should be fine. |
Yes, it seems that currently all Nvidia graphics have this bug with vram leak (or doing something else that system interprets as vram leak). I use AMD graphics just fine and know 0 other reports about problems on AMD side. Additionally - I've heard this bug may not be related to dxvk or wine - very small number of people seems to experience it also on Windows 11 but it's hard to debug... it seems to appear once every XX game launches, it's not always present on windows. There's probably nothing to be done - we have to wait for Mihoyo to eventually notice this and fix problem. On Windows, it's probably very minor problem so it may be a long time (if at all) for them to handle this. |
Now there is a workaround for Nvidia card players:
UMA ( Unified Memory Architeture ) is a technology that allows a graphics processing unit to share system memory. I asked some friends to test this workaround, as a result, they can play now withouth out of vram issue. |
This fix the problem |
what to do with this? |
game is still a bit laggy being in the menu is fine, but when I go to the overworld game starts to become laggy, anyone can help? I changed my wine from the latest version to wine staging tkg 9.12, and adding this "DXVK_CONFIG="dxgi.emulateUMA = True" DXVK_ENABLE_NVAPI=0" makes the game refuse to launch |
I use steamdeck,it has same problem. As the scenes switch, the memory had often exceed 16GB(RAM10G+vram 6G), sometimes even reached 20GB |
I don't know if that affects anything? Still laggy for me. It only occur when I move my mouse Screencast_20241230_162809.mp4 |
same issue, only lagging when moving my mouse |
The scenarios where low fps occurs are different every time I start the game, it could be a pause screen, a copy of a battle, a block dialog, etc... The graphics card and cpu usage are not high, but the fps is only in the single digits.
The text was updated successfully, but these errors were encountered: