godot-motion-blur icon indicating copy to clipboard operation
godot-motion-blur copied to clipboard

Extremely slow

Open Nv7-GitHub opened this issue 5 years ago • 3 comments
trafficstars

I am not sure whether this is an issue, but I found that my FPS dropped to around 10 with this. Is there any way to make it faster?

Nv7-GitHub avatar Jul 08 '20 03:07 Nv7-GitHub

To change the quality, you can select the moblur_shader.tres file... image And in the inspector, reduce the iteration count: image

Note that this will reduce the quality of the motion blur. Set it too low and it'll look choppy. I've already reduced it to 15 from 30 in the repo, so it should run a lot faster now.

BTW what GPU do you have? On my GTX 1060 it runs at a smooth 144 FPS at 1080p.

Bauxitedev avatar Aug 24 '21 09:08 Bauxitedev

I was running it on my laptop with integrated graphics, that's probably why it was so slow

Nv7-GitHub avatar Aug 24 '21 14:08 Nv7-GitHub

Could the iteration count be scaled depending on the viewport height[^1]? This way, at lower resolutions, the performance impact would be lessened. At higher resolutions, the quality would remain more consistent (at the cost of performance).

I'd suggest using 1080 pixels as a baseline for the calculation.

[^1]: On desktop platforms, relying on viewport height is preferable to width, as it won't cause issues with ultrawide displays.

Calinou avatar Apr 22 '22 23:04 Calinou