Give MAME the CRT look the old arcade had #72

Open
charles wants to merge 0 commits from feat/mame-crt-shader into main
Owner

Taken from the backup rather than chosen. The Windows arcade mame.ini says video bgfx, bgfx_screen_chains crt-geom, hlsl_enable 0, and its crt-geom.json is the stock chain byte for byte once CRLF is accounted for. No slider state saved anywhere, so it is the shipped chain at defaults.

-video bgfx as well as the chain: a chain is BGFX renderer, not an overlay, so setting the chain alone is read and ignored.

Smoke-tested on the cabinet: crt-geom and crt-geom-deluxe each ran a real game for 3 seconds and exited clean.

Taken from the backup rather than chosen. The Windows arcade mame.ini says video bgfx, bgfx_screen_chains crt-geom, hlsl_enable 0, and its crt-geom.json is the stock chain byte for byte once CRLF is accounted for. No slider state saved anywhere, so it is the shipped chain at defaults. -video bgfx as well as the chain: a chain is BGFX renderer, not an overlay, so setting the chain alone is read and ignored. Smoke-tested on the cabinet: crt-geom and crt-geom-deluxe each ran a real game for 3 seconds and exited clean.
Taken from the machine this cabinet replaces rather than chosen. Its
mame.ini, read off partition 5 of the backup image:

    video               bgfx
    bgfx_screen_chains  crt-geom
    hlsl_enable         0

and its crt-geom.json is the stock chain byte for byte once CRLF is accounted
for -- 5441 bytes against 5248, a difference of exactly 193 bytes over exactly
193 lines. No slider state in default.cfg either. So the effect is the shipped
chain at its defaults, and reproducing it needs no files, only the setting.

-video bgfx as well as the chain, because a chain is BGFX's renderer rather
than an overlay: set the chain alone and MAME reads it, ignores it, and draws
the flat image it always did, which looks exactly like a shader that silently
does not work.

Verified on the cabinet before wiring: crt-geom and crt-geom-deluxe each ran a
real game for three seconds and exited clean, so this GPU handles the chain.

Configurable, and empty turns it off. HLSL is not an option on Linux and was
switched off on Windows too, so it is not offered.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nz3es8PajUzXmqJJiK6yRB
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/mame-crt-shader:feat/mame-crt-shader
git switch feat/mame-crt-shader

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feat/mame-crt-shader
git switch feat/mame-crt-shader
git rebase main
git switch main
git merge --ff-only feat/mame-crt-shader
git switch feat/mame-crt-shader
git rebase main
git switch main
git merge --no-ff feat/mame-crt-shader
git switch main
git merge --squash feat/mame-crt-shader
git switch main
git merge --ff-only feat/mame-crt-shader
git switch main
git merge feat/mame-crt-shader
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/arcade-nix!72
No description provided.