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 --- Bug Reports --- Site News

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

  

Author Topic: emu4crt Mednafen mod - update 1.24.3 A13  (Read 33940 times)

0 Members and 1 Guest are viewing this topic.

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 am
    • Mednafen emu4crt mod
emu4crt Mednafen mod - update 1.24.3 A13
« 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

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.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: May 06, 2020, 10:11:10 am 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: 107
  • Last login:Yesterday at 09:31:38 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: 6947
  • Last login:Yesterday at 04:49:36 pm
  • 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 or pasting it.

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

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 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: 144
  • Last login:July 07, 2019, 04:16:14 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: 107
  • Last login:Yesterday at 09:31:38 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: 274
  • Last login:September 16, 2020, 09:32:21 am
    • 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: 6947
  • Last login:Yesterday at 04:49:36 pm
  • 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 or 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 242
  • Last login:November 04, 2018, 12:58:03 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: 107
  • Last login:Yesterday at 09:31:38 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: 56
  • Last login:July 25, 2020, 02:39:06 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: 107
  • Last login:Yesterday at 09:31:38 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: 6
  • Last login:September 23, 2020, 06:22:12 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: 107
  • Last login:Yesterday at 09:31:38 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:July 31, 2020, 02:53:03 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 107
  • Last login:Yesterday at 09:31:38 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 107
  • Last login:Yesterday at 09:31:38 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 56
  • Last login:July 25, 2020, 02:39:06 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: 3
  • Last login:October 23, 2018, 05:38:30 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 3
  • Last login:October 23, 2018, 05:38:30 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 3
  • Last login:October 23, 2018, 05:38:30 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 242
  • Last login:November 04, 2018, 12:58:03 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 107
  • Last login:Yesterday at 09:31:38 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 107
  • Last login:Yesterday at 09:31:38 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 242
  • Last login:November 04, 2018, 12:58:03 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: 107
  • Last login:Yesterday at 09:31:38 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: 242
  • Last login:November 04, 2018, 12:58:03 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: 7
  • Last login:November 08, 2019, 09:38:40 am
  • 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 7
  • Last login:November 08, 2019, 09:38:40 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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
  • ***
  • Online Online
  • Posts: 257
  • Last login:Today at 05:24:59 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 1079
  • Last login:Yesterday at 07:29:01 pm
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 1079
  • Last login:Yesterday at 07:29:01 pm
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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:March 07, 2019, 04:57:58 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 33
  • Last login:Yesterday at 05:24:58 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: 33
  • Last login:Yesterday at 05:24:58 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: 107
  • Last login:Yesterday at 09:31:38 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: 33
  • Last login:Yesterday at 05:24:58 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: 33
  • Last login:Yesterday at 05:24:58 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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:July 14, 2020, 11:50:21 am
  • 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: 107
  • Last login:Yesterday at 09:31:38 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: 467
  • Last login:Today at 04:01:27 am
  • 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)
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 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: 467
  • Last login:Today at 04:01:27 am
  • 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 :/
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 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: 467
  • Last login:Today at 04:01:27 am
  • 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.
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 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: 467
  • Last login:Today at 04:01:27 am
  • 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.
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

Substring

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 467
  • Last login:Today at 04:01:27 am
  • 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 ?
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

silmalik

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 467
  • Last login:Today at 04:01:27 am
  • 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 :)
GroovyMAME / GroovyArcade discord: https://discord.gg/YtQ6pJh
GroovyArcade doc: https://gitlab.com/groovyarcade/support/-/wikis/home

alex2005

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:September 24, 2020, 04:44:24 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 33
  • Last login:Yesterday at 05:24:58 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 33
  • Last login:Yesterday at 05:24:58 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: 33
  • Last login:Yesterday at 05:24:58 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 33
  • Last login:Yesterday at 05:24:58 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: 99
  • Last login:September 24, 2020, 04:44:24 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: 33
  • Last login:Yesterday at 05:24:58 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 107
  • Last login:Yesterday at 09:31:38 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 137
  • Last login:Yesterday at 01:10:50 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 107
  • Last login:Yesterday at 09:31:38 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 137
  • Last login:Yesterday at 01:10:50 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: 56
  • Last login:September 27, 2020, 11:05:37 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 274
  • Last login:September 16, 2020, 09:32:21 am
    • 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 274
  • Last login:September 16, 2020, 09:32:21 am
    • 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: 137
  • Last login:Yesterday at 01:10:50 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 38
  • Last login:August 06, 2020, 11:15:19 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: 107
  • Last login:Yesterday at 09:31:38 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: 38
  • Last login:August 06, 2020, 11:15:19 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 5
  • Last login:September 26, 2020, 12:34:23 pm
    • jm1200.free.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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 5
  • Last login:September 26, 2020, 12:34:23 pm
    • jm1200.free.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: 38
  • Last login:August 06, 2020, 11:15:19 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)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:May 13, 2020, 10:41:38 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: 107
  • Last login:Yesterday at 09:31:38 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)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:May 13, 2020, 10:41:38 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 107
  • Last login:Yesterday at 09:31:38 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: 5
  • Last login:July 22, 2020, 12:31:08 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: 137
  • Last login:Yesterday at 01:10:50 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: 5
  • Last login:July 22, 2020, 12:31:08 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: 107
  • Last login:Yesterday at 09:31:38 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: 137
  • Last login:Yesterday at 01:10:50 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: 5
  • Last login:July 22, 2020, 12:31:08 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: 40
  • Last login:Yesterday at 06:13:21 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: 107
  • Last login:Yesterday at 09:31:38 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: 40
  • Last login:Yesterday at 06:13:21 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: 91
  • Last login:August 14, 2020, 11:53:53 pm
  • 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: 40
  • Last login:Yesterday at 06:13:21 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: 107
  • Last login:Yesterday at 09:31:38 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: 40
  • Last login:Yesterday at 06:13:21 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 !