rxbag: reduced index update frequency
This commit is contained in:
parent
9f05f30d25
commit
9397643698
|
@ -101,8 +101,8 @@ class RxBagApp(wx.App):
|
|||
|
||||
except Exception, ex:
|
||||
print >> sys.stderr, 'Error initializing application:', ex
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
#import traceback
|
||||
#traceback.print_exc()
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
|
@ -1784,17 +1784,17 @@ class IndexCacheThread(threading.Thread):
|
|||
# Update the index for one topic
|
||||
updated = False
|
||||
for topic in self.timeline.topics:
|
||||
if topic in self.timeline.invalidated_caches and topic != last_updated_topic:
|
||||
if topic in self.timeline.invalidated_caches:# and topic != last_updated_topic:
|
||||
updated = (self.timeline._update_index_cache(topic) > 0)
|
||||
if updated:
|
||||
last_updated_topic = topic
|
||||
break
|
||||
#if updated:
|
||||
# last_updated_topic = topic
|
||||
# break
|
||||
|
||||
if updated:
|
||||
wx.CallAfter(self.timeline.Refresh)
|
||||
|
||||
# Give the GUI some time to update
|
||||
time.sleep(0.2)
|
||||
time.sleep(1.0)
|
||||
|
||||
def stop(self):
|
||||
self._stop_flag = True
|
||||
|
|
Loading…
Reference in New Issue