Bink SDK 1.5v

# Sharing the CPU on the Xbox

#### Discussion

On Xbox, you don't have to share the CPU with the OS at all! This is a nice retro-style bonus when working on the Xbox - you can hog all the CPU you want! This means an Xbox Bink playback loop is typically very simple. Bink handles timing with the BinkWait function, so we just need to check this function while we're playing a video (unless your video is authored exactly at 29.97 in which case you can let the page-flipping control your frame rate). So, a simple example of Xbox playback would look something like this:

`

    for ( ; ; ){   // check on our playback   //   // Note that if your videos are   //   authored at exactly 29.97 fps,   //   you'll get better performance   //   by not calling BinkWait and   //   letting the page flipping   //   control the speed of playback!!!!!   //
       if ( !BinkWait( bink ) )   {     // go process the next Bink frame     Show_next_frame( bink, linear_texture );   } }}

`

Next Topic (Bink Examples for the Xbox)

Previous Topic (Memory management on the Xbox)

Group: The Xbox Platform
Related Functions: BinkWait

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.