Patent ID: 11942062
Assignee: ONEPLUS TECHNOLOGY (SHENZHEN) CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a frame rate adjusting method for a display screen, the method 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.