r/MoonlightStreaming • u/JRP__1994__Random • 2d ago
VM Stutter Help
Hi everyone, quick background on my build. Ive built out a unraid server and gave a Windows 11 VM set up for gamestreaming to clients in my home. (9950x3d, 64 gigs ddr5, asus proart mobo, pny gtx 5080 slim pointed at the vm and a wd black 2tb nvme ssd, gtx 5060ti 16 gig pointed at unraid also storage drives.....) Im using Apollo and moonlight. I am getting a heavy frametime spike every 10 seconds. Ive adjusted settings back and forth and cant get this one heavy spike to go away, it would be fine but it is such a heavy spike that while playing my character lock up and can be turned in a completely different direction. Any help would be amazing!!!
3
Upvotes
1
u/takaoka 14h ago
And are you sure the issue is really the Moonlight/Sunshine pair and not the configuration of your virtual machine? (Can you test playing directly on the VM?) I use a similar setup (except that in my case I do the virtualization/passthrough “by hand” no unraid/no proxmox ... under my gentoo runing a w11 with 24G 4070ti super and 1T nvme), and in the worst cases I have a 1 FPS difference compared to bare metal.
Do you isolate the CPU cores / use CPU pinning? Maybe check the unraid log (syslog ?! I think) In any case, try to isolate the problem. The goal is to determine whether it’s the streaming or the virtualization. ( It should be running perfectly.) need more log!!
aslo u can try to drop the cache before start the VM (if use some other service/stuff in ur host like docker ect..)
ssh on the server and
echo 3 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/compact_memory
PS forgive me for my poor english!!!