void BeginFrame();
BeginFrame is called to initialize queue processing in the beginning of the frame.