Thanks wysota,
I have got the problem.
Well the problem is in the two statements in painting.
std::vector<Plot_Aggregation_Element> plotAggregationElement = plotDataValue->plotData();
// Each vector contains the data of one day
std::vector<Date_Element> dateElement = plotAggregationElement.at(0).ID[0].ID_vector;
std::vector<Plot_Aggregation_Element> plotAggregationElement = plotDataValue->plotData();
// Each vector contains the data of one day
std::vector<Date_Element> dateElement = plotAggregationElement.at(0).ID[0].ID_vector;
To copy to clipboard, switch view to plain text mode
The above code takes 6-8 millisecond and if there is 8 graph then it takes 6x8 = 48ms.
Now i have to solve this ., and after that it will be faster than before (60 - 48 = 12ms , thats look great).
Bookmarks