ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Low GPU utilization when "Optimize game latency" turn on

Open G00dog opened this issue 1 year ago • 6 comments

When I enable the "Optimize game latency", my FPS drops, and GPU utilization decreases. When I disable "Optimize game latency," FPS is stable, and GPU utilization increases, but the latency becomes inconsistent, making it difficult to use.

The picture is the difference when looking at exactly the same place. optimize on optimize off Maybe it's the same issue. [(https://github.com/alvr-org/ALVR/issues/1901)]

Is there a solution for this problem?

Description

General Troubleshooting

  • [ ] I carefully followed the instructions in the README and successfully completed the setup wizard
  • [ ] I read the ALVR GitHub Wiki

Environment

Hardware

CPU : Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz

GPU : NVIDIA RTX A6000 X2

GPU Driver Version : 552.74

Audio :

Installation

ALVR Version : 20.5

ALVR Settings File :

SteamVR Version : 2.74

Install Type:

  • [ ] Packaged (exe, deb, rpm, etc)
  • [ ] Portable (zip)
  • [ ] Source

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions): Window 10

G00dog avatar Aug 13 '24 15:08 G00dog

Can you show the latency and fps graphs for both with and without "optimize game render latency"?

zmerp avatar Aug 13 '24 15:08 zmerp

optimize on optimize off

Looks like a needle is turning off the optimization game render latency

G00dog avatar Aug 13 '24 16:08 G00dog

Yeah that bug seems to be caused by SteamVR not respecting the framerate we set. To be honest though, disabling that setting is wrong usage of the OpenVR driver API (the implementation details are quite complex). This works on Windows, but on Linux the implementation is completely different and that part of the code is skipped altogether.

So I think at this point we should remove the option as forcing it to true.

Anyway your first graph looks perfect (apart from the staircase issue, which will be fixed). I don't see any fps drop.

zmerp avatar Aug 13 '24 16:08 zmerp

I think the issue is frame pacing here if you look at the graph even if the avg server fps is the clients I wouldn't be surprised if those small dips are noticeable?

Vixea avatar Aug 13 '24 17:08 Vixea

Anyway I don't get the lower util as being a bug its not its like complaining your browser isn't using 100% of your cpu

Vixea avatar Aug 13 '24 17:08 Vixea

optimize on optimize off

This image shows the difference in frame drops when 'Optimize Game Render Latency' is turned on versus turned off. I thought that if the GPU usage was as high with 'Optimize Game Render Latency' turned on as it is when it's turned off, it might result in better performance. (Please understand that I’m not very knowledgeable about computers.)

G00dog avatar Aug 15 '24 04:08 G00dog