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: 15Khz 240p wavy top  (Read 3901 times)

0 Members and 1 Guest are viewing this topic.

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
15Khz 240p wavy top
« on: October 04, 2021, 02:15:15 pm »
Hi,
I have a TV set capable of both NTSC and PAL via vga-to-scart. All other resolutions/cores are working fine in GA2021 except when it comes to Retroarch NTSC 240p output.

I chose generic_15 and arcade_15 monitor presets and the issue persists. When I select INI CRTswitchres mode with ntsc monitor preset, 240p cores do not display any output.

I did not have this wavy top image problem using switchres with standalone Mednafen, and ntsc preset in GA2019. Wavy lines also do not appear in GroovyMAME with ntsc monitor preset in GA2021. So the problem is definitely with Retroarch.

I saw a post where someone had a similar issue and managed to resolve it using arcadeosd by adjusting the values 15.6 - 15.7Khz.

Also, in RA log i can see that the generic_15 and arcade_15 preset are both using 15.6xx Khz [PAL] instead of 15.7xxKhz [NTSC] frequency.

Is this perhaps a bug or is it a problem with different preset values for ntsc 240p output in Retroarch?

« Last Edit: October 04, 2021, 02:52:37 pm by contemplator »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: 15Khz 240p wavy top
« Reply #1 on: October 04, 2021, 10:44:05 pm »
OK, so, IIRC correctly, this is a sync timing issue. Which is almost certainly due to how programs are outputting (composite) sync and/or how you're combining sync for yourself. It is possible that your set has a pot or service menu option to help with this, but not likely.

Why only certain program are affected, IDK, but i've seen programs do all sort of weird stuff, including writing/forcing their own modelines. Technically GM does that too, I guess.

I'm almost certain there was a thread about this issue on Shmups a while back, and I'm hoping Zebidee sees this thread on here and can explain more :)

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: 15Khz 240p wavy top
« Reply #2 on: October 05, 2021, 03:02:51 am »
Hi contemplator,

Make sure you get RA using the ntsc preset. It's certainly possible, please post a full log to help understand what's going on. In any case, it must be a matter of RA configuration.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

makya

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 77
  • Last login:April 22, 2024, 03:40:11 pm
  • I want to build my own arcade controls!
Re: 15Khz 240p wavy top
« Reply #3 on: October 05, 2021, 09:25:08 am »
Hello, I saw this before on my tv. It was due to a too short vertical sync time iirc.

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #4 on: October 05, 2021, 01:47:25 pm »
So after many hours of testing with different cables, and even a different TV set - and after updating RA to 1.9.10, I finally have some conclusions:

1. I replaced the graphic card HD 6450 with HD 5450, and now I have output on RA with 240p regardless of preset (ntsc is working as expected).

2. The wavy lines persist on generic_15 preset only when using ntsc rom. I noticed that the only difference comes with these two lines from RA logs

generic_15 - wavy
[INFO] Switchres: Modeline "256x224_60 15.625691KHz 60.098812Hz" 5.172103 256 266 290 331 224 233 236 260   -hsync -vsync

ntsc - works
[INFO] Switchres: Modeline "256x224_59 15.704280KHz 59.940000Hz" 4.852622 256 263 286 309 224 236 239 262   -hsync -vsync

So I think the problem is that generic_15 preset is using 15.625691KHz, instead of 15.704280KHz for ntsc content, but I`m no expert on the subject.

Hope it helps for further troubleshooting if anyone cares having ntsc content running correctly under generic_15 or arcade_15 preset.

Thanks!

makya

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 77
  • Last login:April 22, 2024, 03:40:11 pm
  • I want to build my own arcade controls!
Re: 15Khz 240p wavy top
« Reply #5 on: October 07, 2021, 07:25:44 am »
Well, maybe your TVs don't like vertical frequencies above 60Hz and/or total lines below 262 and/or large horizontal back porches. Can't see by the modelines what else could be an issue. What TV sets are you running on?

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #6 on: October 07, 2021, 11:39:02 am »
Sony Trinitron standard consumer set (not the 100khz one). I also tried on B&O but the problem is the same on both when it comes to generic_15 and arcade_15 presets.

Like Calamity said it is only manifested in Retroarch, GM is working ok.

Maybe this is a question for Retroarch forums, but I figured since its GA2021 maybe someone else experienced something similar..

Anyway, I greatly appreciate your inputs it took me in the right troubleshooting direction.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: 15Khz 240p wavy top
« Reply #7 on: October 07, 2021, 11:47:52 am »
Your TV needs a longer vertical back porch. You can solve that with a custom monitor preset.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #8 on: October 07, 2021, 12:00:30 pm »
I wanted to try a custom preset, but I was not sure what values I need to change. It`s ok to switch presets when needed, but a uniform solution is definitely preferable.

I will try when I catch some free time.

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #9 on: October 08, 2021, 06:23:23 am »
Increasing the generic_15 value for the vertical back porch to 1100 did resolve the issue for the NES cores, but not for Genesis and SNES. This applies to both TV sets.

For the latter we tried incrementally raising the value until display went into some sort of interlaced mode, but with no success..

Are there any other values that could be changed which are specific to these cores?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: 15Khz 240p wavy top
« Reply #10 on: October 08, 2021, 07:37:51 am »
Try raising the hfreq_min value to 15.72 kHz.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #11 on: October 08, 2021, 11:23:27 am »
Value for hfreq_min was already in range copied from generic_15 for the custom preset
   
      crt_range0  15625-15750, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.100, 0, 0, 192, 288, 448, 576

I tried "hardcoding" various single 15.7x values, without success. It seems that for anything above 15.625Khz it goes into interlaced mode.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: 15Khz 240p wavy top
« Reply #12 on: October 08, 2021, 11:29:30 am »
 crt_range0  15720-15750, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.024, 0, 0, 192, 288, 448, 576
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #13 on: October 08, 2021, 12:31:32 pm »
That solved the issue!  :applaud: Thank you Calamity  :notworthy:

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: 15Khz 240p wavy top
« Reply #14 on: October 10, 2021, 05:21:29 am »
I need to add some observations for any noobs out there like myself. Changes to the values for a custom preset significantly improved overall TV geometry and performance on all RA cores (and there I was thinking that my TV set is not quite right).

- Image is no longer moved to the left, which I see is a common issue with rgb/scart type of input on consumer sets
- I no longer see a slight stutter in image scrolling (which I think was causing the Attract mode to freeze) so everything seems to be in sync

Once again, thanks for helping I`m sure someone else will find this info useful as well.
« Last Edit: October 21, 2021, 03:05:46 pm by contemplator »