summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-15 12:22:32 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2021-01-20 08:47:18 +0100
commitfaf3e7079ddd680ab0e53a27a7ddc0d863792117 (patch)
tree7656180d66e75d334bef8bb2c6dd5b411631f8eb /profile-widget
parentada5e8a49d7f0944dc3ff5ee49960298c3af9535 (diff)
downloadsubsurface-faf3e7079ddd680ab0e53a27a7ddc0d863792117.tar.gz
statistics: keep track of dirty items in double-linked list
So far the items to be recalculated in the drawing thread had a "dirty" flag and were kept in one array par z-level. Once the series are implemented in terms of QSGNodes, there may lots of these items. To make this more efficient when only one or two of these items change (e.g. highlighting due to mouseover), keep the dirty items in a linked list. Of course, this makes the draw first version of the chart less efficient. There are more fancy ways of implementing the double-linked list, but the few ns gained in the render thread are hardly worth it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
0 files changed, 0 insertions, 0 deletions