Lower check interval of python interpreter to make GUI more responsive (at the coster of higher CPU load

This commit is contained in:
Kovid Goyal 2010-11-03 20:10:05 -06:00
parent 4cac965ea7
commit 5c1a40534b

View File

@ -345,6 +345,7 @@ def main(args=sys.argv):
# On windows only singleinstance can be trusted # On windows only singleinstance can be trusted
otherinstance = True if iswindows else False otherinstance = True if iswindows else False
if not otherinstance: if not otherinstance:
sys.setcheckinterval(50) # Make GUI more responsive
return run_gui(opts, args, actions, listener, app) return run_gui(opts, args, actions, listener, app)
communicate(args) communicate(args)