Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Slowdown on interlaced games on 5450  (Read 2902 times)

0 Members and 1 Guest are viewing this topic.

LazyAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 42
  • Last login:June 04, 2020, 09:44:45 am
  • I want to build my own arcade controls!
Slowdown on interlaced games on 5450
« on: May 26, 2018, 01:08:03 pm »
As above. I know half-speed was an issue, however this doesn't seem to be remedied for me as my card still half-speed all interlaced stuff - is there a fix yet? Many thanks

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: Slowdown on interlaced games on 5450
« Reply #1 on: May 27, 2018, 11:56:18 am »
As above. I know half-speed was an issue, however this doesn't seem to be remedied for me as my card still half-speed all interlaced stuff - is there a fix yet? Many thanks

Hi LazyAce,

Could you indicate on which operating system you encounter this behaviour? Under Linux, there is a remedy to this issue by patching the kernel to allow the vblank to be fired at each frame (odd and even fields). Normally, Groovymame contains the mentioned fix.

bjt42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 03, 2022, 06:24:37 am
  • I want to build my own arcade controls!
Re: Slowdown on interlaced games on 5450
« Reply #2 on: December 03, 2018, 05:47:34 am »
Under Linux, there is a remedy to this issue by patching the kernel to allow the vblank to be fired at each frame (odd and even fields).

Hi Doozer, would you be able to point me towards this patch please. Thanks

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: Slowdown on interlaced games on 5450
« Reply #3 on: December 04, 2018, 03:00:53 pm »
Hi Doozer, would you be able to point me towards this patch please. Thanks

Plz dot not flood the forum with same question everywhere ;-) You got PM

bjt42

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:February 03, 2022, 06:24:37 am
  • I want to build my own arcade controls!
Re: Slowdown on interlaced games on 5450
« Reply #4 on: December 06, 2018, 04:33:25 am »
Doozer's patch solved this problem for me, running a 5450. Here is a 4.10.11 kernel compiled with the 15khz patches and this interlaced vblank fix. It matches the kernel supplied with the 2017 live CD and doesn't suffer from the video playback freezing seen in later kernels.

linux-custom-4.10.11-1-x86_64.pkg.tar.xz: https://drive.google.com/open?id=1i3guHlHfWPNrEhwlz6XF2Xs9Ut9-DUmf
linux-custom-headers-4.10.11-1-x86_64.pkg.tar.xz: https://drive.google.com/open?id=19hxL-5RAmNwprpk6ItMDc3A-SegFrit5

Install as root as follows:

pacman -U linux-custom-headers-4.10.11-1-x86_64.pkg.tar.xz
pacman -U linux-custom-4.10.11-1-x86_64.pkg.tar.xz

Then modify /boot/syslinux/syslinux.cfg to point towards the linux-custom kernel and initrd.

« Last Edit: December 06, 2018, 04:35:34 am by bjt42 »

cobalt666

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:Yesterday at 10:04:32 am
  • I want to build my own arcade controls!
Re: Slowdown on interlaced games on 5450
« Reply #5 on: December 07, 2018, 02:13:14 pm »
Hi Doozer, would you be able to point me towards this patch please. Thanks

Plz dot not flood the forum with same question everywhere ;-) You got PM

Hi Doozer, could you please send me this patch as well? I would really appreciate that.

Doozer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 498
  • Last login:June 12, 2023, 09:19:49 am
  • Z80 ERROR
Re: Slowdown on interlaced games on 5450
« Reply #6 on: December 08, 2018, 07:19:14 am »
Yes, sure. The patch is already somewhere on the forum and used inside the GA CD. I enclose it here. It applies up to 4.19.x.

The patch is very simple, it takes all VSYNC interrupts fired by ATI gpu into account. In the stock kernel, the interlaced mode only account the interrupt for a sequence of odd and even fields and has a mechanism to not count int multiple times. ATI sync register is very stable and no overrun occurs since I use it. Let me know if some people have issues.

Code: [Select]
--- linux-4.12_64/drivers/gpu/drm/drm_irq.c     2017-07-02 23:07:02.000000000 +0000
+++ linux-test-4.12/drivers/gpu/drm/drm_irq.c   2017-08-15 08:33:14.318147395 +0000
@@ -243,8 +243,9 @@
                      pipe, vblank->count, diff, cur_vblank, vblank->last);
 
        if (diff == 0) {
-               WARN_ON_ONCE(cur_vblank != vblank->last);
-               return;
+// AWK         WARN_ON_ONCE(cur_vblank != vblank->last);
+// AWK         return;
+               diff = 1;
        }
 
        /*