-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performance: RTCRtpSender.SyncApplicationFramerate #950
Conversation
401d407
to
688fa92
Compare
{ | ||
taskQueue_ = std::make_unique<rtc::TaskQueue>( | ||
taskQueueFactory->CreateTaskQueue("VideoFrameScheduler", TaskQueueFactory::Priority::NORMAL)); | ||
scheduler_ = std::make_unique<VideoFrameScheduler>(taskQueue_->Get()); | ||
scheduler_->Start(std::bind(&UnityVideoTrackSource::CaptureNextFrame, this)); | ||
scheduler_->Start(std::bind(&UnityVideoTrackSource::OnUpdateVideoFrame, this)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this line be wrapped with if (!syncApplicationFramerate_)
?
Or alternatively, Start
unconditionally but immediately Pause
if syncApplicationFramerate_
is true
? Since I see you're kind of relying on scheduler to be active, in the SetSyncApplicationFramerate
function below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vl4dimir
OK, I fixed the constructor to pause the scheduler at first and make syncApplicationFramerate_
true by default.
688fa92
to
7fd2cb5
Compare
760900e
to
659e35b
Compare
@karasusan Thanks for fixing this! Is there a plan for when this will be packaged so we can try it out? |
This implements Frame synchronization mode.
#803