pub unsafe fn vexDisplayRender(bVsyncWait: bool, bRunScheduler: bool)
Expand description
Enables double-buffered mode on the display, flushing the intermediate framebuffer.
The first time this function is called, double-buffered mode will be enabled. In order for future draws to be seen, this function will need to be called each frame to draw the secondary buffer to the display.
To re-enable immediate-mode rendering (single-buffer), see vexDisplayDoubleBufferDisable
.
§Arguments
bVsyncWait
: Sleep the current task until the screen is ready to refresh.bRunScheduler
: CallvexTasksRun
while waiting for a refresh.
§Safety
Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.