CPC G09G 5/34 (2013.01) [G09G 2340/0435 (2013.01); G09G 2354/00 (2013.01)] | 18 Claims |
1. A frame rate adjusting method for a display screen, comprising:
obtaining, in response to detecting a swiping operation, a screen scrolling speed corresponding to an end time point of the swiping operation;
in response to the screen scrolling speed satisfying a predetermined frame-rate-adjustment condition, obtaining a current frame rate of a screen, a predetermined target frame rate, and a screen scrolling time length corresponding to the swiping operation;
determining a current frame period based on the current frame rate, and determining a target frame period based on the predetermined target frame rate;
determining a frame period change based on the current frame period, the target frame period, and the screen scrolling time length; and
adjusting the current frame rate of the screen based on the frame period change during a screen scrolling period,
wherein said determining the frame period change based on the current frame period, the target frame period, and the screen scrolling time length comprises:
calculating a difference between a square of the current frame period and a square of the target frame period;
calculating a product of the screen scrolling time length and 2, and subtracting the current frame period and the target frame period from the product to obtain a difference; and
determining a ratio of the difference between the squares to the difference as the frame period change.
|