I think the partial update stuff is fairly new. We should test it with a small program to see if it works, how it looks on the display, and how it performs...
Idea:
Maybe the most universal solution would be to integrate the xdamage stuff in displayMgr (make a replacement with the same name, but with extra features)
- When starting displayMgr -x: your code (dedicated thread) handles the display updates directly, and disables al 'normal' updates
- when starting displayMgr in the normal way, your code is not invoked (100% compatible).
What do you think?