I have a question regarding to the scheduler and time_step:
In Lite-C we have to multiply things like the camera speed with time_step so that the speed is framerate unrelated. But I converted my camera code to c# and now it moves slow as hell. --> is SchedulerMethod.wait(1); some kind of slower than wait(1) in Lite-C?

Code:
private IEnumerable<ScheduleMethod> myMainMethod()
{
   //...
   while (true)
   {
      CameraFunc();

      //HeavyFunc();

      yield return ScheduleMethod.wait(1);
   }
}

void ShowEditorCam()
{
   EngVar.Camera.x += 5 * time_step;
}



Another thing I notice, if a function that does heavy calculations is also called every frame the camera moves faster --> time_step got bigger.

Could it be that SchedulerMethod.wait(1) doesn't wait only 1 frame but more?


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version