al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
gDPSync FunctionsFormat#include "gbi.h" gDPPipeSync(Gfx *gdl) gsDPPipeSync(void) gDPFullSync(Gfx *gdl) gsDPFullSync(void) gDPLoadSync(Gfx *gdl) gsDPLoadSync(void) gDPTileSync(Gfx *gdl) gsDPTileSync(void)Arguments
They synchronize RDP attribute updates with primitive rendering. Pixel rendering and attribute interpolation are not implicitly sequentially synchronized in the RDP. If an attribute change occurs after a primitive has started processing, the attribute change will likely affect the rendered pixels in the middle of the primitive. The gDPSync macros enable the application to insert explicit synchronization instructions to force a wait until the last pixel of a primitive has been processed. The different sync macros represent different synchronization scenarios:
gSP1Triangle(...); gSP1Triangle(...); gSP1Triangle(...); gDPPipeSync(...); gDPSetRenderMode(...);The gDPFullSync macro must be the last macro sent to the RDP during a frame. It causes the RDP to send an interrupt back to the CPU indicating that the RDP pipeline has finished processing its last macro. gDPLoadSync and gDPTileSync are not usually needed; they are already properly inserted in the gDPLoadTexture macros. See Also gDPLoadTexture
|