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: emu4crt Mednafen mod - update 1.26.1  (Read 106368 times)

0 Members and 1 Guest are viewing this topic.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
emu4crt Mednafen mod - update 1.26.1
« on: August 28, 2017, 05:58:00 pm »
Hi,

I've put online a Mednafen mod: emu4crt, which support native resolutions for a "perfect" rendering.

Supported Mednafen's modules :
   Sega Saturn (win64 build only)
   Sega Megadrive/Genesis
   Sega Master System
   Sony Playstation
   NEC PC Engine / CD / superGrafx
   NEC PC-FX
   Nintendo Snes and Snes Faust
   Nintendo Nes

Builds provided for Windows 32 & 64bits
Download binaries & patches: https://github.com/emu4crt/files
Sources: https://github.com/emu4crt/mednafen

For usage, please have a look to the README displayed on the download page.
Basic knowledge of CRT Emudriver/VMMaker is required as video modes are not generated by the emulator.

Feel free to report any comment or issue.

Revision History:
1.26.0 A13 - Update to Mednafen 1.26.1
1.26.0 A13 - Update to Mednafen 1.26.0 UNSTABLE
1.24.3 A13 - Update to Mednafen 1.24.3 and minor fix
1.24.2 A13 - Update and Megadrive/Genesis interlaced mode fix
1.24.1 A12 - Fix super resolution switch & PCFX scaling
1.24.1 A11 - Add pce_fast, sms, md and pcfx modules
1.24.0 A10 - Update mod to A10 - Improve resolution switch delay and fix PSX horizontal centering
1.24.0 A09 - Update to Mednafen 1.24.0 UNSTABLE
1.23.0 A09 - Update to Mednafen 1.23.0 UNSTABLE
1.22.1 A09 - Update to Mednafen 1.22.1 - Add snes_faust module.
1.21.0 A08 - Update to Mednafen 1.21.0 UNSTABLE *** Changes in settings and configuration files, refer to official site: https://mednafen.github.io ***
          Add Hotdog932al PSX core centering/cropping fix
 0.9.48 A07 - Support Super Resolution
 0.9.48 A06 - OSD improvement and PSX "post bios" bug fix.
 0.9.48 A05 - Fix fullscreen mode switch
 0.9.48 A04 - Update to Mednafen sources 0.9.48, fix video options, preliminary OSD adaptations.
 0.9.47 A02 - Added support for NEC PC Engine
 0.9.47 A01 - Initial release
« Last Edit: November 11, 2020, 05:58:48 pm by silmalik »

Guilt

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:April 14, 2018, 10:17:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #1 on: September 01, 2017, 12:49:19 pm »
This is very exciting. I played around with it and I'm not certain I understand how to use it.
I read through the rtf and here's what I can figure:
Unzip to the same directory as the mednafen executable
Copy the lifelines from the txt file and append them into the user_modes or _super .ini files and install the lifelines
C:\mednafen> emu4crt [romname]
And after doing that I'm certainly playing the game but definitely not at native resolution. It's also windowed, and as mentioned in the RTF I should not alt+enter for full screen (and doing so gives me a 31khz signal) but I'm not really sure what else to do if I want full screen games. So... What exactly does one need to do that I haven't done?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #2 on: September 01, 2017, 01:31:26 pm »
You are doing well... maybe you have same issue I used to have, here some precisions:

Unzip to the same directory as the mednafen executable:
  Yes, you can just unzip the emu4crt.exe file to your existing mednafen directory.
  At first launch, emu4crt.exe will add a new option to the mednafen-09x.cfg: video.UseNativeResolution (should be at 1 by default).

Mednafen save the fullscreen/window mode, so quit mednafen with ESC key while in desired mode, or have a look to the .cfg file.  ;)

If mednafen or emu4crt switches to a 31kHz mode, you can try this fix:
  1 - Stop and Disable service: AMD External events utility
  2 - Ensure that the Windows advanced display option is enable: "hide modes that is monitor cannot display"

This service often resets the "hide modes", so standard 31kHz video modes are exposed to applications, not good for our usage.

Switching emu4crt from Fullscreen to window is not dangerous, It doesn't create video modes on the fly as Groovymame, it can only use resolutions provided by Windows.

 Just that the image will not be scaled correctly to 1:1 pixel but to a smaller or greater size. In such case you can wait that the game decide to change resolution.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7411
  • Last login:March 14, 2024, 05:26:05 am
  • Quote me with care
Re: emu4crt Mednafen fork
« Reply #3 on: September 01, 2017, 04:55:53 pm »
Hi silmalik,

Great job with your Mednafen mod, I'm eager to test it.

This service often resets the "hide modes", so standard 31kHz video modes are exposed to applications, not good for our usage.

How in the world did you figure this out? I've seen this issue but didn't have a clue about the cause.
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

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #4 on: September 01, 2017, 05:37:38 pm »
Hi Calamity,

Oh, my job is really nothing compares to what you provide to all of us. Thanks to You.  :)

Well, some little work with Sysinternals Procmon has designated me the culprit: identify the reg key which stores the parameter, then identify the process who overwrites it.

This service is known to be the Catalyst hotkey poller, it was a surprise to see it messing up the configuration!  :o

I hope you will enjoy the mod.

burn_654

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 158
  • Last login:March 06, 2024, 03:31:13 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #5 on: September 01, 2017, 09:07:10 pm »
Great find Silmalik! I had to revert to the crt_emudriver built on the older Catalyst version for my card (5830) because I was seeing that problem (the 'hide modes' tickbox unticking itself) with way too many things. I thought maybe the driver just didn't like my card.

I'm looking forward to trying your Mednafen build soon here! I had really good experiences with Mednafen for pc engine/turbografx a while back...curious to see how well it works on the other consoles. Does real-time res switching during the game work as well? (I recall Military Madness for turbografx is a game that does this between battle animations)

Guilt

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:April 14, 2018, 10:17:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #6 on: September 01, 2017, 09:31:56 pm »
I got it working and I must say I'm very impressed! That startup logo looks so good now!
If I may be so bold as to field a request, I would ask for a config line that allows the resolution changes to go from superx240p to superx480i. That way minor changes (like pausing in SOTN) wouldn't cause any hiccup.
To muse further, I think that the hangtime during switches wouldn't bother me if there was some way of making sure the entire screen is black during transitions, instead of black and partially white.

I'm loving this.
« Last Edit: September 01, 2017, 10:02:33 pm by Guilt »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #7 on: September 02, 2017, 06:28:25 am »

Thank you burn_654.
No res switching support for PCE/Supergrafx module for now, but it's on the plan.
I'm interested if you know other games that use different resolutions.

Guilt,
You are right about super resolutions. In the first, I wanted perfect rendering... on the easy way!  :)  I will study their usage on later time.
I use Rocketlauncher, which has options to hide Windows elements, cursor, desktop and taskbar. The result is very clean, no visible graphic glitches.

I fact, switching resolution means destroy the Opengl rendering object and create a new one.
My understanding is that this process generates a short period during which nothing is displayed by the emulator, so, some parts of Windows shell appears.

Groovymame seems to have the same behavior. Not a problem because arcade games mostly use only one resolution.

In result, I'm not convinced that a clean solution can be integrated in the emulator rendering process.  :-\
For now, a workaround would be using an external tool that do same job as Rocketlauncher to hide Windows . If exists.

Thank you all for the feedbacks.

Recapnation

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 01, 2023, 07:39:55 pm
    • Eiusdemmodi
Re: emu4crt Mednafen fork
« Reply #8 on: September 02, 2017, 07:30:10 am »
For PCE games using high res modes, try Aoi Blink or Ys I - II. The latter does indeed use 256 x 224 for the cutscenes but switches to 336? x 224 for the actual game.

Even more useful -- run Burning Angels or 1943 Kai. You can change yourself the display mode in the option screen although the active area will be the same (black bars in the high res mode for mimicking a vertical arcade display). There are many other PCE shooting games that do this, but they'll require a code normally.

As I understand, any Mednafen GUI will do for your fork?


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7411
  • Last login:March 14, 2024, 05:26:05 am
  • Quote me with care
Re: emu4crt Mednafen fork
« Reply #9 on: September 02, 2017, 07:55:46 am »
Quote from: silmalik
Well, some little work with Sysinternals Procmon has designated me the culprit: identify the reg key which stores the parameter, then identify the process who overwrites it.

Very smart. I'll see if I can modify the drivers so this service is disabled by default, in case there's no side effect to it.


Quote from: silmalik
I fact, switching resolution means destroy the Opengl rendering object and create a new one.
My understanding is that this process generates a short period during which nothing is displayed by the emulator, so, some parts of Windows shell appears.

Groovymame seems to have the same behavior. Not a problem because arcade games mostly use only one resolution.

That's not true for Direct3D9Ex and up, where you can switch the full screen resolution without releasing the resources. Anyone has tested e.g. Megadrive's Sonic 2 in recent versions of GM? The progressive/interlaced mode change is absolutely seamless, at least on my machine, you only notice a slight warp on the background music (hopefully I'll figure out a way to avoid this too at some point). As far as I know OpenGL doesn't allow this, and wrapper APIs conceived to target both Direct3D and OpenGL implement a lower common denominator solution, making mode changes unnecesarily expensive.

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

Guilt

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:April 14, 2018, 10:17:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #10 on: September 03, 2017, 03:13:17 am »
I've put online a Mednafen mod: emu4crt, which support native resolutions for a "perfect" rendering.
It supports, for now, Saturn, Psx, Snes and Nes cores, on Windows 64bits

I believe I have found a glitch! If I launch "emu4crt.exe ffviii\game.m3u" I get native resolutions, but if I launch "emu4crt.exe -which_medium 1 ffviii\game.m3u" I get the emulator putting out native resolution while my screen is set to the super wide resolution dictated in my mednafen config (2560x240). In other words, I get the top half of the ps1 boot screen smashed down into the left fifth of my screen! There seems not to be a way around this; the resolution changes don't effect my modeline changes if I use which_medium. I wonder if other unusual commands have any effect!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #11 on: September 03, 2017, 01:29:18 pm »
Thank you Recapnation, those games seems perfect for test purpose.

Quote
As I understand, any Mednafen GUI will do for your fork?

Yes, it should work, keeping in mind that the fork has:
 - restricted module list (PSX, SS, SNES and NES)
 - limited video options (no shaders)
 - has a new option native_resolution that no GUI is able to manage

Quote
That's not true for Direct3D9Ex and up, where you can switch the full screen resolution without releasing the resources. Anyone has tested e.g. Megadrive's Sonic 2 in recent versions of GM? The progressive/interlaced mode change is absolutely seamless, at least on my machine, you only notice a slight warp on the background music (hopefully I'll figure out a way to avoid this too at some point). As far as I know OpenGL doesn't allow this, and wrapper APIs conceived to target both Direct3D and OpenGL implement a lower common denominator solution, making mode changes unnecesarily expensive.

Ok, good informations, thank you.
But I'm not, strictly speaking, a developper, and integrate a Direct3D9Ex rendering process in Mednafen is far beyond my competence.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #12 on: September 03, 2017, 05:29:31 pm »
Quote
I believe I have found a glitch! If I launch "emu4crt.exe ffviii\game.m3u" I get native resolutions, but if I launch "emu4crt.exe -which_medium 1 ffviii\game.m3u" I get the emulator putting out native resolution while my screen is set to the super wide resolution dictated in my mednafen config (2560x240). In other words, I get the top half of the ps1 boot screen smashed down into the left fifth of my screen! There seems not to be a way around this; the resolution changes don't effect my modeline changes if I use which_medium. I wonder if other unusual commands have any effect!

The mod is very minimalistic, there is no reason why other options than videos should have been altered.

I don't reproduce the issue. I've tested the -which_medium option with different games and the resolution switched correctly.
Symptoms are like mednafen.exe is used instead of emu4crt.exe, if you are using a frontend, have a look to the settings.
I guess you are trying to launch FF8, which version in particular ? Could you attach the stdout.txt ?

Guilt

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:April 14, 2018, 10:17:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #13 on: September 04, 2017, 02:31:22 pm »
Inexplicably, its not happening anymore. Never mind I guess?

EDIT: Got RocketLauncher working and suddenly life is even better. Like you said, no graphical glitches anymore (save the transition from BIOS to game on PSX). This is so close to perfect. I envy you.
« Last Edit: September 04, 2017, 10:33:28 pm by Guilt »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #14 on: September 05, 2017, 02:04:56 pm »
Inexplicably, its not happening anymore. Never mind I guess?

EDIT: Got RocketLauncher working and suddenly life is even better. Like you said, no graphical glitches anymore (save the transition from BIOS to game on PSX). This is so close to perfect. I envy you.

RocketLauncher needs too much work to just use it as a workaround. It is based on Autohotkey scripts and maybe the interesting functionnalities can be exported to make a lighter solution.

Yes, PSX bios transition is faulty, it will be better in the next build. :)

Guilt

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:April 14, 2018, 10:17:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork
« Reply #15 on: September 07, 2017, 01:08:35 am »
I wonder how receptive the mednafen devs would be if you asked them about including this in the main branch! That way we would never need to choose between compatibility updates and your fine work!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #16 on: September 07, 2017, 04:20:44 pm »
I wonder how receptive the mednafen devs would be if you asked them about including this in the main branch! That way we would never need to choose between compatibility updates and your fine work!

This feature has already been asked to the Mednafen team, they didn't show interest to add it. I understand their choice, our usage is not very common.
About adding the mod to the official source... well, it works but it is done by an amateur. The overall thing should be improved by an experimented dev before showing it to the Mednafen team.

It won't be very difficult for anyone to integrate the modifications to futur source releases. The most difficult part is to get a working compilation environment.
By the way, I'm eager to test new Mednafen releases too, so, emu4crt mod will come shortly after.  :)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #17 on: September 09, 2017, 11:37:10 am »
Hi,

New revision of Mednafen mod emu4crt: https://github.com/emu4crt/files

PC engine support and PSX boot improvement.

funkycochise

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:October 22, 2019, 07:35:18 am
  • 8 bits generation
Re: emu4crt Mednafen fork
« Reply #18 on: September 10, 2017, 03:48:15 am »
Hi,
I did a quick test yesterday :
But what I get is a small picture (original famicom 256x240 resolution inside my desktop resolution (640x480i)



In black, of course, here's a recomposed picture for explanation purpose.

If I switch first my desktop to 256x240 using changeScreenResolution.exe tool, here's what I get :



Fullscreen 256x240 : What I what to achieve, great. But I thought that it would be done automatically, like groovymame.
So : do I need to do something to make emu4crt.exe to make the resolution switch.
I've provided the log file produced.

Thank you.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #19 on: September 10, 2017, 04:28:55 am »
Hi,

Thank you for the pictures and the (empty) log file. :)

I confirm that resolution should automatically be set to 254x240.

I have some questions:

- Did you test new version (A02) ?
- Is it the same with other modules,:snes, pc-engine ?
- Can you confirm that the setting is activated in mednafen-09x.cfg:
video.native_resolution 1

Thank you.

funkycochise

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:October 22, 2019, 07:35:18 am
  • 8 bits generation
Re: emu4crt Mednafen fork
« Reply #20 on: September 10, 2017, 09:28:06 am »
I don’t know what happened with the log file. I’ll fix that shortly.
I did the test with the earlier version. A01 ?
I only did test with famicom games.
How to specify whitch cfg file to use ?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #21 on: September 10, 2017, 10:45:32 am »
Like official builds, emu4crt use "mednafen-09x.cfg".
If it not exists, it will be created at first launch.

Notepad does not handle correctly the default file format, you can use notepad++ for example.

funkycochise

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:October 22, 2019, 07:35:18 am
  • 8 bits generation
Re: emu4crt Mednafen fork
« Reply #22 on: September 10, 2017, 02:44:04 pm »
 video.native_resolution 1
did the trick

I need to remap key now, and will test your second build.
thanks a lot.

FKY

funkycochise

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:October 22, 2019, 07:35:18 am
  • 8 bits generation
Re: emu4crt Mednafen fork
« Reply #23 on: September 11, 2017, 06:57:01 am »
I did test A1 version for key remap.
I had to switch off the native résolution because
the text goes beyond the 256x240 limit. So it’s unreadable.
but I finally coule remap the nes/famicom to suit the jammasd.

I also test the A2 version for pce emulation.
It wirked well but had some problem for switching off native resolutions.
I had to copy the cfg from A1 version. I don’t know really why.
And then I could map keys for pce emulation.

Thanks for your help by the way.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork
« Reply #24 on: September 12, 2017, 04:28:55 am »
You're welcome, thank you for your feedback.

Yes, the currently mod has some side effects that impact standard display mode and OSD. I'm working on those points.
For now, an easy way is to use the official mednafen.exe for configuration.

funkycochise

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:October 22, 2019, 07:35:18 am
  • 8 bits generation
Re: emu4crt Mednafen fork
« Reply #25 on: September 12, 2017, 05:16:54 am »
Even if setting was the trickiest, once in 640x480,
GUI was readable. Configuration of mednafen is a bit strange,
as it repeat same input several times.

I’ll go ahead with testing.

yuuyuubaishu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:November 14, 2017, 09:24:27 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #26 on: October 25, 2017, 01:48:33 am »
I test the last A4 version and can not switch to Fullscreen mode,but the A2 is all right even with auto switch modeline(pretty good)。I wonder if   it’s the bug in A4……

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #27 on: October 25, 2017, 05:30:26 pm »
Hi,

You are right, it's a bad bug.

Version A05 fixes that: https://github.com/emu4crt/files/blob/master/mednafen-0.9.48-emu4crt-A05-win64.zip

yuuyuubaishu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:November 14, 2017, 09:24:27 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #28 on: October 26, 2017, 04:56:08 am »
Thanks for your great job! I have test A5 and  succeed.

in the meantime I did find some image get stuck extremely shortly ,I am sure the Vertical Refresh Rate generated by crt_emudriver cannot exactly match.

vmmaker generate 240P with 60hz,but groovymame can automatically adjust it to be suit for different consoles such as SS Refresh Rate 59.764793hz and NES 60.098800hz,you can get smooth image without any tear.

But when you run a NES game using emu4crt with 240P ,you have trouble updating the default  240P Vertical Refresh Rate, slight graphic intermission will occur throughout the whole process

And SNES Faust is not available

I am  sorry for my poor english.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #29 on: October 26, 2017, 07:15:10 pm »

As explained in documentation, this mod does not generate specific modelines for emulated system, it uses video modes available, with no consideration about refresh rate.

To get "perfect" sync with emu4crt, you can configure VMMaker to generate accurate video modes for one system, emu4crt will use them.
But, you'll have to reset VMMaker when changing emulated system.

What are the benefits of the Faust SNES core ? I may have a look to it.


retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #30 on: November 01, 2017, 07:43:31 am »

As explained in documentation, this mod does not generate specific modelines for emulated system, it uses video modes available, with no consideration about refresh rate.

To get "perfect" sync with emu4crt, you can configure VMMaker to generate accurate video modes for one system, emu4crt will use them.
But, you'll have to reset VMMaker when changing emulated system.

But doesn't VMMaker generate modelines with correct refresh rates for these systems already? Genuinely asking as it's been so long since I understood how it all worked!

It would be great if there was an alternative to mame for consoles with accurate video modes (and refreshes) because as good as it is for arcade systems even the most popular systems have major issues in MAME.
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #31 on: November 02, 2017, 04:37:36 pm »
Yes, VMMaker can generate all required resolution at every refresh rates, but Mednafen/emu4crt is not able to select a specific refresh rate.

Mednafen relies on the SDL library which does not expose method to do this, so it is not trivial to add such feature.

Dacasks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 57
  • Last login:February 09, 2021, 09:30:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #32 on: November 07, 2017, 05:55:43 am »
Whaaaaaa this is awesome.

Mednafen is the best all around console emu, imho (and I like to stay away from retroarch)

But maybe I'm missing something... I still get screen tearing. Doesn't it get rid of it? I manually created resolution with the exact refresh rate take from mame as reference for some consoles, but I still get some tearing... and yeah, the input lag is really noticeable. I don't wanna use Vsync because that ruins the purpose I guess...

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #33 on: November 07, 2017, 07:11:15 pm »

Well, I'm pretty sure that vsync will prevent any tearing. ;)

About input lag, emu4crt should not be worse than the official build, and, just in case, the Mednafen Team gives some recommendations: https://mednafen.github.io/documentation/#Section_lag

AstroFan

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 29, 2024, 06:45:40 pm
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #34 on: November 08, 2017, 03:27:42 pm »
Is it possible to build a Windows 32bit version?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #35 on: November 09, 2017, 05:03:01 pm »
It should work, yes, without Saturn engine that is designed for win64.

I'll have a look to this on some days.

keropi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 161
  • Last login:December 28, 2022, 11:06:35 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #36 on: November 09, 2017, 06:34:16 pm »
Is there a good GUI program to setup mednafen options like controls and paths ?


alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #37 on: November 10, 2017, 03:08:33 pm »
Just playing around a bit with it,  im really happy that i can now play snes games at their original resolution.

I have been trying and seems like pal games switch to 31khz mode (or at least my screen is flickering).
i tried to replace the roms with the usa versions and most work fine then,  however there are some like dragon ball z, z2,z3 or illusion of time (spanish)  that do not have an equivalent Usa romset.

i imported the modes into vmmaker for pal and ntsc (for all systems allowed)  but still pal games seem to resist ;)

is there any workaround i could use?  i was thinking of patching the roms,  but not sure all them are compatible with 60hz mode.

amd service is disabled and "hide desktop resolutions" marked :)

Thanks a lot!
« Last Edit: November 10, 2017, 04:08:20 pm by alex2005 »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #38 on: November 11, 2017, 05:19:13 am »
Is there a good GUI program to setup mednafen options like controls and paths ?

Yes, there are some UI, MedLaunch for example, that can help to define paths and some controls.
Controls can also be set up in-game (Shift+Alt+1 for player 1).


Just playing around a bit with it,  im really happy that i can now play snes games at their original resolution.

I have been trying and seems like pal games switch to 31khz mode (or at least my screen is flickering).
i tried to replace the roms with the usa versions and most work fine then,  however there are some like dragon ball z, z2,z3 or illusion of time (spanish)  that do not have an equivalent Usa romset.

i imported the modes into vmmaker for pal and ntsc (for all systems allowed)  but still pal games seem to resist ;)

is there any workaround i could use?  i was thinking of patching the roms,  but not sure all them are compatible with 60hz mode.

amd service is disabled and "hide desktop resolutions" marked :)

Thanks a lot!

Could you launch a PAL game and post the generated stdout.txt log file, please ?

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #39 on: November 11, 2017, 11:40:34 am »
Yes, here it is  :cheers:

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #40 on: November 11, 2017, 01:12:42 pm »
Yes, here it is  :cheers:

Ok, it seems that emu4crt is doing his job: switching to 256x288.

So, your problem should be related to your PAL modelines. You can check them, one by one, with Arcade_OSD.  ;)

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #41 on: November 11, 2017, 03:01:49 pm »
Yes, here it is  :cheers:

Ok, it seems that emu4crt is doing his job: switching to 256x288.

So, your problem should be related to your PAL modelines. You can check them, one by one, with Arcade_OSD.  ;)

Thanks for the hints! I will check them, first i need to look how to use arcade_osd because i never used it before :)

In the meantime switched some of the roms to the respective ntsc version, and they seem to work fine. I did also some tests to convert pal to ntsc roms and this seems to work well so far :)

I will check the remaining roms that have no ntsc version and try to fix them with arcade_osd.

Again thanks and keep the good work!! Its awesome what you do with emu4crt :) :) :)

Dacasks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 57
  • Last login:February 09, 2021, 09:30:30 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #42 on: November 17, 2017, 11:29:06 am »

Well, I'm pretty sure that vsync will prevent any tearing. ;)

About input lag, emu4crt should not be worse than the official build, and, just in case, the Mednafen Team gives some recommendations: https://mednafen.github.io/documentation/#Section_lag

Blit time Sync was activated, that was causing more input lag, sorry. Now it's fine like the vanilla build, but what I meant about no screen tearing is the same solution as Groovymame: No tearing without needing the "regular vsync" which introduces lag.

I guess that isn't possible for now. But it's great already... just need to ignore the tearing.

Lindiu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:August 23, 2022, 09:10:09 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #43 on: January 04, 2018, 04:36:35 pm »
Hi, the PSX bios transition is fixed?, I have an error starting a lot of PSX games ( with no problems in others).

Error:
Assertion failed!: ... video.cpp, Line 1218
Expression: dest_rect.h > 0

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #44 on: January 04, 2018, 05:51:39 pm »
Hi,

I didn't know about such error, so... there is no fix for now.  :)

Please, could you give one or more game which produce the error ?

Log file may help too.

Thank you.

Lindiu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:August 23, 2022, 09:10:09 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #45 on: January 04, 2018, 06:46:57 pm »
The X-Files, for example. Tomorrow I'll upload the log file.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #46 on: January 05, 2018, 03:22:34 am »
It's ok, I can reproduce on several games.  :o

I will work on it.

Lindiu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:August 23, 2022, 09:10:09 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #47 on: January 05, 2018, 10:27:32 am »
Thank you :applaud:

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - updated to 0.9.48
« Reply #48 on: January 06, 2018, 10:00:12 pm »
Hi, the PSX bios transition is fixed?, I have an error starting a lot of PSX games ( with no problems in others).

Error:
Assertion failed!: ... video.cpp, Line 1218
Expression: dest_rect.h > 0

New release! It should be fixed.  :)

Is it possible to build a Windows 32bit version?

A 32bit version is available... in case you didn't migrate to a 64bits OS until today.  ;)

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: emu4crt Mednafen fork - update 0.9.48 / A06
« Reply #49 on: January 17, 2018, 02:55:58 pm »
Fantastic! This is now the number one way to play PS1 on a CRT with a PC!  :applaud:

Thank you so much for your work silmalik!
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A06
« Reply #50 on: January 18, 2018, 04:22:45 am »
Would it be possible to display the control remapping a bit upper on the screen? when I use it on the arcade monitor it always displays at the bottom of the screen (usually i stretch it to match most of the games resolutions), for which i have no visibility.
It doesnt have to be in the center, as long as it is a few lines  upper and not at the bottom should be fine - maybe something like MAME style  :)

I can always stretch the monitor display, adjust the controls and then stretch it back, so its not a big deal, but just a small feature request :)
« Last Edit: January 18, 2018, 04:24:19 am by alex2005 »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A06
« Reply #51 on: January 18, 2018, 10:04:09 am »
Fantastic! This is now the number one way to play PS1 on a CRT with a PC!  :applaud:

Thank you so much for your work silmalik!

Thank you, I'm glad you apreciate.  :)

Would it be possible to display the control remapping a bit upper on the screen? when I use it on the arcade monitor it always displays at the bottom of the screen (usually i stretch it to match most of the games resolutions), for which i have no visibility.
It doesnt have to be in the center, as long as it is a few lines  upper and not at the bottom should be fine - maybe something like MAME style  :)

I can always stretch the monitor display, adjust the controls and then stretch it back, so its not a big deal, but just a small feature request :)

Could you confirm that you use the last version ?
OSD messages are already displayed a bit upper to prevent overscan, but maybe it's not enough in some situation.

I like comfort too, so I will have a look on this if I can reproduce.  ;)

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A06
« Reply #52 on: January 18, 2018, 12:47:29 pm »
my bad, I thought I was using the last version, but I was not.

The latter one is perfect! Fonts display bigger and no longer out of my screen range.

Thanks a lot!!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #53 on: January 18, 2018, 07:42:42 pm »

A07 Update: support of Super Resolutions added.

Configuration file update is required since resolution switch is now defined with "video.resolution_switch" parameter.
Accepted values are: 0 (default), native and super.

Feel free to report any issue or suggestion.

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #54 on: January 19, 2018, 08:00:28 am »
Just tried the latest version, its such an awesome job what you are doing!
So far works great with native resolutions, but I must say Saturn using super resolutions looks even better :)

Thanks a lot for all your time and dedication! :)

hotdog963al

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 07, 2018, 06:03:45 am
  • PVM-14M2E
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #55 on: January 23, 2018, 06:38:18 pm »
Hey, thanks so much for this.

I started fiddling with the A05 release a few weeks back, but quickly noticed the frequent horizontal switching on PSX was not great for my PVM, so I hacked about with the GPU code and got it outputting at 2560 wide which worked perfectly. I see you've included this feature in the newer version which is great.

Another issue I had however was with how Mednafen itself handles positioning/overscan, for example, at certain horizontal resolutions, you either end up with stuff being incorrectly cropped, or extra black bands being added (note how screenshots are never the right res). I eventually managed to get the code working so that the output was exactly perfect with no black bands or incorrect cropping, save for a slight crop at the 368 res which wound up at 365 (due to it being @ 2560).

Would you be interested in fixing this issue in your version? I can supply some diffs if you'd like to see what I did to get it working.

Cheers

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #56 on: January 24, 2018, 02:42:33 pm »
Hi hotdog963al,

Yes, of course, I'm eager to test your fix!  :)

Please, send your diffs and I'll try to integrate them in my mod.

hotdog963al

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 07, 2018, 06:03:45 am
  • PVM-14M2E
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #57 on: January 24, 2018, 05:01:23 pm »
Hi hotdog963al,

Yes, of course, I'm eager to test your fix!  :)

Please, send your diffs and I'll try to integrate them in my mod.

Here's the entire gpu.cpp file. I isolated the changes that were relevant and integrated them into the code from your A07 release. Seems to work!
https://pastebin.com/raw/KyQ8jXPa

Here's a few screenshots as well to just give you an idea, I've tested all resolutions and it works great. Granted, 3px are lost at 368, but that would take quite a bit more effort to resolve and I honestly don't think it's worth it. :laugh:
https://imgur.com/a/gp1MZ

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #58 on: January 24, 2018, 07:58:45 pm »
Ooooh it works great, well done!  :)

It seems to fix Mednafen's global PSX horizontal centering issue, maybe you should contact the team to expose what you've done.

If you are ok, i will integrate your fix "as is" in a next release.

Thank you for sharing.

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #59 on: January 25, 2018, 01:01:20 pm »
I don't suppose I could ask a strange favour?

I'm working on getting the original NES Zapper working which I'm confident it should, I just need the optical sense line exposed as an input, would that be possible? I don't know where to start compiling mednafen or I'd do it myself!
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #60 on: January 25, 2018, 03:00:49 pm »
Hi retrorepair,

Well, I don't understand your request, sorry.  Don't know what is the optical sense line ?  ???

I'm not very experienced with cpp, so, if you feel confident to make your mod by yourself, I can help to get a compilation environment.

retrorepair

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 252
  • Last login:April 14, 2023, 04:49:58 pm
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #61 on: January 25, 2018, 04:14:14 pm »
That would be very helpful, thanks! I'll PM you after work
My arcade racing setup:
My Youtube Channel: http://www.youtube.com/user/RetroRepair
My Twitter: http://twitter.com/retrorepair

hotdog963al

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:July 07, 2018, 06:03:45 am
  • PVM-14M2E
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #62 on: January 27, 2018, 08:56:55 am »
Ooooh it works great, well done!  :)

It seems to fix Mednafen's global PSX horizontal centering issue, maybe you should contact the team to expose what you've done.

If you are ok, i will integrate your fix "as is" in a next release.

Thank you for sharing.

Great! Glad to hear it's working for you.

By all means go ahead and include it, it'll save me having to patch it in every time you release an update! :D

0mike0b

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:December 23, 2021, 01:34:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #63 on: February 10, 2018, 04:46:25 pm »
Hello! I'm very interested in using Emu4CRT in super resolution mode but I can't seem to figure out what I'm doing wrong when I try to set the option in mednafen-09x.cfg

Is there any way somebody could go in to detail on how to set super resolution mode in the cfg or maybe send a working cfg file. It would be a huge help thanks so much to anyone reading this!

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #64 on: February 10, 2018, 06:31:34 pm »
i went through the documentation and its quite straight forward,  did you install the required modelines in vmmaker?

0mike0b

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:December 23, 2021, 01:34:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #65 on: February 11, 2018, 08:25:33 pm »
i went through the documentation and its quite straight forward,  did you install the required modelines in vmmaker?

Yes I have all 4 of them required for Super Resolutions. If it is so straight forward maybe you can help me find where I am messing it up. I attempt to add an option at the end of my config for mednafen like so

video.resolution_switch Super

It always gets moved to a section of the cfg titled "Unrecognized Settings Follow:"

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #66 on: February 12, 2018, 08:23:51 am »
Hi,

Once launched, emu4crt should add required lines in cfg file by himself, and not in "Unrecognized" section of course:

;Video resolution switch (0, native or super).
video.resolution_switch 0


If you still have troubles, please check that you are using the correct executable version and post cfg & stdout file. Thanks.

terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #67 on: February 18, 2018, 02:41:46 am »
Hi silmalik, thank you for your effort.

Is this mod Windows specific or other systems (say, Linux) that mednafen supports can benefit of it?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #68 on: February 18, 2018, 12:18:26 pm »
Hi terranigma,

No specific Windows code has been added, just some calls for SDL standart functions, so... it could work on other systems. :)

terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #69 on: February 20, 2018, 09:07:30 pm »
I just made a quick test on Linux with psx and snes and it behaves very well! One thing I noticed is that snes runs in a narrowed picture then I checked actual resolutions. Well, I see that It runs on "384x288" resolution instead of "256x288" which emu4crt claims.
"video.resolution_switch" is "native".

 
Code: [Select]
### VIDEO Native resolution init - set to 256x288
  Video Driver: OpenGL
  Video Mode: 256 x 288 x 32 bpp
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=256, H=288
  OpenGL Implementation: nouveau NVA5 3.0 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 8192 x 8192
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
MAIN - native resolution switched

Code: [Select]
$ xvidtune -show
"384x288"       7.41    384  392  427  472    288  291  294  314 -hsync -vsync

EDIT: Similar issue also appears on psx's intro and demo stages but actual game runs on claimed resolution.
« Last Edit: February 20, 2018, 10:19:40 pm by terranigma »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #70 on: February 21, 2018, 01:39:48 pm »
Hi,

Well, unexpected behaviour indeed.
It seems to act like some video mode are unavailable on your system or emu4crt does not correctly set initial video mode.

- Is the window correctly sized in window mode ?
- If you disable native/super resolution and manually set 256x288 in fullscreen, does it work ?
Could you try Snes games that change resolution (ex: Secret of mana, blues brothers), let them swith and post complete log file ?

Thank you.



terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #71 on: February 23, 2018, 01:39:04 pm »
Hi,

Well, unexpected behaviour indeed.
It seems to act like some video mode are unavailable on your system or emu4crt does not correctly set initial video mode.

- Is the window correctly sized in window mode ?
- If you disable native/super resolution and manually set 256x288 in fullscreen, does it work ?
Could you try Snes games that change resolution (ex: Secret of mana, blues brothers), let them swith and post complete log file ?

Thank you.

You're right. It's my bad. I thought that emu4crt is going to tune required modelines like groovymame. When I add some modelines for testing, emu4crt uses the closest one to switch if required one is not available.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #72 on: February 24, 2018, 12:11:25 pm »
Ok, good news.

Thank you for the feedback.

Foxhole

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 287
  • Last login:March 04, 2024, 04:36:28 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #73 on: February 25, 2018, 12:56:21 am »
Is there a way to use hard sync with mednafen, like with retroarch? It really helps reducing input lag.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #74 on: February 25, 2018, 10:04:03 am »
I don't know about this.  ???

Recent Mednafen release is based on SDL 2, maybe it opens way for such improvement.

You may ask directly the Mednafen team for such feature. :)

terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #75 on: March 04, 2018, 11:26:40 am »
Hi silmalik,
Any plan on Mednafen 1.21 ?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #76 on: March 04, 2018, 06:20:11 pm »
Hi terranigma,

Yes of course, work in progress... should be available this week.


silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #77 on: March 05, 2018, 06:08:55 pm »
Hi silmalik,
Any plan on Mednafen 1.21 ?

Done! :)

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: emu4crt Mednafen fork
« Reply #78 on: March 07, 2018, 05:32:40 pm »
If mednafen or emu4crt switches to a 31kHz mode, you can try this fix:
  1 - Stop and Disable service: AMD External events utility
  2 - Ensure that the Windows advanced display option is enable: "hide modes that is monitor cannot display"

This service often resets the "hide modes", so standard 31kHz video modes are exposed to applications, not good for our usage.

A bit late, but thank you for this post. And to Calamity for highlighting it. I was having an issue where a frontend i'd setup on an LCD was grabbing a 31kHz mode out of nowhere - it had never used that resolution before. Stopping and disabling the AMD External Events Utility fixed it.

As a side note, the second step does not seem to be needed for Win10. In fact I can't even find if that option still exists or is built-in now.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #79 on: March 08, 2018, 04:21:25 pm »
Hi buttersoft,

Thank you for the feedback, I'm glad that you have fixed your issue.

The setting can still be found in Windows 10: Display settings / Display adapter properties.

terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 0.9.48 / A07
« Reply #80 on: March 08, 2018, 04:24:38 pm »
Hi silmalik,
Any plan on Mednafen 1.21 ?

Done! :)

I didn't expect such a short time. I just tested on Linux and great work as usual!

Thank you for effort.

Note: Can you distribute your work also as a patch file against latest upstream version? Maybe other Linux packagers interest to import your work.
« Last Edit: March 08, 2018, 04:37:01 pm by terranigma »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #81 on: March 08, 2018, 06:41:54 pm »
Hi terranova,

You are right, patches will be more suitable.
So, a patch folder is born in the repository: https://github.com/emu4crt/files


I have a question about the behaviour on Linux: how are the resolution switches ? is there any delay and/or visual glitches ?

terranigma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:March 20, 2019, 04:03:17 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #82 on: March 08, 2018, 07:15:15 pm »
Hi silmalik,

It seems that you have generated the patch by referencing the root folder, thus patch level shifted up by one level according to my test. I mean, "patch -p1" doesn't work inside of the source tree (but -p2 does) . Probably you have to compare them in same folder like:
Code: [Select]
cd /
diff -Naur mednafen emu4crt > emu4crt.patch

I didn't notice any worrying delay and glitch issues during resolution switches.

Regards.

Code: [Select]
Initializing sound...
  Using "ALSA" audio driver with device "sexyal-literal-default":
   Format: 16 bits(signed, 2 bytes, little-endian)
   Rate: 48000
   Channels: 2
   Buffer size: 1536 sample frames(32.000000 ms)
   Latency: 1536 sample frames(32.000000 ms)
   Period size: 512 sample frames(10.666667 ms)
    Warning: Period time is too large(it should be <= ~5.333ms).  Video will appear very jerky.
 Initializing video...
### VIDEO Native resolution init - set to 640x480
  Driver: OpenGL
  Display Mode: 640 x 480 x 24 bpp @ 30Hz  (Window: 640 x 480)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=640, H=480
  OpenGL Implementation: X.Org R300 Project ATI RV370 2.1 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 2048 x 2048
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
PSX GPU - Startup resolution change bypass (1).
PSX GPU - Startup resolution change bypass (2).
PSX - GPU register - resolution change to: 640x480 (V=39)
 Initializing video...
### VIDEO Native resolution init - set to 640x480
  Driver: OpenGL
  Display Mode: 640 x 480 x 24 bpp @ 30Hz  (Window: 640 x 480)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=640, H=480
  OpenGL Implementation: X.Org R300 Project ATI RV370 2.1 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 2048 x 2048
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
MAIN - native resolution switched
PSX - GPU register - resolution change to: 320x240 (V=17)
 Initializing video...
### VIDEO Native resolution init - set to 320x240
  Driver: OpenGL
  Display Mode: 320 x 240 x 24 bpp @ 50Hz  (Window: 320 x 240)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=320, H=240
  OpenGL Implementation: X.Org R300 Project ATI RV370 2.1 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 2048 x 2048
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
MAIN - native resolution switched
PSX - GPU register - resolution change to: 368x240 (V=64)
 Initializing video...
### VIDEO Native resolution init - set to 368x240
  Driver: OpenGL
  Display Mode: 384 x 240 x 24 bpp @ 50Hz  (Window: 384 x 240)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=8, Y=0, W=368, H=240
  OpenGL Implementation: X.Org R300 Project ATI RV370 2.1 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 2048 x 2048
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
MAIN - native resolution switched
PSX - GPU register - resolution change to: 320x240 (V=17)
 Initializing video...
### VIDEO Native resolution init - set to 320x240
  Driver: OpenGL
  Display Mode: 320 x 240 x 24 bpp @ 50Hz  (Window: 320 x 240)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=320, H=240
  OpenGL Implementation: X.Org R300 Project ATI RV370 2.1 Mesa 17.2.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 2048 x 2048
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
MAIN - native resolution switched
« Last Edit: March 08, 2018, 07:30:54 pm by terranigma »

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #83 on: March 09, 2018, 09:15:30 am »
Hi silmalik,

First of all, congratulations for your great job!

When launching PSX games, I get an superx640i resolution. Is that right or should be 240p? The SS games runs gracefully at superx240p...


Regards

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:March 22, 2024, 12:55:20 am
  • Is running at 15kHz
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #84 on: March 10, 2018, 05:41:16 am »
The [hide modes this monitor cannot display] setting can still be found in Windows 10: Display settings / Display adapter properties.

Yes it can! Thank you again, saved ---my bottom--- when i had to reinstall crt_emudriver and the problem recurred even when the AMD external events service was disabled :)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #85 on: March 10, 2018, 09:16:24 am »
Hi silmalik,

It seems that you have generated the patch by referencing the root folder, thus patch level shifted up by one level according to my test. I mean, "patch -p1" doesn't work inside of the source tree (but -p2 does) . Probably you have to compare them in same folder like:
Code: [Select]
cd /
diff -Naur mednafen emu4crt > emu4crt.patch

I didn't notice any worrying delay and glitch issues during resolution switches.

Regards.


Ok, I'll try your suggestion in next release. Thank you.


Hi silmalik,

First of all, congratulations for your great job!

When launching PSX games, I get an superx640i resolution. Is that right or should be 240p? The SS games runs gracefully at superx240p...


Hi,
PSX boot logo is displayed in an interlaced mode and the Saturn one is displayed in progressive mode, yes this is expected.
After boot logos, most PSX games switch to progressive display mode, emu4crt should then apply the appropriate mode.

If you suspect a misfunction, please specify game reference and stdout.txt file, I'll have a look at it. ;)


The [hide modes this monitor cannot display] setting can still be found in Windows 10: Display settings / Display adapter properties.

Yes it can! Thank you again, saved ---my bottom--- when i had to reinstall crt_emudriver and the problem recurred even when the AMD external events service was disabled :)

You're welcome :)

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #86 on: March 12, 2018, 06:47:38 am »
Hi silmalik,

First of all, congratulations for your great job!

When launching PSX games, I get an superx640i resolution. Is that right or should be 240p? The SS games runs gracefully at superx240p...


Hi,
PSX boot logo is displayed in an interlaced mode and the Saturn one is displayed in progressive mode, yes this is expected.
After boot logos, most PSX games switch to progressive display mode, emu4crt should then apply the appropriate mode.

If you suspect a misfunction, please specify game reference and stdout.txt file, I'll have a look at it. ;)


Hi,
You're right! Thanks a lot!

Fishface

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:April 02, 2018, 05:32:22 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #87 on: March 31, 2018, 10:47:55 am »
Totally digging this. Great job! Any plans on adding support for more modules? I'd love to see Master System in particular  :)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #88 on: April 02, 2018, 05:41:17 pm »
Hi,

Thank you for your interest.

There are other priorities to add to emu4crt: remove the console that produces glitches during resolution switch, frequecy management for example, etc.
And I miss some time these days to work on it.

Moreover, there are strong alternatives: Groovymame of course, Fusion and the recent retroArch build that support native resolution. ;)

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #89 on: April 24, 2018, 04:37:05 pm »
Hi silmalik,

I got the following message when I try to run a game (SS or PSX):
"set rate is out of range [22050-19200]"

I'm using super resolution.
What could it be?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #90 on: April 25, 2018, 12:32:28 pm »
Hi Purity1516,

Well, no idea, might be sound related. More information is required.

Please attach the "stdout.txt" log file.

Have you tried the mednafen official build ?

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #91 on: April 25, 2018, 04:11:21 pm »
Hi Purity1516,

Well, no idea, might be sound related. More information is required.

Please attach the "stdout.txt" log file.

Have you tried the mednafen official build ?


It's working now! The <video.fs> setting was set to 0 and I changed to 1.
That was not so clear, because even set to 0, the emulator was running in a "fake" fullscreen mode with an oversized image.

Thanks a lot!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #92 on: April 27, 2018, 02:49:34 am »
Well done! :)

Thanks for the feedback.

ArcadeAction

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:March 03, 2019, 04:35:29 pm
  • I have built my own arcade controls!
    • ArcadeMade.com
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #93 on: May 16, 2018, 06:13:00 pm »
First thanks for making this.


I'm having trouble with resolutions and configuring the value for video.resolution_switch.

When running SuperNES, the displayed resolution is either just a small box in a window (native), super wide-off the screen and stretched (super) or seemingly zoomed in at 2x like I'm sitting in the front row at a movie (0). I am unable to change it to a setting of "1" as it gives me a message that "1" is not a valid option.

I'm running Win764, CRT EmuDriver and an ATI HD 5000 series card.

Thanks for your thoughts

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #94 on: May 18, 2018, 07:53:19 pm »
Hi ArcadeAction,

For lastest version, I confirm that only valid values for video.resolution_switch are 0, native and super.

Your description indicates that things are working well in window mode.

To get into fullscreen mode, pressing Alt+Enter should do the job... once you configured correct video modes in CRT Emudriver.

If need to go furher, please attach your mednafen.cfg and stdout.txt files.  ;)

Jack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 22
  • Last login:December 28, 2019, 05:30:55 pm
  • See You Space Cowboy..
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #95 on: October 01, 2018, 05:32:38 pm »
Is it possible to use a lightgun like the dolphin bar with this emulator? Thanks.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #96 on: October 02, 2018, 01:36:31 pm »
Hi,

Never tested.

It may work as long as this bar can emulate a mouse, but only experiences could confirm.

Feel free to share if you decide to try, I'm interested. :)

bluetrain

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:October 22, 2019, 03:21:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #97 on: October 23, 2018, 05:38:07 am »
I can´t get the proper resolution for snes, tried both native and super resolution (in cfg and of course in vmmaker) but in full screen the pixels take up like 1/3 of the screen. If I do alt+enter the screen goes bananas. It seems to be pixel perfect picture but in like second or so I get jitter/tearing and it doesn´t stop if close the program so I have to restart windows.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #98 on: October 23, 2018, 04:59:56 pm »
Hi,

Please, attach "stdout.txt" log file to allow investigations.

In the meantime, some questions:
 - does it work for other systems like PSX or PC engine ?
 - did you apply this ?:
  1 - Stop and Disable service: AMD External events utility
  2 - Ensure that the Windows advanced display option is enable: "hide modes that is monitor cannot display"

bluetrain

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:October 22, 2019, 03:21:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #99 on: October 24, 2018, 05:55:22 am »
Hi Silmalik,


I think I found a way around. :) In VM-maker I had all the super resolutions (included 50hz for pal) included and it works really great with GM so I figured it should work both with PAL and NTSC. So what i did was, remove all the PAL resolutions in VM-maker and only use NTSC roms in mednafen. Then it works flawlessly and I really don´t care about PAL anyway so it´s not a problem. Kudos for your (and Calamitys too) great work with the fork. I´m just blown away by the picture quality that I get on my sony trinitron 25", it´s kind of sick, really :)

On a side note. Is it possible to add Sega Genesis?   

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #100 on: October 24, 2018, 02:54:05 pm »
Not sure about what happened, only logs would tell, but I'm glad that you've fixed your issue. :)

Unfortunatly, Genesis emulation is not so great in Mednafen, it uses an old external core with limitations.
From official web site: "Sega Genesis/Megadrive emulation should still be considered experimental; there are still likely timing bugs in the 68K emulation code, the YM2612 emulation code is not particularly accurate, and the VDP code has timing-related issues.  Sega 32X and Sega CD are not currently supported [...]"

So, I don't feel great motivation to investe time on this.  :-\

bluetrain

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:October 22, 2019, 03:21:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #101 on: October 25, 2018, 04:11:49 am »
Gotcha! Is that a common problem with emulating the genesis or has it specifically to do with mednafen? May I ask if you have any rec on another genesis emulator for 240p?

lolo40

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 9
  • Last login:September 22, 2021, 06:38:50 pm
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #102 on: October 25, 2018, 10:04:52 am »
Kega Fusion, old but very good.
You have to modified the Fusion.ini file to activate the expert mode.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #103 on: October 25, 2018, 05:38:12 pm »
Kega Fusion, old but very good.
You have to modified the Fusion.ini file to activate the expert mode.

I'm using Fusion too :)

jillstars

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:December 01, 2018, 04:23:35 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #104 on: November 24, 2018, 04:49:00 am »
Two games appear to be having problems in resolution.

Blood Roar 2 during the game. Unstable resolution.

Digimon World 2003 at the opening. Flashing, shaking.


Anyway do not give up on this work of yours. Far better than Retroarch which is a bag of bugs and incompatibilities.

(Google translate. =/)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #105 on: November 26, 2018, 02:48:33 pm »
Hi jillstars,

Please, attach "stdout.txt" log file, it will help for analyse and to reproduce the issue.

I'm currently working on other project but there will be an emu4crt update in some time.  ;)

jillstars

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:December 01, 2018, 04:23:35 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #106 on: November 27, 2018, 04:12:18 pm »
Hi jillstars,

Please, attach "stdout.txt" log file, it will help for analyse and to reproduce the issue.

I'm currently working on other project but there will be an emu4crt update in some time.  ;)

Config:

i5 3330 3,0 @ 3,2 ghz
8 GB DDR3
HD4670 DDR2

Software
Windows 7 64x
Medgui reborn mod for Emu4crt
crt_emudriver_&_tools_2.0_beta_13_12.6_W.7.8.10-64
super resolutions

Thanks!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #107 on: November 27, 2018, 07:20:33 pm »
Perfect, thanks for the update.

No issues revealed in the log files. ??? I will need to look further.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #108 on: November 28, 2018, 05:59:07 pm »
Hi jillstars,

Both games are ok on my setup.

Bloody Roar 2 runs in 480i (interlace mode) and Radeon HD4000 can have issues with such modes: stuttering, etc...
Can you confirm that other 480i games run correctly ? Tekken 3 for example.

For Digimon World 2003, as you are using PAL version, please check with arcade OSD that your PAL video modelines are OK (2560x288 & 2560x576).

jillstars

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:December 01, 2018, 04:23:35 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #109 on: December 01, 2018, 04:22:39 am »
Hi jillstars,

Both games are ok on my setup.

Bloody Roar 2 runs in 480i (interlace mode) and Radeon HD4000 can have issues with such modes: stuttering, etc...
Can you confirm that other 480i games run correctly ? Tekken 3 for example.

For Digimon World 2003, as you are using PAL version, please check with arcade OSD that your PAL video modelines are OK (2560x288 & 2560x576).

Thank you.

I did some testing using only the original emulator and it looks like the problem really is performance.

Somehow these two games do not perform well here. Picture shakes. Digimon World 2003 only has issue with the opening video.

Thanks for the help.

NYI

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:January 13, 2020, 11:01:09 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #110 on: December 31, 2018, 04:24:22 pm »
Just wanted to thank you for this. Having two really solid emulators in Groovymame and your fork of Mednafen with super resolution support makes things very simple. Your work is very much appreciated!

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #111 on: January 06, 2019, 09:15:25 am »
Hi Silmalik,
I’ve been testing your fork on my cab and so far it’s working great !
Thanks for the hard work you’ve put into it  :applaud:
On the other hand do you know by any chance if the snes Faust module can be activated on your build ? Haven’t look into it yet but the lag reduce thingy it comes with sounds like something worth checking.
Cheers.

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #112 on: January 06, 2019, 04:32:50 pm »
Ok I’ve tried to run the faust snes module but it seems you didn’t add it to your fork.
Any chance you might add it, please pretty please ?
Cheers.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #113 on: January 09, 2019, 05:17:01 pm »
Hi,

Thank you for the positive feedbacks.  :)
Ok, I'll have a look to faust integration for next release. No promise though.

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #114 on: January 10, 2019, 05:21:42 am »
Much appreciated.
Thanks mate !

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #115 on: January 14, 2019, 04:11:01 am »
Hi Silmalik, I've been testing the pcengine modules, the pce module is fine, though I got some slowdowns playing some pce-cd like lords of thunder.
But I can't get pce_fast module to work, meaning I hear sounds but there's no image.
Does it work on your hand with your fork ?
"Official" Mednafen definitely does, I tested it on my main rig.

Cheers.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #116 on: January 14, 2019, 05:04:27 pm »
Hi Totozero,

Well, the pce_fast core is not included in the mod... getting some sounds is a pretty good surprise. :)

I'm not sure that there is a big interest to include it, because, as far as I know, all PCE games runs at a 240p video mode.
So, using official Mednafen at a super-resolution (2560x240) should produce same results.

About your slowdows... did you try the "cd.image_memcache" option to optimize CD emulated access   ?
https://mednafen.github.io/documentation/mednafen.html#cd.image_memcache

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #117 on: February 19, 2019, 02:48:21 pm »
Hi silmalik

Any plans to upgrade emu4crt to the keep it in line with the latest mednafen ?

Thanks for your great job on this port!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #118 on: February 19, 2019, 05:13:09 pm »
Hi,

I've just setup a compilation environment yesterday, I will start working on it soon.
I got a new job that doesn't offer me too much time for this, but it's still on plan.

Don't expect a new release before some weeks, I'm afraid.

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.21.0 / A08
« Reply #119 on: February 19, 2019, 07:03:25 pm »
Hi,

I've just setup a compilation environment yesterday, I will start working on it soon.
I got a new job that doesn't offer me too much time for this, but it's still on plan.

Don't expect a new release before some weeks, I'm afraid.

What a coincidence! Take your time, man.
Congrats for your new job!
 

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #120 on: March 05, 2019, 07:03:17 pm »
Here we go!  :)

New revision, align on Medafen last version.
Snes_Faust module added.

purity1516

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:May 28, 2019, 04:32:32 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #121 on: March 07, 2019, 03:17:11 pm »
Nice work!
Thanks

naoto.awai

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:March 21, 2024, 03:30:52 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #122 on: June 09, 2019, 09:36:59 am »
Thank You for your great work!

I'm using the last release of emu4crt with Attract Mode 2.5.1 on Windows 7 pro x64.
I'm also using Calamity's driver to output @15 kHz

Emu4crt folder is placed inside my home directory, so I don't have to worry about Windows write-restrictions.
I've manually changed the following parameters in mednafen.cfg:

Code: [Select]
video.fs 1

video.resolution_switch super

When I run emu4crt from command line, everything works as It's supposed to.
Even if I exit and re-launch the .exe hundred times, the updated mednafen.cfg is stored without any changes.


If I run emu4crt from Attract Mode, only at the first launch full screen and super resolutions works.
This happens because mednafen.cfg is correctly read.

When I exit from Attract Mode to Windwos desktop, the following mednafen.cfg lines are lost:

Code: [Select]
;Enable time synchronization(waiting) for frame blitting.
video.blit_timesync 1

;Deinterlacer to use for interlaced video.
video.deinterlacer weave

;Attempt to disable desktop composition.
video.disable_composition 1

;Video output driver.
video.driver default

;Enable frameskip during emulation rendering.
video.frameskip 1

;Enable fullscreen mode.
video.fs 1

;Display to use with fullscreen mode.
video.fs.display -1

;Attempt to synchronize OpenGL page flips to vertical retrace period.
video.glvsync 1

;Video resolution switch (0, native or super).
video.resolution_switch super

If I don't manually add them, Attract Mode launches emu4crt with a default mednafen.cfg that doesn't included the lines shown above.

Any ideas ?

Thank You in advance!






silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #123 on: June 12, 2019, 01:06:43 pm »
Hi,

Nope, no idea  :dunno

I’m using other frontend, without issue.

Could you try with official Mednafen release?
We also might learn something from the log file  ;)

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #124 on: June 13, 2019, 04:02:27 am »
Hey silmalink

Is your patch ok for mednafen 1.22.2 ? (before I try by myself :D)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #125 on: June 13, 2019, 12:12:05 pm »
Hello Substring,

Nope, not tested on latest release.
I’m busy with other personnal project, I will have a look on a later time.

Please, feel free to report result if you try by your own.   :)


Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #126 on: June 13, 2019, 04:26:57 pm »
Having quite some trouble to apply your patch, even on 1.22.1 (on linux i should say).

In fact, there is a circular reference : include/mednafen is a symlink to src/, so some files get patched twice, and of course, patch complains that it's alerady applied.

For example :
https://github.com/emu4crt/files/blob/master/patches/mednafen-1.22.1-emu4crt-A09.patch#L23 and https://github.com/emu4crt/files/blob/master/patches/mednafen-1.22.1-emu4crt-A09.patch#L1221 are the same patches

So it's hard to validate emu4crt on 1.22.2 :/

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #127 on: June 14, 2019, 10:25:35 am »
Aouch!

The symlink is coming from official sources, I can’t do anything about this  :P

I’ve already applied a diff file on a previous release, can’t remember how in details :dunno
Maybe the last diff generation is faulty, I’m not expert on this.

I’ll try to work on it soon.




Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #128 on: June 14, 2019, 01:06:45 pm »
Should I not use the official source to apply your patch ?

When I'm lazy to create a patch, i start from the default source code, init a git repo (git init then git add *), hack/patch the source, then git diff > mypatch.patch and voilà, done.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #129 on: June 17, 2019, 07:13:04 am »
Hi,

Yes, of course, patch is intended to be applied on official sourced.

Thank you for the method to create patch, I didn’t know git diff option, will use it next time  :)

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #130 on: June 17, 2019, 05:50:27 pm »
Could skip the redudancy problems using -N switch. But your patch tries to patch a file that doesn't exist : .vscode/settings.json

I've attached a "good looking patch", you could give it a try to make sure it does have al the necessary CRT stuff. All done in Linux.

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #131 on: September 23, 2019, 02:55:58 pm »
3 months later, are we there yet ?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #132 on: September 26, 2019, 05:23:07 am »
Yes, still around.:)

As always not too much time to spend on the fork, waiting for the next stable Mednafen release for an update.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.22.1 / A09
« Reply #133 on: September 27, 2019, 11:22:42 am »
Nice!

I use this fork for Sega Saturn with native resolution; a lot of faster than RA plugin.

Thank you very much!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #134 on: October 08, 2019, 06:39:43 pm »
Thanks for the feedback.

A new version is online, based on lastest 1.23.0 UNSTABLE Mednafen release.

@Substring: I've followed your recommendation about patch file, there should be some progress  ;)

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #135 on: October 09, 2019, 03:48:52 am »
Nice, I shall test it :)

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #136 on: November 01, 2019, 01:06:23 pm »
Hey Silmalik,

I have not find any documentation in mednafen but maybe do you know how to hide the mouse cursor when starting a game in mednafen? Is this a feature that can somehow be accomplished in your build?

Thanks a lot :)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #137 on: December 25, 2019, 03:09:23 pm »
Hi friends!

New version Mednafen 1.24 with a major improve performance on Saturn.

 :applaud: :applaud: :applaud:


silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #138 on: December 26, 2019, 04:08:10 pm »
@alex2005,

I've missed to answer, let's hope you figured out how to solve your issue during this time.
Never have such problem with mouse cursor. I will have a look if I can reproduce and if it's bring by the mod.

A log file would be useful to have some information on your configuration ;)

@psakhis

Well… some obscure new parameters have been added to mess with thread affinity, that's interesting indeed.
But that doesn't sound too much easy to use though.

We'll see this shortly with the next mod release :)
« Last Edit: December 26, 2019, 04:18:01 pm by silmalik »

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #139 on: December 27, 2019, 05:44:40 am »
@alex2005,

I've missed to answer, let's hope you figured out how to solve your issue during this time.
Never have such problem with mouse cursor. I will have a look if I can reproduce and if it's bring by the mod.

A log file would be useful to have some information on your configuration ;)

Hi Silmalik! Happy Christmas :)
Unfortunately I still have the cursor issue. When launching a game the cursor shows up and disapears after a few miliseconds.
I have attached a log file, I hope that is good enough.
I just noticed in the log it refers to some snes.cfg and snes.pal files which I do not have. Do you maybe know how to set these up? Or maybe they are not really necessary?

Thanks always for your support and great work!
« Last Edit: December 27, 2019, 09:49:42 am by alex2005 »

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #140 on: December 27, 2019, 09:42:32 am »
Hi mate, please post your mednafen.cfg file, I'll look into it.
Mouse cursor don't show when I run mednafen.

Let's hope it's not related with your hyperspin setup, I won't be of any help, I dumped the damn thing long time ago in favour of attract-mode.

Cheers,
« Last Edit: December 27, 2019, 09:44:28 am by totozero »

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #141 on: December 27, 2019, 09:50:23 am »
Hi mate, please post your mednafen.cfg file, I'll look into it.
Mouse cursor don't show when I run mednafen.

Let's hope it's not related with your hyperspin setup, I won't be of any help, I dumped the damn thing long time ago in favour of attract-mode.

Cheers,

thanks mate.
CFG file attached in previous post (renamed to .txt)
I hope its not a hyperspin issue (just in case I updated HS to latest 1.5.1 version today, but issue still remains.

Link to video: https://photos.app.goo.gl/vHokPde8rzguqCe89
« Last Edit: December 27, 2019, 09:58:15 am by alex2005 »

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #142 on: December 27, 2019, 09:55:51 am »
Quote from: silmalik
We'll see this shortly with the next mod release :)

Hey buddy,
thanks for keeping this up. SNES Faust works without any flaws (at least from my curated list).

May I add two requests for next build ?

- Minor grip : is it possible to compile a version which wouldn't show the cmd window while launching, just for aesthetic matter ? Or at least run it minimized ?
I'd love to transition from my frontend (attract-mode) to a game without showing evidence another proggie has launched (a la groovymame).

- Please consider enabling pce_fast core, I tried it on my main rig with normal mednafen, I felt it was more responsive / snappier than the regular pce core. Would love to test it on my Astro city.

Many thanks and have a festive happy season !

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #143 on: December 27, 2019, 10:19:56 am »
Quote from: alex2005
thanks mate.
CFG file attached in previous post (renamed to .txt)
I hope its not a hyperspin issue (just in case I updated HS to latest 1.5.1 version today, but issue still remains.

Okay first things first...

You know that judging from your *.cfg file, you're running an outdated version ? Did you even try super resolutions ? If not, you should, they work wonders.

Or maybe you mixed *. exe and *.cfg files from different builds ? If so, you should not as some settings have changed between versions.

I'd start with new fresh mednafen install, a clean mednafen.cfg and see from here if the mouse cursor issue is still there.

It's only a 5 minutes setup with a good text editor (notepad++ for instance) if you know what you're doing.

Cheers,
« Last Edit: December 27, 2019, 10:21:54 am by totozero »

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #144 on: December 27, 2019, 02:17:57 pm »
Thanks for the advise.
I'm using super resolutions, I noticed that I do not call mednafen directly from hyperspin but instead "emu4crt" which handles all resolutions. Maybe its not an issue with mednafen itself but with emu4crt.
I could get rid of it, if I just knew how to implement these super resolutions in mednafen.cfg file :)
I'll take a deeper look during the weekend and see if i can figure it out.

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #145 on: December 27, 2019, 06:55:41 pm »
Hmmm... Not sure I fully understood what you've just written...

Emu4crt IS Mednafen with switchres, you don't have to download anything else aside the archive Silmalik posted to run the binaries.
Run the exe (i.e crt4emu.exe) once and it will create a mednafen.cfg from scratch.

At the end of the cfg file there's a switch :

;Video resolution switch (0, native or super).
video.resolution_switch 0

Now if you want to have both vanilla mednafen and emu4crt installed, better put each version to a separate folder as from my experience they don't mix well. It seems you can't have both *.exe together due to *.cfg conflicts.

Vanilla mednafen doesn't support super resolutions.

Cheers.

« Last Edit: December 27, 2019, 07:05:02 pm by totozero »

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #146 on: December 28, 2019, 06:18:14 am »
Hmmm... Not sure I fully understood what you've just written...

Emu4crt IS Mednafen with switchres, you don't have to download anything else aside the archive Silmalik posted to run the binaries.
Run the exe (i.e crt4emu.exe) once and it will create a mednafen.cfg from scratch.

At the end of the cfg file there's a switch :

;Video resolution switch (0, native or super).
video.resolution_switch 0

Now if you want to have both vanilla mednafen and emu4crt installed, better put each version to a separate folder as from my experience they don't mix well. It seems you can't have both *.exe together due to *.cfg conflicts.

Vanilla mednafen doesn't support super resolutions.

Cheers.

That was it, thanks a lot!
I installed from scratch a new emu4crt directory and with this setting worked.
Seems like you said, having both in the same directory somehow conflicted :)

Sorted it, thanks again! And sorry for a bit of offtopic :)

totozero

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:June 07, 2023, 07:36:05 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #147 on: December 28, 2019, 10:01:16 am »
Glad you sorted it out  ;)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #148 on: December 28, 2019, 07:06:25 pm »
Hi,

@Glad to learn that your issue is fixed now. Well done Totozero!  :)

Quote
About - Minor grip : is it possible to compile a version which wouldn't show the cmd window while launching, just for aesthetic matter ? Or at least run it minimized ?

Sure, that's annoying. This is a consequence of a recent Mednafen update on log management. I tried to "fix" it without success, need to dig further.

Quote
- Please consider enabling pce_fast core, I tried it on my main rig with normal mednafen, I felt it was more responsive / snappier than the regular pce core. Would love to test it on my Astro city.

Well, I may have a look on it on a later time. No promise though.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #149 on: January 02, 2020, 03:14:44 pm »
The update to Mednafen 1.24.0 UNSTABLE is available!

Not too much time to challenge the new features of the SNES Faust and Saturn cores, feel free to report about it. :)

Thank you.


psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #150 on: January 02, 2020, 03:27:43 pm »

I hope test Saturn, but how you said... the new options of threads are a little confuse for configuration...

Very Thanks!! @silmalik

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.23.0 UNSTABLE / A09
« Reply #151 on: January 02, 2020, 04:24:57 pm »
Seven possible combinations if I calculate correctly. And potentially, the best combination can be different depending on the game...  Aouch!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #152 on: January 14, 2020, 11:15:08 am »
Hi!

I do a regression test, and all it's fine with Pcengine, Saturn and Psx. All new options of Saturn's core on default (0 - not activated).

I'm waiting for more details for these new options, i don't find too much documentation about.

Thx!

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #153 on: January 14, 2020, 12:16:10 pm »
Hi,

Well... I guess you have missed a regression on psx horizontal centering. :angel:

That will will be fixed in a next release soon.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #154 on: January 15, 2020, 10:49:59 am »
I've been using your mod to play a few systems that dont otherwise have an emulator that plays well with CRTs.  It's working great, especially for handheld systems.  The only problem I'm having is mednafen sometimes causes the display to hang in 16 bit color depth. Is there any way to lock mednafen to 32 bit color?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #155 on: January 15, 2020, 01:45:58 pm »
I can't see why mednafen would do such thing.

Please, can you give us some details?  The platform you use, settings and also a log file would be very useful.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #156 on: January 15, 2020, 02:36:59 pm »
I'm using windows 7 64 and  rocket launcher. I get a notification on the taskbar at launch starting that windows has changed to 16bit color depth.  When the game is closed windows stays in 16 bit mode. Even launching other emulators doesn't being back 32 bit. 

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #157 on: January 15, 2020, 02:43:25 pm »
Mmmmm...it happens to me too in the past and i did some actions for prevent auto change depth bit color but i don't know if it's suficient....

I remember:
 * Disable aero desktop composition (i only enable it for pcsx2 and vsync purposes)
 * Hide taskbar
 * Disable notifications of depth color changes...


fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #158 on: January 15, 2020, 02:55:49 pm »
Thank you! I'll try disabling aero.  Would it have the same effect if I disabled it through the mednafen cfg file? If I totally disable it through windows xebra emulator has terrible screen tearing.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #159 on: January 15, 2020, 03:25:40 pm »
I'm using windows 7 64 and  rocket launcher. I get a notification on the taskbar at launch starting that windows has changed to 16bit color depth.  When the game is closed windows stays in 16 bit mode. Even launching other emulators doesn't being back 32 bit.

To exclude any Rocketlauncher side effect, do you have same issue when launched from a basic command line ?

Have a look on the stdout.txt file in mednafen folder, we may learn something.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #160 on: January 15, 2020, 03:33:51 pm »
I'll do some testing when can get my hands on the cabinet. Thank you!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A09
« Reply #161 on: January 15, 2020, 04:24:22 pm »
I have 2 autohotkey scripts for it.

DisableAero.ahk
Run, net stop uxsms, , Hide ; That way there is no cmd window.

DisableTaskbar.ahk
WinHide, ahk_class Shell_TrayWnd
WinHide, Start ahk_class Button     
WinHide, ahk_class Button   

SystemCursor("Off")

SystemCursor(OnOff=1)   ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
    static AndMask, XorMask, $, h_cursor
        ,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
        , b1,b2,b3,--BINGO! Either that, or I was attempting to say "before" but it was too many letters to type--,b5,b6,b7,b8,b9,b10,b11,b12,b13   ; blank cursors
        , h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13   ; handles of default cursors
    if (OnOff = "Init" or OnOff = "I" or $ = "")       ; init when requested or at first call
    {
        $ = h                                          ; active default cursors
        VarSetCapacity( h_cursor,4444, 1 )
        VarSetCapacity( AndMask, 32*4, 0xFF )
        VarSetCapacity( XorMask, 32*4, 0 )
        system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
        StringSplit c, system_cursors, `,
        Loop %c0%
        {
            h_cursor   := DllCall( "LoadCursor", "Ptr",0, "Ptr",c%A_Index% )
            h%A_Index% := DllCall( "CopyImage", "Ptr",h_cursor, "UInt",2, "Int",0, "Int",0, "UInt",0 )
            b%A_Index% := DllCall( "CreateCursor", "Ptr",0, "Int",0, "Int",0
                , "Int",32, "Int",32, "Ptr",&AndMask, "Ptr",&XorMask )
        }
    }
    if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
        $ = b  ; use blank cursors
    else
        $ = h  ; use the saved cursors

    Loop %c0%
    {
        h_cursor := DllCall( "CopyImage", "Ptr",%$%%A_Index%, "UInt",2, "Int",0, "Int",0, "UInt",0 )
        DllCall( "SetSystemCursor", "Ptr",h_cursor, "UInt",c%A_Index% )
    }
}


Quote
Thank you! I'll try disabling aero.  Would it have the same effect if I disabled it through the mednafen cfg file? If I totally disable it through windows xebra emulator has terrible screen tearing.

EDIT: Do you prefer Xebra above Mednafen for PSX? I think Mednafen it's so good....
« Last Edit: January 15, 2020, 04:31:34 pm by psakhis »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #162 on: January 15, 2020, 05:23:11 pm »
New version online!

The resolution switch process has been improved, far less glitches. :)

Not sure that it will work on multi screen setup. I'm interested if someone can test.

PSX horizontal centering is fixed too.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #163 on: January 16, 2020, 11:28:02 am »
here are the contents of stdout. I didn't see any change of color depth, but i'm not well versed on reading logs.
Starting Mednafen 1.21.3
 Build information:
   Compiled with gcc 4.9.4
   Running with MinGW-W64 Runtime 5.0 (alpha - rev. 0) 0000-00-00
   Compiled against zlib 1.2.8, running with zlib 1.2.8(flags=0x00000065)
   Compiled against libiconv 15.1, running with libiconv 15.1
   Compiled against SDL 2.0.8(hg-11835:f622a4457a25), running with SDL 2.0.8(hg-11835:f622a4457a25)
   Running with libsndfile-1.0.28
 Base directory: C:\Hyperspin\Emulators\turbografx 16\mednafen
 Emulation modules: nes snes gb gba pce lynx md pcfx ngp psx ss ssfplay vb wswan sms gg snes_faust pce_fast demo cdplay
 Opening lockfile...
 Loading settings from "C:\Hyperspin\Emulators\turbografx 16\mednafen\mednafen.cfg"...
  Loaded 7396 valid settings and 129 unknown settings.
 Initializing joysticks...
  ID: 0x000000000000000000010004f3ff0000 - XInput Unknown Controller
  ID: 0x000000000000000000010004f3ff0001 - XInput Unknown Controller
  ID: 0x000000000000000000010004f3ff0002 - XInput Unknown Controller
  ID: 0x000000000000000000010004f3ff0003 - XInput Unknown Controller
 Loading C:\game extracts\Final Fantasy IX (USA) (Disc 1)\Final Fantasy IX (USA) (Disc 1).cue...
  Loading SBI file "C:\game extracts\Final Fantasy IX (USA) (Disc 1)\Final Fantasy IX (USA) (Disc 1).sbi"...
   Error: Error opening file "C:\game extracts\Final Fantasy IX (USA) (Disc 1)\Final Fantasy IX (USA) (Disc 1).sbi": No such file or directory

  CD 1 TOC:
   Disc Type: 0x20 (CD-XA)
   First Track:  1
   Last Track:   1
   Track  1, MSF: 00:02:00, LBA:      0  DATA
   Leadout: 314930  DATA

 Using module: psx(Sony PlayStation)
  Loading override settings from "C:\Hyperspin\Emulators\turbografx 16\mednafen\psx.cfg"...
   Failed: Error opening file "C:\Hyperspin\Emulators\turbografx 16\mednafen\psx.cfg": No such file or directory
  Loading override settings from "C:\Hyperspin\Emulators\turbografx 16\mednafen\pgconfig\Final Fantasy IX (USA) (Disc 1).psx.cfg"...
   Failed: Error opening file "C:\Hyperspin\Emulators\turbografx 16\mednafen\pgconfig\Final Fantasy IX (USA) (Disc 1).psx.cfg": No such file or directory

  Emulated Disc SCEx IDs:
   Disc 1: SCEA

  Region: North America

  Multitap on PSX Port 1: Enabled
  Multitap on PSX Port 2: Enabled

 Loading cheats from C:\Hyperspin\Emulators\turbografx 16\mednafen\cheats\psx.cht...
  Error opening file "C:\Hyperspin\Emulators\turbografx 16\mednafen\cheats\psx.cht": No such file or directory

 Initializing sound...
  Using "WASAPI(Shared mode)" audio driver with SexyAL's default device selection.
   Format: 16 bits(signed, 2 bytes, little-endian)
   Rate: 192000
   Channels: 2
   Buffer size: 6144 sample frames(32.000000 ms)
   Latency: 6656 sample frames(34.666667 ms)
 Initializing video...
  Driver: OpenGL
  Display Mode: 2560 x 240 x 24 bpp @ 60Hz  (Window: 2560 x 240)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=2560, H=240
  OpenGL Implementation: ATI Technologies Inc. AMD Radeon (TM) R9 380 Series 4.5.13521 Compatibility Profile Context 24.20.11016.4
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 16384 x 16384
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #164 on: January 16, 2020, 12:47:53 pm »
In reply to why I chose to use xebra over mednafen psx emulator, it's due to dithering. Xebra is the only emulator I have gotten working well overall that also shows the baked in dithering from psx games.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #165 on: January 16, 2020, 02:51:10 pm »
Looks like you are using official Mednafen build, you may obtain better support on the official forum.
Nonetheless, nothing wrong in log, Mednafen correctly set video mode you configured.

What happen if you launch a game from command line, without Rocketlauncher ?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #166 on: January 16, 2020, 04:22:26 pm »
New version online!

The resolution switch process has been improved, far less glitches. :)

Not sure that it will work on multi screen setup. I'm interested if someone can test.

PSX horizontal centering is fixed too.

Thx! Installed and working.  :applaud:

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #167 on: January 16, 2020, 04:23:06 pm »
Oops. Wrong log.  I Pulled the log from the build I was using to test psx emlulation. That's embarrassing! I'll try to pull the correct log  and bypass rocket launcher after work. Thanks again.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #168 on: January 16, 2020, 04:42:02 pm »
In reply to why I chose to use xebra over mednafen psx emulator, it's due to dithering. Xebra is the only emulator I have gotten working well overall that also shows the baked in dithering from psx games.
Interesting... i didn't have a original psx for compare...but i believe Mednafen emulates dithering...

I write down to check it  ;D

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:June 23, 2023, 11:11:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #169 on: January 16, 2020, 05:11:32 pm »
Photo comparison of xebra with dithering vs mednafen without.
Edit:  posted sideways..... its unbelievable to me that it's still such a struggle 25 years later to post photos on an internet forum.  :laugh:
« Last Edit: January 16, 2020, 05:14:06 pm by fuchi_jeg »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #170 on: March 08, 2020, 06:52:45 am »
Hi!

I have a big request for @silmalik  :angel: Is it possible to include the pcfx core?

I know there are few games on it...but i want to play Chip Chap Kick game and emu4crt is far better than libretro core....

 ::)

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #171 on: March 08, 2020, 11:22:44 am »
Hello psakhis,

I can study that, yes.

Do you know game titles that switch resolution and/or use interlace video mode ?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #172 on: March 08, 2020, 01:47:56 pm »
Hello!

I only play 3 games on pc-fx: Choujin Heiki Zeroigar, Kishin Douji Zenki FX - Vajra Fight, Chip-chan Kick! and all of them mednafen libretro core switch to 256x232 for 1x.

Thx for considering this feature!

Recapnation

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 01, 2023, 07:39:55 pm
    • Eiusdemmodi
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #173 on: March 08, 2020, 02:48:30 pm »
emu4crt is far better than libretro core...

How so?


I don't think there are many games which dynamically switch the resolution on this system. The only one I can think of is Pia Carrot he Youkoso!! -- it goes from the full-motion videos at 256 x 224 to the "active" sections' 340 x 224 (or so).

Interlacing was never used on the PCFX if I recall.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #174 on: March 08, 2020, 04:02:56 pm »
My perception it's all emu4crt cores runs flawfless. Maybe my old i3 2100 pc it's the reason, comparative with libretro:
 Sega saturn: no crackling sounds, no slowdowns, runs perfect
 Psx: switch resolutions in game, runs perfect
 pce/cd: maybe the most similar but i prefer mednafen joystick mapping. I can configure xbox one controller together sanwa, if it's connected runs perfect and if not isn't a problem. In libretro only 1 joystick can have hotkey button for exit, load or saves games... In others emulators (ps2, gamecube, etc.) i need to choose before emulators starts for configure it properly.

 
@Edit: vertical native lines are 240, but pcfx.slend (last line rendered) is set to 235 and pcfx.slstart (first line) at 4 by default.
« Last Edit: March 08, 2020, 05:20:24 pm by psakhis »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #175 on: March 09, 2020, 12:36:20 pm »
@Recapnation: thank you for the info

If all/most of game use 240p, official mednafen should give good results.

Benefits of the crt mod would be mainly for the OSD then.

Recapnation

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 332
  • Last login:December 01, 2023, 07:39:55 pm
    • Eiusdemmodi
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #176 on: March 09, 2020, 07:17:41 pm »
My pleasure.


Psakhis, I was wondering about the PCFX emulation itself -- you seemed to imply that it's better with Mednafen than with RA's core.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #177 on: March 10, 2020, 03:49:20 pm »
I will try Mednafen at 256x240 fixed resolution and i will comment my results  :)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #178 on: March 24, 2020, 02:06:20 pm »
Mednafen 1.24.1 stable it's out with minor changes.


silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.0 UNSTABLE / A10
« Reply #179 on: March 24, 2020, 05:46:39 pm »
Mednafen 1.24.1 stable it's out with minor changes.

Done!

Updated with pce_fast, sms, md and pc-fx.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #180 on: March 25, 2020, 03:56:38 pm »
Great!!

I tested Choujin Heiki Zeroigar pcfx game and i find some problems on intro compared with libretro core.  I'm using superresolution 2560.

Edit: (*) I need to config pcfx.slend = 0 239 and pcfx.slstart = 0 for solving tearing issues.

Something rare this in stdout.txt
PCFX - KING_StartFrame
PCFX - HighDotClockWidth: 1024
PCFX - fx_vce.dot_clock: 1
      Src: 1024x240 - 0,0
MAIN - Super resolution to switch: 2560 x 240
VIDEO - Video_ChangeResolution - Requested video mode: 344 x 240
  Video mode: FULLSCREEN
  Screen index: 0
  Display #0: Current display mode is 2560x240px @ 60hz.
  Received:    352x240px @ 60hz
EnumDisplaySettings return: 1
EnumDisplaySettings return refresh rate: 60
ChangeDisplaySettings return: 0
VIDEO - Video_ChangeResolution completed
MAIN - End of resolution change
      Src: 1024x240 - 0,0
« Last Edit: March 26, 2020, 03:42:27 am by psakhis »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #181 on: March 25, 2020, 06:48:35 pm »
Thank you for the feedback.

pcfx.slend = 0  is strange, should be something like 239.

I will look at this.

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: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #182 on: April 09, 2020, 10:19:13 am »
I'm seeing issues with changing resolution with the latest version 1.24.1 A11. The preceding A10 version works fine.

Symptoms as follows:

- Super resolution enabled, progressive and interlaced super NTSC modes added via vmmaker.
- Changes to 2560x480 mode works fine for boot screen
- Attempts to change to 2560x240 for game. Actually changes to 640x480 instead

This all works fine with the preceding A10 version.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #183 on: April 09, 2020, 01:12:12 pm »
Hi, thank you for the report.

Using PSX module I guess ?

I will check this.


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: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #184 on: April 10, 2020, 12:12:06 pm »
Sorry, yes using PSX.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #185 on: April 15, 2020, 07:47:49 pm »
Hi,

A12 revision is online, fix for super resolution switch and PCFX scaling issues.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #186 on: April 16, 2020, 01:18:26 pm »
Thank you! PCFX it's working perfect now!  :applaud: :applaud:

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #187 on: April 16, 2020, 03:44:46 pm »
Thank you! PCFX it's working perfect now!  :applaud: :applaud:

You're welcome

Pretty weird system, full of weird games :)


jfroco

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:May 07, 2020, 06:20:14 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #188 on: April 16, 2020, 09:34:49 pm »
Hi,

A12 revision is online, fix for super resolution switch and PCFX scaling issues.

Just registered here to say: Thank you!

I'm using super resolutions for Sega Saturn emulation and switching works great.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #189 on: April 17, 2020, 06:54:36 pm »
Hi jfroco, I'm glad to read this.

And welcome! :cheers:

jfroco

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:May 07, 2020, 06:20:14 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #190 on: April 18, 2020, 03:55:35 pm »
In case anyone care, I tested the automatic resolution switching in this video:    (sorry for the quality) - Sega Saturn Thunder Force V.

Hi jfroco, I'm glad to read this.

And welcome! :cheers:

Thank you again.. just a couple of questions

  • In Sega Genesis - Sonic The Hedgehog 2 in the two players competition mode the resolution should change to 480i, but it is not switching (I'm using super resolutions). I read here that Sega Genesis is not supported, but in the documentation the Sega Genesis is listed as a supported system.
  • Is it possible to get the source files?  I can't find them in github.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #191 on: April 18, 2020, 04:45:06 pm »
Mednafen Sega Genesis emulation it's still experimental, i recommend you libretro core Genesis Plus GX, it's working fine with switchres.

I know... it's a shame, for me there is nothing better than Groovymame and emu4crt forks but...




silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #192 on: April 18, 2020, 05:48:52 pm »
Quote
  • In Sega Genesis - Sonic The Hedgehog 2 in the two players competition mode the resolution should change to 480i, but it is not switching (I'm using super resolutions). I read here that Sega Genesis is not supported, but in the documentation the Sega Genesis is listed as a supported system.
  • Is it possible to get the source files?  I can't find them in github.

Sonic 2: there is a switch when I test on my setup. But a scaling issue remains in interlaced MD games... there is something to fix obviously.
Best result is with those options:
video.blit_timesync 0
video.deinterlacer bob

I provide the patch to apply on official sources so you can have a look.

psakhis is right, Genesis core is experimental and lacks Sega CD and 32X, the best option is Retroarch with Genesis Plus GX.
« Last Edit: April 18, 2020, 06:19:20 pm by silmalik »

JMD

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 30, 2023, 04:53:09 am
    • jm1200.fr/index.php?r=20
    • JMD
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #193 on: April 23, 2020, 01:52:42 pm »
Hello,

First, thanks a lots for emu4crt : it's great!  :applaud:
 
In my cab, I use it with Attract Mode to launch PlayStation games.
mednafen.cfg is unchanged since emu4crt create it at first launch.
However, I have a psx.cfg file and, sometimes, a specific game config file for specifics controls.

Japan and US games are perfect but with Europeans games, I have resolution problems :
"Reverting to windowed mode because no modes big enough for 2560x576."
 
I'm not comfortable with super resolutions but I think I made everything correct.

Do I miss something?

Thanks for your help

JMD
-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --
There is the theory of Möbius. A twist in the fabric of space where time becomes a loop

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #194 on: April 23, 2020, 02:26:26 pm »
Hi, if you don't want super resolutions, this needs to change in your psx.cfg, i think "native" it's the value you looking for.

video.resolution_switch super

EDIT: with "super" setup you must have this modeline in your system. Verify with vmmaker do you have 2560x288@50 and 2560x576@50 modes.
« Last Edit: April 23, 2020, 02:31:09 pm by psakhis »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #195 on: April 23, 2020, 03:37:38 pm »
Bonjour JMD,

Thanks for all the details you have provided.

I think psakhis is right  :cheers:  Check VMMaker for the missing resolutions.

JMD

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:December 30, 2023, 04:53:09 am
    • jm1200.fr/index.php?r=20
    • JMD
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #196 on: April 23, 2020, 04:16:42 pm »
Thanks, the problem was the one you indicated psakhis !
I added the resolutions to the vmmaker "user_modes - super.ini" file and used it as "user video mode list" then generate/Install modes.
Now everything works fine  :)
Thank you very much for your help and sorry because everything was explained on the github. Easy now that I understand my error !

JMD
-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --
There is the theory of Möbius. A twist in the fabric of space where time becomes a loop

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: emu4crt Mednafen fork - update 1.24.1 A11
« Reply #197 on: April 28, 2020, 09:34:21 am »
Hi,

A12 revision is online, fix for super resolution switch and PCFX scaling issues.

Thank you, I confirm that the super resolution issue I reported is resolved.

ronbin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:January 10, 2024, 10:54:27 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #198 on: April 28, 2020, 02:01:03 pm »
Hi
I know this is not 100% related to the topic but I'm trying to use a modified version of your patch and I want to ask something.
I'm using a 31khz CRT monitor with groovymame and configured it to double every resolution, something like this
Code: [Select]
SwitchRes: [gng] (1) horizontal (256x224@59.590000)->(512x448@59.590000)
SwitchRes: [sfiii3n] (1) horizontal (384x224@59.599491)->(768x448@59.599491)
SwitchRes: [mk] (1) horizontal (400x254@54.706841)->(800x508@54.706841)
So now I want to do the same thing with mednafen. I've downloaded your patch and changed those 2 lines
Code: [Select]
+ // SLK
+ if(MDFN_GetSettingB("pce.arcadecard"))
+ {
+   resolution_to_change_w = 512;
+   resolution_to_change_h = 480;
+   resolution_to_change = true;
+ }
+ // SLK
Compiled it without trouble. Now if I try to load a pcengine game, resolution changes as expected, but image is shrinked to 240 lines...
This is the output
Code: [Select]
### VIDEO Native resolution init - set to 512x480
  Driver: OpenGL
  Display Mode: 512 x 480 x 24 bpp @ 60Hz  (Window: 512 x 480)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=512, H=480
And here you can see the resulting image (windowed version, fullscreen is the same)
https://pasteboard.co/J5VMs9K.png

Is there anything I can do to fix this or am I wasting my time?

Thanks in advance


silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #199 on: April 28, 2020, 05:12:24 pm »
Hello ronbin,

You did right on the first step, well done! Next is to adjust the destination Rect to cover the screen, before blitting.

Sure, it's possible, but I can't tell you how at the moment exactly, need some work.

The mod currently disables stretch/resize rules of native mednafen to apply its own method.
Options can be modifying this method or re-active default stretching options.

You can try to follow the ".stretch" video option in src/drivers/video.cpp.

Another option is to wait, 31kHz is on the plan. :)

ronbin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:January 10, 2024, 10:54:27 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.1 A12
« Reply #200 on: April 28, 2020, 06:00:57 pm »
Quote from: silmalik
You can try to follow the ".stretch" video option in src/drivers/video.cpp.
OK I'll have a look
Quote from: silmalik
Another option is to wait, 31kHz is on the plan. :)
Really? Those are great news! Thanks for your good work.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen fork - update 1.24.2 A13
« Reply #201 on: May 04, 2020, 08:13:36 pm »
Hi,

New version released, aligned with Mednafen update and MD interlaced mode fixed.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen fork - update 1.24.2 A13
« Reply #202 on: May 05, 2020, 02:03:47 pm »
Thank you so much!  :cheers:

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #203 on: May 06, 2020, 06:53:17 pm »
New version aligned on latest Mednafen release.

screamingtrees

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:March 22, 2021, 04:13:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #204 on: June 20, 2020, 12:10:02 pm »
I'm having trouble with getting a pixel perfect image on my setup. When I run FFVII with psx.correct_aspect_ratio 0, the scaling is correct, but the image is way off center. If I run psx.correct_aspect_ratio 1, the image is centered, but I get scaling artifacts (The "O" in SLOT 1, SLOT 2 is too wide on the save game select screen for example). Hope it's an easy fix! I've been banging my head against a wall for 5 years trying to get the mednafen psx libretro core to be pixel perfect in RA on my 15khz CRT—and it never is. Finally said you know what it's time to look outside RA. emu4crt is as close as I've gotten!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #205 on: June 21, 2020, 01:29:20 pm »
I'm having trouble with getting a pixel perfect image on my setup. When I run FFVII with psx.correct_aspect_ratio 0, the scaling is correct, but the image is way off center. If I run psx.correct_aspect_ratio 1, the image is centered, but I get scaling artifacts (The "O" in SLOT 1, SLOT 2 is too wide on the save game select screen for example). Hope it's an easy fix! I've been banging my head against a wall for 5 years trying to get the mednafen psx libretro core to be pixel perfect in RA on my 15khz CRT—and it never is. Finally said you know what it's time to look outside RA. emu4crt is as close as I've gotten!

Try with superresolution, it seems only happens with native.

video.resolution_switch super

@Silmalik, i have noticed some differences on 1.24.3 vs 1.24.1.
In 1.24.3, for example in saturn with ss.correct_aspect 0 does not fill screen and with 1.24.1 it does...
In log i see:
MAIN - GameLoop - Game resolution change to 320x240, current game resolution: 0x0
 Initializing video...
VIDEO - Video_Sync - Output video resolution swithing: ON
VIDEO - Video_Sync - apply SUPER resolution settings - set to 2560x240
VIDEO - Video_sync - screen dest: 2560x240 - 0,0

If you need a picture i can attach some examples.

Thanks!!
« Last Edit: June 21, 2020, 01:43:33 pm by psakhis »

screamingtrees

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:March 22, 2021, 04:13:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #206 on: June 22, 2020, 02:34:09 pm »

Try with superresolution, it seems only happens with native.

video.resolution_switch super

Using super resolutions aren't ideal because it would homogenize the horizontal width differences I'm able to achieve with individual native modelines. i.e. how wide is the PSX's 320x240 on a CRT vs. how wide is the 368x240 mode. If I'm mistaken about this lmk.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #207 on: June 26, 2020, 01:37:41 pm »
Hi,

Correct_aspect_ration should be kept to 0, the screen do the correction by himself (kind of).
Some distortion when enabled is expect. So, we have horizontal centering issue then.

Do you have similar issue with other games ?

@psakhis  thank you for the support :)
About the ss issue, this might be related to some change made recently on official release, I will check that too if I can reproduce. Feel free to list some games if it doesn't impact all.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #208 on: June 26, 2020, 02:02:38 pm »
I attach bios example

screamingtrees

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:March 22, 2021, 04:13:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #209 on: June 28, 2020, 03:58:46 pm »
Hi,

Correct_aspect_ration should be kept to 0, the screen do the correction by himself (kind of).
Some distortion when enabled is expect. So, we have horizontal centering issue then.

Do you have similar issue with other games ?

Yes, I tried FFIX at native res, correct_aspect 0 and it's off center, horizontally.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #210 on: July 06, 2020, 06:12:45 pm »
Hello,
I tried your mednafen's mod and i'm very impressed by the result !
It's my new way to go emulator for psx and saturn.
I tried a bunch of psx games (ntsc and pal) and all was perfect until i tried FF9 pal. I always get stuck on a black screen after the playstation red logo.
Ntsc version doesn't have this problem. I tried other pal iso of FF9 and i always get the same result, either native or super resolution.
For now it's the only game i can't launch.
Also, as screamingtrees, if set correct_aspect 0, i always get display to be off center horizontally. With correct_aspect 1, no problem.

Do you have an idea about what's happening with FF9 pal ?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #211 on: July 07, 2020, 11:16:54 am »
Hi Dalba,

Your FF9 issue is probably related to copy protection.
Mednafen requires .sbi files along the untouched (not already cracked) iso files.

Sorry for off-center issue, will be fixed in the next release, in some weeks I'm afraid.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #212 on: July 07, 2020, 11:51:19 am »
Thank you for your help !
I wasn't aware of SBI file... Everything is OK now.

jtb1987

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 92
  • Last login:August 15, 2021, 01:08:10 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #213 on: August 14, 2020, 06:26:13 pm »
**EDIT - I was just installing it wrong, I had it set to "super" resolution in the cfg file but did not actually install the super resolutions from github, it's working now, thanks!

Hi all,
I am trying to get this to work on my 15 GHz arcade monitor and cannot figure it out yet and was hoping to get some help.

I've replaced the mednafen exe with the emu4crt exe

I've tried to edit the mednanfen cfg file to have the option for Video resolution switch (0, native or super) to be both native and super.
video.resolution_switch native

When I try the "super" config option: I get a black screen with white font up at the top and a purple swirl graphic. It doesn't look like it's losing sync but its not playing the game
When I try the "native" config option: I just get a blank screen, but does not seem like I'm losing sync

I've installed the below modes in VMM:

## Desktop ##

640 x 484 @ 60.000000 desktop

## Redream ##

640 x 240 @ 60.000000 redream
720 x 480 @ 59.940000 redream

## Super resolutions ##

320 x 240 @ 60.000000 super
2560 x 240 @ 60.000000 super
2560 x 248 @ 60.000000 super
2560 x 256 @ 60.000000 super
2560 x 264 @ 60.000000 super
2560 x 272 @ 60.000000 super
2560 x 280 @ 60.000000 super
2560 x 288 @ 60.000000 super
2560 x 296 @ 60.000000 super
2560 x 304 @ 60.000000 super
2560 x 320 @ 60.000000 super
2560 x 336 @ 60.000000 super
2560 x 344 @ 60.000000 super
2560 x 352 @ 60.000000 super
2560 x 360 @ 60.000000 super
2560 x 368 @ 60.000000 super
2560 x 376 @ 60.000000 super
2560 x 384 @ 60.000000 super
2560 x 392 @ 60.000000 super
2560 x 400 @ 60.000000 super
2560 x 416 @ 60.000000 super
2560 x 432 @ 60.000000 super
2560 x 448 @ 60.000000 super
2560 x 464 @ 60.000000 super
2560 x 480 @ 60.000000 super
2560 x 496 @ 60.000000 super
2560 x 512 @ 59.000000 super
2560 x 544 @ 55.000000 super
2560 x 560 @ 54.000000 super
2560 x 768 @ 60.000000 super
2560 x 800 @ 60.000000 super

2560 x 192 @ 60.000000 retroarch
2560 x 200 @ 60.000000 retroarch
2560 x 240 @ 60.000000 retroarch
2560 x 224 @ 60.000000 retroarch
2560 x 237 @ 60.000000 retroarch
2560 x 256 @ 50.000000 retroarch
2560 x 254 @ 55.000000 retroarch
2560 x 448 @ 60.000000 retroarch
2560 x 480 @ 60.000000 retroarch
320 x 240 @ 60.000000 retroarch
720 x 480 @ 59.940000 retroarch
720 x 480 @ 60.000000 retroarch

640 x 240 @ 60.000000 NTSCp
512 x 240 @ 60.000000 NTSCp
368 x 240 @ 60.000000 NTSCp
320 x 240 @ 60.000000 NTSCp
256 x 240 @ 60.000000 NTSCp

640 x 480 @ 60.000000 NTSCi
512 x 480 @ 60.000000 NTSCi
368 x 480 @ 60.000000 NTSCi
320 x 480 @ 60.000000 NTSCi
256 x 480 @ 60.000000 NTSCi
 
640 x 288 @ 50.000000 PALp
512 x 288 @ 50.000000 PALp
368 x 288 @ 50.000000 PALp
320 x 288 @ 50.000000 PALp
256 x 288 @ 50.000000 PALp

640 x 576 @ 50.000000 PALi
512 x 576 @ 50.000000 PALi
368 x 576 @ 50.000000 PALi
320 x 576 @ 50.000000 PALi
256 x 576 @ 50.000000 PALi

352 x 240 @ 60.000000 SaturnNTSCp
704 x 240 @ 60.000000 SaturnNTSCp

352 x 480 @ 60.000000 SaturnNTSCi
704 x 480 @ 60.000000 SaturnNTSCi

352 x 288 @ 50.000000 SaturnPALp
704 x 288 @ 50.000000 SaturnPALp

352 x 576 @ 50.000000 SaturnPALi
704 x 576 @ 50.000000 SaturnPALi
« Last Edit: August 14, 2020, 11:53:53 pm by jtb1987 »

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #214 on: September 04, 2020, 10:49:50 am »
Hello,
Do you plan to update emu4crt to the latest 1.25 unstable or do you prefer to wait for a future version ?

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #215 on: September 05, 2020, 06:46:45 am »
Hi Dalba,

Yes, I have no concerns with Mednafen beta releases, I just miss some time to invest into the project at the moment.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.24.3 A13
« Reply #216 on: September 13, 2020, 04:25:42 pm »
Hi Dalba,

Yes, I have no concerns with Mednafen beta releases, I just miss some time to invest into the project at the moment.

I understand, no problem ! I think it's sad that your work is not integrated by default in current release of mednafen ! For an emulator looking for accuracy, what you have done is what create a big difference when you look for this way !

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.0 UNSTABLE
« Reply #217 on: October 29, 2020, 07:56:43 pm »
Hi,

Update to latest  Mednafen release 1.26.0 UNSTABLE.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.0 UNSTABLE
« Reply #218 on: November 02, 2020, 07:53:10 am »
Hi,

Update to latest  Mednafen release 1.26.0 UNSTABLE.

Thank you for this !  ^-^

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.0 UNSTABLE
« Reply #219 on: November 11, 2020, 06:01:18 pm »
Hi,

Update to latest  Mednafen release 1.26.0 UNSTABLE.

Thank you for this !  ^-^

Update to 1.26.1 is available! :)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.0 UNSTABLE
« Reply #220 on: November 22, 2020, 01:50:06 pm »
Quote
Update to 1.26.1 is available! :)

Thx! I notice the same diferent H Overscan differences vs 1.24.1 version, it seems disabled in newer versions.

I attach two logs from Astal on Sega Saturn.

PD: On native resolution, H Overscan works well on 1.26.1 too. Only "fails" with super resolutions.

« Last Edit: November 22, 2020, 01:55:31 pm by psakhis »

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #221 on: November 22, 2020, 08:01:55 pm »
Well, unfortunately, the logs are not great help in this case.

I can reproduce something: the image is correctly centered but there are some vertical black bars around, is this your symptom ?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #222 on: November 23, 2020, 06:50:06 am »
Well, unfortunately, the logs are not great help in this case.

I can reproduce something: the image is correctly centered but there are some vertical black bars around, is this your symptom ?

Exactly, this it's the "problem", i see black bars around with all versions upgraded from 1.24.1, always with super resolutions.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #223 on: November 23, 2020, 09:34:12 am »

Ok, I will have a look at this.

chrishelms

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:March 11, 2021, 03:39:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #224 on: December 07, 2020, 02:19:10 am »
Just stumbled upon this project. Is there any advantage to using this emu vs retroarch?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #225 on: December 07, 2020, 04:37:35 am »
Just stumbled upon this project. Is there any advantage to using this emu vs retroarch?
These are my reasons:
 - Best emulator for PS1 and Saturn (retroarch cores are good but are that...ports)
 - Less pc requeriments (my i3 2100 performs good to much better than retroarch for Saturn)
 - emu4crt change resolutions on the fly, some games need this feature (emulating PS1 for example)
 - Joystick mapping it's better (you can configure simultaneous 2 joysticks for the same player) I connect xbox wireless gamepad for analog joysticks for some PS1 games sometimes

mrchrister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 110
  • Last login:March 23, 2024, 09:04:11 am
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #226 on: December 11, 2020, 07:25:06 pm »
Those are all great reasons. Joystick mapping really is confusing as hell on retroarch and it took me a long time to get it set up.
Changing resolutions on the fly is something retroarch can do as well though. It switches seamlessly to interlaced when playing Sonic 2 - 2 Player mode on the genesis for example or for PS1 games/Saturn.

screamingtrees

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:March 22, 2021, 04:13:40 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #227 on: March 22, 2021, 04:04:15 pm »
PSX native resolution is still off-center with the latest release (1.26.1). Correct aspect ratio set to 0.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #228 on: March 23, 2021, 09:25:51 am »
Horizontal centering I guess, I will take care of this in a next release.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #229 on: July 11, 2021, 04:38:11 pm »
Hi @silmalik,

I just applied your patch to 1.27.1 stable version. Thx!  :notworthy:

mednafen-1.27.1-emu4crt-A14-win64.zip
mednafen-1.27.1-emu4crt-A14.patch

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 114
  • Last login:April 16, 2022, 09:08:13 am
    • Mednafen emu4crt mod
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #230 on: July 13, 2021, 02:23:17 am »
Hi psakhis,

Very good job, thank you!  :cheers:

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #231 on: July 14, 2021, 08:50:54 am »
Hi @silmalik,

I just applied your patch to 1.27.1 stable version. Thx!  :notworthy:

mednafen-1.27.1-emu4crt-A14-win64.zip
mednafen-1.27.1-emu4crt-A14.patch
I test all the refresh is 60hz?not match the ture console
and 1.26.1 is no problem

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #232 on: July 15, 2021, 03:02:57 pm »
I test all the refresh is 60hz?not match the ture console
and 1.26.1 is no problem
I can't see any difference on logs. Are you using native or super resolutions?

Checking stdout log with super resolution on a nintendo nes system.

MAIN - GameLoop - Game resolution change to 256x240, current game resolution: 0x0
 Initializing video...
VIDEO - Video_Sync - Output video resolution swithing: ON
VIDEO - Video_Sync - apply SUPER resolution settings - set to 2560x240
VIDEO - Video_sync - screen dest: 2560x240 - 0,0
  Driver: OpenGL
  Display Mode: 2560 x 240 x 24 bpp @ 60Hz  (Window: 2560 x 240
)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #234 on: November 07, 2021, 06:13:27 am »
Wait wait wait ... Are you saying you've added CHD support to emu4crt ?

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 20, 2023, 09:21:14 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #235 on: November 07, 2021, 07:19:02 am »
Hi,
I like too much this emulator and chd format so i patched to work with Sega Saturn and Sony PSX.

Files

Executable https://drive.google.com/file/d/1brfaZtpYjCLAamAJ_tafX7AtavWknICu/view?usp=sharing
Patch https://drive.google.com/file/d/1jdaHS7vvHP3OBjGDXfIWVgM32rghLF_5/view?usp=sharing
Src https://drive.google.com/file/d/10Nbs_r67cA-x6m-VbQ4LPyCguZnrD1O-/view?usp=sharing

Been waiting for this day to come, thank you, thank you, thank you!!
Just tried and works perfectly!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #236 on: November 07, 2021, 11:09:17 am »
I tried with PCengineCD but not worked, seems a little more complex. For now i leave it.  :badmood:

Wait wait wait ... Are you saying you've added CHD support to emu4crt ?
Yes, but only for Saturn and PSX...i'm poorly trained with c compiler nowadays.
« Last Edit: November 07, 2021, 11:15:19 am by psakhis »

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 816
  • Last login:March 23, 2024, 02:35:43 pm
  • Forking GroovyArcade
    • forum.arcadecontrols.com/index.php/topic,160023.0.html
    • GroovyArcade active fork
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #237 on: November 07, 2021, 12:52:06 pm »
You should join the groovyarcade discord ;)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #238 on: November 07, 2021, 05:13:06 pm »
Finally working PSX, Saturn, PCECD and PCFX. For PCECD and PCFX i have needed some hacking to find magicCD, if anyone detects any problems let me know.

Binary https://drive.google.com/file/d/1Ou763f0DxNhx-KBbwAwIg3sOtageJdXB/view?usp=sharing
Patch https://drive.google.com/file/d/186pxVoWum9p8gmNP4ytEseIxlMLppwAr/view?usp=sharing
Src https://drive.google.com/file/d/1ZTg0fd587Uc2p1rbxzfPKsyXWHxdUMfY/view?usp=sharing
« Last Edit: November 08, 2021, 08:53:05 am by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #239 on: November 18, 2021, 09:39:12 pm »
I test all the refresh is 60hz?not match the ture console
and 1.26.1 is no problem
I can't see any difference on logs. Are you using native or super resolutions?

Checking stdout log with super resolution on a nintendo nes system.

MAIN - GameLoop - Game resolution change to 256x240, current game resolution: 0x0
 Initializing video...
VIDEO - Video_Sync - Output video resolution swithing: ON
VIDEO - Video_Sync - apply SUPER resolution settings - set to 2560x240
VIDEO - Video_sync - screen dest: 2560x240 - 0,0
  Driver: OpenGL
  Display Mode: 2560 x 240 x 24 bpp @ 60Hz  (Window: 2560 x 240
)
I know why
"synchronize opengl page flips tovertical retrace period" must enabled

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #240 on: November 22, 2021, 03:12:46 pm »
If some reckless wants to try the unstable 1.28...  >:D

emu4crt changes:
 - video.resolution_switch switchres: new SR2 option (switchres.ini) added to native or super options. With this new option is not required install modelines. Video refresh should be more accurate.
 - sbi files implemented with CHD format
 - psx.correct_aspect 0 will be centered with native or switchres options
 - psx bios freq updated pal vs ntsc
« Last Edit: December 25, 2021, 06:45:41 pm by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
« Last Edit: January 01, 2022, 09:54:01 am by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #242 on: January 25, 2022, 10:40:44 am »
Hi,
Mednafen-emu4crt 1.29 is out!

Changes A18 revision:
 - Updated libswitchres to mainstream 2.002g
 - Fix window area when systems with 224p not displays overscan (.slend - .slstart < 240)
 - Some minor fixes to "switchres" option for video.resolution_switch

Win64 build https://drive.google.com/file/d/11GQ_w4ellegDHkWBHWSQLwpbihE12KE7/view?usp=sharing
Source https://drive.google.com/file/d/14oIOeJTX2UZzZMABqx3b_glnRHv_qisf/view?usp=sharing
« Last Edit: January 25, 2022, 10:51:38 am by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #243 on: January 26, 2022, 06:44:49 am »
its all ok paly megadrive with "native"or"super",but in "switchres",the screen its wrong
"Fix window area when systems with 224p not displays overscan" maybe no effect with "switchres" mode

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #244 on: January 26, 2022, 06:49:33 am »
its all ok paly megadrive with "native"or"super",but in "switchres",the screen its wrong
"Fix window area when systems with 224p not displays overscan" maybe no effect with "switchres" mode
Thx for your feedback. Megadrive is the only core i didn't tested. I will test soon!

Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:March 26, 2024, 08:07:39 am
  • 240p, 480i
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #245 on: January 26, 2022, 07:16:37 am »
its all ok paly megadrive with "native"or"super",but in "switchres",the screen its wrong
"Fix window area when systems with 224p not displays overscan" maybe no effect with "switchres" mode
Thx for your feedback. Megadrive is the only core i didn't tested. I will test soon!

Looks like you are the one keeping this updated these days. Would you consider open up a github page?

housello

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 01, 2022, 09:29:32 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #246 on: January 26, 2022, 08:48:18 am »
Hi,
Mednafen-emu4crt 1.29 is out!

Changes A18 revision:
 - Updated libswitchres to mainstream 2.002g
 - Fix window area when systems with 224p not displays overscan (.slend - .slstart < 240)
 - Some minor fixes to "switchres" option for video.resolution_switch

Win64 build https://drive.google.com/file/d/11GQ_w4ellegDHkWBHWSQLwpbihE12KE7/view?usp=sharing
Source https://drive.google.com/file/d/14oIOeJTX2UZzZMABqx3b_glnRHv_qisf/view?usp=sharing

Great job, thank you!
Would you be able to update beetle saturn?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #247 on: January 26, 2022, 03:13:15 pm »
Looks like you are the one keeping this updated these days. Would you consider open up a github page?
Yes, i'm currently testing fix for paly megadrive resolution and i will upload revision to a github with a purpose of a merge with @Silmalik (the father of this great project).

EDIT: I believe it's fixed: https://drive.google.com/file/d/1U8e8yXF-jYZS946onQ0q24BYIZj8lJaU/view?usp=sharing
 * PAL resolutions windows area
 * PAL correct freqs --> Mastersystem to 49.701459 / Snes to 50.007
« Last Edit: January 26, 2022, 03:52:27 pm by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #248 on: January 26, 2022, 03:14:52 pm »
Great job, thank you!
Would you be able to update beetle saturn?
Are you talking about libretro core? I'm not using this core on RA.

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #249 on: January 27, 2022, 02:03:34 am »
thx,all fine with megadrive

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #250 on: January 27, 2022, 02:56:31 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok

housello

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 01, 2022, 09:29:32 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #251 on: January 27, 2022, 06:12:07 am »
Great job, thank you!
Would you be able to update beetle saturn?
Are you talking about libretro core? I'm not using this core on RA.

yes, talking about libretro core.
it hasn't been updated for more than 2 years, and that's a shame :(

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #252 on: January 27, 2022, 07:34:59 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok
Ok thx for your feedback. I will check legacy "native" or "super" options. I tested switchres more.

EDIT: Can you test this fix? https://drive.google.com/file/d/1NPRyTart6HEtY32srgGPzG-c1PqIHkZu/view?usp=sharing THX
« Last Edit: January 27, 2022, 08:11:48 am by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #253 on: January 27, 2022, 07:36:34 am »
Great job, thank you!
Would you be able to update beetle saturn?
Are you talking about libretro core? I'm not using this core on RA.

yes, talking about libretro core.
it hasn't been updated for more than 2 years, and that's a shame :(
Yes, but Mednafen Saturn are better on terms of accuracy and performance.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #254 on: January 27, 2022, 12:09:06 pm »
its all ok paly megadrive with "native"or"super",but in "switchres",the screen its wrong
"Fix window area when systems with 224p not displays overscan" maybe no effect with "switchres" mode
Thx for your feedback. Megadrive is the only core i didn't tested. I will test soon!

Looks like you are the one keeping this updated these days. Would you consider open up a github page?

Github created  ;)
https://github.com/psakhis/emu4crt

housello

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 01, 2022, 09:29:32 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #255 on: January 27, 2022, 01:04:03 pm »
Great job, thank you!
Would you be able to update beetle saturn?
Are you talking about libretro core? I'm not using this core on RA.

yes, talking about libretro core.
it hasn't been updated for more than 2 years, and that's a shame :(
Yes, but Mednafen Saturn are better on terms of accuracy and performance.

just because beetle hasn't been updated ;)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #256 on: January 27, 2022, 01:31:29 pm »
Not only Beetle Saturn. PC-Engine or Beetle Psx as well. Libretro cores are ports of this original emulator.


housello

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:November 01, 2022, 09:29:32 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #257 on: January 27, 2022, 04:50:18 pm »
Not only Beetle Saturn. PC-Engine or Beetle Psx as well. Libretro cores are ports of this original emulator.

beetle psx is quite updated, while beetle saturn is still at version 1.22 :(

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #258 on: January 28, 2022, 03:44:12 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok
Ok thx for your feedback. I will check legacy "native" or "super" options. I tested switchres more.

EDIT: Can you test this fix? https://drive.google.com/file/d/1NPRyTart6HEtY32srgGPzG-c1PqIHkZu/view?usp=sharing THX
native and super is fine in playstation
but switchres mode,sony logo cant shown on my monitor,and is ok by previous version

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #259 on: January 28, 2022, 04:47:59 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok
Ok thx for your feedback. I will check legacy "native" or "super" options. I tested switchres more.

EDIT: Can you test this fix? https://drive.google.com/file/d/1NPRyTart6HEtY32srgGPzG-c1PqIHkZu/view?usp=sharing THX
native and super is fine in playstation
but switchres mode,sony logo cant shown on my monitor,and is ok by previous version
Can you attach stdout.txt and switchres.ini? Thx!



reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #260 on: January 28, 2022, 07:49:34 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok
Ok thx for your feedback. I will check legacy "native" or "super" options. I tested switchres more.

EDIT: Can you test this fix? https://drive.google.com/file/d/1NPRyTart6HEtY32srgGPzG-c1PqIHkZu/view?usp=sharing THX
native and super is fine in playstation
but switchres mode,sony logo cant shown on my monitor,and is ok by previous version
Can you attach stdout.txt and switchres.ini? Thx!
test game is Valkyrie Profile,its title is 480i,ok
in the game's Prologue,its 240p,ok
after that its a movie ,480i,wrong,as same as sony logo,i think switchres wrong to 480p,and my monitor cant show

this game tested all ok played in Groovymame 0.239 - Switchres 2.002g
« Last Edit: January 28, 2022, 08:17:22 am by reeone »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #261 on: January 28, 2022, 08:04:16 am »
palystation have wrong picture with "native"or"super".
native mode, sony logo is 480p?my monitor cant show;super mode,the logo is 480i all right.they both have the same game wrong picture

1.27 is all ok
Ok thx for your feedback. I will check legacy "native" or "super" options. I tested switchres more.

EDIT: Can you test this fix? https://drive.google.com/file/d/1NPRyTart6HEtY32srgGPzG-c1PqIHkZu/view?usp=sharing THX
native and super is fine in playstation
but switchres mode,sony logo cant shown on my monitor,and is ok by previous version
Can you attach stdout.txt and switchres.ini? Thx!
test game is Valkyrie Profile,its title is 480i,ok
in the game's Prologue,its 240p,ok
after that its a movie ,480i,wrong,as same as sony logo,i think switchres wrong to 480p,and my monitor cant show
i change switchres.ini
modeline_generation       0

the movie in  Prologue is ok.its 512x480i.and when resolution switch,glitches have less time.
sony logo also cant show
« Last Edit: January 28, 2022, 08:07:16 am by reeone »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #262 on: January 28, 2022, 04:06:09 pm »
i change switchres.ini
modeline_generation       0

the movie in  Prologue is ok.its 512x480i.and when resolution switch,glitches have less time.
sony logo also cant show
You can try beta release https://github.com/psakhis/emu4crt/releases/download/1.29-A18.1/emu4crt-1.29-A18.1-win64.7z
 * Horizontal cropping for super resolutions are fixed.
 * Optimize changes with super resolutions and scales.

In your stdout.txt, switchres are trying to switch to 1280x0 resolutions because modeline_generation is set to 0. I recommend go with super resolutions "user_mode 2560x0" on switchres.ini or set modeline_generation to 1.



Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:March 26, 2024, 08:07:39 am
  • 240p, 480i
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #263 on: January 28, 2022, 07:19:18 pm »
its all ok paly megadrive with "native"or"super",but in "switchres",the screen its wrong
"Fix window area when systems with 224p not displays overscan" maybe no effect with "switchres" mode
Thx for your feedback. Megadrive is the only core i didn't tested. I will test soon!

Looks like you are the one keeping this updated these days. Would you consider open up a github page?

Github created  ;)
https://github.com/psakhis/emu4crt

Instant bookmark! Thanks!  :cheers:

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #264 on: January 28, 2022, 09:58:46 pm »
ok, "user_mode 2560x0" to use switchres

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #265 on: February 24, 2022, 01:38:13 pm »
1.29.A18-3 is out.
https://github.com/psakhis/emu4crt/releases/tag/1.29-A18.3

Changes
* Improve performance switching resolutions (Xorg/KMS backends/W64)
* Switches on a separate thread with blitting video affinity cpu (affinity.emu 1 and affinity.video 2 recommended)
* Fixed change resolution when load states

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #266 on: March 22, 2022, 02:54:01 pm »
1.29-A18.4 is a pre-release, only added a psx.pal60 option, no more changes.
https://github.com/psakhis/emu4crt/releases

Added psx.pal60 option hack for enable 60fps on PSX PAL Games.

psx.pal60 0 (disabled-default)
psx.pal60 1 (enabled)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #267 on: April 20, 2022, 12:33:22 pm »
1.29-A18.5 release is out.
https://github.com/psakhis/emu4crt/releases

changelog
Code: [Select]
Added psx.pal60 hack for enable 60fps on PSX PAL Games.
 - psx.pal60 0 (disabled-default)
 - psx.pal60 1 (enabled)
Added psx.cdspeed hack for cdspeed multiplier
 - psx.cdspeed 1 (by default at native 2x)
Added game boy advance resolution (240x240@59.71)
Some video clean ups (KMS,X,W64)
On video.resolution_switch switchres now you can override switchres.ini per-system and per-game, for example
 - psx.switchres.ini in your base config path
 - simpsons.psx.swithres.ini in your pgconfig path

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #268 on: April 21, 2022, 11:26:44 pm »
gba is not centered.edit gba.switchres.ini,change user mode 240x192 is the same.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #269 on: April 22, 2022, 02:44:16 am »
gba is not centered.edit gba.switchres.ini,change user mode 240x192 is the same.
I tested on Linux KMS/X and it's centered but not in Windows. Thank you for your feedback, i will try to fix it.

EDIT: Download again, you are right. In windows was broken. https://github.com/psakhis/emu4crt/releases/download/1.29-A18.5/emu4crt-1.29-A18-5-win64.7z
« Last Edit: April 22, 2022, 08:57:35 am by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #270 on: May 10, 2022, 04:51:33 am »
now I get a pc 31k monitor.
thats trouble with 1.29-A18.5.1.its not 240p when use native mode,or use switchres mode with "user_mode         auto".
and ok with super mode,or use switchres mode with "user_mode        2560x0"

I test all mode ok with emu4crt 1.29-A18 .sorry,only MD is OK,oh,PS,SS is also OK.other is same as A18.5.1
Maybe below 320X* is wrong?
« Last Edit: May 10, 2022, 08:00:41 am by reeone »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #271 on: May 12, 2022, 01:59:43 pm »
now I get a pc 31k monitor.
thats trouble with 1.29-A18.5.1.its not 240p when use native mode,or use switchres mode with "user_mode         auto".
and ok with super mode,or use switchres mode with "user_mode        2560x0"

I test all mode ok with emu4crt 1.29-A18 .sorry,only MD is OK,oh,PS,SS is also OK.other is same as A18.5.1
Maybe below 320X* is wrong?
Hi, i don't have a pc crt for testing. Do you have a stdout.txt with 1.29-A18? I can't see any error on log, 256x240@120hz isn't working in your screen?

EDIT: Probably, i will need implement BFI for this purpose.. otherwise 480p with software scanlines are better for blur
« Last Edit: May 12, 2022, 02:03:12 pm by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #272 on: May 13, 2022, 04:19:36 am »
MD is OK,SFC is wrong

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #273 on: May 14, 2022, 02:21:56 am »
@reeone, so fails always when X is less than 320? For your image, seems no switches and stays to 1024x768.

In last emu4crt version, if you scale X = 2, for example user_auto 512x0, it works? If this resolution works, attach me this log.

Thx


reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #274 on: May 14, 2022, 08:47:50 am »
@reeone, so fails always when X is less than 320? For your image, seems no switches and stays to 1024x768.

In last emu4crt version, if you scale X = 2, for example user_auto 512x0, it works? If this resolution works, attach me this log.

Thx
no work with 512x0,any system

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #275 on: May 14, 2022, 01:11:35 pm »
@reeone, so fails always when X is less than 320? For your image, seems no switches and stays to 1024x768.

In last emu4crt version, if you scale X = 2, for example user_auto 512x0, it works? If this resolution works, attach me this log.

Thx
no work with 512x0,any system
I will purchase a pc crt for test it. It's very rare than 2560x0 works and not this native...log seems fine. Can you see any switch resolution?

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #276 on: May 14, 2022, 11:36:29 pm »
something different between md and sfc,

set_desktop_mode: \\.\DISPLAY1 (256x240@120) flags(0)
sr_switch_to_mode: successfully switched to 256x240@119.845482

not include in stdout sfc

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #277 on: May 15, 2022, 07:50:35 am »
something different between md and sfc,

set_desktop_mode: \\.\DISPLAY1 (256x240@120) flags(0)
sr_switch_to_mode: successfully switched to 256x240@119.845482

not include in stdout sfc
The difference is sfc only changing on start; md changes more times...i have a theory but it's more related on your modelines installed. I supose you only have modeline with 120hz on 256x240 resolution, right?
1) Can you attach switchres.ini?
2) Can you use the last emu4crt version and attach both (md and sfc) with user_mode = "auto" and user_auto = "2560x0"?

I understand than md always is working and sfc never. And with resolution.switch native the result is the same (this needs modelines with @120 install)

Thx.


reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #278 on: May 15, 2022, 08:25:52 am »
switchres.ini work fine with groovymame if  "switchres_ini             1 "
every resolution has a 85hz,I cant delete
use the last emu4crt version,no system work on 240p with user_mode = "auto"
and all system work fine on 240p with user_auto = "2560x0"

but use emu4crt 1.29-A18 MD,PS,SS is also OK with user_mode = "auto",fc,sfc,pce is not

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #279 on: May 15, 2022, 08:40:36 am »
Do you have @85 on 2560x240 modeline?

Last version of emu4crt is bypassing some switches when last requested is the same, but for some reason i think this @85 are interfering on this..i will implement BFI and i need a pc crt for this.

I will build a experimental version to see if it works for you.

EDIT: Try this https://drive.google.com/file/d/13H8Rei_yOyPQWd2Gjkv5LZuYA0h1X7BD/view?usp=sharing with video.bfi = 1 (force first change) and video.bfi = 2 (force with doubled freq)
« Last Edit: May 15, 2022, 12:12:47 pm by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #280 on: May 16, 2022, 01:31:26 am »
There's no 2560x240@85hz

I test the lastest crt4emu,work fine with switchres "user_mode                 auto or 2560x0",and also fine with "super",the only problem is "native" is not 240p,but its not important
And the new libswitchres.dll is not necessary,the old version have the same result

By the way,the lastest crt4emu work all modes fine with a 480i CRT

THX

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #281 on: May 16, 2022, 03:04:08 am »
Perfect, this already fits me.

Anyway, the "best" settings for matching freqs are set switchres with user_mode auto or 2560x0 if game is constantly changing resolutions.

I will try to get a pc crt for implements black frame insertion, pc crt people comment, without BFI it is better go to 480 with scanlines.
« Last Edit: June 27, 2022, 02:40:44 pm by psakhis »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #282 on: June 27, 2022, 12:46:52 pm »
Did someone successfully run GBC, GB? Emulator crashes upon switching to fullscreen mode. GBA, NES works fine.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #283 on: June 27, 2022, 02:40:19 pm »
Hehe
GB/GBC/Wonderswan are not supported by emu4crt. Do you are interested? It's easy to add them.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #284 on: June 27, 2022, 03:54:55 pm »
Yes, I'm interested. I prefer to play handheld games on big screen when it's possible :)

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #285 on: July 03, 2022, 08:37:38 am »
After testing official megnafen with GB and GBC roms I can say that emulation it's not the best at all :/

It seems there are better emulators for these systems.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #286 on: July 03, 2022, 02:57:01 pm »
Yes, i don't recommend for these systems.

Mednafen for pc-engine, pc-enginecd, supergrafx, pcfx, psx and saturn are the best out there.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #287 on: July 04, 2022, 05:38:39 am »
And this appear to be true  :(

I did some tests with NES core. So far I didn't find any problems. Nestopia from my personal expierience was better emulator but FCE Ultra also seems to be good.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #288 on: July 04, 2022, 07:39:32 am »
The cores in Mednafen that are not their own are not the best, for example smsplus gx have an extra frame of lag.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #289 on: July 05, 2022, 05:42:54 am »
I never usued smsplus. Since I have real SMS first version and Megadrive with Everdrive cart I prefer real hardware.

NES is exception - I have with Everdrive cart but I prefer RGB output from emulator.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #290 on: August 01, 2022, 12:32:58 pm »
Hello,
I tried your latest build to test psx pal 60fps hack, but it doesn't seem to work...
I added psx.pal60 1 to my mednafen.cfg file, and then launch FF7 pal. As i didn't see any changes, i looked again at cfg file, and psx.pal60 1 option was move at the bottom of the file with the following comment :

;Unrecognized settings follow:
psx.pal60 1

Did i miss something ?
« Last Edit: August 01, 2022, 05:52:13 pm by Dalba »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #291 on: August 31, 2022, 08:46:13 am »
Emu4crt 1.31 is out
https://github.com/psakhis/emu4crt/releases/tag/1.31-A19

With this version, parcial ST-V is supported! https://mednafen.github.io/documentation/ss.html#Section_stv

@Dalba, attach your log, it's working for me.
« Last Edit: August 31, 2022, 11:39:24 am by psakhis »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #292 on: September 01, 2022, 03:55:44 am »
Thanks for update psakhis. ST-V is really welcome as mame emulation is far too slow and RetroArch is a bit annoying plus also a bit slow (Cotton Boomerang).

On the side note - NES emulation is sadly not as good as in Mesen - some mappers are not supported not too mention other problems :/

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #293 on: September 10, 2022, 04:07:21 pm »
hello all
I have tried these days for the first time on my cabinets the mednafen and the emu4crt for the STV roms, I only tried those.
i have 2 systems 1 with only one crt monitor at 25 khz
and one with 2 monitors 1 lcd and 1 crt monitor at 15khz.

unfortunately on the moniotr at 25khz I can't get emu4crt to work properly when I enable the switchres the image is squashed vertically (I state that I make the groovymame work very well)

while on the system with 2 monitors the switchres on the 15 khz monitor works fine but in switchres.ini the command display \\. \ DISPLAY2 which should direct the image on the second monitor at 15 khz does not work (it works very well instead with the groovymame )
and to be able to view the image I have to launch emu4crt with only one active monitor (I use windows7 64 bit)

can anyone help me?

thanks

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #294 on: September 10, 2022, 05:21:07 pm »
Hi,
for a multi monitor, you need to set video.fs.display on mednafen.cfg.

Can you post log from 25khz setup? Are you set switchres.ini for it?

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #295 on: September 10, 2022, 05:38:49 pm »
Ok. Tomorrow I will try and I will make a 25 kHz log. How I can do it?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #296 on: September 11, 2022, 03:15:14 am »
emu4crt generates a stdout.txt file

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #297 on: September 11, 2022, 04:34:35 am »
Hi.

thanks i've resolved for 2 monitor system with  video.fs.display 1

and here the log.

thanks

Starting Mednafen 1.31.0-UNSTABLE
 Build information:
   Compiled with gcc 4.9.4
   Running with MinGW-W64 Runtime 5.0 (alpha - rev. 0) 0000-00-00
   Compiled against zlib 1.2.8, running with zlib 1.2.8(flags=0x00000065)
   Compiled against libiconv 15.1, running with libiconv 15.1
   Compiled against SDL 2.0.8(hg-11914:f1084c419f33), running with SDL 2.0.8(hg-11835:f622a4457a25)
   Running with libFLAC 1.3.2
 Base directory: C:\MEDNAFEN
 Emulation modules: apple2 nes snes gb gba pce lynx md pcfx ngp psx ss ssfplay vb wswan sms gg sasplay snes_faust pce_fast demo cdplay
 Opening lockfile...
 Loading settings from "C:\MEDNAFEN\mednafen.cfg"...
  Loaded 7640 valid settings and 0 unknown settings.
 Initializing joysticks...
  ID: 0x05552563000000000000504944564944 -  Joystick
  ID: 0x05552563000000000000504944564945 -  Joystick
 Loading "c:\mednafen\roms\cotton2.zip"...
  Loading "/mpr20122.7" in ZIP archive...
   Applying IPS file "c:\mednafen\roms\cotton2.zip.ips"...
    Failed: Error opening file "c:\mednafen\roms\cotton2.zip.ips": No such file or directory
   Using module: ss(Sega Saturn)
    Loading override settings from "C:\MEDNAFEN\ss.cfg"...
     Failed: Error opening file "C:\MEDNAFEN\ss.cfg": No such file or directory
    Loading override settings from "C:\MEDNAFEN\pgconfig\cotton2.ss.cfg"...
     Failed: Error opening file "C:\MEDNAFEN\pgconfig\cotton2.ss.cfg": No such file or directory

    CPU Cache Emulation Mode: Full
    Horrible hacks: SH-2 reads/writes from/to VDP1 slow down command execution.
    Region: 0xc
    Cart: ST-V

    Displayed scanlines: [0,239]
    Correct Aspect Ratio: Enabled
    Show H Overscan: Enabled
    H Blend: Disabled


   Loading cheats from "C:\MEDNAFEN\cheats\ss.cht"...
    Error opening file "C:\MEDNAFEN\cheats\ss.cht": No such file or directory

 Initializing sound...
  Using "WASAPI(Shared mode)" audio driver with SexyAL's default device selection.
   Format: 16 bits(signed, 2 bytes, little-endian)
   Rate: 48000
   Channels: 2
   Buffer size: 1536 sample frames(32.000000 ms)
   Latency: 2048 sample frames(42.666667 ms)
 Initializing video...
  VIDEO - Video_Sync - Output video resolution swithing: ON
  VIDEO - Video_Sync - apply SWITCHRES resolution settings - set to 320x240@59.764793
  Loading switchres.ini...

  sr_init_disp auto with video_settings.fs_display -1...
  Loading override switchres.ini from "C:\MEDNAFEN\ss.switchres.ini"...
   Failed: Error opening file "C:\MEDNAFEN\ss.switchres.ini"...

  Loading override switchres.ini from "C:\MEDNAFEN\pgconfig\cotton2.ss.switchres.ini"...
   Failed: Error opening file "C:\MEDNAFEN\pgconfig\cotton2.ss.switchres.ini"...

  VIDEO - Video_Sync - SWITCHRES loaded - 1
  VIDEO - Video_SetSwitchres - called for 320x240@59.764793 (0)
Switchres: Modeline "2560x384_60 24.921919KHz 59.764793Hz" 86.279683 2560 2728 3063 3462 384 387 392 417   -hsync -vsync
sr_refresh_display: mode was updated
set_desktop_mode: \\.\DISPLAY1 (2560x384@60) flags(0)
sr_switch_to_mode: successfully switched to 2560x384@59.764793
  VIDEO - Video_SetSwitchres - result 2560x384@59.764793 - x=8 y=1
  VIDEO - Video_SetSwitchres - sr_switch_to_mode return: 1
  VIDEO - Video_BlitRefresh - screen dest: 2560x240 - 0,72
  VIDEO - Video_BlitRefresh completed
  VIDEO - Video_sync - screen dest: 2560x240 - 0,72 - scale(8,1)
  Driver: OpenGL
  Display Mode: 640 x 384 x 24 bpp @ 60Hz  (Window: 2560 x 384)
  Shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=72, W=2560, H=240
  OpenGL Implementation: ATI Technologies Inc. AMD Radeon R9 200 / HD 7900 Series 4.5.13417 Compatibility Profile Context 15.301.1901.0
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 16384 x 16384
  Using GL_RGBA - GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
  VIDEO - Init : SMRect.w: 2560 xmu: 6
SWITCH - Activated - Bypassed from 320x240@59.764793
VDP2 Render - Television mode changed: 1
     BorderMode: 0
     PAL: 0
     InterlaceMode: 0
     VRes: 0
     HRes: 1
SS - VDP2 Render - TV mode set to 352x240SWITCH - Activated - Current resolution 320x240 - Changing to 352x240@59.764793
  VIDEO - Video_ChangeResolution - Requested video mode: 352x240@59.764793
  VIDEO - Video_ChangeResolution - Video mode: FULLSCREEN
  VIDEO - Video_SetSwitchres - called for 352x240@59.764793 (0)
Switchres: Modeline "2560x384_60 24.921919KHz 59.764793Hz" 86.279683 2560 2728 3063 3462 384 387 392 417   -hsync -vsync
sr_refresh_display: no refresh required
sr_switch_to_mode: switching not required
  VIDEO - Video_SetSwitchres - result 2560x384@59.764793 - x=7 y=1
  VIDEO - Video_SetSwitchres - sr_switch_to_mode return: 1
  VIDEO - Video_ChangeResolution - Switchres resolution change bypassed. Only apply scaling scale (7,1)
MAIN - VIDEO - Refresh blitter after a resolution change
  VIDEO - Video_BlitRefresh - screen dest: 2464x240 - 48,72
  VIDEO - Video_BlitRefresh completed
VDP2 Render - Television mode changed: 0
     BorderMode: 0
     PAL: 0
     InterlaceMode: 0
     VRes: 0
     HRes: 0
SS - VDP2 Render - TV mode set to 320x240SWITCH - Activated - Current resolution 352x240 - Changing to 320x240@59.764793
  VIDEO - Video_ChangeResolution - Requested video mode: 320x240@59.764793
  VIDEO - Video_ChangeResolution - Video mode: FULLSCREEN
  VIDEO - Video_SetSwitchres - called for 320x240@59.764793 (0)
Switchres: Modeline "2560x384_60 24.921919KHz 59.764793Hz" 86.279683 2560 2728 3063 3462 384 387 392 417   -hsync -vsync
sr_refresh_display: no refresh required
sr_switch_to_mode: switching not required
  VIDEO - Video_SetSwitchres - result 2560x384@59.764793 - x=8 y=1
  VIDEO - Video_SetSwitchres - sr_switch_to_mode return: 1
  VIDEO - Video_ChangeResolution - Switchres resolution change bypassed. Only apply scaling scale (8,1)
MAIN - VIDEO - Refresh blitter after a resolution change
  VIDEO - Video_BlitRefresh - screen dest: 2560x240 - 0,72
  VIDEO - Video_BlitRefresh completed
VDP2 Render - Television mode changed: 1
     BorderMode: 0
     PAL: 0
     InterlaceMode: 0
     VRes: 0
     HRes: 1
SS - VDP2 Render - TV mode set to 352x240SWITCH - Activated - Current resolution 320x240 - Changing to 352x240@59.764793
  VIDEO - Video_ChangeResolution - Requested video mode: 352x240@59.764793
  VIDEO - Video_ChangeResolution - Video mode: FULLSCREEN
  VIDEO - Video_SetSwitchres - called for 352x240@59.764793 (0)
Switchres: Modeline "2560x384_60 24.921919KHz 59.764793Hz" 86.279683 2560 2728 3063 3462 384 387 392 417   -hsync -vsync
sr_refresh_display: no refresh required
sr_switch_to_mode: switching not required
  VIDEO - Video_SetSwitchres - result 2560x384@59.764793 - x=7 y=1
  VIDEO - Video_SetSwitchres - sr_switch_to_mode return: 1
  VIDEO - Video_ChangeResolution - Switchres resolution change bypassed. Only apply scaling scale (7,1)
MAIN - VIDEO - Refresh blitter after a resolution change
  VIDEO - Video_BlitRefresh - screen dest: 2464x240 - 48,72
  VIDEO - Video_BlitRefresh completed
  VIDEO - Video_Kill - SWITCHRES unloaded

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #298 on: September 11, 2022, 10:15:25 am »
Hi,
Switchres can't switch to 240p, if GM do it, probably is motivated by different switchres configuration.
  VIDEO - Video_SetSwitchres - called for 320x240@59.764793 (0)
 Switchres: Modeline "2560x384_60 24.921919KHz 59.764793Hz" 86.279683 2560 2728 3063 3462 384 387 392 417   -hsync -vsync


Are you setup switchres.ini for a 25khz monitor?

EDIT: is GM switching to 240p or scaling from 384p?
« Last Edit: September 11, 2022, 12:50:33 pm by psakhis »

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #299 on: September 11, 2022, 02:26:13 pm »
Hi. I know. Is normal that on a 25khz switchers can't switch to a 240p modeline.  For groovymame is the same. But in groovymame I make all the resolution in a 2560x384 always at the correct refresh. And the aspect ratio is correct. With emu4crt I can't.

GM like u say scale for a 384p.

Tomorrow I will post my switchres. Ini for  emu4crt

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #300 on: September 12, 2022, 01:55:19 am »
hi.

this is my switcres.ini

#
# Switchres config
#

# Monitor preset. Sets typical monitor operational ranges:
#
# generic_15, ntsc, pal                    Generic CRT standards
# arcade_15, arcade_15ex                   Arcade fixed frequency
# arcade_25, arcade_31                     Arcade fixed frequency
# arcade_15_25, arcade_15_25_31            Arcade multisync
# vesa_480, vesa_600, vesa_768, vesa_1024  VESA GTF
# pc_31_120, pc_70_120                     PC monitor 120 Hz
# h9110, polo, pstar                       Hantarex
# k7000, k7131, d9200, d9800, d9400        Wells Gardner
# m2929                                    Makvision
# m3129                                    Wei-Ya
# ms2930, ms929                            Nanao
# r666b                                    Rodotron
#
# Special presets:
# custom   Defines a custom preset. Use in combination with crt_range0-9 options below.
# lcd      Will keep desktop's resolution but attempt variable refresh, use in combination with lcd_range
#
   monitor                   custom

# Define a custom preset, use monitor custom to activate
# crt_range0-9   HfreqMin-HfreqMax, VfreqMin-VfreqMax, HFrontPorch, HSyncPulse, HBackPorch, VfrontPorch, VSyncPulse, VBackPorch, HSyncPol, VSyncPol, ProgressiveLinesMin, ProgressiveLinesMax, InterlacedLinesMin, InterlacedLinesMax
# e.g.: crt_range0  15625-15750, 49.50-65.00, 2.000, 4.700, 8.000, 0.064, 0.192, 1.024, 0, 0, 192, 288, 448, 576
   #crt_range0                24960-24960, 49.50-65.00, 1.943, 3.886, 4.626, 0.080, 0.200, 1.000, 0, 0, 384, 384, 640, 768
   crt_range0                24960-24960, 49.50-65.00, 1.943, 3.886, 4.626, 0.080, 0.200, 1.000, 0, 0, 384, 384, 640, 768
   crt_range1                auto
   crt_range1                auto
   crt_range2                auto
   crt_range3                auto
   crt_range4                auto
   crt_range5                auto
   crt_range6                auto
   crt_range7                auto
   crt_range8                auto
   crt_range9                auto

# Set the operational refresh range for LCD monitor, e.g. lcd_range 50-61
   lcd_range                 auto

# Force a custom modeline, in XFree86 format. This option overrides the active monitor preset configuration.
   modeline                  auto

# Forces an user mode, in the format: width x height @ refresh. Here, 0 can used as a wildcard. At least one of the three values
# must be defined. E.g. user_mode 0x240 -> SR can freely choose any width based on the game's requested video mode, but will
# force height as 240.
   user_mode                 auto


#
# Display config
#

# Select target display
# auto               Pick the default display
# 0, 1, 2, ...       Pick a display by index
# \\.\DISPLAY1, ...  Windows display name
# VGA-0, ...         X11 display name
   display                   auto

# Choose a custom video backend when more than one is available.
# auto         Let Switchres decide
# adl          Windows - AMD ADL (AMD Radeon HD 5000+)
# ati          Windows - ATI legacy (ATI Radeon pre-HD 5000)
# powerstrip   Windows - PowerStrip (ATI, Nvidia, Matrox, etc., models up to 2012)
# xrandr       Linux - X11/Xorg
# drmkms       Linux - KMS/DRM (WIP)
   api                       auto

# [Windows] Lock video modes reported as unsupported by your monitor's EDID
   lock_unsupported_modes    1

# Lock system (non-custom) video modes, only use modes that have full detailed timings available
   lock_system_modes         0

# Ignore video mode's refresh reported by the OS when checking ranges
   refresh_dont_care         0

# Keep changes on exit (warning: this skips video mode cleanup)
   keep_changes              0


#
# Modeline generation config
#

# Enable on-the-fly generation of video modes
   modeline_generation       1

# Allow interlaced modes (existing or generated)
   interlace                 0

# Allow doublescan modes (warning: doublescan support is broken in most drivers)
   doublescan                0

# Force a minimum dotclock value, in MHz, e.g. dotclock_min 25.0
   dotclock_min              25.0

# Maximum refresh difference, in Hz, allowed in order to synchronize. Below this value, the mismatch does not involve penalization
   sync_refresh_tolerance    2.0

# Super resolution width: above this width, fractional scaling on the horizontal axis is applied without penalization
   super_width               2560

# Physical aspect ratio of the target monitor. Used to compensate aspect ratio when the target monitor is not 4:3
   aspect                    4:3

# [Experimental] Attempts to compensate consumer TVs vertical centering issues
   v_shift_correct           0

# Calculate horizontal borders with 1-pixel precision, instead of the default 8-pixels blocks that were required by old drivers.
# Greatly improves horizontal centering of video modes.
   pixel_precision           1

# Calculate all vertical values of interlaced modes as even numbers. Required by AMD APU hardware on Linux
   interlace_force_even      0


#
# Custom video backend config
#

# [X11] adjusts the crtc position after a new video mode is set, maintaining the relative position of screens in a multi-monitor setup.
   screen_compositing        0

# [X11] stacks the screens vertically on startup to allow each screen to freely resize up to the maximum width. Useful to avoid video
# glitches when using super-resolutions. screen_reordering overrides screen_compositing.
   screen_reordering         0

# [Windows] dynamically adds new modes or updates existing ones, even on stock AMD drivers*. This feature is experimental and is
# disabled by default. It has the following limitations and problems:
# - Synchronization is not perfect yet and the new modes may not always be ready on time for mode switching, causing a wrong display
#   output.
# - A plug-n-play audio notification will be present on startup and exit, if the explorer shell is used.
# - Refreshing the hardware is an expensive task that takes time, specially if the app has already entered fullscreen mode. This
#   makes it unpractical for games that switch video modes more than once.
# * When used with stock AMD drivers instead of CRT Emudriver, usual limitations apply: no support for low resolutions (below 640x480)
#   nor low dotclocks.
#   Not a problem however if you're using a 31 kHz monitor.
   allow_hardware_refresh    0

# Pass a custom video timing string in the native backend's format. E.g. pstring timing for Powerstrip
   custom_timing             auto


#
# Logging
#

# Enables verbose mode (0|1)
   verbose                   0

# Set verbosity level (from 0 to 3)
# 0: no messages from SR
# 1: only errors
# 2: general information
# 3: debug messages
   verbosity                 2

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #301 on: September 12, 2022, 02:27:00 am »
Thank you.

At the moment emu4crt does not support this non integer scaling but @Calamity is already preparing a version of API switchres that does.

xbrunox

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 26, 2024, 01:48:30 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #302 on: September 12, 2022, 05:51:16 am »
thanks to You for your's great work!
i'm just a simple user!

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #303 on: September 29, 2022, 12:57:31 pm »
Emu4crt 1.31 is out
https://github.com/psakhis/emu4crt/releases/tag/1.31-A19

With this version, parcial ST-V is supported! https://mednafen.github.io/documentation/ss.html#Section_stv

@Dalba, attach your log, it's working for me.

Sorry for very long delay in my answer !
I tried again using version 1.31 and it did the trick ! May be last time i tried with a wrong version of mednafen... It's all good for me too ! Thanks !

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #304 on: November 07, 2022, 04:20:31 am »
I fiddled around with this today but for example in Die Hard Arcade I get the wrong resolution (looks like it's windowed, thick borders around the play area) as soon as I'm in the game. I have both native and super resolutions installed. I tried both modes. Is it a problem with the emulator?
« Last Edit: November 07, 2022, 05:55:15 am by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #305 on: November 07, 2022, 07:01:53 am »
Hi, @Endprodukt, can you attach stdout.txt file?

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #306 on: November 07, 2022, 08:40:11 am »
I test partly wrong with swtichres.ini  user mode   auto,the picture is both this mode
All ok with swtichres.ini  user mode 3520x0

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #307 on: November 07, 2022, 09:13:56 am »
Is the Saturn port or STV arcade?

EDIT: @reeone, you are right because game changes between 352 and 704 on X often, you aproach is the way to go scaling x10 and x5 always integer.

In this case, you can set only for this game on pgconfig directory:
 -Die Hard Arcade.ss.switchres.ini with 3520x0 on user_mode
 -Die Hard Arcade.ss.cfg with video.resolution_switch switchres

I uploaded a emu4crt that fix constant changes, but i recommend @reeone solution using 3520 super resolution with switchres because with this game changes with very short period times.
https://drive.google.com/file/d/1Sx5kCFbSx20zwyid5i2ZvEmpKqeB62tb/view?usp=share_link

« Last Edit: November 07, 2022, 02:20:07 pm by psakhis »

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #308 on: November 08, 2022, 06:06:02 am »
Since I'm only using mednafen for STV does it make sense to put it as global setting? Sorry I'm not very experienced with mednafen.

Do I have to create a 3520 resolution? I did the settings and I end up with a black screen. Output file tells me that no matching mode could be found. Makes sense I guess. Question is which resolutions I should create.
« Last Edit: November 08, 2022, 10:03:37 am by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #309 on: November 08, 2022, 11:41:21 am »
What value do you have in mednafen.cfg for video.resolution_switch?

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #310 on: November 08, 2022, 12:45:40 pm »
Originally super but after your comment turned it to switchres. Then changed the user value in the switchres.ini .

Find attached the stdout.

edit:

I created 3520 resolutions, x240, x480, 288 and 576. The game does show now but ingame is horizontaly stretched. Screentitle is fine, ingame is stretched. For radiant silvergun the other way around, screentitle stretched and ingame fine.

I attached a second file!

edit2: stretching in Die Hard seems very dependent on the screen. In some of the screens (second one for example) is fine, first one is stretched.
« Last Edit: November 08, 2022, 01:43:32 pm by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #311 on: November 08, 2022, 01:54:36 pm »
Interesting, stdout.txt seems you don't have crt emudriver or your switchres.ini isn't fine.
  VIDEO - Video_SetSwitchres - called for 320x240@59.764793 (0)
  Switchres: could not find a video mode that meets your specs
  sr_switch_to_mode: switching not required


With switchres and crt emudriver you don't need install modelines.
Do you tried the gdrive version of yesterday?

Here i don't have black bars, but i don't know how is your modeline installed.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #312 on: November 08, 2022, 02:35:08 pm »
First stdout was without 3520 modes.

On GM I use super resolutions, no problems. Only a couple of natives installed for Model 2 and Desktop. CRT Emudriver is running fine. I will try your new version.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #313 on: November 08, 2022, 02:52:32 pm »
Installed new version and have better results. Especially in games that use interlaced 704x480 I get fat borders left and right (VF Kids for example). It chooses Modeline "2560x480_60i 15.688258KHz 59.764793Hz".

I would still have to use switchres with 3520 resolutions though, Super mode is still completely off. No idea why. Modelines look all good and crisp in arcade osd.
« Last Edit: November 08, 2022, 02:57:06 pm by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #314 on: November 08, 2022, 03:49:28 pm »
Something is wrong in your switchres.ini

stdout.txt -> not detect any valid native resolution from switchres, maybe min pixel clock issue from switchres.ini
stdout2.txt -> it's ok, setting 3520x0
stdout3.txt -> it's wrong on some way and switchres isn't detect 3520x0
SwitchRes: missing parameter in user modeline
  3520x0

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #315 on: November 08, 2022, 06:10:25 pm »
Yeah even after fixing it was still not working nicely. I went with native resolutions for now and it's working reliably. Thank you for the help and the work.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #316 on: November 09, 2022, 01:52:58 pm »
@Endprodukt, test this build. It's optimized for native, bypassing false vdp render positives changes.

https://drive.google.com/file/d/1YQosu9DJl0TTpWI2wk-sZ59ehfWDOrXP/view?usp=share_link

You will be notice more stable changes on Die Hard Arcade, this game has a lot of false positives.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #317 on: November 09, 2022, 04:56:56 pm »
@Endprodukt, test this build. It's optimized for native, bypassing false vdp render positives changes.

https://drive.google.com/file/d/1YQosu9DJl0TTpWI2wk-sZ59ehfWDOrXP/view?usp=share_link

You will be notice more stable changes on Die Hard Arcade, this game has a lot of false positives.

Thank you, I will test it tomorrow! I had more luck with native resolutions now. :)

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #318 on: November 10, 2022, 04:56:25 pm »
Hello,
I "may" have find a bug specific to emu4crt. Using snes_faust module, if you launch a game like seiken densetsu 3 that use 512 horizontal resolution when in menu or when a message box pop up, screen become zoom in 2x... I tried with native or super resolution and result is the same.
Below 2 screenshots showing the problem :
- Game menu :


- text box (only text box is zoomed in) :


This behavior doesn't appear on regular mednafen, so i guess it's relative with native and super resolution...
You can easily reproduce this problem going in start menu of Secret of Mana too.

« Last Edit: November 10, 2022, 04:58:30 pm by Dalba »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #319 on: November 11, 2022, 02:34:19 am »
Hi @Dalba,
Can you attach stdout.txt?

Are you test with switchres option? Or only with native and super?

EDIT: Ups, here too! Fixed. https://drive.google.com/file/d/1OdpKdz3EETaI7O5CVVMzuJUT3EhGT_3T/view?usp=sharing

I will update git too, thank you!
« Last Edit: November 11, 2022, 02:56:49 am by psakhis »

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #320 on: November 11, 2022, 04:17:16 am »
Hi @Dalba,
Can you attach stdout.txt?

Are you test with switchres option? Or only with native and super?

EDIT: Ups, here too! Fixed. https://drive.google.com/file/d/1OdpKdz3EETaI7O5CVVMzuJUT3EhGT_3T/view?usp=sharing

I will update git too, thank you!

Thanks for being so reactive !
But in seiken densetsu 3, while menu is fixed on my side too, message boxes still appear zoomed in 2x like my screenshot below.
Tested in native and super resolution mode.

New screenshot of the problem :



Do you have the same behavior too or is it just on my setup ?

« Last Edit: November 11, 2022, 05:25:15 am by Dalba »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #321 on: November 11, 2022, 05:49:40 am »
Isn't your setup, here happens too with snes and snes_faust

I'll check this

This game is constantly changing to 512/256 when text appears (so when will be fixed the way to go is super resolution)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #322 on: November 12, 2022, 01:08:08 pm »
I think now it's fixed
https://drive.google.com/file/d/1gqNcEVcXhQRKvmQguDbjVagZdzdezqOZ/view?usp=sharing

This game raster differents widths on some scanlines; i needed to change some code about resolution on X.

If you no detect any problem, i will upload updates on git.

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #323 on: November 13, 2022, 06:15:21 am »
I think now it's fixed
https://drive.google.com/file/d/1gqNcEVcXhQRKvmQguDbjVagZdzdezqOZ/view?usp=sharing

This game raster differents widths on some scanlines; i needed to change some code about resolution on X.

If you no detect any problem, i will upload updates on git.

Thank you very much ! It's now fixed on my setup too ! Play much better in super resolution, as there's a lot of switching in native.

Moksi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 194
  • Last login:March 18, 2024, 09:10:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #324 on: November 20, 2022, 03:52:28 am »
nice came late to the party , how does the mednafen emu4crt handle the STV arcade games compared with Mame.
like Die Hard Arcade in mame runs all bugged.



Moksi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 194
  • Last login:March 18, 2024, 09:10:04 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #325 on: November 20, 2022, 04:10:46 am »
had some trouble setting it up but i just replaced the exec over an older version ,  i can use the mame romset i suppose?
« Last Edit: November 20, 2022, 04:15:40 am by Moksi »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #326 on: November 20, 2022, 04:38:53 am »
Just put decompressed stvbios on firmware folder and your mame roms work with zip format (7z isn't supported)

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #327 on: November 20, 2022, 07:11:03 am »
Anyone tried to set display2 in emu4crt? I'm trying to force Shienryu on second display (vertical) but no luck so far.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #328 on: November 20, 2022, 10:31:18 am »
Anyone tried to set display2 in emu4crt? I'm trying to force Shienryu on second display (vertical) but no luck so far.
Check this value on mednafen.cfg. Test with 1 or 2.

;Display to use with fullscreen mode.
video.fs.display -1

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #329 on: November 21, 2022, 08:21:21 am »
I think I tried already in emu4crt and official mednafen.

emu4crt [game] -video.fs.display 2 didn't work. Also creating shienryu.cfg and setting there video.fs.display 2 didn't work as well.

Switchres has in own option this method appears do not work.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #330 on: November 21, 2022, 11:38:59 am »
The file for overload config is shienryu.ss.cfg

You can check stdout.txt looking for which display is set, look for: video_settings.fs_display

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #331 on: November 21, 2022, 03:50:45 pm »
Ok, I only miss ss in config name. Now it's working but worth to mention that switchres changes resolutions on both displays not only on second.

Thanks for help psakhis :)

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #332 on: November 22, 2022, 01:10:25 pm »
Are you using switchres, super or native?

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #333 on: November 22, 2022, 05:03:15 pm »
Super for most time. I think I have only 640x480 as the only native resolution.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #334 on: November 23, 2022, 03:57:33 am »
Ok, you can try using switchres with super resolutions

 -shienryu.ss.switchres.ini with 2560x0 or 3520x0 on user_mode (the super mode do you want)
 -shienryu.ss.cfg with video.resolution_switch switchres

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #335 on: November 23, 2022, 04:25:00 am »
I'll try this today.

But from my own examination - st-v during boot changes resolutions couple times. Used resolutions are 448x352, 224x352 and finally during game 240x320.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #336 on: November 23, 2022, 10:36:27 am »
Yes, it depends on st-v bios too. If configured tate or not.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #337 on: November 27, 2022, 08:39:50 am »
I had to use native option for ST-V because for unknown reason 3520x480 even if it's generated by VMMaker correctly does not show in Arcade OSD and mednafen cannot use as well.

For 352x240 and 704x480 are generated and appears to be working correctly at least for Cotton Bomerang.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #338 on: November 27, 2022, 08:42:31 am »
I had to use native option for ST-V because for unknown reason 3520x480 even if it's generated by VMMaker correctly does not show in Arcade OSD and mednafen cannot use as well.

For 352x240 and 704x480 are generated and appears to be working correctly at least for Cotton Bomerang.

I had nothing but problems with using super resolutions on stv. Going native did the trick for me. It's just a couple of resolutions.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1470
  • Last login:March 04, 2024, 03:20:27 am
  • retro maniac
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #339 on: November 27, 2022, 08:59:06 am »
Yeah, a bit strange.

BTW. Is there possibility map F8(insert coin) to button?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #340 on: November 28, 2022, 03:14:34 am »
Of course, look for "command.insert_coin" in .cfg file

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #341 on: November 30, 2022, 12:03:22 pm »
Hi,
I tried installing the emu4crt package 1.29-A18.5.1 on latest GA distro (updated) with Mednafen 1.29, but I get the following error message:

Code: [Select]
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_SetSwitchres(int, int, double, int)':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:855: undefined reference to `sr_switch_to_mode'
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_Sync(Mednafen::MDFNGI*)':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1170: undefined reference to `sr_init'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1171: undefined reference to `sr_init_disp'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1177: undefined reference to `sr_load_ini'
/usr/bin/ld: /home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:1186: undefined reference to `sr_load_ini'
/usr/bin/ld: drivers/libmdfnsdl.a(video.o): in function `Video_Kill()':
/home/arcade/shared/emu4crt/mednafen/src/drivers/video.cpp:554: undefined reference to `sr_deinit'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3478: mednafen] Error 1
make[2]: Leaving directory '/home/arcade/shared/emu4crt/mednafen/src'
make[1]: *** [Makefile:5332: all-recursive] Error 1
make[1]: Leaving directory '/home/arcade/shared/emu4crt/mednafen/src'
make: *** [Makefile:479: all-recursive] Error 1

Is there a way I can fix this?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #342 on: November 30, 2022, 12:15:34 pm »
Hi,
Why not 1.31? You have PKGBUILD for it on https://github.com/psakhis/emu4crt/releases

contemplator

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:September 05, 2023, 03:26:33 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #343 on: November 30, 2022, 04:12:46 pm »
Had some issues with the system, so anything unstable looked like a no-go  :scared
I managed to reinstall 1.29 .. good old mednafen!
I will try 1.31 for ST-V when I grab some time. Tnx!

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #344 on: January 10, 2023, 11:54:08 am »

New emu4crt A20 released based on mednafen 1.31, major changes for gun games, tested only on GroovyArcade and Guncon2.

All information on git https://github.com/psakhis/emu4crt

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #345 on: January 12, 2023, 12:31:07 pm »
Just tested with psx. For me the flashing is working only for one of my two guns (p2 in my case).
As far I read Mednafen doesn't support rawinput to support multiple lightguns in "mouse mode" so I'm using guns as joysticks, am I wrong?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #346 on: January 12, 2023, 01:33:25 pm »
I'm using it as a joystick, with mouse mode i haven't achieved working properly on Mame.

Are you using Windows or Linux?

Shader it's implemented for any guncon port psx.input.portX.guncon.trigger but i can't test here, i only have 1 guncon2.
« Last Edit: January 12, 2023, 01:40:28 pm by psakhis »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #347 on: January 12, 2023, 01:58:17 pm »
Maybe another person with two guns can test, for me only one flashes.
I'm using windows. For me mame is working nice with both guns in "mouse mode"
By the way, do you know if Beardypig for guncon driver works in windows?
I'd like to test it but never compiled anything

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #348 on: January 12, 2023, 02:45:37 pm »
I will try to check with mouse as guncon on port2.

For Windows i tried this Beardypig based driver http://forum.arcadecontrols.com/index.php/topic,166121.0.html but i have random disconnects.

On Mame, the calibration tool seems isn't working, something weird with config happens.

EDIT: Your idea for a shader works pretty well for me on Mednafen, thanks for it.
« Last Edit: January 12, 2023, 02:47:35 pm by psakhis »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #349 on: January 12, 2023, 03:32:32 pm »
Thanks to you by all the work.
by the way, do you think ArcCabView or reshader can support this? I ask because this way maybe could be applied to m2emu, supermodel, flycast, arcadepc...

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #350 on: January 12, 2023, 05:34:15 pm »
Probably something general is possible with a monitor service for capture inputs and enable shader.

I have doubts about latency; in Mednafen shader or Mame lua plugin, input is captured on the frame and as much applied shader on the next blit, so at most only have 1 frame of lag.

The most important thing is only read x,y position when shader is applied, with emulator we can control that, i doubt it with external programs.
« Last Edit: January 12, 2023, 06:09:19 pm by psakhis »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #351 on: January 13, 2023, 11:15:58 am »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #352 on: January 14, 2023, 04:26:42 am »
Thanks now it works for both guns.
Anyway I have to test it better, it doesn't work as good as Mame with lightguns in "mouse mode"

Quote
The most important thing is only read x,y position when shader is applied, with emulator we can control that, i doubt it with external programs.
Well I used an external solution for years, and it works. The problem is the external flasher I use is too agressive (no opacity options), and seems to produce some "tearing" effect (maybe sync doesn't match).
I use autohotinterception to launch the external flasher, delay and shorten the trigger press. But I coudn't find a way to create a better flashing that works in fullscreen games

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #353 on: January 14, 2023, 10:44:25 am »
In my case is working great on Linux. How are you set axis input?

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #354 on: January 14, 2023, 01:33:57 pm »
 joystick 0x00030b9a016a01000004000800000000 abs_0-+g
But I have to look at the way I convert mice to joysticks, I do with autohotinterception too

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #355 on: January 18, 2023, 12:47:48 pm »
If your gun can be work as a mouse, do you tried it?

mouse 0x0 cursor_x-+
mouse 0x0 cursor_y-+

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #356 on: January 18, 2023, 02:59:49 pm »
Yes, seems to work better. The downside is as far I know Mednafen doesn't support multiple mice. As I read it's because sdl2 doesn't support rawinput, or am I wrong?

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #357 on: January 18, 2023, 03:38:58 pm »
You can set id on mouse ¿right?

For example for your gun:
mouse 0x00030b9a016a01000004000800000000 cursor_x-+

The second gun, has a different id.

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #358 on: January 19, 2023, 12:18:51 pm »
I thought only directinput mouse could be used.
And how I get this mice id? In device manager I get something like HID#VID_0B9A&PID_016A&Col01#6&2b30ddbf&2&0000.

« Last Edit: January 20, 2023, 04:03:07 am by phasermaniac »

phasermaniac

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:January 24, 2024, 05:40:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #359 on: January 23, 2023, 04:32:55 pm »
You can set id on mouse ¿right?

For example for your gun:
mouse 0x00030b9a016a01000004000800000000 cursor_x-+

The second gun, has a different id.
Can't get it work. Where do you get that id?
Thanks

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #360 on: January 24, 2023, 09:26:46 am »
Test with guncon2 daemon.  https://github.com/psakhis/guncon2


Download A20c with fixed vsync issue on gunlight shader
https://github.com/psakhis/emu4crt/releases/tag/1.31-A20c
« Last Edit: January 27, 2023, 08:09:02 am by psakhis »

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #361 on: January 26, 2023, 07:56:50 am »
I really want to play all the suport handheld with emucrt,thats too hart to config switchres with Retroarch

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #362 on: January 27, 2023, 08:08:28 am »
Which core? I play on GBA on it

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #363 on: January 28, 2023, 02:45:20 am »
both set switchres.ini   "user_mode                 320x240",
see the pictures,Retroarch has something wrong,for example the letter "D,K,N".I try all core,the same problem
If set "user_mode                 240x240",it give wrose picture
And I paly GBC,NGPC,also have the similar problem

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #364 on: January 28, 2023, 04:12:28 am »
True, and both emulators are wrong.

Emu4crt: if you set 320x240 on switchres.ini, the aspect ratio 3/2 is correct and image is pixel perfect (it's your case); but if not, it sets 240x240 and aspect ratio is wrong.

RA: aspect ratio is always wrong, you need to force custom viewport with 320x240 on switchres.ini:
 -aspect_ratio_index = "23"
 -custom_viewport_height = "160"
 -custom_viewport_width = "240"
 -video_scale_integer = "true"

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 01:17:47 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #365 on: January 29, 2023, 06:47:22 am »
OK,all great