Disable QIS on the R77 when scanlines and / or TV effects are enabled.

This commit is contained in:
Christian Speckner 2020-02-26 10:46:43 +00:00
parent 3b252a7b6e
commit d5385b9de9
1 changed files with 9 additions and 0 deletions

View File

@ -28,9 +28,18 @@
namespace { namespace {
FrameBuffer::ScalingInterpolation interpolationModeFromSettings(const Settings& settings) FrameBuffer::ScalingInterpolation interpolationModeFromSettings(const Settings& settings)
{ {
#ifdef RETRON77
// Witv TV / and or scanline interpolation, the image has a height of ~480px. THe R77 runs at 720p, so there
// is no benefit from QIS in y-direction. In addition, QIS on the R77 has performance issues if TV effects are
// enabled.
return settings.getBool("tia.inter") || settings.getInt("tv.filter") != 0 || settings.getInt("tv.scanlines") != 0
? FrameBuffer::ScalingInterpolation::blur
: FrameBuffer::ScalingInterpolation::sharp;
#else
return settings.getBool("tia.inter") ? return settings.getBool("tia.inter") ?
FrameBuffer::ScalingInterpolation::blur : FrameBuffer::ScalingInterpolation::blur :
FrameBuffer::ScalingInterpolation::sharp; FrameBuffer::ScalingInterpolation::sharp;
#endif
} }
} }