CPC G09G 3/3208 (2013.01) [G06F 3/14 (2013.01); G06F 3/147 (2013.01); G09G 5/18 (2013.01); G09G 3/2096 (2013.01); G09G 5/393 (2013.01); G09G 2320/103 (2013.01); G09G 2330/021 (2013.01); G09G 2330/023 (2013.01); G09G 2340/0435 (2013.01)] | 18 Claims |
1. A method for controlling dynamic change of a screen refresh rate, wherein the method is applied to an electronic device, the electronic device comprises a display screen and a display driver integrated circuit DDIC and SurfaceFlinger, and the method comprises:
recognizing, in response to a first operation by a user, that a current scenario category changes to a first scenario category, wherein the first scenario category is a static display scenario or a dynamic display scenario;
generating a screen refresh rate switching instruction based on a scenario recognition result, wherein the screen refresh rate switching instruction is for instructing the display screen to switch from a current first screen refresh rate to a second screen refresh rate, and the second screen refresh rate is a screen refresh rate corresponding to the first scenario category;
sending the screen refresh rate switching instruction to the DDIC within a current frame period, to instruct the DDIC to switch to the second screen refresh rate; and
after the DDIC is switched to the second screen refresh rate, generating, by the DDIC, a TE signal, wherein the TE signal indicates that the image sending and displaying periodicity has switched to the second Vsync periodicity;
reporting, by the DDIC, the TE signal to the SurfaceFlinger;
switching, by the SurfaceFlinger, the image sending and displaying periodicity from the first Vsync periodicity to the second Vsync periodicity; wherein the first Vsync periodicity corresponds to the first screen refresh rate, and the second Vsync periodicity corresponds to the second screen refresh rate.
|