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
|
@ -213,7 +213,7 @@ static void save_profiles_buffer(struct membuffer *b, bool select_only)
|
|||
for_each_dive(i, dive) {
|
||||
if (select_only && !dive->selected)
|
||||
continue;
|
||||
create_plot_info_new(dive, &dive->dc, &pi, false, planner_deco_state);
|
||||
create_plot_info_new(dive, &dive->dc, &pi, planner_deco_state);
|
||||
put_headers(b, pi.nr_cylinders);
|
||||
|
||||
for (int i = 0; i < pi.nr; i++)
|
||||
|
@ -229,7 +229,7 @@ void save_subtitles_buffer(struct membuffer *b, struct dive *dive, int offset, i
|
|||
struct deco_state *planner_deco_state = NULL;
|
||||
|
||||
init_plot_info(&pi);
|
||||
create_plot_info_new(dive, &dive->dc, &pi, false, planner_deco_state);
|
||||
create_plot_info_new(dive, &dive->dc, &pi, planner_deco_state);
|
||||
|
||||
put_format(b, "[Script Info]\n");
|
||||
put_format(b, "; Script generated by Subsurface %s\n", subsurface_canonical_version());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue