aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lohrmann <peterl@valvesoftware.com>2015-02-26 10:51:36 -0800
committerPeter Lohrmann <peterl@valvesoftware.com>2015-02-26 17:06:58 -0800
commiteeb77b76a815d6b534670764089f819fd5f8d2b1 (patch)
tree3cd0a8122ce6b7b5210dcdda7b1c46aebd8e40a1
parent424f797a78a0c4da7244136647e80d13e152eeab (diff)
downloadusermoji-eeb77b76a815d6b534670764089f819fd5f8d2b1.tar.xz
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).
-rwxr-xr-xglave-generate.py1
1 files changed, 1 insertions, 0 deletions
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(' }')