[visionegg] Re: congratulation: max_priority mode WORKS

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.

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.

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))

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.

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.

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.

> 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.

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

Other related posts: