mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3e429ac77d
commit
aa22e0610c
3 changed files with 8 additions and 7 deletions
|
@ -492,7 +492,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
* shown.
|
||||
*/
|
||||
plotInfo = calculate_max_limits_new(&displayed_dive, currentdc);
|
||||
create_plot_info_new(&displayed_dive, currentdc, &plotInfo);
|
||||
create_plot_info_new(&displayed_dive, currentdc, &plotInfo, !shouldCalculateMaxDepth);
|
||||
if(shouldCalculateMaxTime)
|
||||
maxtime = get_maxtime(&plotInfo);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue