xray-16 icon indicating copy to clipboard operation
xray-16 copied to clipboard

Render slowdown when shooting

Open yohjimane opened this issue 1 year ago • 1 comments

Describe the bug Render slowdown when shooting, seems to get worse as more shots are fired.

To Reproduce Steps to reproduce the behavior:

  1. Shoot bullets
  2. Observe output of rs_stats

Expected behavior Shooting should not decrease performance so much

Screenshots xrEngine_2023_05_29_22_44_35_779 xrEngine_2023_05_29_22_44_38_574 xrEngine_2023_05_29_22_44_39_340 xrEngine_2023_05_29_22_44_39_955

Desktop (please complete the following information):

  • OS: Windows 10
  • OpenXRay build version: 429519f

Additional context Happens regardless of whether r2_mt_render/r2_mt_calculate is on or off

yohjimane avatar May 30 '23 08:05 yohjimane

@yohjimane, strong drop in shooting fps was also noticed on mobile devices, especially first shot after loading gamesave. In short, shadow map and lighting calculation are built there with each shot from weapon. But so far no one has taken up optimization.

GermanAizek avatar Jun 03 '23 19:06 GermanAizek