VR poor performance in build

Hi,I’m developing a project for Htc (start from empty project), great performance in editor(VR preview) but in the build it’s very poor.
The scene is very simple, one stationary direct light and one skylight,a little room and some dynamic objects in a corner of the room, when I look at the objects performance become terrible.I repeat, great performance in editor!

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. I see that you started with an empty project, however could you try and reproduce this issue in another clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any blueprints/settings that may be involved in this issue?
  4. Could you provide the difference in FPS that you are seeing as it compares to in editor vs in packaged game?

Hello Rudy,
I solved adding “r.ScreenPercentage 120” in console command after begin play, this causes some problems in editor viewport but in editor it is not necessary, then add only before packaging.
Thank you anyway

This issue is due to assigning a RenderTarget2D to a SceneCaptureComponent’s “Texture Target”.

This is solved by executing the console command “r.SceneRenderTargetResizeMethod 2” in your BeginPlay event that assigns the RenderTarget2D to the SceneCaptureComponent.