octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where to the appropriate place to add sleep into __gnuplot_ginput__.m to


From: Tatsuro MATSUOKA
Subject: Where to the appropriate place to add sleep into __gnuplot_ginput__.m to solve slowness ginput on octave/windows
Date: Tue, 23 Feb 2010 17:35:41 +0900 (JST)

Hello

The slowness issue of ginput on octave/mingw32 had been discussed  

http://old.nabble.com/ginput-with-Octave-3.2-is-SLOOOOOOWWWW-on-Windows-td27635367.html

This is the similar to the slowness issue of the plot
http://old.nabble.com/Plotting-with-3.2.0-on-Windows-is-SLOOOOOOWWWW-td24703690.html

I have shown the quick answer to solve the issue
####################################
--- __gnuplot_ginput__.m.orig   2010-02-17 15:02:52 +0900 
+++ __gnuplot_ginput__.m        2010-02-18 19:08:28 +0900 
@@ -76,7 +76,7 @@ 
     k = 0; 
     while (true) 
       k++; 
- 
+      sleep(0.05); # sleep a moment is required for windows 
       ## Notes: MOUSE_* can be undefined if user closes gnuplot by "q" 
       ## or Alt-F4. Further, this abrupt close also requires the leading 
       ## "\n" on the next line. 
######################################

Adding sleep(0.05) in the loop like th above gave immediate response of ginput.

However I do not any confidence the above patch is proper.

It will be grateful if some give me suggestion and comments.

Regards

Tatsuro

--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]