JensReimann / RTKLIB

Port of RTKLIB GUI to Qt
39 stars 12 forks source link

rtkplot_qt drawing is slow #2

Open JensReimann opened 8 years ago

n8ur commented 5 years ago

I'm seeing this as well -- running rtkplot_qt uses up almost all of one core in my i7 laptop.

JensReimann commented 5 years ago

Under which circumstances does that happen? The drawing code could be optimized by using Qt's graphics view, but that would be a huge afford and would make the code base deviate even more. Including bug fixes from Tomoji or rtklibexplorer would become much harder than. Let's see what can be improved without a big rework.

n8ur commented 5 years ago

I've only tried launching rtkplot_qt from the "plot" button within rtknavi_qt. One interesting thing is that pushing the button once seems to open two identical rtkplot windows; I'm not sure if that's intended or not.

I don't see the plot being slow, but it is a CPU hog. Running one plot uses up 60-80 % of one CPU on my i7 laptop; running two plots uses 100% of one. The plots seem to work, but you sure hear the fan speeding up. :-) I'm afraid I don't know enough about profiling to be much help in tracking this one down.

n8ur commented 5 years ago

Jens, I just used your latest patches and am happy to report that rtkplot_qt now seems to be working with minimal CPU load. Thanks much! (I'd been messing about today trying to figure out where the busy loop was and how to slow it down, but my lack of QT knowledge left me stranded.)