Elvas Tower: macOS port of Open Rails - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 4 Pages +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

macOS port of Open Rails native port - no emulation needed Rate Topic: -----

#46 User is online   James Ross 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 5,591
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 10 October 2026 - 06:41 AM

View Postgoku, on 09 October 2026 - 05:55 PM, said:

Of course you could include TSRE based tool. But it won't be minimal because the tool requires large part of TSRE for rewriting files when conflicting references occur and filename change fails to solve issue.

I can see three different groups who would care about this cross-platform case issue:

  • Creators building content using supporting tools like TSRE: everything works automatically.
  • Creators building content using non-supporting tools: run the Open Rails tool in "dry run" mode, listing issues to fix manually.
  • Users who have existing content that isn't working on Linux/macOS due to case: run the Open Rails tool in "apply" mode, renaming files.

That gives everyone a good way to ensure correct case IMHO.

As for the conflicting references, because the purpose of the Open Rails tool renaming files does not involve fixing a route before distribution (and we can warn about this too), it can use symlinks to provide multiple cases of a single file when needed.

#47 User is online   goku 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,991
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 10 October 2026 - 07:13 AM

View PostJames Ross, on 10 October 2026 - 06:41 AM, said:

As for the conflicting references, because the purpose of the Open Rails tool renaming files does not involve fixing a route before distribution (and we can warn about this too), it can use symlinks to provide multiple cases of a single file when needed.

Indeed, for local use only, symlinks simplify this tool a lot.

#48 User is offline   ggwp 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 2
  • Joined: 09-July 26
  • Gender:Male
  • Simulator:open rail
  • Country:

Posted 27 October 2026 - 03:32 AM

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)

  • 4 Pages +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users