Revive icon indicating copy to clipboard operation
Revive copied to clipboard

Echo Arena - Performance Issues

Open jaorg1234 opened this issue 9 years ago • 38 comments

Hello!

Just tried the Echo Arena beta and it seems like performance is pretty bad via Revive. This is not only apparent in the menu, but also in the tutorial + in multiplayer matches. In real matches the problem gets worse when activating your fists with the trigger buttons to either punch an enemy or defend yourself.

My PC: i5 4690k, 1080 GTX, game installed on SSD

No noticeable difference with always-on reprojection.

Should I provide you with any logs?

Edit: reading a bit on other forums, it seems like other people can play the game fine, haven't seen any reports of performance issues. I guess then it's something on my side.

jaorg1234 avatar Jun 23 '17 20:06 jaorg1234

Are these frame drops or tracking latency? I'm aware of a prediction error that I'm trying to fix that is resulting in extra latency.

You can check if you're dealing with frame drops by going to the SteamVR settings on your desktop monitor and turning on Performance > Notify in Headset.

CrossVR avatar Jun 23 '17 22:06 CrossVR

Just checked it again:

In tutorial, lobby: only extra tracking latency When pulling the trigger in combat situation to prepare a punch or defend against one: tons of frame drops

I can consistently make the frame drops appear by pulling the trigger button in the combat scenarios.

jaorg1234 avatar Jun 23 '17 22:06 jaorg1234

Does the controller vibrate when you do that? Perhaps the game is flooding the SDK with haptic events.

CrossVR avatar Jun 23 '17 22:06 CrossVR

Yes, they do if remember correctly. Let me recheck that very quickly again. Will edit this comment.

Edit: yes, they do vibrate during those actions

jaorg1234 avatar Jun 23 '17 22:06 jaorg1234

Also lagging, 48% reprojection after playing for an hour. Some of that is most likely from using Steam Broadcast, but I noticed lag without streaming.

Edit: This was all most likely from streaming, just had 2% reprojected frames after another hour or so and no streaming. Still getting jitter when doing almost anything though.

cazman321 avatar Jun 24 '17 03:06 cazman321

This release should reduce the tracking latency and the jitter: https://github.com/LibreVR/Revive/releases/tag/1.1.6

I couldn't reproduce any of performance problems @jaorg1234 reported though. Can you confirm you are still experiencing the problem with the new release?

CrossVR avatar Jun 24 '17 11:06 CrossVR

Tracking latency has improved dramatically with this update! I think now it is in a really good and playable state. I think there's still some extra latency, but just very minor.

I still do get the performance issues, though. Did you try to go to the combat area in the lobby to try to replicate it? For me it still happens 100% of the times I activate my fists to punch (white electricity orb appears)

Edit: also tried all combinations of always-on reprojection and asynchronous reprojection and right now (for me at least) it seems like having always-on reprojection gives the smoothest experience.

jaorg1234 avatar Jun 24 '17 11:06 jaorg1234

I have tried that and got the white orb, even punched some people in the face, no frame drops.

CrossVR avatar Jun 24 '17 12:06 CrossVR

Hm, seems like some issue on my side then. Thanks for fixing the latency issues so quickly! I'll edit my post if I can find the cause of my issues + a solution.

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234

If you want, we can try and create some detailed reports of your issue using the debug version of Revive.

CrossVR avatar Jun 24 '17 12:06 CrossVR

I'm definitely up to do something like that! Just give me the instructions how to start the debug version and where the log files are placed, and I can attached them here.

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234

To use the debug version, extract this zip file into the folder where you installed Revive, replacing all existing files: Revive.zip

Now start Echo Arena like you normally would and once it's started visit this link: http://localhost:1338/

This will show you a detailed profiling graph from Revive, very handy to debug all kinds of performance issues. But it will only show the last 30 frames, so you need to make sure you've captured the problem in that graph.

You can capture a new graph of 30 frames by refreshing the page, so what you do is you go to the combat area, take off your headset and then press the trigger and refresh the page during the performance problems.

Once you think you've captured a good graph, just use your browser to save the page as an HTML file. All the profiling information is stored in the HTML, so you can just pack it in a zip file and upload it into the comment box here.

To go back to the non-debug version, just re-install the latest version of Revive.

CrossVR avatar Jun 24 '17 12:06 CrossVR

Here a capture when the frame drops occured. I pressed the trigger buttons with both hands. Maybe this is what makes the difference. When I only use one hand, there are less frame drops. Not sure, though, if this is a "good" capture or not.

MicroProfile Capture.zip

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234

Yeah, you've captured the problem. For some reason on your PC ovr_SetBool takes forever on some frames.

This could potentially fix it, it's a non-debug version, but you should extract it in the installation directory just like the debug version: Revive.zip

CrossVR avatar Jun 24 '17 12:06 CrossVR

Hm, doesn't seem to change anything regarding the frame drops.

Edit: reading more comments on reddit right now, it seems to be a very isolated issue that only affects me.

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234

Okay, here's a version that ignores ovr_SetBool completely: Revive.zip

CrossVR avatar Jun 24 '17 12:06 CrossVR

So with this version the following happens:

  • In the first few seconds when activating both hands, no frame drops whatsoever!
  • After a while, though, the frame drops occur again
  • Now the vibration has some kind of delay and won't stop right away when releasing the trigger button
  • If the frame drops have occured, the delay is longer and during the delay, the same amount of frame drops will occur until the vibration stops, i.e. visual effect of holding trigger has stopped already, but vibration continues, so do the frame drops

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234

It's starting to sound like a USB problem, have you tried disabling the HTC Vive camera in the SteamVR settings?

CrossVR avatar Jun 24 '17 12:06 CrossVR

If that doesn't work, here's a build with half the haptics frequency, which should lighten the load on your USB host controller: Revive.zip

CrossVR avatar Jun 24 '17 12:06 CrossVR

I always have the camera disabled and the latest files you've sent me don't seem to make a difference (neither in performance nor in terms of haptics). Maybe the game has an option somewhere to deactivate the haptics altogether, I'll take a look around.

jaorg1234 avatar Jun 24 '17 12:06 jaorg1234