Closed dirkwhoffmann closed 5 years ago
My expectation was right. Gaussian blur slows emulator down to 30 fps.
GPU code needs a design improvement. The current GPU code works as follows:
Improvement idea: Apply the filter in stage 3 when drawing into the framebuffer
Thanks for the advice a few days ago, I had not seen discussion on the debate on "Gaussian Blur and FPS" before!
My MBP without the filter 60fps:
My MBP with the filter 28fps:
Here it is the Geos at 60fps on my MBP:
Fixed by the two-pass Gaussian blur shader implemented by Jim.
To reproduce:
Select Gaussian Blur as post-processing filter Perform a reset
None of the other filters causes the same effect Did not occur in 1.5.2 (texture size was smaller in 1.5.2, though)
TODO: It seems like fps is not computed properly (VirtualC64 measure seems to measure how many VIC frames are drawn which is always proportional to the CPU frequency). The implementation should measure how many Metal screens are drawn. I guess the Gaussian blur implementation is slow in general and the effect can only be recognized during animation effects.