Display Frame Rate Switching for Stable Sliding Speed
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Frame rate switching in electronic devices leads to fluctuations in image frame sliding speed, causing screen freezing and poor user experience.
Innovation Solution
A method involving an application thread for drawing and rendering image frames at specific intervals, followed by a system triggering a compositing thread to notify a hardware composer for frame rate switching, ensuring consistent frame rate display without speed fluctuations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If frame rate switching is implemented to reduce system load or improve user experience, then frame rate can be adjusted, but sliding speed of image frame fluctuates causing screen freezing
Solution Approach 1:
The patent applies preliminary action by having the application thread prepare and render image frames at the new frame rate before the actual frame rate switching occurs. The compositing thread receives these pre-rendered frames and applies them after the hardware composer completes the frame rate switch, ensuring smooth transition without visible fluctuations or screen freezing.
Solution Approach 2:
The patent introduces the compositing thread as an intermediary between the application thread and the hardware composer. This mediator coordinates the timing and synchronization of frame rate switching, receiving rendered frames from the application thread and applying them at the appropriate moment after the hardware composer switches frame rates, thereby preventing display anomalies.
2Ease of operation
If frame rate is increased to improve user experience in gaming scenarios, then responsiveness improves, but system load increases
Solution Approach 1:
The patent implements dynamics by enabling flexible frame rate switching between different rates (e.g., 60fps and 120fps) based on system conditions and user needs. The system can dynamically adjust the frame rate for different applications or scenarios, allowing high frame rates for gaming when needed while maintaining lower frame rates for other tasks to reduce system load and energy consumption.
3Device complexity
If frame rate switching is performed without coordination between threads, then implementation is simple, but sliding speed fluctuation occurs
Solution Approach 1:
The patent applies feedback by establishing a coordinated communication mechanism between the application thread, compositing thread, and hardware composer. The system monitors the frame rate switching state and adjusts the timing of frame application accordingly, using feedback from the hardware composer's switching status to determine when the compositing thread should apply the next frame, thereby maintaining consistent rendering without fluctuations.
Data Source
AI summary
Embodiments of this application provide a frame rate switching method and apparatus, applied to the field of terminal technologies. The method includes: 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, where the second period is preceded by the first period, and the second frame rate is different from the first frame rate.


