|
Opengl vs D3D
#364972 - 04/06/17 11:43 PM
|
|
|
Which is faster in MAME, D3D or Opengl?
|
|
|
Tafoid |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3135
|
Loc: USA
|
|
Send PM
|
|
|
|
> Which is faster in MAME, D3D or Opengl?
Like anything in emulation, it depends on the graphics hardware and/or drivers. Some machines may excel at one, or the other. It can only be determined by testing yourself. For Windows, d3d, opengl and bgfx are all valid options.
mame pacman -nothrottle -str 30 -video d3d mame pacman -nothrottle -str 30 -video opengl mame pacman -nothrottle -str 30 -video bgfx
Just note the higher percentage means the faster against normal speed a machine is running. From there, you can make your own conclusions.
|
|
|
|
Re: Opengl vs D3D
[Re: Tafoid]
#364980 - 04/07/17 04:14 AM
|
|
|
mame pacman -nothrottle -str 30 -video d3d ->141.85% ->90.00% mame pacman -nothrottle -str 30 -video opengl ->1131.77% ->1170.22% mame pacman -nothrottle -str 30 -video bgfx ->99.00% -98.99
2 runs each on my new (lowest end... 1050 video card) "gaming" laptop. Curious on the speed drop on the second d3d and bgfx runs, but a speed bump on the 2nd opengl. And... the HUGE difference. Why would the latest video technology throw-up at d3d, and excel at opengl? my settings must be whacked...
While I'm at it... how do I fix the fact that after every run, I get:
plugins/data_story.lua:4: attempt to call a null value (method 'get_char_width')
Edit: disabled plugins for now. Got rid of the above warning. 99% d3d on pacman is still curious though
|
Just broke my personal record for number of consecutive days without dying!
|
|
Qun Mang |
Legend of Link
|
|
|
Reged: 12/12/03
|
Posts: 746
|
Loc: Hidden Hyrulian city Lurkopolis
|
|
Send PM
|
|
|
Re: Opengl vs D3D
[Re: Tafoid]
#364981 - 04/07/17 05:49 AM
|
|
|
My system apparently favors D3D (Intel Core i5-4570, GTX 970, Win10 x64):
mame64 pacman -nothrottle -str 30 -video d3d Average speed: 4430.15% (29 seconds)
mame64 pacman -nothrottle -str 30 -video opengl Average speed: 197.96% (29 seconds)
mame64 pacman -nothrottle -str 30 -video bgfx Average speed: 573.56% (29 seconds)
Ran twice with similar results. I remember nvidia GPUs once favored OpenGL, but I guess that was awhile ago.
|
|
|
|
Re: Opengl vs D3D
[Re: URherenow]
#364986 - 04/07/17 07:51 AM
|
|
|
|
|
|
> Which is faster in MAME, D3D or Opengl? While there is no a framerate drop and games run at full speed with D3D there is 'slower' gameplay and 'slower' graphics movement (graphics display sync) than Opengl. It becomes even more 'slow' when Triple Buffering or Vsync is enabled.
|
|
|
|
|
And is 'slower' than the real arcade.
|
|
|
|
|
> And is 'slower' than the real arcade. Emulation speed is slower than the real arcade.
|
|
|
Tafoid |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3135
|
Loc: USA
|
|
Send PM
|
|
|
Re: Opengl vs D3D
[Re: URherenow]
#364993 - 04/07/17 12:26 PM
|
|
|
> mame pacman -nothrottle -str 30 -video d3d ->141.85% ->90.00% > mame pacman -nothrottle -str 30 -video opengl ->1131.77% ->1170.22% > mame pacman -nothrottle -str 30 -video bgfx ->99.00% -98.99 > > 2 runs each on my new (lowest end... 1050 video card) "gaming" laptop. Curious on the > speed drop on the second d3d and bgfx runs, but a speed bump on the 2nd opengl. > And... the HUGE difference. Why would the latest video technology throw-up at d3d, > and excel at opengl? my settings must be whacked... > > While I'm at it... how do I fix the fact that after every run, I get: > > plugins/data_story.lua attempt to call a null value (method 'get_char_width') > > Edit: disabled plugins for now. Got rid of the above warning. 99% d3d on pacman is > still curious though
RE: Lua problem - are you positive you've updated all files when updating MAME binary? If you use mismatched plugin files with current MAME, you do have a larger chance of issues/error showing. The -nothrottle doesn't cancel any your forced vsync commands for MAME, so it sounds like MAME is already syncing and not allowing unthrottle. You could try the same thing but making sure you have all syncing commands OFF.
|
|
|
Tafoid |
I keep on testing.. testing.. testing... into the future!
|
|
|
Reged: 04/19/06
|
Posts: 3135
|
Loc: USA
|
|
Send PM
|
|
|
Re: Opengl vs D3D
[Re: Qun Mang]
#364994 - 04/07/17 12:27 PM
|
|
|
> My system apparently favors D3D (Intel Core i5-4570, GTX 970, Win10 x64): > > mame64 pacman -nothrottle -str 30 -video d3d > Average speed: 4430.15% (29 seconds) > > mame64 pacman -nothrottle -str 30 -video opengl > Average speed: 197.96% (29 seconds) > > mame64 pacman -nothrottle -str 30 -video bgfx > Average speed: 573.56% (29 seconds) > > Ran twice with similar results. I remember nvidia GPUs once favored OpenGL, but I > guess that was awhile ago.
I'm going to guess that in your graphics driver you have driver some internal setting set to forcibly sync video to signal and is not allowing you to unthrottle, even if MAME allows it. Check your settings via your card's desktop manager software and/or make sure vsync is off in MAME before retesting.
|
|
|
Qun Mang |
Legend of Link
|
|
|
Reged: 12/12/03
|
Posts: 746
|
Loc: Hidden Hyrulian city Lurkopolis
|
|
Send PM
|
|
|
Re: Opengl vs D3D
[Re: Tafoid]
#364995 - 04/07/17 03:46 PM
|
|
|
> > My system apparently favors D3D (Intel Core i5-4570, GTX 970, Win10 x64): > > > > mame64 pacman -nothrottle -str 30 -video d3d > > Average speed: 4430.15% (29 seconds) > > > > mame64 pacman -nothrottle -str 30 -video opengl > > Average speed: 197.96% (29 seconds) > > > > mame64 pacman -nothrottle -str 30 -video bgfx > > Average speed: 573.56% (29 seconds) > > > > Ran twice with similar results. I remember nvidia GPUs once favored OpenGL, but I > > guess that was awhile ago. > > I'm going to guess that in your graphics driver you have driver some internal setting > set to forcibly sync video to signal and is not allowing you to unthrottle, even if > MAME allows it. Check your settings via your card's desktop manager software and/or > make sure vsync is off in MAME before retesting.
That would do it. I was going to reply something about the speed being 198%, but then I remembered my monitor refresh is set at 120Hz.
Update: mame64 pacman -nothrottle -str 30 -video opengl Average speed: 3713.51% (29 seconds)
D3D still a little faster.
|
|
|
|
Re: Opengl vs D3D (EDIT)
[Re: krick]
#365015 - 04/08/17 10:50 AM
|
|
|
ahh... my new laptop came with windows 10 so it probably doesn't have dx9 stuff on it at all. What does it use in this case (fallback)? How did it not just throw an error at me? I can't try until I'm home, but I'll be sure to do that.
Thanks!
EDIT:
Manually edited the .ini to remove vsync and syncrefresh
-video d3d -> 748.83% -video bgfx -> 451.45% -video opengl -> 1166.60%
MUCH better, but still really slow. Still favors opengl. Not sure how installing dx9 will make a difference, but I'll try in a few days.
Only settings I see in the nvidia control panel are 3d settings
|
Just broke my personal record for number of consecutive days without dying!
|
|
|
Re: Opengl vs D3D
[Re: URherenow]
#365019 - 04/08/17 08:19 PM
|
|
|
I have the same weird throttling issue with D3D and OpenGL:
Code:
mame64 pacman -nothrottle -str 30 -video d3d Average speed: 99.00% (29 seconds)
mame64 pacman -nothrottle -str 30 -video opengl Average speed: 99.00% (29 seconds)
mame64 pacman -nothrottle -str 30 -video bgfx Average speed: 849.29% (29 seconds)
I don't understand where it's coming from, because in my mame.ini both waitvsync and syncrefresh are set to 0.
Any ideas?
|
|
|
Qun Mang |
Legend of Link
|
|
|
Reged: 12/12/03
|
Posts: 746
|
Loc: Hidden Hyrulian city Lurkopolis
|
|
Send PM
|
|
|
Re: Opengl vs D3D
[Re: apeman]
#365028 - 04/08/17 10:52 PM
|
|
|
> I have the same weird throttling issue with D3D and OpenGL: > > mame64 pacman -nothrottle -str 30 -video d3d > Average speed: 99.00% (29 seconds) > > mame64 pacman -nothrottle -str 30 -video opengl > Average speed: 99.00% (29 seconds) > > mame64 pacman -nothrottle -str 30 -video bgfx > Average speed: 849.29% (29 seconds) > > I don't understand where it's coming from, because in my mame.ini both waitvsync and > syncrefresh are set to 0. > > Any ideas?
Check Tafoid's response to me- in my case, at least for OpenGL since D3D was fine for me, it was in the "Manage 3D Settings" section of the NVIDIA Control Panel software. I just changed Vertical Sync from "use the 3D application setting" to "off" and clicked "Apply." Problem solved.
|
|
|
|
Re: Opengl vs D3D
[Re: Qun Mang]
#365033 - 04/09/17 01:29 AM
|
|
|
> Check Tafoid's response to me- in my case, at least for OpenGL since D3D was fine for > me, it was in the "Manage 3D Settings" section of the NVIDIA Control Panel software. > I just changed Vertical Sync from "use the 3D application setting" to "off" and > clicked "Apply." Problem solved.
Bingo! That did it, thanks.
Quote:
mame64 pacman -nothrottle -str 30 -video d3d Average speed: 2250.57% (29 seconds)
mame64 pacman -nothrottle -str 30 -video opengl Average speed: 4678.96% (29 seconds)
mame64 pacman -nothrottle -str 30 -video bgfx Average speed: 839.93% (29 seconds)
i7-6700K, GTX 960, Windows 10 x64
|
|
|