Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetect valid SHM transport #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ickle
Copy link

@ickle ickle commented Jul 27, 2013

Hi, just stumbled across meh and thought you would appreciate automatic detection of usable shm transport along with support for utilizing ShmPixmaps.

Standard code for testing whether the display connections offers the
MIT-SHM extension and then verifies that it works (in order to detect
and disable SHM over ssh X-tunneling).
A few drivers offer to create Pixmaps out of shared memory as it reduces
the overhead associated with ShmPutImage and allows the driver to
optimize storage of the pixmap within video memory. Here this means that
any redrawing we require is then a simple blit from within video memory,
rather than requiring a fresh transfer every time. This is only useful
if we redraw of course, but there should be negative consequences from
enabling the pixmap path where supported!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant