Skip to content

Commit

Permalink
configure thread pool, turn profiling off
Browse files Browse the repository at this point in the history
  • Loading branch information
zrlram committed Jan 30, 2016
1 parent 05bd098 commit 9b28f82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions run.py
Expand Up @@ -37,7 +37,7 @@ def __init__(self, geometry, queue, cm, wc, max_showtime=240):
super(ShowRunner, self).__init__(name="ShowRunner")

self.profile = None
self.do_profiling = True
self.do_profiling = False

self.geometry = geometry
self.queue = queue
Expand Down Expand Up @@ -107,6 +107,8 @@ def next_show(self, name=None):

self.clear()
self.prev_show = self.show
self.show_runtime = 0
self.show_started_at = time.time()

# unregister shaders
self.geometry.reset_shaders()
Expand All @@ -119,8 +121,6 @@ def next_show(self, name=None):
except:
pass

self.show_runtime = 0

# deal with controls
self.cm.del_listener(self.prev_show)
self.cm.add_listener(self.show)
Expand Down Expand Up @@ -358,6 +358,7 @@ def start_web(self):
# 'engine.timeout_monitor.on' : True,
# 'engine.timeout_monitor.frequency' : 240,
# 'response.timeout' : 60*15
'server.thread_pool': 8,
},

'/index': {
Expand Down

0 comments on commit 9b28f82

Please sign in to comment.