Hi all,
A progress report on the macOS port, since my first post in this thread. It is still unofficial and still a fork, but a lot has happened, so here is what exists today, what changed, and how well it actually runs.
DOWNLOAD (Apple Silicon only)
https://github.com/A...releases/latest
A ready-to-run zip. Please use it and not the source ZIP: the source does not contain the compiled shaders (Program/Content/*.mgfx), which gave a tester a black screen. The zip includes them. There is a user manual in the zip and in the repository (macOS/USER-MANUAL.md).
WHAT IS NEW SINCE MY FIRST POST
- One focused pull request went upstream and was merged (#1265, Path.Combine for the train-car plugin path). Thank you to rwf-rr, James and Chris for the review. I plan to keep sending small, focused PRs to master, in the style you asked for.
- A Mac app ("Open Rails.app"). The Windows Menu.exe is Windows Forms and cannot run here, so I wrote a replacement: a small Swift app that shows a local menu page in its own window. Its layout and behaviour were taken from Source/Menu/MainForm.Designer.cs and MainForm.cs (installation profile, route, Explore or Activity, locomotive, consist, starting at / heading to, time, season, weather, details panel, Content, Options, Tools, Logging). Timetable, Resume/Replay and Multiplayer are shown greyed out. I do not propose this menu for upstream; I know the menu needs its own thread and Eto.Forms is the direction discussed. It is only a stopgap so Mac users can start a route without typing a command line.
- Options dialog: full screen, "show the whole 2D cab" (Letterbox2DCab, for 4:3 cabs on widescreen), window size, and viewing distance.
- Fixed: saving a game crashed. CommandLog used BinaryFormatter for the .replay file, which is disabled by default in .NET 8 and removed in .NET 9 and later. Saving now writes the .save first and treats the replay file as optional (it warns instead of crashing).
- Fixed: black patches on textures with transparency. DDSLib uploaded DXT1/3/5 as SurfaceFormat.Dxt1/3/5. On MonoGame's OpenGL backend that format has no alpha, so decals, markings and window cut-outs (for example 1.dds in the BRW LHB coach pack is 94% transparent) rendered as black rectangles. On non-Windows builds those levels are now decompressed on the CPU and uploaded as RGBA, as .ace already was.
- Frame rate on big scenes: on KonkanIR the in-game HUD showed about 34,000 render primitives per frame at ViewingDistance 2000 and about 18,000 at 1000, and about 70,000 when looking back along a long train (12 FPS at that moment). The release therefore ships with ViewingDistance 1000 (changeable in Options).
HOW IT RUNS (honest numbers, one machine)
Tested on a MacBook Air 13-inch, Apple M5, 16 GB, macOS Tahoe 26.7.1, .NET 10 runtime. I do not have a rigorous benchmark.
- Content: KonkanIR and the Great Zig Zag content (Indian Railways and NSW stock) here; a tester also ran an MSTS US route (Northeast Corridor, Metroliner) and reported it working.
- Load time: about 12 to 14 seconds for KonkanIR with a single locomotive; about 30 to 50 seconds with a 26-car consist (large textures).
- Frame rate: roughly 30 to 60 FPS in a 1280x720 window, depending on the scene. The Mac build runs the render loop uncapped while loading (otherwise loading is throttled to about 10 GPU operations per second).
- Memory: DXT textures are now uncompressed in GPU memory, so it uses more than the Windows build.
HOW STABLE IS IT
Short answer: usable, not yet proven.
- Multiple sessions on KonkanIR, with one locomotive and with a 26-car train, no crashes and no exceptions in the log. Longest single session was around ten minutes.
- Not tested: long sessions, activities with AI traffic, Timetable mode, Multiplayer, RailDriver, Intel Macs, and most of the signalling and physics features beyond a train driving normally.
- Known gaps: some sounds are missing, and that depends on the content (sound files referenced by a model but absent from its pack). The app is not notarized by Apple, so the quarantine flag must be removed once (xattr -dr com.apple.quarantine). The F-keys need fn on a Mac keyboard.
WHAT I WOULD LIKE TO DO NEXT
- More small PRs to master, each portable and with no effect on Windows. Candidates: the BinaryFormatter handling in CommandLog, and the DXT transparency handling in DDSLib (I would write it with OperatingSystem checks rather than #if, as James suggested). Tell me which you would actually want and I will prepare them separately.
- Report anything you find. A screenshot plus OpenRailsLog.txt helps a lot. Issues can go to
https://github.com/A...RAIL-MAC/issues, please do not bother the Open Rails team with problems in this fork.
If anyone with a Mac wants to try it, I would be glad to hear what works and what does not.
Aman Prajapati (India)