Jump to content

fps 2.5 (not very standard hardware/software configuration, which works well in a case of other games)


Recommended Posts

Is it normal to have fps 2.5 on the configuration Ryzen gen 1, 24GB ram PC 3200, Vega64?

I tried different things, like set all settings on the minimum,  full hd resolution. I updated video driver to the latest version. I think, I can have ~fps 4 during launch. If I look to the sky, I have ~fps 20. In the space I have, on Kerbin's Orbit, I have ~fps 15.

Any tips & tricks? Don't want to return money in steam, want to support devs. 

I don't have problems like this in other games. I'm not very gamer person, honestly, but other titles, they work smooth. As KSP fun, wanted to play especially in KSP2.

Other details about my configuration: it's a Qemu/KVM Windows 10 virtual machine with PCI-passthrough GPU. I don't think it's somehow related, because I have stable and high enough to fps in games like Cyperpank 2077, to have them playable - I even playd in this game in 4k resolution.

Edited by Polnoch
Link to comment
Share on other sites

17 hours ago, Polnoch said:

Other details about my configuration: it's a Qemu/KVM Windows 10 virtual machine with PCI-passthrough GPU. I don't think it's somehow related, because I have stable and high enough to fps in games like Cyperpank 2077, to have them playable - I even playd in this game in 4k resolution.

Seriously? Have you mentioned running KSP2 under Virtual Machine at the very last lines of your post dismissing it should not have any effect? Understand that KSP2 Devs might not even understand what Qemu/KVM means. Sure, PCI-passthrough GPU may have huge performance potential, but KSP2 is really not polished, well optimized game, that could benefit your graphics computing power without other dependecies, yet.
We found that nVidia 8GB GPUs were doing really high amount of PCIe transfers when running under Steam Proton. Perhaps its similar with Windows and AMD GPUs too, thus likely Qemu PCI-passthrough is the bottleneck. What was you guest VM allocation? 16 GB RAM?
Please do change your title from "fps 2.5" to something meaningful like "Qemu GPU passhtrough - only 2.5 fps". No need to mock this Early Access game with your unusual scenario. :mad:

Link to comment
Share on other sites

By the way, could you please run this command on your GPU on either host and guest while running KSP2 at kerbin?

while true; do cat /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/current_link_speed; sleep 3; done
cat /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/max_link_speed;

You likely need to modify PCIe slot to your GPU, this is mine:

lspci -s 0000:01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060] (rev a1)
Edited by tuzok
Link to comment
Share on other sites

Actually, it shows just one value over time:

echo -n "max speed is: "; cat /sys/devices/pci0000:00/0000:00:03.1/0000:10:00.0/0000:11:00.0/0000:12:00.0/max_link_speed; while true; do echo -n "current speed is: "; cat /sys/devices/pci0000:00/0000:00:03.1/0000:10:00.0/0000:11:00.0/0000:12:00.0/current_link_speed;  sleep 3; done
max speed is: 8.0 GT/s PCIe
current speed is: 8.0 GT/s PCIe
current speed is: 8.0 GT/s PCIe

No matter what happens inside the VM and with GPU.

VM RAM allocation is 24GB (the host system totally has 64GB RAM). This ram allocated from one numa-node in order to eliminate any latency-related problems (without it stable and high FPS inside Cyberpunk is impossible).

Physically it's PC3200 DDR4, which uses XMPP profile.

Host cpu is, as I said, ryzen gen 1: it's Threadripper 1920x (12 cores, 24 threads). This VM has 10 vCPU, pinned on 5 different cores, on one numa node. So, it's looks like Ryzen 5 gen 1 without 1 core: 5 cores, 10 threads.

The task manager inside windows 10 VM shows me, that rendering is not overloaded, copy is about not loaded at all, video decode is also empty. Dedicated video is full, and game started to use shared GPU memory.

This GPU (AMD Vega 64) has 8GB dedicated vRAM

12 hours ago, tuzok said:

Please do change your title

OK, I'll change it, sorry. I've used this title, because my system doesn't have any issues not only in ksp1, but also in games which can overload GPU, like cyberpunk, or Lone Echo (VR title), or  Everspace(VR), or Elite Dangerous(VR).

BTW, thx for answering.

Edited by Polnoch
Link to comment
Share on other sites

17 hours ago, tuzok said:

Seriously? Have you mentioned running KSP2 under Virtual Machine at the very last lines of your post dismissing it should not have any effect? Understand that KSP2 Devs might not even understand what Qemu/KVM means. Sure, PCI-passthrough GPU may have huge performance potential, but KSP2 is really not polished, well optimized game, that could benefit your graphics computing power without other dependecies, yet.
We found that nVidia 8GB GPUs were doing really high amount of PCIe transfers when running under Steam Proton. Perhaps its similar with Windows and AMD GPUs too, thus likely Qemu PCI-passthrough is the bottleneck. What was you guest VM allocation? 16 GB RAM?
Please do change your title from "fps 2.5" to something meaningful like "Qemu GPU passhtrough - only 2.5 fps". No need to mock this Early Access game with your unusual scenario. :mad:

Haha, very funny how you "trying to help" . This EA it's a disaster and there are no excuses. The development team has a lot of work, I wish them success and I hope everything works out.

Link to comment
Share on other sites

Still not found a solution. Also, in order to be sure, that my software/hardware configuration is OK, I've checked, using my friends's steam, FalloutVR, SkyrimVR, Outer Worlds(in 4k) and other games which are heavy in terms of GPU load. And saw no any issues. Maybe I'll check GPU benchmarks.

I have an idea, that this happens, because KSP 2 allocates too much of GPU's RAM for textures, starts to use normal RAM, and as result, slow down. Kerbin always affects fps... Any ideas how to check this hypothesises and maybe  reduce usage of VRAM?

Edited by Polnoch
Link to comment
Share on other sites

@PolnochFine sir I am impressed with your setup in general.  I've contemplated gaming in VM for years but always found it lacking.  If you're playing cyberpunk in it than good for you.  :)

Vega64 is similar aged to my old RX590.  My framerates were similarly bad in the 3-9 fps range frequently.  Bumped to a current generation hardware this weekend and it was significantly better, but not as good as I'd have liked.  Maybe I need to stop gaming on linux and give it a shot on a VM like you. Honestly though either via proton or via straight wine v8.x it runs well enough to derp around.

Link to comment
Share on other sites

  • 1 month later...

Solved by buying RTX4070 instead of Vega64. Now, on same PC, in the same qemu-kvm virtual machine, ksp2 has ~22fps in the fullhd resolution, with middle preset of settings, instead of 3-4fps with resolution 1280x720 and minimal preset of settings. 

Ah, and I mean a launchpad just after a lift-off (what looks like is the weakest point, in terms of optimization, in the ksp2...)

Looking for future optimization, to play with high preset and 4k! And glad to see my setup finally playable. 

Edited by Polnoch
Link to comment
Share on other sites

What else can be important:

Another user, with a bit better CPU (+1gen of ryzen), and Vega64, reports 1fps :(

Also, I've tested KSP2 with gpu-passthrough inside VM in a case of using GTX 970, and it provides 10fps after lift-off, despite this card is really old.

Maybe it's kinda of AMD cards optimization problem? Or maybe not AMD in general, but Vega64 specific?

 

Edited by Polnoch
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...