Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vsync(3alleg4) [centos man page]

vsync(3alleg4)							  Allegro manual						    vsync(3alleg4)

NAME
vsync - Waits for a vertical retrace to begin. Allegro game programming library. SYNOPSIS
#include <allegro.h> void vsync(); DESCRIPTION
Waits for a vertical retrace to begin. The retrace happens when the electron beam in your monitor has reached the bottom of the screen and is moving back to the top ready for another scan. During this short period the graphics card isn't sending any data to the monitor, so you can do things to it that aren't possible at other times, such as altering the palette without causing flickering (snow). Allegro will auto- matically wait for a retrace before altering the palette or doing any hardware scrolling, though, so you don't normally need to bother with this function. SEE ALSO
set_palette(3alleg4), scroll_screen(3alleg4) Allegro version 4.4.2 vsync(3alleg4)

Check Out this Related Man Page

scroll_screen(3alleg4)						  Allegro manual					    scroll_screen(3alleg4)

NAME
scroll_screen - Requests a hardware scroll request. Allegro game programming library. SYNOPSIS
#include <allegro.h> int scroll_screen(int x, int y); DESCRIPTION
Attempts to scroll the hardware screen to display a different part of the virtual screen (initially it will be positioned at 0, 0, which is the top left corner). You can use this to move the screen display around in a large virtual screen space, or to page flip back and forth between two non-overlapping areas of the virtual screen. Note that to draw outside the original position in the screen bitmap you will have to alter the clipping rectangle with set_clip_rect(). Mode-X scrolling is reliable and will work on any card, other drivers may not work or not work reliably. See the platform-specific section of the docs for more information. Allegro will handle any necessary vertical retrace synchronisation when scrolling the screen, so you don't need to call vsync() before it. This means that scroll_screen() has the same time delay effects as vsync(). RETURN VALUE
Returns zero on success. Returns non-zero if the graphics driver can't handle hardware scrolling or the virtual screen is not large enough. SEE ALSO
set_gfx_mode(3alleg4), show_video_bitmap(3alleg4), request_scroll(3alleg4), request_video_bitmap(3alleg4), exscroll(3alleg4) Allegro version 4.4.2 scroll_screen(3alleg4)
Man Page

12 More Discussions You Might Find Interesting

1. HP-UX

lov4 stale found in lvdisplay

hi All I have one RP 3410 server with hp-ux 11.23 mirror disk it's lvdislay -v /dev/vg00/lvol4 shows stale in some location Actual is current pls help me to resolve the probem I have check with lvsync command and vgsync but not working re Rajesh (1 Reply)
Discussion started by: rajeshtt32
1 Replies

2. UNIX for Advanced & Expert Users

Problem syncing logical volume in root vg

Hello. I have a test server that I'm messing around with, and just recently received an error on startup that a logical volume in the root volume group couldn't be re-synchronized. Server boots fine, as the root vg is mirrored, but I'd like to get rid of the error. Here are the details: ... (1 Reply)
Discussion started by: matt.d
1 Replies

3. Ubuntu

graphics drivers

ok, right off the bat im going to say this, i know that there is about over 100 links on google for this, just none of them help me. i have a radeon mobility 7500 graphics card. and i want to enable the compiz effects via Administration/preferences/Appearance. the problem is that i can't get the... (12 Replies)
Discussion started by: Texasone
12 Replies

4. Red Hat

DirectFb installation & accelerator not recognised

Hi, I installed DirectFb on fedora 7, the machine has a Nvidia graphics card. The installation was successful and I can play the examples provided by the Direct fb website, but, I find that the accelarator is not getting recognised. when I do "fbset -i", the details shown are as below, it gives... (0 Replies)
Discussion started by: sifar
0 Replies

5. Programming

FrameRate en Allegro

Hola, en windows no tengo este problema, pero estoy programando en linux y aca no se como hacer que no vaya tan rapido la velocidad de refresco, estoy tratando de poner a 60Hz como hacia en windows con request_refresh_rate(60); y vsync();, pero estas funciones no sirven en linux, ni en ventanas ni... (1 Reply)
Discussion started by: LoboOscuro
1 Replies

6. UNIX for Advanced & Expert Users

ATI Radeon HD 3200, Compiz, FreeBSD8.0-RC2, White screen

The issue I'm having (after some effort) is that while compiz starts fine and functions (I can use the cube, expo, key bindings all good) all desktops are white. I can't see any of my windows, backgrounds, or menus. I am using FreeBSD 8 with no custom kernel options or otherwise interesting... (0 Replies)
Discussion started by: WrecknRoll
0 Replies

7. Debian

Change resolution problem

Hi gurus I have notebook with connected external monitor. output of my xrandr looks like Screen 0: minimum 320 x 200, current 2960 x 1050, maximum 2960 x 1050 VGA connected 1680x1050+1280+0 (normal left inverted right x axis y axis) 478mm x 300mm 1680x1050 60.0*+ 1280x1024 ... (2 Replies)
Discussion started by: wakatana
2 Replies

8. AIX

How to know the progress of HA C-SPOC Mirrorvg?

Hi, Anyone know how to check the progress of the HACMP C-SPOC mirror for the vg ? I know there is lsvg -l <appvg>, it show the open/stale .. but I couldn't see the progress of it. Your feedback is very appreciated. Thanks. (2 Replies)
Discussion started by: ckwan
2 Replies

9. HP-UX

Bypass stale PE ?

Hello, I have an ancient HP-UX 11.11 system where I have a logical volume marked stale and I can't get it sync'd. I have tried lvsync and lvreduce/lvextend to no avail. It is just one 4Mb PE on the disk that I can't get current. # lvdisplay -v /dev/vg00/lvol5 | grep stale LV Status ... (17 Replies)
Discussion started by: port43
17 Replies

10. BSD

X -configure fails on NetBSD: Number of created screens does not ...

Hello, my system is NetBSD 6.1.5 on AMD64. 'X -configure' prints following message: "Number of created screens does not match number of detected devices" Only motherboard's on-board graphic is using. xorg.conf.new Section "ServerLayout" Identifier "X.org Configured" ... (7 Replies)
Discussion started by: temp-usr
7 Replies

11. UNIX for Beginners Questions & Answers

Resolution Won't Change on Headless Linux Box?

Hello All, Wasn't sure if I was supposed to post this under Hardware so posting here... Device: CuBox-i OS: OpenSuSE 13.1 Uname: Linux CuBox-PC 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux Window Manager: XFCE Display Manager: lightdm (*XDM?) I... (2 Replies)
Discussion started by: mrm5102
2 Replies

12. Hardware

How disabling GPU?

Hi All I'm find out a way to disable the DGD: AMD Radeon HD 7470M on my Ubutu 16.04.2 LTS because radeon open source module is not capable to support this GPU and consequence the boot is very slow. I have tried serveral way with pci-stub.ids in the grub menu but not work. In general how... (11 Replies)
Discussion started by: _Fabio_79
11 Replies