From eeb77b76a815d6b534670764089f819fd5f8d2b1 Mon Sep 17 00:00:00 2001 From: Peter Lohrmann Date: Thu, 26 Feb 2015 10:51:36 -0800 Subject: glvdebug: Move QReplayWorker into a separate thread. * In order to achieve this correctly, the QController could not inherit from the QReplayWorker; instead the controller now has a worker object. The QReplayWidget puts the worker on a separate thread. * Any interaction between the QReplayWorker and the rest of the UI must be done through Qt's signals and slots, which knows how to pass data between threads. * Performance of replaying within the UI is now on-par with replaying using glvreplay64 from the command line, based on the cube demo. Increasing the validation level will slow down the replay preformance (as expected), and printing of validation messages will also slow down replay performance (as expected). --- glave-generate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/glave-generate.py b/glave-generate.py index bb99ea08..94de7d1f 100755 --- a/glave-generate.py +++ b/glave-generate.py @@ -2328,6 +2328,7 @@ class Subcommand(object): rs_body.append('{') rs_body.append(' g_pReplaySettings = pReplaySettings;') rs_body.append(' m_display = new xglDisplay();') + rs_body.append(' m_pDSDump = NULL;') rs_body.append(' if (g_pReplaySettings && g_pReplaySettings->screenshotList) {') rs_body.append(' process_screenshot_list(g_pReplaySettings->screenshotList);') rs_body.append(' }') -- cgit v1.2.3