waterfallplot: Use OpenGL#861
Conversation
a9f5b3c to
eae677f
Compare
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
eae677f to
db8575a
Compare
|
@patrickelectric are you still encountering the aberrations on the left edge of the plot? |
|
@jaxxzer did you take a look in the video ? You can see it in the left corner. |
|
Yes I saw the problems that you mentioned in the past in the video, I thought it might have been fixed but an old video.
I'm hesitant to approve it in that case. I would prefer no graphical errors vs cpu usage (must have vs nice to have IMO). You know better than I what it will take to correct the problems after merge. I'll leave this to your judgement as maintainer. |
|
@jaxxzer this PR is a intermediate step to make both waterfallplot and polarplot full OpenGL and remove the QML elements (like the shadereffect). Moving waterfallplot to this final version will require a bigger code change for both waterfallplot and polarplot making this patch much worst to review. The final PR is already in progress based in this changes and the last version of polarplot. |
| _painter->drawPixmap(_painter->viewport(), pix, QRect(0, 0, _image.width(), _image.height())); | ||
|
|
||
| emit drawHorizontalRatioChanged(); | ||
| emit drawVerticalRatioChanged(); |
There was a problem hiding this comment.
what do you think about merging those two emits into one? if the horizontal and vertical changes at the same time probably there will be one less redraw
| } | ||
| _currentDrawIndex++; // This can get to be an issue at very fast update rates from ping | ||
|
|
||
| for (int i = virtualHeight; i < _image.height(); i++) { |
There was a problem hiding this comment.
I'm not sure how fast is this but perhaps this is something that could be improved by QConcurrent?
| * | ||
| * @return double | ||
| */ | ||
| Q_INVOKABLE double drawHorizontalRatio() { return static_cast<double>(_currentDrawIndex + 1) / _image.width(); } |
| * | ||
| * @return double | ||
| */ | ||
| Q_INVOKABLE double drawVerticalRatio() |
https://gfycat.com/ifr/RadiantQuarterlyAmericancrow