Hi,

I tried to puzzle this together from my (vague) memory of the IRC
discussion with Ian about this topic and my own thoughts. Here is the
result:

Synchronization with vertical refresh (swap intervals):
- Never, FPS rulez!
- Application preference, default interval 0
- Application preference, default interval 1
- Application preference, always synchronize with refresh

The thing I'm not sure about is where to set the default swap_interval.
I found that the environment variable LIBGL_THROTTLE_REFRESH is still
used in xc/lib/GL/dri/dri_util.c (driCreateDrawable) for this purpose.
As driCreateDrawable does not have a current context there is no way to
access the XML (per-context) configuration from there.

I believe the driver's makeCurrent function is the only sensible place
to set the default swap_interval. If it was initialized to some special
value by driCreateDrawable then the driver could set the configured
default value there. We could add a new function in the
driver-independent code for that.

Thoughts?

Best regards,
  Felix

P.S.: I kept answering my own questions while I was typing and ended up
with a plan. :) Is it a good one?

------------    __\|/__    ___     ___       -------------------------
 Felix       ___\_e -_/___/ __\___/ __\_____   You can do anything,
   Kühling  (_____\Ä/____/ /_____/ /________)  just not everything
 [EMAIL PROTECTED]       \___/   \___/   U        at the same time.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to