// Called by client to get the total number of frames to draw in update_gui
int pending_gui_frames();
// pop frames until buffer passes position=pos(-1 or seconds) in direction=dir(-1,0,1)
// Called by client to get the total number of frames to draw in update_gui
int pending_gui_frames();
// pop frames until buffer passes position=pos(-1 or seconds) in direction=dir(-1,0,1)