[rkward-cvs] SF.net SVN: rkward:[3489] trunk/rkward/rkward/rbackend

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Mar 20 19:15:17 UTC 2011


Revision: 3489
          http://rkward.svn.sourceforge.net/rkward/?rev=3489&view=rev
Author:   tfry
Date:     2011-03-20 19:15:17 +0000 (Sun, 20 Mar 2011)

Log Message:
-----------
Reduce idle CPU load of backend process.

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rkbackendtransmitter.cpp
    trunk/rkward/rkward/rbackend/rkrbackend.cpp

Modified: trunk/rkward/rkward/rbackend/rkbackendtransmitter.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rkbackendtransmitter.cpp	2011-03-20 19:13:41 UTC (rev 3488)
+++ trunk/rkward/rkward/rbackend/rkbackendtransmitter.cpp	2011-03-20 19:15:17 UTC (rev 3489)
@@ -66,7 +66,7 @@
 
 	QTimer* flush_timer = new QTimer (this);
 	connect (flush_timer, SIGNAL (timeout()), this, SLOT (flushOutput()));
-	flush_timer->setInterval (50);
+	flush_timer->setInterval (200);
 	flush_timer->start ();
 
 	exec ();

Modified: trunk/rkward/rkward/rbackend/rkrbackend.cpp
===================================================================
--- trunk/rkward/rkward/rbackend/rkrbackend.cpp	2011-03-20 19:13:41 UTC (rev 3488)
+++ trunk/rkward/rkward/rbackend/rkrbackend.cpp	2011-03-20 19:15:17 UTC (rev 3489)
@@ -1184,7 +1184,7 @@
 		if (killed) return 0;
 		// NOTE: processX11Events() may, conceivably, lead to new requests, which may also wait for sub-commands!
 		processX11Events ();
-		if (!request->done) RKRBackendProtocolBackend::msleep (1);
+		if (!request->done) RKRBackendProtocolBackend::msleep (10);
 	}
 
 	RCommandProxy* command = request->takeCommand ();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list