Vertical Blank Interrupt

A vertical blank interrupt (or VBI) is a programming technique used in some systems, notably video games and consoles, to allow program code to be run in the periods when the display hardware is turned off, waiting for the TV to complete its vertical blank.

Since the vertical blank period occurs at the start of every displayed frame (PAL: 50 times a second, NTSC: 60 times a second), timing the code to run during this period guarantees a regular "heartbeat" which is useful for timing-dependent functions. Simple routines like reading the joystick or updating the display can be placed in the VBI, and then basically ignored while the main program runs. Many systems used this to develop a crude sort of multitasking.

The VBI is particularly useful if the display hardware includes some sort of page flipping support, in which case the hardware can be set up to draw a new frame during the period where there is no drawing taking place. This guarantees a flicker-free display with almost no effort.

This was widely used on the Atari 8-bit family, whose ANTIC display chip included a register pointing to the start of the display memory. The main program would draw the new frame into a buffer in memory, and then a small piece of code in the VBI would change the ANTIC register. The result was excellent animation from a simple piece of hardware.

Famous quotes containing the words vertical, blank and/or interrupt:

    I tell you, hopeless grief is passionless;
    That only men incredulous of despair,
    Half-taught in anguish, through the midnight air
    Beat upward to God’s throne in loud access
    Of shrieking and reproach. Full desertness,
    In souls as countries, lieth silent-bare
    Under the blanching, vertical eye-glare
    Of the absolute Heavens.
    Elizabeth Barrett Browning (1806–1861)

    All right, so there he is, our representative to the world, Mr. Western Civilization, in codpiece and pantyhose up there on the boards, firing away at the rapt groundlings with his blank verses, not less of a word-slinger and spellbinder than the Bard himself and therefore not to be considered too curiously on such matters as relevance, coherence, consistency, propriety, sanity, common decency.
    Marvin Mudrick (1921–1986)

    Television ... helps blur the distinction between framed and unframed reality. Whereas going to the movies necessarily entails leaving one’s ordinary surroundings, soap operas are in fact spatially inseparable from the rest of one’s life. In homes where television is on most of the time, they are also temporally integrated into one’s “real” life and, unlike the experience of going out in the evening to see a show, may not even interrupt its regular flow.
    Eviatar Zerubavel, U.S. sociologist, educator. The Fine Line: Making Distinctions in Everyday Life, ch. 5, University of Chicago Press (1991)