Skip to content

Sharing what engines make

Unreal and Unity make things of a game’s files: shaders compiled, textures packed for a console. Each computer makes them again, and that can take hours. saturn ddc has what one person’s engine made be there for everyone’s:

saturn ddc
✓ Serving what Unreal and Unity make of the game's files, until you press ctrl-c.
Shared with everyone in https://orbit.saturn.game/acme/town.
Unreal: http://localhost:8577
Start the editor, or the cooker, with:
-UE-CloudDataCacheHost=http://localhost:8577
Unity: 127.0.0.1:8578
In ProjectSettings/EditorSettings.asset:
m_CacheServerMode: 1
m_CacheServerEndpoint: 127.0.0.1:8578

Run it in the game’s folder and leave it running.

  • What an engine asks for is looked for on this computer, and then on Orbit, with the folder’s key. What an engine makes is kept here at once and sent in the background, many things at a time, in chunks: the parts that another version of the same thing has already are not sent again.
  • An engine waits for none of it. Without a connection, or with a server that does not answer, the cache is this computer’s alone until it does, and what was not sent is sent then, or the next time. In a folder that is no game on Rings it is this computer’s alone from the start. It says which.
  • Each game has a cache of its own on a computer, and so has a folder that is no game. What was made in one is not given to an engine in another.
  • Only programs on this computer are served, and no page in a browser is.
Option What it does
--port 8577 Where Unreal finds it (0 for any free port)
--unity-port 8578 Where Unity finds it (0 for any free port)
--unity-namespace default Keeps one Unity project’s things apart from another’s
--lan Asks the other computers on the network first, and answers them
--peer <address> Asks one computer by its address, as --lan on it prints it
--patience 3 How many seconds an engine may wait to hear from the server

With --lan, what the other computers have not sent in a third of the patience is asked of Orbit, and without Orbit they are waited for as long as it keeps coming. macOS asks whether that is allowed the first time.

Teammates are only believed about what something is when they have the game’s key, and about what is in it when it hashes to what it should.

  • http://localhost:8577/saturn/stats says how it is doing.
  • POST /saturn/flush sends what is waiting and answers once it is sent, which is what a build machine does at its end. It answers 200 only when nothing is left, and otherwise says how much is (left), and how much the server would not have or is no longer here to send (given_up).
  • While it stops, the cache refuses what an engine would put in it, and sends what it took before.