Previous Thread
Next Thread
Print Thread
#120742 04/11/22 11:49 AM
Joined: Dec 2011
Posts: 43
Likes: 2
M
Member
OP Offline
Member
M
Joined: Dec 2011
Posts: 43
Likes: 2
I am trying to disable the screen curvature when using BGFX "crt-geom" shader. I know I can do it by modifying the .json file, but wouldn't that get overwritten on MAME update? Is there somewhere else I can set this that's a bit more permanent?

Thanks for any assistance!

Last edited by Mr. Grynch; 04/11/22 11:49 AM.
Joined: Apr 2006
Posts: 733
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 733
I didn't have any problem on changing a setting.

Rename json to txt.

Look for "text": "Enable curvature", in the txt file.

Change "default": 1.0, to "default": 0.0,

Save it as crt-geom.json

Make sure that you set it to "Save as type" "All files" before save it.

Permit now as long that you don't replace this file.


Windows 10 Home 64-bit / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 16 GB
Joined: May 2009
Posts: 2,036
Likes: 77
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,036
Likes: 77
Any even remotely modern text editor can handle a JSON file without going through that renaming rigamarole, but for the most part, Dullaron's answer is pretty much it for the time being, since there isn't currently a permanent place for runtime-tweakable settings when it comes to BGFX.

HLSL (as opposed to BGFX) is able to do it since the pipeline is largely fixed, so it can pull the slider settings from the INI file. Since BGFX can handle whatever shader chain the user wants to throw at it, even switching chains at run-time, it presents a bit more of a logistical issue.

Realistically, tweaking the setting in the JSON file is currently the only way, but I'm going to break with the usual advice that MAMEdevs give of "update all auxiliary MAME files when moving to a newer version" and instead suggest updating everything but the modified JSON file. Even if the contents of the shaders are updated, and even if the contents of the effects themselves are updated, the main chain file itself is unlikely to change.

1 member likes this: Mr. Grynch
Joined: Dec 2011
Posts: 43
Likes: 2
M
Member
OP Offline
Member
M
Joined: Dec 2011
Posts: 43
Likes: 2
Originally Posted by Just Desserts
Realistically, tweaking the setting in the JSON file is currently the only way, but I'm going to break with the usual advice that MAMEdevs give of "update all auxiliary MAME files when moving to a newer version" and instead suggest updating everything but the modified JSON file. Even if the contents of the shaders are updated, and even if the contents of the effects themselves are updated, the main chain file itself is unlikely to change.

All respect to Dullaron, his response didn't really address my question, since I never said I had any problem editing a .json file. I am just concerned about losing it when I update MAME. What I'm going to do for now is keep a backup with a suffix attached, so MAME can overwrite the current file. I'll have to diff the files to incorporate my changes since its possible new parameters could be added to future versions that my backup would not have. Wouldn't want to overwrite those!

Thanks!

Last edited by Mr. Grynch; 04/11/22 06:05 PM.
Joined: May 2009
Posts: 2,036
Likes: 77
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,036
Likes: 77
Originally Posted by Mr. Grynch
All respect to Dullaron, his response didn't really address my question, since I never said I had any problem editing a .json file.

I was pretty baffled by his response as well, but then I realized that D here is a bit, uh, "touched" (he's been around the community for a while and things came to light some years back), so reading too far into his attempts to help is generally inadvisable.

Happy to help by at least answering your question that there's no truly permanent way of saving tweaks across versions of MAME, and sorry that I couldn't give better news in that regard.

1 member likes this: Mr. Grynch

Link Copied to Clipboard
Who's Online Now
2 members (Augusto, 1 invisible), 20 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,086
Posts119,088
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com