| Re: [hatari-devel] "Desktop Info..." freezes with VDI mode | 
[ Thread Index | 
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
] 
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] "Desktop Info..." freezes with VDI mode
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 19 Oct 2019 17:09:07 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;	t=1571497749; bh=cVLALq3kCNwP5EWEnTv+p+3WSJ2mT5qcr42mOFqbvKM=;	h=Date:From:To:Subject:From;	b=jpU8ps6ntitfIoVzwhnQU0wKPYehV+3AZYdoEJ5HIaoZFR8XvlU6HyCYaYzqttuVL	 PHm3m17WagbxYwB29/x/wqc6kQaizxeeE8X+/4nsviQG/ZHesafH+OCsbIU6KJ9rGv	 zvKeR+pJsQquw0a3I1UuhnVRwHmmpk52Ypwo49FQ+gjEl6sqK0XC7uQfyKzXUp1AQ8	 ajS1NR3jAHfT6C0pj2N/BOtGrO0h3VVgA4YIxUGEI3p6Pl3fFG5mz2M0q0ymkFPDhd	 qHq5yh7CCIoJaOQXiB/+EwK7++BilXbB2H+3NoZhTd5zNCIvha48jyEtXfGQkdTx1e	 RXf9BQERb7CmA==
Am Sun, 13 Oct 2019 22:43:34 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> Hi,
> 
> On 10/12/19 11:58 AM, Nicolas Pomarède wrote:
> > Le 12/10/2019 à 06:50, Thomas Huth a écrit :  
> >> Am Sat, 12 Oct 2019 02:28:10 +0300
> >> schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:  
> >>> I experimented a bit with this and came up with the attached test
> >>> patch.
> >>>
> >>> Would it make sense to enable that stuff unconditionally for VDI?
> >>>
> >>> I don't think it would slow it down noticeably and VDI mode isn't
> >>> significantly faster than normal ST/STE video mode anyway.  
> >>
> >> IIRC we had Timer-B enabled in VDI mode in the past, until someone
> >> disabled it for performance reasons?  
> 
> Good point, it's actually a *regression* from the last v2.2.1 release,
> as "Desktop info..." works fine in VDI mode with TOS v1.04 - 1.62
> there.
Ah, indeed, it's a regression caused by commit aee9b62dfea1c209a9b90002.
I think this is likely the correct fix:
diff --git a/src/mfp.c b/src/mfp.c
index 645fd8a8..830d8832 100644
--- a/src/mfp.c
+++ b/src/mfp.c
@@ -2287,9 +2287,8 @@ void MFP_TimerBData_ReadByte(void)
                 * and store result in 'TB_MAINCOUNTER' */
                MFP_ReadTimerB ( pMFP , false );
        }
-
        /* Video DE signal is connected to Timer B on the main MFP */
-       if ( IoAccessCurrentAddress == 0xfffa21 )
+       else
        {
                if (bUseVDIRes)
                {
Nicolas, what do you think?
 Thomas