Skip to content

Commit

Permalink
bypass not fully-active pipeline task throttling for rendering tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
gterzian committed Mar 28, 2024
1 parent b179cfd commit a138a90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/script/task_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ impl<T: QueuedTaskConversion> TaskQueue<T> {
}

for msg in incoming {
// Always run "update the rendering" tasks,
// TODO: fix "fully active" concept for iframes.
if let Some(TaskSourceName::Rendering) = msg.task_source_name() {
let _ = self.msg_queue.borrow_mut().push_back(msg);
continue;
}
if let Some(pipeline_id) = msg.pipeline_id() {
if !fully_active.contains(&pipeline_id) {
self.store_task_for_inactive_pipeline(msg, &pipeline_id);
Expand Down

0 comments on commit a138a90

Please sign in to comment.