From: gameblabla Date: Mon, 16 Aug 2021 01:29:24 +0000 (+0200) Subject: mdec.cpp: Dare to set MDEC_BIAS to 10 X-Git-Tag: r24l~568^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d9f0559579ea3a0c69976ad032c85441c200011;p=pcsx_rearmed.git mdec.cpp: Dare to set MDEC_BIAS to 10 This fixes graphic artifacts during cinematics in : - Vandal Hearts - R-Types - Galerians Dmitrysmagin had a similar fix in PCSX4ALL but he set it to 6. It turns out MDEC_BIAS set to 6 was still not enough for Galerians to look properly so it was set to 10. It seems so far that other games are unaffected. Co-authored-by: Dmitry Smagin --- diff --git a/libpcsxcore/mdec.c b/libpcsxcore/mdec.c index d6c7ab68..61ed5ea5 100644 --- a/libpcsxcore/mdec.c +++ b/libpcsxcore/mdec.c @@ -32,7 +32,14 @@ * 320x240x16@60Hz => 9.216 MB/s * so 2.0 to 4.0 should be fine. */ -#define MDEC_BIAS 2 + +/* Was set to 2 before but it would cause issues in R-types and Vandal Hearts videos. + * Setting it to 6 as dmitrysmagin did fix those... except for Galerians. + * Galerians needs this to be set to 10 (!!) before it looks properly. + * I've tried this with a few other games (including R-Types) and so far, this + * has not backfired. + * */ +#define MDEC_BIAS 10 #define DSIZE 8 #define DSIZE2 (DSIZE * DSIZE)