summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-12-04 16:42:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-04 16:26:47 -0600
commitaa22e0610c67dd86a54f7d7cab7987c399be4c46 (patch)
tree043f46bac21a776972e94dbd5b17b2c0c02d021c /profile.h
parent3e429ac77df46894444d426d26feda8c8aabe3d0 (diff)
downloadsubsurface-aa22e0610c67dd86a54f7d7cab7987c399be4c46.tar.gz
Don't interpolate pressure while dragging waypoints
A profiler session in the planner shows that for deep long dives a significant amount of CPU time is spent in populate_pressure_information() which interpolates the cylinder pressure graphs. This patch introduces a "fast" flag for the replot of the profile which is active while the mouse button is still pressed and that suppresses this calculation. In the future, this flag could be used for other responsiveness tunings of the plot. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.h b/profile.h
index 147e4801e..5d2009530 100644
--- a/profile.h
+++ b/profile.h
@@ -70,7 +70,7 @@ struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer
void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer *dc, struct plot_info *pi);
struct plot_info *analyze_plot_info(struct plot_info *pi);
-void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi);
+void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast);
void calculate_deco_information(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool print_mode);
struct plot_data *get_plot_details_new(struct plot_info *pi, int time, struct membuffer *);