# US 2023/0410767 A1 · Vertical Synchronization Signal-Based Control Method and Electronic Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0410767 A1
- Document ID: US20230410767A1
- Status: Published application
- Kind: A1
- Application number: 18/251,094
- Filed: 2021-09-30
- Published: 2023-12-21
- Earliest claimed: 2020-10-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jian Chen; Yu Li; Tanqi Yu; Wei Tan; Yuehai Zhou; Liang Wang
- Web page: https://patentgrep.com/patent/US20230410767A1

## CPC

- G09G 5/14: Display of multiple viewports
- G09G 5/395: Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen (G09G5/399 takes precedence)
- G09G 3/36: using liquid crystals
- G09G 5/377: for mixing or overlaying two or more graphic patterns (G09G5/02, G09G5/397 take precedence)
- G06F 3/0416: {Control or interface arrangements specially adapted for digitisers}
- G06F 3/14: Digital output to display device {; Cooperation and interconnection of the display device with other functional units}
- G09G 5/12: Synchronisation between the display unit and other units, e.g. other display units, video-disc players
- G09G 5/18: Timing circuits for raster scan displays (specially adapted for television H04N {; synchronisation between the display unit and other display units, videodisc player G09G5/12})
- G09G 2320/02: Improving the quality of display appearance
- G09G 2340/0435: Change or adaptation of the frame rate of the video stream
- G09G 2340/12: Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
- G09G 2354/00: Aspects of interface with display user
- G09G 2360/12: Frame memory handling
- G09G 2360/18: Use of a frame buffer in a display terminal, inclusive of the display panel
- H04N 5/04: Synchronising (for television systems using pulse code modulation H04N7/56)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A vertical synchronization signal-based control method. The method includes the electronic device draws a first layer of a first application in response to a first vertical synchronization signal, and buffers the first layer to a first buffer queue. The electronic device performs, in response to a second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, to obtain an image frame. The electronic device adjusts a signal period of the first vertical synchronization signal to first duration if a quantity of layers buffered in the first buffer queue is less than a first preset threshold, where the first duration is less than a signal period of the second vertical synchronization signal.

## Claims

### Claim 1

A vertical synchronization signal-based control method, comprising:
drawing, by an electronic device, a first layer of a first application in response to a first vertical synchronization signal;
buffering, by the electronic device, the first layer to a first buffer queue;
obtaining an image frame by performing, by the electronic device, in response to a second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue; and
adjusting, by the electronic device, a signal period of the first vertical synchronization signal to first duration based on a quantity of layers buffered in the first buffer queue being less than a first preset threshold, wherein the first duration is less than a signal period of the second vertical synchronization signal.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the adjusting, by the electronic device, the signal period of the first vertical synchronization signal to first duration based on a quantity of layers buffered in the first buffer queue being less than the first preset threshold comprises:
in response to switching from the first application to a foreground application, adjusting, by the electronic device, the signal period of the first vertical synchronization signal to the first duration based on the quantity of layers buffered in the first buffer queue being less than the first preset threshold;
wherein the first buffer queue is allocated to the first application, and the foreground application is an application corresponding to an interface currently displayed on a display of the electronic device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises:
adjusting, by the electronic device, based on the quantity of layers buffered in the first buffer queue being less than a second preset threshold, the signal period of the first vertical synchronization signal to second duration;
wherein the second preset threshold is less than the first preset threshold, and the second duration is less than the first duration.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the method further comprises:
adjusting, by the electronic device, based on the quantity of layers buffered in the first buffer queue being greater than a third preset threshold, the signal period of the first vertical synchronization signal, wherein the signal period of the first vertical synchronization signal is equal to the signal period of the second vertical synchronization signal, and wherein the third preset threshold is greater than or equal to the first preset threshold.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the adjusting, by the electronic device, the signal period of the first vertical synchronization signal to first duration comprises:
decreasing, by the electronic device, the signal period of the first vertical synchronization signal by ΔT, wherein the signal period of the first vertical synchronization signal is equal to the first duration, wherein the first duration is less than the signal period of the second vertical synchronization signal;
wherein ΔT is a fixed duration pre-configured in the electronic device.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method further comprises:
adjusting, by the electronic device, n response to switching a foreground application from the first application to a second application, the signal period of the first vertical synchronization signal to third duration.

### Claim 7 (depends on 1)

The method according to claim 1, wherein that the quantity of layers buffered in the first buffer queue is less than the first preset threshold comprises one of:
reading, by the electronic device, before performing, in response to the second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is less than the first preset threshold; or
reading, by the electronic device, after performing, in response to the second vertical synchronization signal, layer composition the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is less than the first preset threshold.

### Claim 8 (depends on 4)

The method according to claim 4, wherein that the quantity of layers buffered in the first buffer queue is greater than the third preset threshold comprises one of:
reading, by the electronic device, before performing, in response to the second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is greater than the third preset threshold; or
reading, by the electronic device, after performing layer composition on a frame of layer at a queue head in the first buffer queue in response to the second vertical synchronization signal, the quantity of layers buffered in the first buffer queue, wherein the read quantity is greater than the third preset threshold.

### Claim at position 9

9-12. (canceled)

### Claim 13 (depends on 1)

The method according to claim 1, wherein the adjusting, by the electronic device, the signal period of the first vertical synchronization signal to first duration comprises:
decreasing, by the electronic device, the signal period of the first vertical synchronization signal by ΔT, wherein the signal period of the first vertical synchronization signal is equal to the first duration, wherein the first duration is less than the signal period of the second vertical synchronization signal;
wherein ΔT is determined based on a difference between the signal period of the second vertical synchronization signal and a first drawing frame length of a first statistical period, the first drawing frame length is duration required by the electronic device to draw a layer, and ΔT is less than or equal to the difference.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the adjusting, by the electronic device, the signal period of the first vertical synchronization signal to first duration comprises:
decreasing, by the electronic device, the signal period of the first vertical synchronization signal by ΔT, wherein the signal period of the first vertical synchronization signal is equal to the first duration, wherein the first duration is less than the signal period of the second vertical synchronization signal;
wherein ΔT is determined based on a preset quantity K set by a user, wherein the preset quantity K indicates that the user expects the electronic device to resolve a frame loss of one frame after K frames, ΔT=TS/(K+1), and TS is a reciprocal of a screen refresh rate of the electronic device.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the adjusting, by the electronic device, the signal period of the first vertical synchronization signal to first duration comprises:
decreasing, by the electronic device, the signal period of the first vertical synchronization signal by ΔT, wherein the signal period of the first vertical synchronization signal is equal to the first duration, wherein the first duration is less than the signal period of the second vertical synchronization signal;
wherein ΔT is determined based on a screen refresh rate of the electronic device, a higher screen refresh rate indicates smaller ΔT, and a lower screen refresh rate indicates larger ΔT.

### Claim 16

An electronic device, comprising:
a display;
one or more processors; and
a non-transitory computer-readable storage medium storing a program to be executed by the one or more processors, the program including instructions for:
drawing a first layer of a first application in response to a first vertical synchronization signal;
buffering the first layer to a first buffer queue;
obtaining an image frame by performing, in response to a second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue; and
adjusting a signal period of the first vertical synchronization signal to first duration based on a quantity of layers buffered in the first buffer queue being less than a first preset threshold, wherein the first duration is less than a signal period of the second vertical synchronization signal.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the adjusting the signal period of the first vertical synchronization signal to first duration based on a quantity of layers buffered in the first buffer queue being less than the first preset threshold comprises:
in response to switching from the first application to a foreground application, adjusting the signal period of the first vertical synchronization signal to the first duration based on the quantity of layers buffered in the first buffer queue being less than the first preset threshold;
wherein the first buffer queue is allocated to the first application, and the foreground application is an application corresponding to an interface currently displayed on a display of the electronic device.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the instructions further comprise instructions for:
adjusting, based on the quantity of layers buffered in the first buffer queue being less than a second preset threshold, the signal period of the first vertical synchronization signal to second duration;
wherein the second preset threshold is less than the first preset threshold, and the second duration is less than the first duration.

### Claim 19 (depends on 16)

The electronic device according to claim 16, wherein the instructions further comprise instructions for:
adjusting, based on the quantity of layers buffered in the first buffer queue being greater than a third preset threshold, the signal period of the first vertical synchronization signal, wherein the signal period of the first vertical synchronization signal is equal to the signal period of the second vertical synchronization signal, and wherein the third preset threshold is greater than or equal to the first preset threshold.

### Claim 20 (depends on 19)

The electronic device according to claim 19, wherein that the quantity of layers buffered in the first buffer queue is greater than the third preset threshold comprises one of:
reading, before performing, in response to the second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is greater than the third preset threshold; or
reading, after performing layer composition on a frame of layer at a queue head in the first buffer queue in response to the second vertical synchronization signal, the quantity of layers buffered in the first buffer queue, wherein the read quantity is greater than the third preset threshold.

### Claim 21 (depends on 16)

The electronic device according to claim 16, wherein the adjusting the signal period of the first vertical synchronization signal to first duration comprises:
decreasing the signal period of the first vertical synchronization signal by ΔT, wherein the signal period of the first vertical synchronization signal is equal to the first duration, wherein the first duration is less than the signal period of the second vertical synchronization signal; and
wherein one of:
ΔT is a fixed duration pre-configured in the electronic device;
ΔT is determined based on a difference between the signal period of the second vertical synchronization signal and a first drawing frame length of a first statistical period, the first drawing frame length is duration required by the electronic device to draw a layer, and ΔT is less than or equal to the difference;
ΔT is determined based on a preset quantity K set by a user, wherein the preset quantity K indicates that the user expects the electronic device to resolve a frame loss of one frame after K frames, ΔT=TS/(K+1), and TS is a reciprocal of a screen refresh rate of the electronic device; or
ΔT is determined based on a screen refresh rate of the electronic device, a higher screen refresh rate indicates smaller ΔT, and a lower screen refresh rate indicates larger ΔT.

### Claim 22 (depends on 16)

The electronic device according to claim 16, wherein the instructions further comprise instructions for:
adjusting, in response to switching a foreground application from the first application to a second application, the signal period of the first vertical synchronization signal to third duration.

### Claim 23 (depends on 16)

The electronic device according to claim 16, wherein that the quantity of layers buffered in the first buffer queue is less than the first preset threshold comprises one of:
reading, before performing, in response to the second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is less than the first preset threshold; or
reading, after performing, in response to the second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue, the quantity of layers buffered in the first buffer queue, wherein the read quantity is less than the first preset threshold.

### Claim 24

A non-transitory computer-readable storage medium storing a program to be executed by one or more processors, the program including instructions for:
drawing a first layer of a first application in response to a first vertical synchronization signal;
buffering the first layer to a first buffer queue;
obtaining an image frame by performing, in response to a second vertical synchronization signal, layer composition on the layer buffered in the first buffer queue; and
adjusting a signal period of the first vertical synchronization signal to first duration based on a quantity of layers buffered in the first buffer queue being less than a first preset threshold, wherein the first duration is less than a signal period of the second vertical synchronization signal.
