From 130f4cd7ac5b27f5d8243b5c238a66c86f2604ba Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 5 Feb 2016 20:45:18 -0800 Subject: Do not run the deco calculations in the mobile app We don't show the calculated ceilings and calculating them is compute intensive. Signed-off-by: Dirk Hohndel --- qt-models/diveplotdatamodel.cpp | 2 ++ qt-models/diveplotdatamodel.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'qt-models') diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp index 4b60b3ea3..1110f19df 100644 --- a/qt-models/diveplotdatamodel.cpp +++ b/qt-models/diveplotdatamodel.cpp @@ -228,6 +228,7 @@ void DivePlotDataModel::emitDataChanged() emit dataChanged(QModelIndex(), QModelIndex()); } +#ifndef SUBSURFACE_MOBILE void DivePlotDataModel::calculateDecompression() { struct divecomputer *dc = select_dc(&displayed_dive); @@ -235,3 +236,4 @@ void DivePlotDataModel::calculateDecompression() calculate_deco_information(&displayed_dive, dc, &pInfo, false); dataChanged(index(0, CEILING), index(pInfo.nr - 1, TISSUE_16)); } +#endif diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h index 6a1f9bd16..21b0ffd5b 100644 --- a/qt-models/diveplotdatamodel.h +++ b/qt-models/diveplotdatamodel.h @@ -83,7 +83,9 @@ public: double po2Max(); double CCRMax(); void emitDataChanged(); +#ifndef SUBSURFACE_MOBILE void calculateDecompression(); +#endif private: struct plot_info pInfo; -- cgit v1.2.3-70-g09d2