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 fork - update 1.24.1 A11  (Read 25146 times)

0 Members and 1 Guest are viewing this topic.

fuchi_jeg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:Today at 11:15:58 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 95
  • Last login:Today at 02:16:33 pm
    • 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: 49
  • Last login:Today at 11:15:58 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: 49
  • Last login:Today at 11:15:58 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: 95
  • Last login:Today at 02:16:33 pm
    • 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 49
  • Last login:Today at 11:15:58 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 49
  • Last login:Today at 11:15:58 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 95
  • Last login:Today at 02:16:33 pm
    • 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 230
  • Last login:March 25, 2020, 11:55:34 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 95
  • Last login:Today at 02:16:33 pm
    • 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: 230
  • Last login:March 25, 2020, 11:55:34 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 95
  • Last login:Today at 02:16:33 pm
    • 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: 55
  • Last login:March 29, 2020, 03:31:30 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: 95
  • Last login:Today at 02:16:33 pm
    • 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.