QThread signal-slot or zeromq is better for multiply connection to same Thread
-
Hi ,
I have two video capture producer thread sending frames to mainwindow and than its calling the objectdetector thread .
mainwindow connected two signal in object detector waiting to receive processed fram and than show on the screen .
one video stream is vowking good and fast. But when I start seonf one its waiting to someting and now working or too slow.
is there a possible signal slot race condition ?
What is the fastest and best way to connect ?
if I add Qt::QueuedConnection its workig but slow start and jittery very slow..
-
Hi,
Did you benchmark your functions ?
What is the size of the frame you are processing ?
At which rate ?
By the way, if you need to explicitly set your connection type to queued, it likely means that you have an architecture issue as connections between objects living in different threads should be queued by default. -
@RahibeMeryem said in QThread signal-slot or zeromq is better for multiply connection to same Thread:
25 fps two stream and 2Mp mp4
What exactly does that mean ? You seem to have more that two streams.
Also, what are the properties of these streams and what are you using to read them in your Qt application ?
Somehow signal slots mechanism looks stuck..
I can post full cod eif you needed
No, if anything post a minimal compilable application that shows the behaviour.