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: BGFX or D3D9Ex  (Read 2919 times)

0 Members and 1 Guest are viewing this topic.

Housemusic

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:September 14, 2021, 03:34:02 pm
  • I want to build my own arcade controls!
BGFX or D3D9Ex
« on: August 26, 2018, 11:00:35 am »
Hi all,

I read GrooveMame's documentation up and down but still don't understand which video mode to use: BGFX or D3D9Ex.

My Setup:
Windows 10 64bit / Core i5-4690s / Radeon HD4350
Currently using an LCD Monitor 1980x1020p but will change to 15kHz CRT in future

Groove Mame documentation recommends to use D3D9Ex:
Groovy MAME: Installation and quick configuration
Quote
The advantage of Direct 3-D 9 Ex over Direct 3-D 9 is that, unlike with the latter, there's no need to enable frame delay in order to force the frame latency to the minimum allowed by the driver and therefore avoid the dreaded frame queues present in the ATI video drivers when Direct 3-D is used, which add a lag of 2-3 frames.

But with SwitchRes 016alpha1 support for D3D9Ex has been dropped because it can be replaced by BGFX. With SwitchRes 016alpha4 D3D9Ex was re-added again:
GroovyMAME 0.200 - Switchres v0.017i
Quote
What's new in SwitchRes v0.016 alpha 4 (December 2016)
- Full implementation of dynamic mode switching on the BGFX renderer (D3D11 backend)
- Re-added D3D9Ex support, now as a separate build.
What's new in SwitchRes v0.016 alpha 1 (August 2016)
- Dropped Direct3D 9ex support. LCD owners who used -video d3d9ex in order to enjoy reduced latency are suggested to move to -video bgfx, which now implements the same latency reduction method (SetMaximumFrameLatency)

I don't quite understand why has it been re-added. I thought BGFX fully replaces the functionality and performance of D3D9Ex?

And what would you recommend to use with my setup?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: BGFX or D3D9Ex
« Reply #1 on: August 29, 2018, 07:58:32 am »
I don't quite understand why has it been re-added. I thought BGFX fully replaces the functionality and performance of D3D9Ex?

It was readded because after some tests it turned out D3D9ex still had the lowest latency. Hopefully in the future we can dedicate some efforts to make the BGFX backend match D3D9ex on that regard.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

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

Housemusic

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:September 14, 2021, 03:34:02 pm
  • I want to build my own arcade controls!
Re: BGFX or D3D9Ex
« Reply #2 on: August 29, 2018, 02:20:51 pm »
Thanks Calamity, understood. Then I'll go with D3D9Ex until I hear from you that BGFX has matched or gets better in that matter.

Thanks for all your great work you do for this community.


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9401
  • Last login:Today at 04:19:05 pm
  • Designated spam hunter
Re: BGFX or D3D9Ex
« Reply #3 on: August 29, 2018, 10:43:01 pm »
Might be time to run those BGFX and D3D9Ex latency tests again.   ;D

MAME 0.201

It’s the end of another month, and time for your scheduled MAME release, with more of everything we know you love.  In a last-minute update, we slipped in a major performance for bgfx video output.  It’s particularly noticeable when using cropped artwork, and there’s no longer a big performance penalty for bringing up the menu over the emulation on macOS.


Scott