Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Can't turn off HLSL's "phosphor_life" #111584
12/10/17 02:48 PM
12/10/17 02:48 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
I was trying some fast scrolling games with the HLSL filter and noticed that they looked too blurry to be playable, so I went to disable the "phosphor_life" from QMC2's Options/Emulator/Global configuration/Direct3D HLSL/phosphor_life and... oddly enough, it turned out it already has a default value of "0", which is supposed to disable it. Using really low values like "0,00000001" can make it unnoticeable as a workaround, though.

Using latest versions of both QMC2 and MAME.


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111586
12/10/17 04:20 PM
12/10/17 04:20 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
MAME's default for the setting may have changed. Could you run "Tools" -> "Clean up" -> "Check template map" from the menu and send me the output that's printed to the front-end log? And which version of MAME is that?

Last edited by qmc2; 12/10/17 04:22 PM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111590
12/10/17 07:32 PM
12/10/17 07:32 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
I get this in the front-end log when doing that:
Quote
20:32:46.437: checking template configuration map against selected emulator
20:32:55.201: done (checking template configuration map against selected emulator)
20:32:55.202: check results: 0 differences


I'm using MAME 0.192.


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111592
12/10/17 09:25 PM
12/10/17 09:25 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Thanks. Well, that means QMC2 is up-to-date and doing it right. That is, when the default is 0 and and you don't change the value, QMC2 will not pass it on the MAME command line. If the behavior is then not what you expect, it's a MAME related question, not front-end one. Or what do you think is wrong here?

Last edited by qmc2; 12/10/17 09:29 PM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: qmc2] #111593
12/10/17 09:39 PM
12/10/17 09:39 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
Originally Posted by qmc2
That is, when the default is 0 and and you don't change the value, QMC2 will not pass it on the MAME command line. If the behavior is then not what you expect, it's a MAME related question, not front-end one. Or what do you think is wrong here?

Well, QMC2 says:
Quote
Phosphorescence decay rate (0.0 is instant 1.0 is forever)

And 0.0 is not instant, but shows instead whatever values MAME has set by default (which are not 0.0).


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111594
12/10/17 11:12 PM
12/10/17 11:12 PM
Joined: Aug 2004
Posts: 1,358
Robbbert Offline
Very Senior Member
Robbbert  Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,358
If you don't pass a value on the command line, the next port of call is mame.ini (plus any other ini's mame may consider). Any of them may contain an incorrect value for phosphor_life. Only if there's no ini files, will mame then use its internal default (whatever that may be).

Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111598
12/11/17 08:06 AM
12/11/17 08:06 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Yep. It could be mame.ini / <some>.ini in the way. That's why I recommend to disable "readconfig" if you want to be sure that QMC2 is the only instance configuring MAME.

There's an FAQ about this.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111599
12/11/17 08:07 AM
12/11/17 08:07 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Originally Posted by ICEknight
Well, QMC2 says:
Quote
Phosphorescence decay rate (0.0 is instant 1.0 is forever)

And 0.0 is not instant, but shows instead whatever values MAME has set by default (which are not 0.0).

Well, QMC2 just repeats what "mame -showusage" said about the option at the time it was added wink.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: qmc2] #111605
12/11/17 12:01 PM
12/11/17 12:01 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
Originally Posted by qmc2
Yep. It could be mame.ini / <some>.ini in the way.

There's no mame.ini in my MAME folder, I'm using a clean installation. The only *.ini files are those which come bundled with the official release, inside "ini/presets".

The problem here may be that QMC2 expects one single default value of 0.0, which MAME may have built in but won't use whenever HLSL is active, since MAME's automatically assigned preset ini files don't have a default value of 0.0 (they range between 0.25 to 0.65).

I think that the solution in this case could be for QMC2 to, whenever it finds a numerical value here, always send it to the command line even if it's MAME's theoretical 0.0 default (since, when HLSL is active, the real default value is never 0.0), and maybe use a "null" value for keeping the preset defaults? This would avoid having to disable readconfig and losing the rest of the settings in the automatic presets.


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111606
12/11/17 03:10 PM
12/11/17 03:10 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
No, the solution should be to disable "readconfig" in the global emulator configuration as I said above. Have you tried it? Or change the preset ini files if you don't like their default values. I cannot handle every possible combination here... for QMC2, the emulator's default value is the one that's printed when you run "mame -noreadconfig -showconfig".


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: qmc2] #111608
12/11/17 06:59 PM
12/11/17 06:59 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
Originally Posted by qmc2
No, the solution should be to disable "readconfig" in the global emulator configuration as I said above. Have you tried it?
That disables everything else in MAME's presets and I only wanted to remove the phosphorescence decay... =\
Quote
Or change the preset ini files if you don't like their default values. I cannot handle every possible combination here... for QMC2, the emulator's default value is the one that's printed when you run "mame -noreadconfig -showconfig".
Yeah, I'll just manually edit the ini files since changing a few numbers is no big deal at all. I just thought that it would be possible to disable it from QMC2 since, well, it does say that entering a value of 0 means no decay.

Thanks in any case.


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111618
12/12/17 08:47 AM
12/12/17 08:47 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
What I could probably do in the future is to add a "enforce default" switch to every option so you could decide to explicitly pass the default on the command line in such cases. That's better than changing an established concept.

EDIT: Looks like I can do this quite easily... expect it in the next version wink.

Last edited by qmc2; 12/12/17 09:55 AM.

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: qmc2] #111628
12/13/17 06:15 PM
12/13/17 06:15 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Originally Posted by qmc2
Looks like I can do this quite easily... expect it in the next version wink.

This is working now in SVN r8253.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #111759
12/20/17 03:52 PM
12/20/17 03:52 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
Nice, thanks!


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #112242
01/19/18 10:00 PM
01/19/18 10:00 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
I have to say that I wasn't able to find the "enforce default" switch... Where is it?


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #112246
01/20/18 10:59 AM
01/20/18 10:59 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
There's no release with it yet, it's in SVN.

The switch is part of the "actions" column of the emulator configuration - global or machine-specific. It's the right-most (toggle-)button with the "shield" symbol:

[Linked Image]


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: qmc2] #112247
01/20/18 11:15 AM
01/20/18 11:15 AM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Originally Posted by qmc2
There's no release with it yet, it's in SVN.

I could create an intermediate Win32 build (64-bit only) at the weekend, though...


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #112248
01/20/18 12:12 PM
01/20/18 12:12 PM
Joined: May 2008
Posts: 4,892
Germany
Q
qmc2 Offline
Very Senior Member
qmc2  Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,892
Germany
Here's an intermediate build to test:

http://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.193-SVN-r8273.exe (or)
http://qmc2.batcom-it.net/download/win32/qmc2-win32-x64-0.193-SVN-r8273.7z

Changes since 0.192 so far:

  • fix: sample- & software-state checks: merge the process output channels (stdio and stderr) because -verifysamples and -verifysoftlist use both channels in the meantime
  • fix: corrected the restoration of the last machine list view during initialization for non-WIP builds
  • fix: manual scanner: corrected the font used for logging (general log-font)
  • imp: improved performance when searching for machines
  • imp: removed the slot-info cache and all related UI hooks as it's no longer required for the upcoming new device configurator
  • imp: updated the emulator configuration templates to MAME 'git latest' (added core state / playback options 'rewind' and 'rewind_capacity', added core miscellaneous option 'nvram_save')
  • imp: updated category.ini to MAME 'git latest'
  • new: emulator options: added an enforce default toggle switch to every option's action items so the user can decide to explicitly pass the default value to the emulator (which QMC2 would usually not do)
  • wip: reimplementing the device configurator for modern MAME - WIP-info: this doesn't work properly yet and it won't load, produce or save any useful slot- & device-setups for you at the moment, the feature isn't WIP-ified though as it's already too geared with rest of the UI!

PS: It turned out that it was good to try on Windows since the VC++ compiler was slightly confused by some of the things I've added lately, but I was able to work around it wink.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]

We're searching for QMC2 translators and support for existing translations. Interested? See here!
Re: Can't turn off HLSL's "phosphor_life" [Re: ICEknight] #112280
01/22/18 07:50 PM
01/22/18 07:50 PM
Joined: Mar 2013
Posts: 254
I
ICEknight Offline OP
Senior Member
ICEknight  Offline OP
Senior Member
I
Joined: Mar 2013
Posts: 254
Cool! That works like a charm, thanks! smile


LCD artwork cleanups: https://mega.nz/#F!uFYSzK7S!U-lJon9jsqyoCX_3y7_KLA
Page 1 of 2 1 2

Moderated by  qmc2 

Who's Online Now
1 registered members (Darkstar), 51 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,575
Posts112,029
Members4,812
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.098s Queries: 14 (0.033s) Memory: 5.8139 MB (Peak: 6.0948 MB) Zlib enabled. Server Time: 2018-09-20 08:29:49 UTC