godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.43k stars 21.26k forks source link

GIProbe very low FPS with some materials, example #30727

Closed danilw closed 5 years ago

danilw commented 5 years ago

Godot version: 3.1

OS/device including version: Linux and web(Chrome/Firefoxlatest)

Issue description: using GIProbe on some materials with high reflection (because of Metallic or/and Roughness) make FPS drop very hard.

Steps to reproduce: I have FPS drop from 60 to 2-3 FPS, changing bad material to other fix problem example project has 2 cubes with material, first material has metalic and roughness texture, second same material without textures disabling cube with texture or set roughness to 1 fix FPS

Minimal reproduction project: source zip: https://danilw.github.io/godot-utils-and-other/GI_test_material_bug/material_GI_bug.zip

web version : https://danilw.github.io/godot-utils-and-other/GI_test_material_bug/material_GI_bug.html (fps drop in all builds, web only as example)

1

maybe this is not bug, sorry if so

clayjohn commented 5 years ago

For me, FPS is very low all the time, regardless of which cube is visible and how metallic is set. Without the GIProbe, I get a full 60 FPS, but with it I get 7 FPS consistently. The roughness/metallic of the materials has no effect.

danilw commented 5 years ago

on that example change Roughness to 1 make ~40FPS for me when I look on Floor on that scene Roughness <0.5 make FPS<8 if you add any emission objects they will bake correctly and do not hit performance(FPS stay at 60 with other material or at 40 with Roughness=1)

I have Nvidia 750 video card(latest drivers)

Calinou commented 5 years ago

Try disabling Rendering > Quality > Voxel Cone Tracing > High Quality in the Project Settings.

We should probably disable it by default as it can have an huge impact on performance, which makes it only suited to modern high-end GPUs.

danilw commented 5 years ago

disabling this help, thanks!