Trying to sync X11 application with vertical retrace.


 
Thread Tools Search this Thread
Top Forums Programming Trying to sync X11 application with vertical retrace.
# 1  
Old 08-26-2008
Trying to sync X11 application with vertical retrace.

Hi!

I'm trying to write an X11 application with the Xext extension and I'd like to update window content during/after the vertical retrace so they appear smoothly and don't shear.

I've found xsync-flip.c at Index of /xorgsync which should do the trick but that produces:

X Error of failed request: XSyncBadCounter
Major opcode of failed request: 132 (SYNC)
Minor opcode of failed request: 5 (X_SyncQueryCounter)
Counter in failed request: 0x2400001
Serial number of failed request: 17
Current serial number in output stream: 17

Does anyone have a working example using XSyncAwait & company?

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do i do the vertical to horizontal??

51009 8746 8912 17986 20315 24998 5368 38934 7805 8566 (4 Replies)
Discussion started by: nikhil jain
4 Replies

2. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

3. UNIX for Dummies Questions & Answers

vertical to horizontal

dear all, i'm new to unix and i try to figure out the best case for making list of vertical text to become horizontal and skip the line 1 and 2. example text : Data DATE XXXXX MAX 47 53 49 51 48 48 7 46 51 8 25 (6 Replies)
Discussion started by: andrisetia
6 Replies

4. UNIX for Dummies Questions & Answers

Horizontal to vertical

Hi, Silly question, if I have an excel file that looks something like this: ................. Subject 1 Subject 2 Subject 3 Subject 4 Fever..............13...........9.............23..........14 Headache.........2............12...........18..........23... (3 Replies)
Discussion started by: Xterra
3 Replies

5. UNIX for Dummies Questions & Answers

vertical tabs

I am trying to get this to display vertically like in a table but it keeps jumping to a new line dev=$(df -h | grep ^/dev | cut -d " " -f1) dev1=$(df -h | grep ^/dev | cut -f 2 -d "%") dev2=$(df -h | grep ^/dev | cut -f 14-16 -d " ") dev3=$(df -h | grep ^/dev | cut -f 18-20 -d " ")... (1 Reply)
Discussion started by: gjanisse
1 Replies

6. Solaris

Invalid configuration for instance svc:/application/x11/xvnc-inetd:default, placing i

I am not able to connect Solaris 10 through X Manager from Windows machine. I found the below errors in Solaris 10 , can anybody check the errors and please help me. Property 'name' of instance svc:/application/x11/xvnc-inetd:default is missing, inconsistent or invalid Property... (2 Replies)
Discussion started by: durgaprasadr13
2 Replies

7. Solaris

Sync to Green vs. Separate Sync

Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas? ... (0 Replies)
Discussion started by: psantinello
0 Replies

8. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

9. UNIX for Dummies Questions & Answers

access windows titles of a X11 application

Hi, Do you think there a way to get the windows titles of an X11 application with multiple windows on AIX? I have only the application's process id, but I can use shell and C++ programming. I am looking for a hint/links to explore. Thanks! (0 Replies)
Discussion started by: lolal500
0 Replies
Login or Register to Ask a Question
request_scroll(3alleg4) 					  Allegro manual					   request_scroll(3alleg4)

NAME
request_scroll - Queues a hardware scroll request with triple buffering. Allegro game programming library. SYNOPSIS
#include <allegro.h> int request_scroll(int x, int y); DESCRIPTION
This function is used for triple buffering. It requests a hardware scroll to the specified position, but returns immediately rather than waiting for a retrace. The scroll will then take place during the next vertical retrace, but you can carry on running other code in the meantime and use the poll_scroll() routine to detect when the flip has actually taken place. Triple buffering is only possible with certain drivers: you can look at the GFX_CAN_TRIPLE_BUFFER bit in the gfx_capabilities flag to see if it will work with the current driver. RETURN VALUE
This function returns zero on success, non-zero otherwise. SEE ALSO
poll_scroll(3alleg4), request_video_bitmap(3alleg4), gfx_capabilities(3alleg4), scroll_screen(3alleg4) Allegro version 4.4.2 request_scroll(3alleg4)