mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove fast argument of create_plot_info_new()
This prevented calculation of the pressure data when dragging planner handles. However, this lead to weird artifacts. As an alternative, if this turns out to be too slow, we might disable the plotting of the pressure curves instead. That said, even on my super-slow fanless laptop, this performs reasonably. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
352cdcc863
commit
2645fa1495
4 changed files with 7 additions and 9 deletions
|
@ -438,7 +438,7 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
|
|||
* create_plot_info_new() automatically frees old plot data.
|
||||
*/
|
||||
if (!keepPlotInfo)
|
||||
create_plot_info_new(d, get_dive_dc_const(d, dc), &plotInfo, !calcMax, planner_ds);
|
||||
create_plot_info_new(d, get_dive_dc_const(d, dc), &plotInfo, planner_ds);
|
||||
|
||||
bool hasHeartBeat = plotInfo.maxhr;
|
||||
// For mobile we might want to turn of some features that are normally shown.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue