Interface Image Scheduling to Prevent Frame Freezing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In electronic devices like mobile phones and tablets, high processor load can cause delays in interface image processing, leading to frame freezing and unsmooth sliding operations due to conflicts between rendering tasks of adjacent frames.
Innovation Solution
The method involves executing animation event tasks of a subsequent frame during the processing of the current frame, utilizing idle processor time to reduce the likelihood of frame freezing by completing these tasks ahead of schedule.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If animation event tasks of the current frame are executed sequentially after input event tasks, then task execution order is maintained, but processing delay increases causing frame freezing
Solution Approach 1:
The patent executes the animation event task of the subsequent frame in advance during the processing of the current frame, specifically after the draw event task of the current frame is completed but before the vertical synchronization signal of the current frame is received. This preliminary action ensures that animation tasks are prepared beforehand, reducing processing delays and preventing frame freezing when processor load is high.
2Productivity
If processor resources are allocated to handle high load tasks, then other processing functions are maintained, but interface image processing speed decreases
Solution Approach 1:
The patent performs preliminary execution of animation event tasks during idle periods in the current frame processing, specifically utilizing the time window between completing the draw event task and receiving the vertical synchronization signal. This overlapping execution model allows the system to maintain interface processing throughput while preventing speed degradation by preparing animation tasks in advance during available processor cycles.
3Reliability
If animation event tasks are executed in advance during current frame processing, then frame freezing probability is reduced, but task scheduling complexity increases
Solution Approach 1:
The patent implements a structured preliminary action mechanism where animation event tasks of subsequent frames are executed in a specific time window: after the draw event task of the current frame completes but before the vertical synchronization signal of the current frame is received. This structured approach reduces frame freezing probability while managing scheduling complexity through clear temporal boundaries and conditional execution logic.
Solution Approach 2:
The patent employs dynamic task scheduling that adapts to real-time processor conditions. The system dynamically determines whether to execute animation event tasks in advance based on the timing relationship between draw event completion and vertical synchronization signal reception, allowing flexible adjustment of execution timing while maintaining frame continuity reliability.
Data Source
Figure 1A(1)
Figure 1A(2)
Figure 1B(1)
AI summary
Embodiments of this application provide an interface image processing method and apparatus, an electronic device, and a storage medium, and relate to the field of electronic device technologies, to improve picture procedural performance. The interface image processing method includes: executing an input event task and a draw event task of a tth frame in an interface image processing process of the tth frame; and executing an animation event task of a (t+1)th frame after the input event task and the draw event task of the tth frame are executed in the interface image processing process of the tth frame.