ScheduledFrameCompleted always displays late

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Jonas Geduldig

  • Posts: 39
  • Joined: Tue Jun 17, 2014 7:04 pm

ScheduledFrameCompleted always displays late

PostTue Jun 27, 2017 4:43 pm

I'm using a 4K Extreme set to 720p 5994 and the 10.9.0 driver. Inside my ScheduledFrameCompleted method the time spent processing the next frame is always about 0.2 ms. So, I would expect the BMDOutputFrameCompletionResult argument to always be bmdOutputFrameCompleted. Instead it is always bmdOutputFrameDisplayedLate. To confirm, I print the elapsed time between calls to ScheduledFrameCompleted. The elapsed time is always 33 ms, double the expected 16.6 ms.

CPU utilization is under 1%. Any suggestions what could cause the late frames?
Offline

Jonas Geduldig

  • Posts: 39
  • Joined: Tue Jun 17, 2014 7:04 pm

Re: ScheduledFrameCompleted always displays late

PostWed Jun 28, 2017 1:53 pm

I fixed this issue after looking through the LoopThroughWithOpenGLCompositing example. I noticed that before starting the frame scheduling with StartScheduledPlayback the example project pre-loads the ring buffer.
Offline

Nicholas Gill

Blackmagic Design

  • Posts: 169
  • Joined: Mon May 04, 2015 10:28 pm

Re: ScheduledFrameCompleted always displays late

PostWed Jul 12, 2017 3:46 am

Hi Jonas,

Glad to hear the issue was resolved.

Informationally, the minimum number of frames required for preroll varies based on the device in use - 4K architecture devices require a minimum of two frames provided for preroll, while pre-4K architecture devices will require a minimum of three frames.

Cheers,

-nick
Offline

Jonas Geduldig

  • Posts: 39
  • Joined: Tue Jun 17, 2014 7:04 pm

Re: ScheduledFrameCompleted always displays late

PostWed Jul 12, 2017 2:35 pm

Hi Nick -- Thank you for those specs on pre-loading frames.
Offline

Steinar H. Gunderson

  • Posts: 70
  • Joined: Fri Aug 14, 2015 12:17 pm

Re: ScheduledFrameCompleted always displays late

PostThu Jul 20, 2017 5:21 pm

What does it actually mean in practice when a frame is “displayed late”? Does it mean the card duplicated one frame and showed this one the next? Does that mean the next frame will be dropped, or that the latency increases?

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 14 guests