Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
shahrukhzaheed's avatar
2 years ago
Solved

Meta Avatar making FPS Drop

When I Build and Run the app in my VR Device, it shows the FPS of 72 but whenever the Avatar is loaded and spawned the FPS Drops to around 40. I have tested the app and established that whenever the Avatar is rendered by the camera, the FPS drops. 
Do let me know if someone is facing the same issue and has any solution for it.
P.S I downloaded the FPS script from the trusted source and there's nothing wrong with it.

  • shahrukhzaheed 

    The new Avatar/Meta shader is very expensive on the GPU.  it perform very badly.

    My team was able to optimize it by changing a few keyword and change the number of light which are hard coded in the MetaAvatarCore.hlsl, change the MAX_LIGHT_COUNT to 1

    Then make sure you properly define the Keywords to enable on the MetaShaderConfiguretion.

    That should bring you back into decent performance for a shader that I am not considering for the NOBRL price 

     

    I hope that help you

4 Replies

Replies have been turned off for this discussion
  • We have the same issue, they are GPU Fragment bound.  their instruction count is 3500 with the new meta-avatar shader.  I'll reply when I found a proper work around.

  • shahrukhzaheed 

    The new Avatar/Meta shader is very expensive on the GPU.  it perform very badly.

    My team was able to optimize it by changing a few keyword and change the number of light which are hard coded in the MetaAvatarCore.hlsl, change the MAX_LIGHT_COUNT to 1

    Then make sure you properly define the Keywords to enable on the MetaShaderConfiguretion.

    That should bring you back into decent performance for a shader that I am not considering for the NOBRL price 

     

    I hope that help you

    • shahrukhzaheed's avatar
      shahrukhzaheed
      Explorer

      Thanks for the reply.
      I did exactly what you told me to and the result is great. The minimum FPS drops to 68 for sometime but most of the time it is constant at 71-72. 
      Your answer and suggestions were helpful.

  • We ended up reverting to horizon avatar by using the HorizonShaderManager for a 30% performance gain.

    If you want to keep the Avatar/Meta shader you can set the Quality from standard to light on the ovrAvatar2 Component to disable a few rendering feature for another good performance gain.

     

    I am glad I could hlep.