multithreading - Responsive Qt GUI even if threading -


so assume have lots of stuff draw sample time of 10ms, namely 9 charts/graphs (based on qcustomplot library) , glwidget. computation, mean maths, performed in separate thread yet instructions "populate array of #1 chart" or "clean chart" performed in gui thread (clearly @ speed of 10ms).

my problem basically, due high frequency of drawing, buttons become unresponsive.

now question is: there way improve performance of code? avoid draw every 50ms rather every 10ms. possible solution use of qapp->processevents(); ? there more elegant way?

there no sense draw speed of 10ms/per sample.. because eye not able handle this.. can use (as mentioned in comments) 'double buffering' , render need show on separate thread , refresh image 100 times second, again there no reasons keep such high frame rate..


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -