From: gameblabla Date: Sun, 22 Aug 2021 22:18:42 +0000 (+0000) Subject: mdec.cpp: Dare to set MDEC_BIAS to 10 (#186) X-Git-Tag: r23~134 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ffdacd535251ca7d979e23df81a0f1181d6170c;p=pcsx_rearmed.git mdec.cpp: Dare to set MDEC_BIAS to 10 (#186) 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)