主权项 |
1. A method comprising:
receiving a stream of images; preprocessing, by a central processing unit (CPU), the stream of images to generate a preprocessed stream of images; transmitting the preprocessed stream of images to a graphic processing unit (GPU); rendering, by the GPU, the preprocessed stream of images, to generate a rendered stream of images for displaying on a display; ascertaining a first frame rate that is associated with one of (i) the preprocessed stream of images or (ii) the rendered stream of images; determining a refresh rate of the display; comparing the first frame rate to the refresh rate of the display; and based on comparing the first frame rate to the refresh rate, controlling (i) a rate of preprocessing, by the CPU, the stream of images, and (ii) a rate of rendering, by the GPU, the preprocessed stream of images, the controlling being performed such that a frame rate of the rendered stream of images is substantially equal to the refresh rate of the display. |