RetroArch - Native CRT Support


#342

That’s a strange one. I’ve never had sync problems. You’ll need VSYNC and audio sync turned on. It will Probably be due to the modelines you have installed. Grroveymame uses dynamic hz which Retroarch does not.

You’ll have to install static modelines. You’ll find the ones you need on the front page of the Retroarch Github.

Also Retroarch has mame with switching so you don’t need both.


#343

I’m trying to enable super resolution but can’t find the super resolution settings under the \Video in Retroarch. Do i have to enable something so they show up? I have CRT Emudriver installed and GroovyMame is running fine with super resolutions.


#344

You need to enable advanced settings. This can be found in user interface I believe.

Once enabled CRTSwitch will be found in video settings.

You need to make sure that you install your super resolutions in static mode not dynamic. RetroArch can do 3840, 2560 and 1920. you need to change these values within the retroarch.cfg file


#345

(EDIT: Discussion complete)

Re: $1082 BountySource on RetroArch lagless VSYNC

Question: Does the Native CRT support preserve original machine’s input latencies for mid-screen input reads too, with the CRT module implementation?

EDIT: No, it is refresh cycle granularity, not scanline granularity

(e.g. no surge-execution, no pre-rendering of framebuffer before scanning out, just 1:1 emulator execution speed while having original machine’s lag, streaming scanlines out of graphics output in realtime, aka realtime beam racing – emulator executes at 1:1 original machine speed with no surge-execution, yet is streaming pixels out in realtime, rather tham framebuffering all of them first before display?)

EDIT: The beam racing sync support can be later merged with CRT support, to achieve exact original signal with exact original-machine lag without need for pre-framebuffering).

Context:

Lagless VSYNC Support (beam raced synchronization) - [$1082 !]

I’m just trying to research commonalities.

EDIT: Done. Thanks, @Alphanu

P.S. I must compliment you in this great work in CRT support.


#346

I manualy added the modes to my super resolution setup. The ones which are listed in the FAQ: 15 khz CRT documentation wiki.

Set the CRT Switch in retroarch and started a game with BigBox. I hear a switching noise from my chassis and then my screen goes black. The games run well if i connnect a LCD with the CRT Switch OFF.


#347

Hello @Alphanu Let me ask if there was any progress implementing calamity 's dynamic modelines to your code.


#348

I have been having a break recently. Taking some time out for family!

However, I am back now. I am still talking with calamity and it will be happening. ATM I don’t have a time scale on when this will be implemented as he is quite busy.


#349

this is quite fair.
thanks for your job!


#350

I’m trying to get the Commodore 64 core (vice_x64_libretro) to work with CRT Switchres.

I have the 2560x272@50hz resolution available on the CRT, but the core will not switch to the resolution. CRT Switchres is on and I have the aspect set to Core Provided.

Other cores I tried up until now work perfectly with CRT switchres, but this Commodore 64 seems to have some issues.

@Alphanu could you possibly take a peek to what’s going wrong with this core? (Or what I may be doing wrong :smiley: )


#351

@Alphanu

In case you missed my previous post.

Does the vice_x64_libretro core (commodore 64 core) work for you with switching under Linux?


#352

I have not tested that core yet. Next time I have a run through I will give it a go.

No. I’ve been measuring the output from the PC connection with an oscilloscope. So I have re-written the way the dotclock and porches are calculated to generate the output resolution for Linux. Now the output matches the original hardware. So for cores that report the exact res and hz its almost perfect :wink:


#353

If you guys can list cores that don’t report exactly, we can try to fix that.

@Alphanu FYI, Twinaphex just added those menu options for you to tie into.


#354

@hunterk Oh cool. I’ve had a quick look and it seems that until I change things my side, CRT switching wont work.

If i get time in the week I will get on it, otherwise it will get done at the weekend.


#355

Hello Guys !

Maybe I won’t have any answer as this discussion is already gone so fare technicaly speaking; however, I wanted to know if any tutorial existed for the retroarch CRT setup. I found videos only showing it worked (without explanation), and some forum topic, but nothing very clear. My problem is that I got a UMSA (ultimate scart adapter), an ATI card, with 15khz activated, and tried to use retroarch on my crt (advanced mode, crt switch activated so on…). However, I don’t know if I miss some modelines, or if arcade_OSD is messing with retroarch but I can’t have the UI properly scaled, for instance. I found a retroarch_2560.exe file but it didn’t work. There are also some trick to do in order to launch the menu from a LCD and emulators to the CRT I think, but I didn"t find any how-to.

that’s why I’m asking if anybody did a clear tutorial designed for people that have a PC hokked to a CRT.

thanks in advance to whoever will help :slight_smile:


#356

I want to know too whether there is a tutorial, much more convenient that going through 350 posts. :sweat_smile:

I have a VGA to RGB-Scart adapter that works perfectly with 15kHz resolutions from my Nvidia card, but I have to set the secondary monitor (CRT TV) to that specific resolution (1280x240) permanently.


#357

@lkl2018 @James-F

Guys I will write up a good TUT for you.

In brief. If you are using CRTEmudriver you must install the resolutions in static mode not dynamic. If not you’ll have ti install all the resolution you need via CRU or your favorite resolution utility. For windows you currently need to make sure your CRT the default display.

For needed resolutions you’ll need to go here https://github.com/libretro/RetroArch and scroll down until you see the readme they will be in the list.

I have made this all automated under Linux, So if you are willing to install Linux then you will have much better experience. Also under Linux you can use use native resolutions instead of super resolution even with some Nvidia and Intel Cards.

Windows automation will be coming but I am waiting on Calamity to help out with his API.

Please bear with me. I am still ironing out Issues and adding more comparability to CRT Switchres.

You do need to be careful with video conveners as they might process the video image which means you will loose switching.

@hunterk do you know much about the UMSA?


#358

Nope, this is the first I’ve heard of it. It doesn’t sound like it does any signal processing, though, based on this info page:

http://arcadeforge.net/UMSA/UMSA-Ultimate-SCART-Adapter::57.html?MODsid=b269a0083eb3fd8465384eb1da3be29b

It’s powered, but I think that’s just for creating the right voltages.


#359

UMSA has no signal processing other than sync combination AFAIK.

I’ve raised an issue for beetle saturn as width is currently not correctly reported (by design I think). It’s hard set to 352 where a lot of games including the BIOS I believe switch to 320 and back.

Also feel like n64 pal refresh is wrong, I’m struggling to find real figures online but 50.00hz can’t be right?


#360

thank you so much for your time @Alphanu ! However, still no luck. Maybe you can help me clarify some points :slight_smile:

The context : I’m under W7, UMSA between vga and scart. I have an ATI R7 240. I used some distro like HFSbox15k (a french hyperspin pack only for 15Khz screen). It worked pretty well. Before trying retroarch I was using “officials” VMM user modelines. Arcade OSD to switch my destkop to the 640x480 resolution.

So, now I’m struggling with retroarch CRT mode, but I think we can figure out what’s happening.

  • do we agree we can use the official retroarch latest release, or do I have to use the beta exe provided here?
  • I made a txt file for VMM. selected every resolutions (super and native), and put it in the file. Then in VMM I first deleted the previous modelines and imported this fresh one.
  • when I launch retroarch, it displays ok in windowed but the CRT screens shakes very quick and continuously when I go fullscreen. I tried every mode in the crt crtswitch options but nothing worked.
  • I tried launching a system in windowed mode : pc engine is ok, snes displays a squashed screen, while saturn is almost fullscreen (black bars left and right)

I am little lost now… I don’t know what I can do. I even reinstalled CRTemudriver.

Thank you again for your help!

20180918_233336|690x388

![20180918_233355|690x388](upload://


#361

OOOOK, so, some news. Got it almost working ! :slight_smile:

Here is my tutorial, maybe it can help someone

==========================================================================

hardware : W7, UMSA (must work w/ vga to scart cable too), ATi R7 240 1go pcie card, LCD display, CRT display

  • install CRTemudriver (read geedorah website to know exactly how)
  • if you have 2 screens (my setup : LCD screen attached to the dvi or hdmi, CRT on VGA), make sure on the W7 display panel that CRT is marked as your main display
  • launch VMM (included in CRTemudrivers). import this set of modelines (hope these are the good ones, let me know otherwise) : https://www.studio-digi.com/super_custom.ini uncheck extended display, and make sure the import is made in "STATIC’ (screenshot at the end of this tutorial)
  • generate modelines, install modelines. The CRT screen should flick one second, this means the operation was sucessful.
  • launch arcade_OSD (also packed w/ CRTemudrivers), and check that 15khz resolutions are available. Make sur to you selected “attach OSD to current monitor” to have the good values.
  • get retroarch latest release. unpack. launch once, close. If needed use my retroarch cfg file : https://www.studio-digi.com/retroarch.cfg
  • if all work as expected (or, like it worked for me), you should get retroarch with the RGUI interface (not the PS3ish one), fullscreen, at the right resolution.
  • go to ui interface, check if the advanced mode is activated
  • go to video, then CRTswitch, put it in 15khz mode, 2560, custom freshrate activated.
  • now try some emulators, they should almost all work ! (some are not in my case, like 3DO - black screen, Wii/GC works but the gamepad is not, and some other small bugs). Exiting a game or retroarch can sometime break the screen resolution (CTRL alt del + task manager to get off this situation)

Thank you @Alphanu for your incredible work, it’s so amazing to have saturn, DC, megadrive, snes so beautifuly displayed, as we just plugged the real thing on the TV.

Hope this tutorial will help people like me. If it doesn’t work let me know, maybe I missed a step or the custom res file is not the good one (made so many tests…)

thanks!

Sans%20titre|640x480