qtopengl

Qt QApplication framerate drop when maximizing window

让人想犯罪 __ 提交于 2019-12-22 14:54:08
问题 We are using Qt for a visualization engine viewer, and we are having issues with the QApplication::processEvents() method. Since we needed to control the framerate (in a game loop fashion), we overrided the QApplication to define our own and our game loop that looks like MainApplication app; // Some code here while (true) { app.processEvents(); app.doFrame(); // sync code, nothing for now } This works fine, timing are about 0.001s for the processEvents() call, while, for an empty scene, the