Re: How do I sync output changes to vertical retrace?

2006-02-15 Thread Mark Vojkovich
On Mon, 13 Feb 2006, Barry Scott wrote:

 I have a text scrolling app that is not playing smoothly.

 Attempting to update the windows on a timer is not keeping my changes in
 sync with the monitors refresh. This is causing visual glitches.

 What mechanisms can I use to lock my changes to the monitor refresh rate?

  The only mechanism I know of is OpenGL.  Most OpenGL drivers have
a mechanism to allow buffer swapping at vblank.

 If I use DBE is it going to change the screen in the vertical blanking
 interval?


   No, it won't.  At least not in the XFree86/X.org implementations.


Mark.
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


RE: Xlib : unexpected async reply

2006-02-15 Thread Kaliraj Kalaichelvan - CTD, Chennai
Have you tried using XInitThreads()

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of [EMAIL PROTECTED]
Sent: Monday, February 13, 2006 11:35 AM
To: devel@xfree86.org
Subject: Xlib : unexpected async reply


   Iam buildin a kde Application that uses Xlib .
   Iam using  pthread_cond_wait() so that the running
   worker thread will wait untill the GUI thread give
   signal or finished his work .

  But suppose the worker thread blocked some X resources and waiting
  for the signal . If the next thread need those resources
  then there going to be problem .
  So in my case how will ensure that blocked working thread will
  release   all the X resources so that the GUI thread can
  use that X resources .I have used separate display connection
  for each thread .

 I pause the current pthread and invoke an dialog in
another thread the following error is coming
:
 Xlib : unexpected async reply
Xlib :sequence lost (0x1718e  0x71a0) in reply to 0x0!
X Error : BadImplementation (server does not implement opertaion) 17
 Major opcode : 20
 MInor opcode : 0
 Resource id  : 0x759d1
 The error is coming randomly , not always .
   Can any will help how to come out of this error .


Thanks

















___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel
DISCLAIMER 
This message and any attachment(s) contained here are information that is 
confidential, proprietary to HCL Technologies 
and its customers. Contents may be privileged or otherwise protected by law. 
The information is solely intended for the 
individual or the entity it is addressed to. If you are not the intended 
recipient of this message, you are not authorized to 
read, forward, print, retain, copy or disseminate this message or any part of 
it. If you have received this e-mail in error, 
please notify the sender immediately by return e-mail and delete it from your 
computer


___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel