-
-
Notifications
You must be signed in to change notification settings - Fork 230
Preparation for E2E latency tuning #786
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,13 +142,13 @@ status::StatusCode SenderSlot::refresh(core::nanoseconds_t current_time, | |
| status::StatusCode code = status::NoStatus; | ||
|
|
||
| if (source_endpoint_) { | ||
| if ((code = source_endpoint_->pull_packets(current_time)) != status::StatusOK) { | ||
| if ((code = source_endpoint_->pull_packets(0)) != status::StatusOK) { | ||
| return code; | ||
| } | ||
| } | ||
|
|
||
| if (repair_endpoint_) { | ||
| if ((code = repair_endpoint_->pull_packets(current_time)) != status::StatusOK) { | ||
| if ((code = repair_endpoint_->pull_packets(0)) != status::StatusOK) { | ||
| return code; | ||
| } | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as for receiver slot.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I support your thought, but it will make pipeline tests dependent on real-time speed. So far, diff --git a/src/tests/roc_pipeline/test_loopback_sink_2_source.cpp b/src/tests/roc_pipeline/test_loopback_sink_2_source.cpp
index 4c47930e..2d7e188c 100644
--- a/src/tests/roc_pipeline/test_loopback_sink_2_source.cpp
+++ b/src/tests/roc_pipeline/test_loopback_sink_2_source.cpp
@@ -569,7 +569,7 @@ void send_receive(int flags,
core::nanoseconds_t virtual_e2e_latency = 0;
if (flags & FlagCTS) {
- send_base_cts = 1000000000000000;
+ send_base_cts = core::timestamp(core::ClockUnix);
virtual_e2e_latency = core::Millisecond * 100;
}In Please, take a look onto 6bd629e
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, I propose to hold this change, until (if) we decide to introduce mock for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I see. That's not good but I agree that it's outside of scope of this PR. I'll try to take a look at it later, will add it to my todo. Let's follow your proposal then.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've reverted these changes for the time being |
||
|
|
||
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.
Since
current_timeis used only as a fallback when RTS isn't set, we can safely pass it to all calls I guess? Because why not to guarantee RTS for source and repair packets as well.