Meumeu / WiVRn

An OpenXR streaming application to a standalone headset
GNU General Public License v3.0
155 stars 27 forks source link

Slow performance in WiVRn and Monado/OpenXR based apps #91

Open ghost opened 3 weeks ago

xytovl commented 3 weeks ago

The recommended view size 1007x4031 (per view) is probably too much for the Adreno 540 GPU.

https://github.com/Meumeu/WiVRn/blob/41994b4e6e51eee2bb5efead873990c2df47b618/client/hardware.cpp#L103 is used to override this value when streaming on known headsets. You can try to enforce a smaller resolution on both lobby and stream views

xytovl commented 3 weeks ago

The monado.vk_print_swapchain_create_info logs are for the swapchain that drives the display. It is already upscaling what WiVRn client is providing.

There's a setting to add a performance overlay in the stream scene where you can see various timings, including CPU and GPU time per frame: https://github.com/Meumeu/WiVRn/blob/41994b4e6e51eee2bb5efead873990c2df47b618/client/configuration.h#L45

The have to be under frame time (1 / refresh rate)