Protfolio-Emanuel-Polsky / Assets / _Project / Code / VerletIntegration / RenderFlag / VerletIntegrationRenderGroupInterval.cs
VerletIntegrationRenderGroupInterval.cs
Raw
using Unity.Entities;

namespace GarmentButton.VerletIntegration.Render
{
    [UpdateInGroup(typeof(VerletIntegrationGroupSystems))]
    public partial class  VerletIntegrationRenderGroupInterval : ComponentSystemGroup
    {
        protected override void OnCreate()
        {
            base.OnCreate();

            // 60,000 ms = 1 minute
            // pushToWorld: if your systems rely on SystemAPI.Time, keep this true.
            RateManager = new RateUtils.VariableRateManager(5_000, pushToWorld: true);
        }
    }
}