Why do you delete all those arrays and create them again every 40 ms (in A::advanceData())? Can't you just fill them with new data?
Recreating the display list might also have some impact on performance. You redraw your widget 25 times per second, so probably that display list is used only once --- try to draw directly.
this->wiggleData=(float**) new float [10000];
this->wiggleData=(float**) new float [10000];
To copy to clipboard, switch view to plain text mode
This should be:
wiggleData = new (float*)[10000];
wiggleData = new (float*)[10000];
To copy to clipboard, switch view to plain text mode
Bookmarks