Files
ppg-modkit/extracted_wiki_content/internalReference/fixedintervaldistributor.txt

30 lines
848 B
Plaintext

URL: https://wiki.studiominus.nl/internalReference/FixedIntervalDistributor.html
Title: People Playground Modding - FixedIntervalDistributor
==================================================
public class FixedIntervalDistributor
Class that calculates the amount of times something needs to execute to adhere to a specific rate
Properties
public float RateHz { get; set; }
Preferred cycles rate
public float Rate { get; set; }
[System.Obsolete]
No description provided
public int MaxCycles { get; set; }
Maximum ouput cycles
public int MaxRate { get; set; }
[System.Obsolete]
No description provided
public float IntervalSeconds { get; private set; }
1.0f / RateHz
Methods
public void ResetAccumulator(float t = 0)
No description provided
public int CalculateCycleCount(float realDeltaTimeInSeconds)
Calculate the amount of cycles to execute