My use case is that I'm running an N-Body gravity simulation at runtime. I've got a Baking System running a fixed length simulation in the editor to visualise the predicted trajectory of planets.
I need to have a delta time value for physics calculations in the baking system, and it needs to be synchronised to the fixed delta time value used by the gravity simulation system (else the prediction does not match the runtime trajectory). The gravity simulation system is part of the FixedRateSimulationSystemGroup at runtime, and uses the fixed physics time step.
A Baking System cannot be added to the FixedStepSimulationSystemGroup, which doesn't exist in the baking world. Using SystemAPI.Time.DeltaTime returns 0 in Baking Systems. SystemAPI.Time.fixedDeltaTime is marked for deprecation since it returns the Havok Physics timestep.
For now I'm passing a manually calculated value through a singleton component, but I wonder if there's some other way to get access to the fixed delta time, so that if someone changes the simulation time step, the baking system visualisation gets updated automatically?