##// END OF EJS Templates
Remove 5s wait on inactivity on GUI inputhook loops...
Jonah Graham -
Show More
@@ -157,10 +157,7 b' def inputhook_glut():'
157 157 # 0.01 1.5%
158 158 # 0.05 0.5%
159 159 used_time = clock() - t
160 if used_time > 5*60.0:
161 # print 'Sleep for 5 s' # dbg
162 time.sleep(5.0)
163 elif used_time > 10.0:
160 if used_time > 10.0:
164 161 # print 'Sleep for 1 s' # dbg
165 162 time.sleep(1.0)
166 163 elif used_time > 0.1:
@@ -96,10 +96,7 b' def inputhook_pyglet():'
96 96 # 0.01 1.5%
97 97 # 0.05 0.5%
98 98 used_time = clock() - t
99 if used_time > 5*60.0:
100 # print 'Sleep for 5 s' # dbg
101 time.sleep(5.0)
102 elif used_time > 10.0:
99 if used_time > 10.0:
103 100 # print 'Sleep for 1 s' # dbg
104 101 time.sleep(1.0)
105 102 elif used_time > 0.1:
@@ -142,10 +142,7 b' def inputhook_wx3():'
142 142 # 0.01 1.5%
143 143 # 0.05 0.5%
144 144 used_time = clock() - t
145 if used_time > 5*60.0:
146 # print 'Sleep for 5 s' # dbg
147 time.sleep(5.0)
148 elif used_time > 10.0:
145 if used_time > 10.0:
149 146 # print 'Sleep for 1 s' # dbg
150 147 time.sleep(1.0)
151 148 elif used_time > 0.1:
General Comments 0
You need to be logged in to leave comments. Login now