summaryrefslogtreecommitdiffstats
path: root/subsurface.bmp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-06 12:53:25 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-06 14:42:19 -0800
commitd7925dac44c61b9316791d230912c948468f3601 (patch)
tree51610b345112785706c414d1a57bdc3569e529ae /subsurface.bmp
parentc8830ffe482457f4e1fc4782dc3118d3d41ee0b7 (diff)
downloadsubsurface-d7925dac44c61b9316791d230912c948468f3601.tar.gz
Do a better job at creating plot info entries
This simplifies - and improves - the code to generate the plot info entries from the samples. We used to generate exactly one plot info entry per sample, and then - because the result doesn't have high enough granularity - we'd generate additional plot info entries at gas change events etc. Which resulted in all kinds of ugly special case logic. Not only for the gas switch, btw: you can see the effects of this in the deco graph (done at plot entry boundaries) and in the gas pressure curves. So this throws that "do special plot entries for gas switch events" code away entirely, and replaces it with a much more straightforward model: we generate plot entries at a minimum of ten-second intervals. If you have samples more often than that, you'll get more frequent plot entries, but you'll never get less than that "every ten seconds". As a result, the code is smaller and simpler (99 insertions, 161 deletions), and actually does a better job too. You can see the difference especially in the test dives that only have a few entries (or if you create a new dive without a dive computer, using the "Add Dive" menu entry). Look at the deco graph of test-dive 20 before and after, for example. You can also see it very subtly in the cylinder pressure curves going from line segments to curves on that same dive. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface.bmp')
0 files changed, 0 insertions, 0 deletions