> 
>    I've been thinking that we need a new extension for better
> pointer motion in video games and other interactive applications.
> I came to that conclusion a couple years ago and now I wish that
> I had been more proactive back then.
> 
>    I'd like to see a stand-alone X-extension suitable for
> adoption by X.org that would do all of the following with
> a single request:
> 
> 1) grab the pointer (and other clients don't get the events)
> 2) hide the cursor
> 3) receive relative motion instead of absolute motion
> 4) do whatever is possible to reduce the latency in reporting
>    these events to the client.

For what it's worth, if you compile xc/programs/Xserver/os
with -DTCP_NODELAY, I've found that the issue mentioned in
item 4 (latency of pointer events) is greatly reduced or 
eliminated.  This turns off the coalesence of packets, so 
events are sent as soon as they happen, rather than getting 
bunched up and sent in bursts.  See xc/lib/xtrans/Xtranssock.c 
to see the actual code which is turned on when TCP_NODELAY
is defined.  (This flag was easiest for me to turn on by adding 
it to ConnectionFlags in X11.tmpl, but adding it locally
in the "os" directory works, too.)

Of course, this won't address all types of transports,
and it can be dependent on the underlying OS support, so
defining that flag certainly isn't guaranteed to address
the latency issue on all OS/transport combinations.  But, 
I've had success with it in the past, so I thought I'd
mention it.

-paul
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to