Unsolved How to increase refresh rate on mouseMoveEvent?
-
@Yippiyak
Is the spectrogram using openGL or just QPainter? -
@mrjj
Just qpainter and qcharts atm, which I suspect is my issue, but I also have no real clue how to even begin with OpenGL. Also would you mind upvoting my reputation? I can only post once every 10 min and its getting annoying haha. -
@Yippiyak said in How to increase refresh rate on mouseMoveEvent?:
qcharts
well for QLineSeries and QScatterSeries, it seems easy
https://doc.qt.io/Qt-5/qtcharts-openglseries-example.html
for other im not sure. -
@mrjj
Yeah im running the acceleration but its still not fast enough. Dumb part is the code works flawlessly in my c# implementation but C++ is brutalizing it. Should be the other way around. -
@Yippiyak
Thats odd. what graph did you use with c# ? -
@mrjj
A pretty basic line plot using direct3d hardware acceleration and like 60 other files lol -
@Yippiyak
Ok so most likely your plotter is just more specialized than QtChart and hence the speed difference.
You could try some test with direct openGL to see if it is faster -
@mrjj
Yeah, I think that is the issue, but I am not entirely sure how to get started with converting what I have to OpenGL and what not. -
@Yippiyak
well it really depends on how your layered your plotter
most of the work would to replace the Direct3D calls.
this is a very basic get started example
http://doc.qt.io/qt-5/qtgui-openglwindow-example.html -
Well in my opinion maybe you can try not refreshing immediately. Just record the position in a fifo and return. You can get yourself another thread which looks through the fifo and draws, so the handler may return faster, and missing fewer. Well...in fact I am not very sure of this....