Здравствуйте, milkpot, Вы писали:
M>Спасибо.
M>На данный момент Opengl графика отображается со скоростью 32 paintGL вызовов в секунду(это взято из примера qopenglwidget).
M>Задача: отображать кадр со скоростью 50 вызовов в секунду
M>M>void GLWidget::animate()
M>{
M> elapsed = (elapsed + qobject_cast<QTimer*>(sender())->interval()) % 1000;
M> update();
M>}
M>
Можно вместо update(), использовать repaint()
Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden.
We suggest only using repaint() if you need an immediate repaint, for example during animation. In most circumstances update() is better, as it permits Qt to optimize for speed and minimize flicker.
Warning: If you call repaint() in a function which may itself be called from paintEvent(), you may get infinite recursion. The update() function never causes recursion.
Но лучше требования переделать.