Image Processing Method for Reducing Frame Loss in Electronic Devices
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
High frame rates in electronic devices lead to a higher likelihood of frame loss, causing discontinuity in displayed content and affecting user experience.
Innovation Solution
The electronic device employs an image processing method where it draws and renders layers in advance, using the idle period of a UI thread, and buffers them in an SF buffer queue before the arrival of a vertical synchronization signal, thereby reducing frame loss and ensuring smooth image display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the frame rate of the electronic device is increased to improve visual continuity, then the frame loss problem becomes more likely to occur, causing discontinuity of displayed content
Solution Approach 1:
The patent applies preliminary action by having the UI thread perform layer drawing tasks in advance during its idle periods before the vertical synchronization signal arrives. Specifically, the UI thread draws layers and buffers them in the SF buffer queue ahead of time, so that when the high frame rate rendering is triggered, the rendering thread can immediately process pre-drawn layers without waiting, thus preventing frame loss at high frame rates
Solution Approach 2:
The patent implements continuity of useful action by keeping the UI thread continuously productive. Instead of idle waiting for vertical synchronization signals, the UI thread continuously draws and buffers layers during idle periods. This ensures that the rendering pipeline always has ready-to-process layers, maintaining continuous useful action and preventing frame loss even at high frame rates
Data Source
Figure 1
Figure 2A
Figure 2B
AI summary
Disclosed are an image processing method and an electronic device, which relate to the field of image processing technologies. A specific solution includes: (S301) An electronic device draws a first layer, renders the first layer, and buffers the rendered first layer in an SF buffer queue; and (S302) the electronic device finishes drawing the first layer before a first time, and the electronic device draws a second layer, renders the second layer, and buffers the rendered second layer in the SF buffer queue before the first time, where the first time is a time of arrival of a first vertical synchronization signal for triggering the electronic device to draw the second layer.