Right now what I’m planning to do is to increase/decrease the OxygenSaturation from 1 to 0.5 and vice versa. Usually it takes around 2 minutes to reach the desired value. Is there any way to reduce that time to around 30 seconds or any manual timeframe?
Update: I found an Implementation named AdvanceTime_s in PulseUnityEngine in PulseEngineDriver. It does works as it should be, but it freezes the game for around 1-2 mins If I want to skip around 15 Minutes (900 seconds).
I believe what is actually happening is that it tries to do all those necessary calculations in between the time, which being performance-intensive freezes the application, until those calculations are done.
Yes,that is correct.
Pulse simulate the body at 50Hz, so all those time steps need to be calculated when you advance time.
If you want to do large time jumps, you could prepare a state file that you can load to simulate large time jumps like that.
Okay got that. So is there any guide on how I can set up a state file for that?
We suggest you use the Pulse Explorer to setup a patient and use a Serialization action to write your state file to disk. Then you can load that file in your application.
You could also do it procedurally with the Api too.