[visionegg] workaround for mouse polling during max priority mode

o.k. with max priority mode and the 

def image_selector( t ):
    time.sleep(0.0001)   #necessary to be able to get mouse responses in
max priority mode
    ... further code as usual

 I get:


2002-12-16 16:07:36 (1534) info: During the last "go" loop, 1533 frames
were drawn.
Longest frame was 4.82 msec.
histogram:
  1326      *
  1178      *
  1031      *
   884      *
   737      *
   589      *
   442      *
   295      *
   147      *
     0      *    *    *
 Time:    0    2    4    6    8   10   12   14   16   18   20   22  
24   26   28   30   32   34   36 +(msec)
Total:     +++   59   1    0    0    0    0    0    0    0    0    0   
0    0    0    0    0    0    0

so I think, we can live with that; or what do you think?



without max priority mode I get


2002-12-16 16:11:04 (1538) WARNING: One or more frames took 26.8 msec,
which is signficantly
    longer than the expected inter frame interval of 16.7 msec for your
frame rate (60.0 Hz).
2002-12-16 16:11:04 (1538) info: During the last "go" loop, 1452 frames
were drawn.
Longest frame was 26.83 msec.
histogram:
  1211      *
  1077      *
   942      *
   808      *
   673      *
   538      *
   404      *
   269      *
   135      *
     0      *    *    *    *    *    *    *        
*                        *
 Time:    0    2    4    6    8   10   12   14   16   18   20   22  
24   26   28   30   32   34   36 +(msec)
Total:     +++   88   6    1    3    1    3    0    3    0    0    0   
0    1    0    0    0    0    0

so, we need to run the code in max priority with the time.sleep()
workaround (thank you, Andrew for the hint)

christoph


-- 
Christoph Lehmann 
Department of Psychiatric Neurophysiology 
University Hospital of Clinical Psychiatry 
Waldau 
CH-3000 Bern 60 
Switzerland 

Phone:  ++41 31 930 93 83 
Fax:    ++41 31 930 96 61 
Email:  lehmann@xxxxxxxxxxxx 
Web:    

======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: