gDPFullSync
Signals that the RDP has completed its last process
#include <ultra64.h> /* gbi.h */
gDPFullSync(Gfx *gdl)
gsDPFullSync(void)
Generates an OS_EVENT_DP event to indicate that processing of the final command in the RDP pipeline has been completed. For details, see Section 12.2.2 "Synchronization" in the N64 Programming Manual.
Note
The gDPFullSync macro must be the final command sent to the RDP during a frame.
/* RSP initial settings */
gSPSegment(gp++, 0, 0x0);
/* Rendering process */
gDPPipeSync(gp++); // Get synchronized
gDPSetCycleType(gp++, G_CYC_FILL); // Set the cycle type
gDPSetRenderMode(gp++, G_RM_OPA_SURF, G_RM_OPA_SURF2); // Set the rendering mode
gDPSetFillColor(gp++, (GPACK_RGBA5551(255,255,255,1)<<16
| GPACK_RGBA5551(255,255,255,1))); // Set fill color
gDPFillRectangle(gp++, 30, 200, 30, 207); // Draw solid-color rectangle
/* Signal that RDP has completed final process */
gDPFullSync(gp++);
/* Signal the end of the display list */
gSPEndDisplayList(gp++);
Revision History
02/01/99 Completely rewritten