From 1ffdacd535251ca7d979e23df81a0f1181d6170c Mon Sep 17 00:00:00 2001 From: gameblabla Date: Sun, 22 Aug 2021 22:18:42 +0000 Subject: [PATCH] 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 --- libpcsxcore/mdec.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- 2.39.5