CPC G09G 5/395 (2013.01) [H04N 21/431 (2013.01); H04N 21/440281 (2013.01); H04N 21/4438 (2013.01); G09G 2340/0435 (2013.01); G09G 2370/16 (2013.01)] | 20 Claims |
1. A frame rate switching method, comprising:
drawing and rendering, by an application thread, a first image frame at a frame interval corresponding to a first frame rate in a first period;
drawing and rendering, by the application thread, a second image frame at a frame interval corresponding to a second frame rate in a second period, wherein the second period is preceded by the first period, and the second frame rate is different from the first frame rate;
transmitting, by a compositing thread, a first frame-rate-switching request to a hardware composer thread in a third period, wherein the transmitting comprises calling, by the compositing thread, a function in the third period to cause the hardware composer thread to switch from the first frame rate to the second frame rate, wherein the third period is preceded by the second period, or the third period coincides with the second period; and
switching, by the hardware composer thread, from the first frame rate to the second frame rate in response to the first frame-rate-switching request so that the second image frame is displayed at the second frame rate.
|