Client

From ioquake3 wiki
Jump to: navigation, search

CL_Frame() performs all of the client-side processing required for a single frame of gameplay. The basic flow of CL_Frame() is as follows:

  • If not yet connected to a server, call VM_Call(UI_SET_ACTIVE_MENU) to navigate menus.
  • call CL_CheckTimeout() to see if we've lost our connection to the server.
  • call CL_SendCmd() to send user's intentions to the server.
  • call CL_CheckForResend(), which will connect to the server if we haven't connected to it yet (or if we lost our connection).
  • call CL_SetCGameTime() to recalculate client's guesstimate of the server's current time.
  • call SCR_UpdateScreen() and S_Update() to update the video and audio.