ColinPitrat / caprice32

An emulator of the Amstrad CPC 8bit home computer range.
GNU General Public License v2.0
148 stars 32 forks source link

Bicubic filter is slow. #160

Closed ColinPitrat closed 3 years ago

ColinPitrat commented 4 years ago

When using scr_style=9 (bicubic), the performances fall to 2 fps on my laptop.

ColinPitrat commented 4 years ago

Perf report shows that pow is the issue: 47.49% cap32 libm-2.29.so [.] __ieee754_pow_fma 10.35% cap32 libm-2.29.so [.] pow@@GLIBC_2.29

ColinPitrat commented 4 years ago

Note: this is in debug mode. Trying in release, just in case optimizations help.

ColinPitrat commented 4 years ago

Performances are much better in release mode, although not great (20 FPS, 40%)

ColinPitrat commented 4 years ago

It seems the most expansive things are the floating point operations and the conversions between floats and integers.

ColinPitrat commented 3 years ago

The plan will be to just remove the plugin as it's slow on all hardware. cf. #193