godot-motion-blur
godot-motion-blur copied to clipboard
Extremely slow
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?
To change the quality, you can select the moblur_shader.tres file...
And in the inspector, reduce the iteration count:

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.
I was running it on my laptop with integrated graphics, that's probably why it was so slow
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.