[visionegg] Re: Screen draw

  • From: Andrew Straw <astraw@xxxxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Wed, 21 Apr 2010 07:46:51 -0700

Dav Clark wrote:
> Interestingly, I was just wondering about the same thing. Ubuntu is
> moving to the nouveau drivers by default in Lucid (10.04) and I went
> that way initially because my laptop / chipset (lenovo t510 / nvidia
> 3100M) is better supported by the free drivers. As in, the nv drivers
> seem to cause random crashes.
>
> So - I would very much like to get vsync working on nouveau. How hard
> would that be? Any pointers? I've already got a git clone of the main
> repo... so I'm ready to hack away and submit patches.
>   
I can only report that things are working fine on Ubuntu Karmic amd64
with the nvidia 195.30 beta drivers. I haven't tried the nouveau drivers
yet, and thus don't have any insight into this.

> On Fri, Apr 2, 2010 at 3:02 PM, Steve <realtimematrix@xxxxxxxxx> wrote:
>   
>> Hello,
>> Almost every time I try and start my drawing thread (which uses
>> screen.put_pixels and swap_buffers) the screen window comes up blank. If I
>> again hit my display button, it will show up and work fine. The problem is
>> when I close the initial window, the thread gets into an unhappy state and I
>> no longer have a way to close it.
>> I see the following warning when this happens:
>> WARNING: Could not sync buffer swapping to vblank ecause you are running
>> linux but not known/supported drivers.
>> Could this be based on the fact that I am not using the nvidia driver for my
>> display?

One idea -- I have heard various rumors about OpenGL behaving poorly
when run in a spawned thread (i.e. not the initial thread opened with
the application). Could you perhaps invert the operations in your
program, such that the OpenGL operations occur in the initial thread,
and the rest in the new thread?

-Andrew

-- 
Andrew D. Straw, Ph.D.
California Institute of Technology
http://www.its.caltech.edu/~astraw/

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

Other related posts: