From: Xavier Chantry Subject: Re: swap control Date: Fri, 29 Jan 2010 12:11:24 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau List-Id: nouveau.vger.kernel.org On Fri, Jan 29, 2010 at 10:07 AM, Xavier Chantry wrote: > Is it possible to use sync to vblank / swap control with mesa/gallium > (and nouveau) ? I already have the answer to the primary question, thanks curro ! 11:39 < curro__> shining: yes, gallium drivers can sync to vblank, but we aren't implementing that yet. 11:40 -!- curro__ is now known as curro_ 11:40 < shining> nouveau gallium doesnt ? 11:40 < shining> is it hard to implement ? 11:41 < curro_> shining: nope, we already sync to vblank in the Xv code 11:41 < shining> right, so its the same code we just have to copy 11:42 < shining> is this a wanted feature ? 11:43 < shining> I am curious if I could play teeworlds at less than 100% cpu :) it runs really great on my laptop nv84, 100-200 fps, but it gets hot and noisy. 11:45 < shining> anyway, even if its not too hard, its still too hard for me, I am not even able to locate the relevant code. what a mess between opengl/mesa/dri1/dri2/gallium code 11:56 < curro_> shining: well, i'd also blame the fence busy-waiting we do instead of putting the process to sleep