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

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

  

Author Topic: emu4crt Mednafen mod - update 1.26.1  (Read 106413 times)

0 Members and 2 Guests are viewing this topic.

reeone

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

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

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

THX

psakhis

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

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

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

haynor666

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

psakhis

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

haynor666

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

haynor666

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

It seems there are better emulators for these systems.

psakhis

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

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

haynor666

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

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

psakhis

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

haynor666

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

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

Dalba

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

;Unrecognized settings follow:
psx.pal60 1

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

psakhis

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

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

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

haynor666

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

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

xbrunox

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

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

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

can anyone help me?

thanks

psakhis

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

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

xbrunox

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

psakhis

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

xbrunox

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

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

and here the log.

thanks

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

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

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


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

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

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

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

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

psakhis

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


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

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

xbrunox

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

GM like u say scale for a 384p.

Tomorrow I will post my switchres. Ini for  emu4crt

xbrunox

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

this is my switcres.ini

#
# Switchres config
#

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

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

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

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

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


#
# Display config
#

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

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

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

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

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

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


#
# Modeline generation config
#

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

# Allow interlaced modes (existing or generated)
   interlace                 0

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

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

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

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

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

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

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

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


#
# Custom video backend config
#

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

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

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

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


#
# Logging
#

# Enables verbose mode (0|1)
   verbose                   0

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

psakhis

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

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

xbrunox

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

Dalba

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

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

@Dalba, attach your log, it's working for me.

Sorry for very long delay in my answer !
I tried again using version 1.31 and it did the trick ! May be last time i tried with a wrong version of mednafen... It's all good for me too ! Thanks !

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #304 on: November 07, 2022, 04:20:31 am »
I fiddled around with this today but for example in Die Hard Arcade I get the wrong resolution (looks like it's windowed, thick borders around the play area) as soon as I'm in the game. I have both native and super resolutions installed. I tried both modes. Is it a problem with the emulator?
« Last Edit: November 07, 2022, 05:55:15 am by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #305 on: November 07, 2022, 07:01:53 am »
Hi, @Endprodukt, can you attach stdout.txt file?

reeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:Today at 07:11:35 am
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #306 on: November 07, 2022, 08:40:11 am »
I test partly wrong with swtichres.ini  user mode   auto,the picture is both this mode
All ok with swtichres.ini  user mode 3520x0

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #307 on: November 07, 2022, 09:13:56 am »
Is the Saturn port or STV arcade?

EDIT: @reeone, you are right because game changes between 352 and 704 on X often, you aproach is the way to go scaling x10 and x5 always integer.

In this case, you can set only for this game on pgconfig directory:
 -Die Hard Arcade.ss.switchres.ini with 3520x0 on user_mode
 -Die Hard Arcade.ss.cfg with video.resolution_switch switchres

I uploaded a emu4crt that fix constant changes, but i recommend @reeone solution using 3520 super resolution with switchres because with this game changes with very short period times.
https://drive.google.com/file/d/1Sx5kCFbSx20zwyid5i2ZvEmpKqeB62tb/view?usp=share_link

« Last Edit: November 07, 2022, 02:20:07 pm by psakhis »

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #308 on: November 08, 2022, 06:06:02 am »
Since I'm only using mednafen for STV does it make sense to put it as global setting? Sorry I'm not very experienced with mednafen.

Do I have to create a 3520 resolution? I did the settings and I end up with a black screen. Output file tells me that no matching mode could be found. Makes sense I guess. Question is which resolutions I should create.
« Last Edit: November 08, 2022, 10:03:37 am by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #309 on: November 08, 2022, 11:41:21 am »
What value do you have in mednafen.cfg for video.resolution_switch?

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #310 on: November 08, 2022, 12:45:40 pm »
Originally super but after your comment turned it to switchres. Then changed the user value in the switchres.ini .

Find attached the stdout.

edit:

I created 3520 resolutions, x240, x480, 288 and 576. The game does show now but ingame is horizontaly stretched. Screentitle is fine, ingame is stretched. For radiant silvergun the other way around, screentitle stretched and ingame fine.

I attached a second file!

edit2: stretching in Die Hard seems very dependent on the screen. In some of the screens (second one for example) is fine, first one is stretched.
« Last Edit: November 08, 2022, 01:43:32 pm by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #311 on: November 08, 2022, 01:54:36 pm »
Interesting, stdout.txt seems you don't have crt emudriver or your switchres.ini isn't fine.
  VIDEO - Video_SetSwitchres - called for 320x240@59.764793 (0)
  Switchres: could not find a video mode that meets your specs
  sr_switch_to_mode: switching not required


With switchres and crt emudriver you don't need install modelines.
Do you tried the gdrive version of yesterday?

Here i don't have black bars, but i don't know how is your modeline installed.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #312 on: November 08, 2022, 02:35:08 pm »
First stdout was without 3520 modes.

On GM I use super resolutions, no problems. Only a couple of natives installed for Model 2 and Desktop. CRT Emudriver is running fine. I will try your new version.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #313 on: November 08, 2022, 02:52:32 pm »
Installed new version and have better results. Especially in games that use interlaced 704x480 I get fat borders left and right (VF Kids for example). It chooses Modeline "2560x480_60i 15.688258KHz 59.764793Hz".

I would still have to use switchres with 3520 resolutions though, Super mode is still completely off. No idea why. Modelines look all good and crisp in arcade osd.
« Last Edit: November 08, 2022, 02:57:06 pm by Endprodukt »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #314 on: November 08, 2022, 03:49:28 pm »
Something is wrong in your switchres.ini

stdout.txt -> not detect any valid native resolution from switchres, maybe min pixel clock issue from switchres.ini
stdout2.txt -> it's ok, setting 3520x0
stdout3.txt -> it's wrong on some way and switchres isn't detect 3520x0
SwitchRes: missing parameter in user modeline
  3520x0

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #315 on: November 08, 2022, 06:10:25 pm »
Yeah even after fixing it was still not working nicely. I went with native resolutions for now and it's working reliably. Thank you for the help and the work.

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #316 on: November 09, 2022, 01:52:58 pm »
@Endprodukt, test this build. It's optimized for native, bypassing false vdp render positives changes.

https://drive.google.com/file/d/1YQosu9DJl0TTpWI2wk-sZ59ehfWDOrXP/view?usp=share_link

You will be notice more stable changes on Die Hard Arcade, this game has a lot of false positives.

Endprodukt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:November 14, 2023, 12:54:43 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #317 on: November 09, 2022, 04:56:56 pm »
@Endprodukt, test this build. It's optimized for native, bypassing false vdp render positives changes.

https://drive.google.com/file/d/1YQosu9DJl0TTpWI2wk-sZ59ehfWDOrXP/view?usp=share_link

You will be notice more stable changes on Die Hard Arcade, this game has a lot of false positives.

Thank you, I will test it tomorrow! I had more luck with native resolutions now. :)

Dalba

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:March 23, 2024, 07:08:28 pm
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #318 on: November 10, 2022, 04:56:25 pm »
Hello,
I "may" have find a bug specific to emu4crt. Using snes_faust module, if you launch a game like seiken densetsu 3 that use 512 horizontal resolution when in menu or when a message box pop up, screen become zoom in 2x... I tried with native or super resolution and result is the same.
Below 2 screenshots showing the problem :
- Game menu :


- text box (only text box is zoomed in) :


This behavior doesn't appear on regular mednafen, so i guess it's relative with native and super resolution...
You can easily reproduce this problem going in start menu of Secret of Mana too.

« Last Edit: November 10, 2022, 04:58:30 pm by Dalba »

psakhis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 451
  • Last login:March 26, 2024, 12:18:54 pm
  • I want to build my own arcade controls!
Re: emu4crt Mednafen mod - update 1.26.1
« Reply #319 on: November 11, 2022, 02:34:19 am »
Hi @Dalba,
Can you attach stdout.txt?

Are you test with switchres option? Or only with native and super?

EDIT: Ups, here too! Fixed. https://drive.google.com/file/d/1OdpKdz3EETaI7O5CVVMzuJUT3EhGT_3T/view?usp=sharing

I will update git too, thank you!
« Last Edit: November 11, 2022, 02:56:49 am by psakhis »