@@ -565,8 +565,7 @@ public static void Task_Create(Task task, UInt32 performerId, double position,
565565 if ( taskId > 0 || Handle == IntPtr . Zero ) {
566566 return ;
567567 }
568- taskId = BarelyPerformer_CreateTask ( _handle , performerId , position ,
569- Math . Max ( duration , _minTaskDuration ) , priority ,
568+ taskId = BarelyPerformer_CreateTask ( _handle , performerId , position , duration , priority ,
570569 Task_OnEvent , ref taskId ) ;
571570 if ( taskId == 0 ) {
572571 Debug . LogError ( "Failed to create task '" + task + "'" ) ;
@@ -590,7 +589,7 @@ public static bool Task_IsActive(UInt32 taskId) {
590589 }
591590
592591 public static void Task_SetDuration ( UInt32 taskId , double duration ) {
593- BarelyTask_SetDuration ( _handle , taskId , Math . Max ( duration , _minTaskDuration ) ) ;
592+ BarelyTask_SetDuration ( _handle , taskId , duration ) ;
594593 }
595594
596595 public static void Task_SetPosition ( UInt32 taskId , double position ) {
@@ -659,9 +658,6 @@ private static IntPtr Handle {
659658 }
660659 private static IntPtr _handle = IntPtr . Zero ;
661660
662- // Minimum task duration to avoid zero duration tasks.
663- private const double _minTaskDuration = 1e-6 ;
664-
665661 // Denotes if the system is shutting down to avoid re-initialization.
666662 private static bool _isShuttingDown = false ;
667663
0 commit comments