[visionegg] Re: congratulation: max_priority mode WORKS

Thank you, Andrew (you get the award of the most responsive open-source
support!)

On Thu, 2002-12-05 at 09:58, Andrew Straw wrote:
> 
> Hi Christoph,
> 
> It looks like you've answered a lot of your previous questions youself. 
> I'll give brief answers to your previous emails here and respond to 
> your latest one below.
> 
steep learning curve :)

> post CVS download: After downloading the CVS version of the Vision Egg, 
> run "python setup.py install" from the command line in the newly 
> downloaded/updated directory to re-install this package.  This is 
> standard Python installation routine, and will install most Python 
> packages. (Those that use "distutils".)  I've updated the "downloads" 
> web page to include this information.

thanks, no I have the *.so 

> 
> error message: It looked like you were passing a directory name as a 
> file name as an earlier error that now you've fixed.
> 
> Centering textures: Use the texture parameter "lowerleft".  You may 
> want to do something like
> 
> x = screen.size[0]/2 - texture.size[0]/2
> y = screen.size[1]/2 - texture.size[1]/2
> 
> stimulus = TextureStimulus(texture=texture,lowerleft=(x,y))

get the error: 
TextureFromFile instance has no attribute size

shall I use get_PIL_image?

> 
> Time of mouse click: Check the mouseTarget.py demo for general mouse 
> usage stuff.  Add an event-handling function for events of types 
> pygame.locals.MOUSEBUTTONDOWN and pygame.locals.MOUSEBUTTONUP.  Get the 
> current time of the clicks using "VisionEgg.timing_func()".  There may 
> be a more accurate  way to get the time of the click (if the OS 
> time-stamps the data as it arives from the USB bus, for example), but 
> not with the version of pygame that I'm using.  I'd have to delve into 
> SDL and pygame code to see if it's available, and submit patches to 
> those projects if it's not.  Hopefully the accuracy already present 
> will be enough for you, if not, though, we can improve it.

I will try this now...

> 
> On Thursday, December 5, 2002, at 08:42  AM, Christoph Lehmann wrote:
> 
> >
> > Hi Andrew
> > I just downloaded all the newest files from CVS tree. now as su I can 
> > run the py
> > code (presenting 120 bmps all preloaded into openGL): logfile see 
> > below (longest
> > frame was 3.80 ms). even though I don't understand the log well: seems 
> > to run
> > very "nicely"
> 
> By "nicely", I assume you mean it looks good to the eye, which is 
> encouraging! The frame-statistics histogram indicates that you haven't 
> dropped any frames: over 45000 with an inter-frame interval between 2 
> and 4 msec, with the maximum being 3.8 msec.

no dropped frames: super!
> 
> This reminds me that you haven't been able to sync swapping of buffers 
> with your ATI card.  (Your frame rates are too fast unless your 
> monitor's vertical refresh is >260Hz, in which case I'd love to know 
> what monitor you have!)  There's no ATI specific support in the Vision 
> Egg yet, which is what's needed to enable this feature.  If someone 
> lets me know how to turn this feature on in the ATI/Mesa drivers, we 
> could add it.
> 
I do everything on a IBM thinkpad a31p (superb machine)
> > just one question: the downloaded _raw_lpt_linux.c : what to do to get 
> > the *.so
> > (please don't laugh at me...I am just new...)
> 
> The _raw_lpt_linux.c file is a C extension to python.  It gets compiled 
> (to .so on linux) and installed automatically when you run "python 
> setup.py install" from the source directory.

done.

bye
christoph
> 
> Good luck, and I'm glad it's going well!
> 
> Cheers!
> Andrew
> 
> ======================================
> The Vision Egg mailing list
> Archives: http://www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html
-- 
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: