Jump to content

Verify The Max Physics Delta Time per Frame Completed


Moesly_Armlis

Recommended Posts

The Max Physics Delta Time per Frame seems to change when physics warp is used. Wanting to provide some evidence that this is happening anyone have an easy method for checking or displaying the value.

I have not been playing much KSP lately due to illness and this weekend want to get back to my mission and not poke around with a C# tutorial to figure out how to do this.:wink:

Anybody want to write this quick mod?

Edited by MoeslyArmlis
Link to comment
Share on other sites

Get the new PhysicalTimeRatioViewer mod. I added a new option there. As for your evidence: The physics warp does change the value and not change it back to what it was.

As an alternative you can compile this:


using UnityEngine;

namespace KerboKatz
{
[KSPAddon(KSPAddon.Startup.Flight, false)]
public class ShowMaximumDeltaTime : MonoBehaviour
{
Rect position = new Rect(0, 200, 0, 0);
public void OnGUI()
{
GUI.Label(position, Time.maximumDeltaTime.ToString(), HighLogic.Skin.label);
}
}
}

Edited by SpaceTiger
Link to comment
Share on other sites

Get the new PhysicalTimeRatioViewer mod. I added a new option there. As for your evidence: The physics warp does change the value and not change it back to what it was.

As an alternative you can compile this:


using UnityEngine;

namespace KerboKatz
{
[KSPAddon(KSPAddon.Startup.Flight, false)]
public class ShowMaximumDeltaTime : MonoBehaviour
{
Rect position = new Rect(0, 200, 0, 0);
public void OnGUI()
{
GUI.Label(position, Time.maximumDeltaTime.ToString(), HighLogic.Skin.label);
}
}
}

I will be trying this out and posting the results.

Thanks SpaceTiger. It is so fitting that you decided to write this since it was KerboKatz SmallUtilities PhysicsTimeRatioViewer that convinced me that this bug was happening.

Edit I also think the AutoBalancingLandingLeg: is another awesome mod and after watching Max on Squadcast have such concern over tipping his Minmus lander this mod is becoming so necessary.

Testing: The value of max delta time per frame is increasing how odd. For some reason I thought a lower value was better for slow computers.

After setting the MDTF to 0.03 and using the physics time warp the value changes with each step.

Edited by MoeslyArmlis
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...