improve image rendering performance by less waited locking - #1164
improve image rendering performance by less waited locking#1164christianrauch wants to merge 1 commit into
Conversation
ahcorde
left a comment
There was a problem hiding this comment.
Not really sure about the solution here. I prefer the condition_variable approach.
Did you benchmark ?
Now, we can use cpp20 at least on lyrical and rolling. what's about std::binary_semaphore ?
Not "professionally". When you see an image stream and compare it with rqt, it is obvious that the framerate is lower. Printing on the screen shows that the sync callback ( |
7ff4bd9 to
eb180af
Compare
What is the advantage of using the I replaced the |
eb180af to
a283413
Compare
|
The CI is complaining about the new include There are no C headers in @ahcorde Do you have any idea how to resolve this? |
a283413 to
ac6f08d
Compare
ac6f08d to
27be393
Compare
27be393 to
636e468
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
|
@ahcorde Can you take a look at this? The CI report: does not make sense to me. Line 20 includes a standard C++ header ( |
|
The image_view_node.h part is a red herring I think, that's just the format of the error message (it lets you know that you can have a header file for the specific cpp file). I think the issue is that cpplint is miscategorizing something as a "C system header" (I've seen that happen before - but I got no idea what is going on in this case). Perhaps try reverting the change on line 25 and make cv_bridge still use quotes instead of brackets? (although I thought the rule was that a .h file would be considered a C system header if it was in brackets, not a .hpp file). |
636e468 to
4776fb2
Compare
|
@ahcorde Please help me out here :-) I am not including any C headers. Can you please fix the linters to remove these false positives? |
4776fb2 to
0a66831
Compare
0a66831 to
03d9624
Compare
|
@ahcorde Can you take care of the linting in the CI? I reverted some of my header changes but still get the same warning. If the linting provides false positives, can you simply remove it? |
bfec8fc to
89b9e36
Compare
|
@ahcorde I managed to avoid the problem by removing the |
The current implementation of
image_view::ImageViewNodehas bad performance. You roughly only see half of the images on screen that are published on the topic.This PR improves the thread locking and shows the full framerate of images on the topic.