@feekes the issue you are seeing I have seen in some titles, of most note the Unigine Valley Benchmark where the solution is a simple as tabbing out and back into the program. Please also if you have the option try to run the game in Windowed mode. The stutter youāre seeing seems to be common on recent (Pascal or later) NVidia hardware when using DXGI DD capture.
I wouldnāt at all be surprised if NVidia are intentionally crippling DXGI DD capture to make NvFBC a desirable thing.
@dodgepong thank you for clearning all that up, if you do ever happen to work out some kind of deal with NVidia for NvFBC please do let us know!
@gnif Come to think of it, i remember you stating this exact thing in one of the looking glass videos. Iāll have to throw the 2060 back in there and give it another shot.
Another nugget for thought, it exibited the same behavior in normal 2d applications like with just the windows desktop. Anything that i can run to collect logs or help with debugging I will gladly do.
Strange, I assume itās still 1080p and youāre using A12? And your guest is a i440fx or q35 machine?
Please note that youāre the first person to my knowledge that has reported the use of a RTX card with LG so youāre in uncharted waters.
Thanks but it either works completely or doesnāt at all, there are unfortunately no useful logging/debug information with performance issues. The only real way to work on these is to either profile the code yourself, or help me to replicate it so I can do it, which in this case would require a RTX card.
I am on A12 using q35 and of course ovmf. I am running at 1080 and have increased the memory up 64 meg, sad attempt by me to see what changed, but I still see it only using 32. You did say that it wouldnāt go over and guess what, the author knows his code lol.
I purchased the RTX card mainly for testing with looking glass and showing some of my students in class the really amazing things that Linux is capable of. Who knew it would be so different than their previous cards in this application, but what fun would it be in charted waters right?
Iām sure that there can be arranged a way for you to aquire an RTX card if that is something you would be interested in.
Please be sure to run a very recent version of Qemu, 3.2 or later IIRC and specify the PCIe link width and speed. By default NVidia cards on a root port in a q35 machine will only report a x1 link and the NVidia driver will configure the SOC for it. Please see this thread for more information: Increasing VFIO VGA Performance
Wow! I am glad to have LG as part of the lecture, I am truly honoured
Most certainly, LG is one of those projects that requires multiple combinations of hardware to test and develop against. Itās near impossible to profile a performance issue without the hardware on hand.
Running the LTS Ubuntu 18.04, so im sure my qemu is older, not to mention Iām actually running the machine through libvirt and not directly. Intersestingly enough the GPU performance is spot on when using an external display, and infact the benchmarks come back identical when just using the looking glass client, its some oddity in the displaying of the image back that is making it appear to stutter. No stutter is actually present in the rendering.
Iāll have to get some more details to how i could get one sent to you. Not sure where you are located or if you would even want people sending you hardware. That could get messy quick. If only there was someone you have delt with in the past that had the ears of Nvidia. *cough *cough @wendell
If you are outside of the united states, I will gladly contribute the majority to a āGet this guy an RTXā fund so you can purchase one locally and not incur a crazy needless shipping cost.
Thatās not an issue, you can continue to do so. Updating qemu under libvirt generally works without an issue from my experience.
The patch that adds link speed negotiation support will most certainly be missing from your Qemu build as an official release has not been made since that code made it into git.
Correct, we have seen this behaviour in Discord and found that the link speed issue is the cause. The GPU is throttling itās GPU RAM->System RAM copy, likely under the false assumption that the transfer will block the PCIe bus for too long while streaming textures.
Unfortunately NVidia have been completely silent on this project as they do not support nor want people using consumer nvidia cards for passthrough. I am in Australia so if youāre posting international as @wendell discovered the cost is astronomical unless youāre sending from China.
Thank you kindly however I already have a GoFundMe in progress for a Quadro so I can perfect the NvFBC support. Simply to be organised I am not keen to run multiple fund raisers at once as tracking the financials would become a nightmare. However if you really wish to donate towards LG RTX hardware you can donate directly via Paypal if you like.
I will definately give those suggestions a shot. Looks like I need to read a little more into the past to see what problems I face in my future.
Hopefully we can get you the Quadro you need to further development. Donāt have a whole lot being in education but I hope the little i can contribute helps.
Good luck on your ventures and thank you for being such an approachable developer and role model for those young ones looking at the open source space. Too offten they get hit with the old RTFM mentality.
Hello all,
Iām trying to use the Looking Glass software to help me display output from my kvm to a window so that I donāt need an external montior (thus keeping the portability of a laptop) and am running into some issues. The looking glass quick setup does not talk about using virt-manager and instead uses the qemu command line. Iām not sure how the qemu command line works and there seem to be no tutorials on how to set this up using virt-manager. In my research I started seeing that optimus cards can not even do VGA passthrough, so am what I am trying to do even possible? And if so, how do I do it? Are there alternatives that would achieve the same results with similar performance to looking glass?
If there were other fast alternatives then why would gnif work on looking glass? You could use rdp or similar although those are much slower then looking glass.
i cant get looking glass host to work on windows.
the GPU is passed through and its driver is installed.
when i run the command prompt as administrator and issue looking-glass-host.exe -f
this error happens.
[I] CaptureFactory.h:83 | CaptureFactory::DetectDevice | Trying DXGI
[I] DXGI.cpp:232 | Capture::DXGI::Initialize | Device Descripion: Microsoft Basic Render Driver
[I] DXGI.cpp:233 | Capture::DXGI::Initialize | Device Vendor ID : 0x1414
[I] DXGI.cpp:234 | Capture::DXGI::Initialize | Device Device ID : 0x8c
[I] DXGI.cpp:235 | Capture::DXGI::Initialize | Device Video Mem : 0 MB
[I] DXGI.cpp:236 | Capture::DXGI::Initialize | Device Sys Mem : 0 MB
[I] DXGI.cpp:237 | Capture::DXGI::Initialize | Shared Sys Mem : 4094 MB
[I] DXGI.cpp:241 | Capture::DXGI::Initialize | Capture Size : 1024 x 768
[E] DXGI.cpp:293 | Capture::DXGI::Initialize | Failed to create D3D11 device: 0x887a0004 (The specified device interface or feature level is not supported on this system.)
[E] CaptureFactory.h:92 | CaptureFactory::DetectDevice | Failed to initialize a capture device
Unable to configure a capture device
Press enter to terminateā¦
not sure if it matters, but the VMās graphics card is an AMD radeon RX 590.
Try disabling in windows the QXL, or other video card you have present in device manager. Sounds crazy but is exactly what Iām doing. When you do this you will loose video in your spice client and only have looking-glass and external displays to use.
thank you, now it just works.
however, the windows desktop is very low resolution, and windows is unable to change its resolution in display settings. is there any way to fix that?
under the āradeon RX 590 Series propertiesā tab from the display settings, if i hit ālist all Modesā it only shows ā640x480, true color (32bit), 59 hertzā and ā640x480, true color (32bit), 60 hertzā as options.
UPDATE: ive tried running the half life 2 lost coast benchmark on my VM with looking glass while stuck in this low-re mode. it got 82fps, which is very odd as the host has the same GPU and gets several hundred FPS in that game,
What kind of external display do you have connected? You will need to have some sort of termination on the GPU still. Can be a monitor or if you are solely wanting to use looking glass, a dummy connector.
i do not have any physical monitor connected to the VMās GPU. Looking-Glassā website frontpage states that it eliminates the need for a physical monitor.
i do not currently own a monitor that is compatible with the VMās GPU.
not sure if it matters, but i have looking glass running at login by having it added to the registry setting stated in the quickstart guide. i appened the -f switch to this registry setting so that i could see on the monitor any errors that might happen.