WO2017152355A1 - 一种显示方法及终端设备 - Google Patents
一种显示方法及终端设备 Download PDFInfo
- Publication number
- WO2017152355A1 WO2017152355A1 PCT/CN2016/075846 CN2016075846W WO2017152355A1 WO 2017152355 A1 WO2017152355 A1 WO 2017152355A1 CN 2016075846 W CN2016075846 W CN 2016075846W WO 2017152355 A1 WO2017152355 A1 WO 2017152355A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- start time
- vsync
- duration
- time
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/003—Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/18—Timing circuits for raster scan displays
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
- G09G5/024—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed using colour registers, e.g. to control background, foreground, surface filling
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
- G09G5/026—Control of mixing and/or overlay of colours in general
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/12—Synchronisation between the display unit and other units, e.g. other display units, video-disc players
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/14—Display of multiple viewports
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/363—Graphics controllers
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/37—Details of the operation on graphic patterns
- G09G5/377—Details of the operation on graphic patterns for mixing or overlaying two or more graphic patterns
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/39—Control of the bit-mapped memory
- G09G5/393—Arrangements for updating the contents of the bit-mapped memory
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/39—Control of the bit-mapped memory
- G09G5/395—Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/39—Control of the bit-mapped memory
- G09G5/395—Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
- G09G5/397—Arrangements specially adapted for transferring the contents of two or more bit-mapped memories to the screen simultaneously, e.g. for mixing or overlay
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/52—Parallel processing
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2310/00—Command of the display device
- G09G2310/08—Details of timing specific for flat panels, other than clock recovery
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0252—Improving the response speed
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0257—Reduction of after-image effects
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/021—Power management, e.g. power saving
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/021—Power management, e.g. power saving
- G09G2330/022—Power management, e.g. power saving in absence of operation, e.g. no data being entered during a predetermined time
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/025—Reduction of instantaneous peaks of current
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/04—Changes in size, position or resolution of an image
- G09G2340/0407—Resolution change, inclusive of the use of different resolutions for different screen areas
- G09G2340/0435—Change or adaptation of the frame rate of the video stream
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/14—Solving problems related to the presentation of information to be displayed
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/08—Power processing, i.e. workload management for processors involved in display operations, such as CPUs or GPUs
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/12—Frame memory handling
- G09G2360/127—Updating a frame memory using a transfer of data from a source area to a destination area
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2360/00—Aspects of the architecture of display systems
- G09G2360/18—Use of a frame buffer in a display terminal, inclusive of the display panel
Definitions
- the present application relates to the field of display systems, and in particular, to a display method and a terminal device.
- the display panel included in the display system can be configured by using a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
- LCD liquid crystal display
- OLED organic light-emitting diode
- the display system In order to ensure smooth display of the terminal device and avoid frame loss or frame skipping, the display system usually adopts Vertical Synchronization (Vsync) technology.
- Vsync Vertical Synchronization
- the basic principle of the Vsync technology is: the display system generates a time every set time. The control signal is triggered by the Vsync period, which is the value of the Vsync period, for example, 16 milliseconds (ms).
- the display system When triggered by a Vsync cycle, the display system begins to process the following three processes in parallel: application drawing, surfaceflinger synthesis, device display, wherein the raw data that needs to be synthesized in the surfaceflinger synthesis process is applied in the last Vsync cycle.
- the drawing result of the drawing process, and the data that needs to be displayed in the device display process is the synthesized result after the surfaceflinger synthesis process in the last Vsync cycle.
- the embodiment of the present application provides a display method and a terminal device, which are used to solve the end in the prior art.
- the display system of the end device processes three processes in parallel during the Vsync cycle, causing a problem that the CPU power consumption of the terminal device is large.
- an embodiment of the present application provides a display method, where the method is applicable to a display system of a terminal device, where the display system performs a device display process, an application drawing process, and a layer surfaceflinger in each Vsync cycle.
- a synthesis process the method comprising the steps of:
- the display system acquires a first processing duration of the first process performed by the display system in the Mth Vsync period, where the first process is an application drawing process or a surfaceflinger synthesis process, and the M is greater than or equal to 1. Integer
- the display system starts to execute the display process at a start time of the device display process; the display system starts executing at the start time of the first process
- the first process is described.
- the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the display system of the terminal device in the first
- the time of three processes is processed in parallel in M+1 Vsync cycles, and the power consumption of the CPU of the terminal device is reduced.
- the start time of the device display flow in the M+1th Vsync period is the start time of the M+1 Vsync periods.
- the display system determines, according to the first processing duration, a start time of the first process in the M+1th Vsync period, including:
- the display system acquires a second processing duration of the display system to execute the device display process in the Mth Vsync period;
- the display system Determining, according to the first processing duration and the second processing duration, the display system The start time of the first process in the M+1 Vsync cycles, the start time of the first process is equal to or after the first time, the first time is the distance from the device And displaying, at the time when the start time of the process passes the second processing duration, and the offset time of the start time of the first process from the start time of the M+1th Vsync cycle, and the first process The sum of the durations is less than or equal to the duration of the M+1th Vsync period.
- the display system sets a start time of the first process in the M+1th Vsync period to be equal to the first time or after the first time, that is, in the display system. Performing the first process when or after the device display process is executed in the M+1th Vsync period, so that the display system can be guaranteed to serially execute the device display process and the first process. It is ensured that the display system does not process three processes in parallel in one Vsync cycle, further reducing the power consumption of the CPU of the terminal device.
- the display system acquires a third processing duration of the second process performed by the display system in the Mth Vsync period, where the second process is in the application drawing process and the surfaceflinger synthesis process.
- the display system starts executing the second process at a start time of the second process.
- the display system also offsets the start time of the second flow in the M+1th Vsync period, so that the second flow is also delayed, and the display may be reduced.
- the system processes the time of three processes in parallel, which reduces the power consumption of the CPU of the terminal device.
- the start time of the first process in the M+1th Vsync period determined by the display system is different from the start time of the second process, so that not only To reduce the time during which the display system processes three processes in parallel in the M+1th Vsync period, it is also possible to reduce the display system to process the first process and the parallel process in the M+1th Vsync period.
- the time of the second process further reduces the power consumption of the CPU of the terminal device.
- the display system determines, according to the third processing duration, a start time of the second process in the M+1 Vsync cycles, including:
- the display system acquires a second processing duration of the display system to execute the device display process in the Mth Vsync period;
- the display system sets a start time of the second flow in the M+1th Vsync period to be equal to or after the second time, that is, in the display system. Performing the second process when or after the device display process is executed in the M+1th Vsync period, so that the display system can be guaranteed to serially execute the device display process and the second process. It is ensured that the display system does not process three processes in parallel in one Vsync cycle, further reducing the power consumption of the CPU of the terminal device.
- the sum of the first processing duration, the second processing duration, and the third processing duration determined by the display system is less than or equal to the M+1th Vsync period
- the duration between the start time of the first process and the start time of the second process is greater than or equal to the first processing duration or the third processing duration.
- the duration between the start time of the first flow and the start time of the second flow in the M+1th Vsync period is greater than or equal to the first processing duration or the third processing
- the duration is such that the display system performs three processes in series during the M+1th Vsync period, thereby minimizing the power consumption of the CPU of the terminal device.
- the sum of the offset time of the start time of the first flow from the start time of the M+1th Vsync cycle and the first processing time is less than or equal to the Mth The difference between the duration of the +1 Vsync period and the first preset duration.
- the required processing duration of the first process is greater than the first processing duration in the M+1th Vsync period, as long as the display system is actually in the M+1th Vsync
- the duration of the required processing time of the first process minus the first processing duration is less than the first preset duration, and the display system may still end at the M+1th Vsync period. Executing the first flow before the end reduces the probability of occurrence of hysteresis in the display screen of the display system.
- the sum of the offset time of the start of the second flow from the start time of the M+1th Vsync period and the third processing duration is less than or equal to the Mth The difference between the duration of +1 Vsync cycles and the second preset duration.
- the required processing duration of the second flow is greater than the third processing duration in the M+1th Vsync period, as long as the display system is actually in the M+1th
- the duration of the required processing time of the second process in the Vsync period minus the third processing duration is less than the second preset duration, and the display system can still be in the M+1th Vsync period.
- Exceeding the execution of the second flow before the end the probability of occurrence of hysteresis on the display screen of the display system is reduced.
- the display system is based on the above method, starting from the M+1th Vsync period, up to the first flow in each of the M+P-1 Vsync cycles After the start time is set to the start time of the device display flow of the corresponding Vsync cycle, that is, the start time of the first process is offset, and the display system sets the M+P Vsync cycle
- the starting time of the first process is the starting time of the M+P Vsync periods
- the start time of the process is set to the start time of the device display flow of the corresponding Vsync cycle, the start time of the first process is offset, and the first time in the M+11 Vsync cycle is performed.
- the start time of the process is set to the start time of the M+11th Vsync cycle, and every 10 Vsync cycles thereafter, that is, the start time of the first process in the next Vsync cycle is set to the corresponding moment.
- the starting time of the Vsync cycle is set to the start time of the device display flow of the corresponding Vsync cycle.
- the display system offsets the start time of the first process in a plurality of consecutive Vsync cycles, and reduces the time during which the display system processes three processes in parallel in multiple Vsync cycles, and reduces the terminal device in The power consumption of the CPU during the entire display process.
- the start time of the first flow of the P-1 Vsync cycles is continuously offset, the start time of the first flow in the M+P Vsync cycles is set to the first The starting time of the M+P Vsync periods can reduce the probability of occurrence of delayed display and frame dropping on the display screen of the display system.
- the display system is based on the above method, starting from the M+1th Vsync period, up to the second flow in each of the M+Q-1 Vsync cycles After the start time is set to the start time of the device display flow of the corresponding Vsync cycle, that is, the start time of the second process is offset, and the display system sets the M+Q Vsync cycle
- the starting time of the second process is the starting time of the M+Qth Vsync period, and the Q is a preset positive integer greater than 1.
- the display system starts from the M+1th Vsync period and lasts for 20 Vsync periods, and the start time of the second flow in each Vsync period is set to the corresponding Vsync period.
- the start time of the second process is offset, and the start time of the second process in the M+21 Vsync cycle is set to the M+th
- the start time of the 21 Vsync cycles, followed by every 20 Vsync cycles, that is, the start time of the second flow in the next Vsync cycle is set as the start time of the corresponding Vsync cycle.
- the display system offsets the start time of the first process in a plurality of consecutive Vsync cycles, and reduces the time during which the display system processes three processes in parallel in multiple Vsync cycles, and reduces the terminal device in The power consumption of the CPU during the entire display process.
- the said M+Q Vsync cycles The start time of the second process is set to the start time of the M+Qth Vsync period, and the probability of occurrence of delayed display and frame loss on the display screen of the display system can be reduced.
- the embodiment of the present invention provides a terminal device, where the terminal device has the function of implementing the behavior of the terminal device in the foregoing method, and the function may be implemented by using hardware or by executing corresponding software through hardware.
- the hardware or software includes one or more modules corresponding to the functions described above.
- the structure of the terminal device includes an acquisition unit, a processing unit, and an operation unit, and the units may perform corresponding functions in the above method examples.
- the units may perform corresponding functions in the above method examples.
- the structure of the terminal device includes a processor, a bus, a memory, and a display panel, and the processor, the memory, and the display panel are connected by using the bus, the processor Calling instructions in the memory to perform functions in the method design described above, the display panel, after the processor executes the device display flow in each Vsync cycle, displaying the processor to execute the device Displays the image generated by the process.
- the display system of the terminal device acquires the first processing duration of the first process in the Mth Vsync period, determining the first in the M+1 Vsync period according to the first processing duration a start time of a process, where the first process is an application drawing process or a surfaceflinger synthesis process, and a start time of the first process in the M+1th Vsync cycle is after a start time of the device display process, And the sum of the offset time of the first time from the start time of the M+1th Vsync period and the first processing duration is less than or equal to the M+1th Vsync period.
- the display system begins to execute the device display process at a start time of the device display flow, and starts executing at a start time of the first process The first process is described.
- the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the display system of the terminal device in the M+
- the processing time of three processes is paralleled in one Vsync cycle, and the power consumption of the CPU of the terminal device is reduced.
- FIG. 1 is a schematic structural diagram of a display system according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart of displaying a frame image according to an embodiment of the present invention
- FIG. 3 is a schematic flow chart of displaying an image provided by the prior art
- FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
- FIG. 5 is a flowchart of a display method according to an embodiment of the present invention.
- FIG. 6 is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 6B is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 7 is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 7B is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 8 is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a display example according to an embodiment of the present invention.
- FIG. 10B is a flowchart of a display example according to an embodiment of the present disclosure.
- FIG. 11 is a schematic diagram of a display process of a frame dropping phenomenon according to an embodiment of the present disclosure.
- FIG. 12 is a schematic diagram showing a display process of a delay display phenomenon according to an embodiment of the present invention.
- FIG. 13 is a schematic diagram of a CPU frequency simulation of a terminal device according to an embodiment of the present invention.
- FIG. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
- FIG. 15 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
- the embodiment of the invention provides a display method and a terminal device, which are used to solve the problem that the display system of the terminal device in the prior art processes the three processes in the Vsync cycle in parallel, resulting in a large power consumption of the CPU of the terminal device.
- the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
- the "terminal device” involved in the present invention is a device that has a built-in display system and can realize a human-computer interaction function, and the terminal device can be a computer, a mobile phone, a tablet computer, a point of sales (POS), or a vehicle-mounted computer.
- POS point of sales
- a mobile phone is taken as an example.
- the display system is built in the terminal device and is used for presenting the interface UI, realizing human-computer interaction, processing the image, and displaying the display panel in the display system, wherein the display panel can be configured in the form of LCD or OLED. .
- a layer composed of many pixels, is the basic unit that makes up an image.
- a frame of image can be a layer, and it is also composed of multiple layers stacked up and down.
- a layer is like a film containing elements such as text or graphics. The sheets are stacked one on another and combined to form the final result of the image.
- the frame rate is usually the number of frames in which the image is displayed in 1 second. In the embodiment of the present invention, the frame rate is 1 second/Vsync period.
- a display method provided by the embodiment of the present invention is applicable to the display system architecture shown in FIG. 1.
- the control module 101, the application drawing module 102, and the surfaceflinger synthesis module 103, the memory 104, and the device are included.
- the control module 101 sends a control signal to the application drawing module 102, the surfaceflinger synthesis module 103, and the device display module 105 in the display system to implement control of the above module, so that the application is painted.
- the graph module 102, the surfaceflinger synthesis module 103, and the device display module 105 process image data;
- the application drawing module 102 After receiving the control signal of the control module 101, the application drawing module 102 acquires to-be-displayed layer data of multiple applications (such as application 1 to application n) that the terminal device needs to display, and obtains according to the acquisition.
- the plurality of layers to be displayed are subjected to a drawing process, a plurality of layers are generated, and the generated plurality of layers are sent to the memory 104;
- the surfaceflinger synthesis module 103 After receiving the control signal of the control module 101, the surfaceflinger synthesis module 103 acquires the multiple layers from the memory 104, performs layer synthesis, generates a final image of a frame, and generates the generated image. The image is sent to the memory 104, wherein the surfaceflinger synthesis module 103 further includes a Hardware Compose (HWC) process in performing layer synthesis;
- HWC Hardware Compose
- the memory 104 is generally a buffer, stores a plurality of layers generated by the application drawing module 102, and stores an image generated by the surfaceflinger synthesis module 103;
- the device display module 105 after receiving the control signal of the control module 101, acquire the image in the memory 104, and push the image to the display panel 106;
- the display panel 106 is configured to directly display the image sent by the device display module 105.
- the clock module 107 is configured to collect a clock signal to the control module 101 every predetermined duration (Vsync period), notify the control module 101 to trigger a Vsync cycle, generate a control signal, and generate a control signal. At the same time, it is sent to the application drawing module 102, the surfaceflinger synthesis module 103, and the device display module 105 to notify each module to execute the corresponding process.
- Applying a drawing process acquiring a plurality of to-be-displayed layer data of a plurality of applications to be displayed, performing drawing processing on the plurality of to-be-displayed layer data, and generating a plurality of layers;
- Surfaceflinger synthesis process performing surfaceflinger processing on multiple layers generated in the application drawing process, and HWC processing to generate a frame to be displayed;
- Device display flow the image to be displayed generated by the above Surfaceflinger synthesis process
- a device display process is performed to push the image to be displayed to the display panel.
- the display system can execute an application drawing process, a surfaceflinger synthesis process, and a device display process in one Vsync cycle.
- the display of one frame of image requires the above three processes, so one frame of image requires three Vsync cycles to display.
- the display system processes the following three processes in parallel in each Vsync cycle: an application drawing process, a surfaceflinger synthesis process, and a device display process, wherein the raw data that needs to be synthesized in the surfaceflinger synthesis process is the last Vsync.
- the three processes are simultaneously started, wherein the data of the first frame image is processed in the device display flow, and when the process is completed, the first frame image is displayed in the display panel; Processing the data of the second frame image in the surfaceflinger synthesis process; processing the data of the third frame image in the application drawing process;
- the three processes are simultaneously started, and the data of the second frame image is processed in the device display flow, and when the processing is completed, the second frame image is displayed on the display panel;
- the surfaceflinger process processes the data of the image of the third frame; and applies the data of the image of the fourth frame in the drawing process;
- the three processes are simultaneously started, and the data of the third frame image is processed in the device display flow, and when the processing is completed, the third frame image is displayed in the display panel;
- the surfaceflinger process processes the data of the image of the fourth frame; and applies the data of the image of the fifth frame in the drawing process;
- the three processes are simultaneously started, and the data of the fourth frame image is processed in the device display flow, and when the processing is completed, the fourth frame image is displayed in the display panel;
- the surfaceflinger process processes the data of the 5th frame image; the data of the 6th frame image is processed in the drawing flow.
- the display panel usually displays the time of one frame of image, usually from the end of a Vsync cycle device display process to the end of the next Vsync cycle device display process, and the total duration is almost the same as the length of the Vsync cycle.
- the display method in the embodiment of the present invention is applicable to a display device provided by the embodiment of the present invention, and is applicable to a display device that includes a display system and supports a Vsync technology, such as a computer, a mobile phone, a POS, or the like.
- the next Vsync period is determined according to the first processing duration (the M+1th Vsync period)
- the first process of the first process is the application drawing process or the surfaceflinger synthesis process, and the start time of the first process in the M+1th Vsync cycle is located in the device display process
- the display system begins to execute the device display process at a start time of the device display process, and in the first process The first process begins at the beginning.
- the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the display system of the terminal device in the M+
- the processing time of three processes is paralleled in one Vsync cycle, and the power consumption of the CPU of the terminal device is reduced.
- the embodiment of the present invention provides a display method and a terminal device, which are applicable to a terminal device, and the terminal device according to the embodiment of the present invention may be a computer, a mobile phone, a tablet computer, or a personal digital assistant (PDA). Point of Sales (POS), on-board computers and other equipment.
- POS Point of Sales
- FIG. 4 is a block diagram showing a part of the structure of the mobile phone 400 related to the embodiment of the present invention.
- the mobile phone 400 includes: a radio frequency (RF) circuit 410, a power source 420, a processor 430, a memory 440, an input unit 450, and a display unit 460.
- RF radio frequency
- the structure of the handset shown in FIG. 4 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
- the components of the mobile phone 400 will be specifically described below with reference to FIG. 4:
- the RF circuit 410 can be used for receiving and transmitting signals during and after the transmission or reception of information, in particular, after receiving the downlink information of the base station, and processing it to the processor 430; in addition, transmitting the designed uplink data to the base station.
- RF circuit 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- LNA Low Noise Amplifier
- RF circuitry 410 can also communicate with the network and other devices via wireless communication.
- the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
- GSM Global System of Mobile communication
- GPRS General Packet Radio
- the memory 440 can be used to store software programs and modules, and the processor 430 executes various functional applications and data processing of the mobile phone 400 by running software programs and modules stored in the memory 440.
- the memory 440 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data (such as audio data, phone book, etc.) created according to the use of the mobile phone 400.
- memory 440 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 450 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 400.
- the input unit 450 may include a touch panel 451 and other input devices 452.
- Touch panel 451 also known as touch screen, can be collected a touch operation on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 451 or near the touch panel 451), and driving according to a preset program Connection device.
- the touch panel 451 can include two parts: a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 430 is provided and can receive commands from the processor 430 and execute them.
- the touch panel 451 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 450 may also include other input devices 452.
- other input devices 452 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 460 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 400.
- the display unit 460 is a display system of the mobile phone 400 for presenting the interface UI and realizing human-computer interaction.
- the display unit 460 can include a display panel 461.
- the display panel 461 can be configured in the form of an LCD, an OLED, or the like.
- the touch panel 451 can cover the display panel 461. When the touch panel 451 detects a touch operation thereon or nearby, the touch panel 451 transmits to the processor 430 to determine the type of the touch event, and then the processor 430 according to the touch event. The type provides a corresponding visual output on display panel 461.
- the touch panel 451 and the display panel 451 function as two separate components to implement the input and input functions of the mobile phone 400, in some embodiments, the touch panel 451 can be integrated with the display panel 461. The input and output functions of the mobile phone 400 are implemented.
- the handset 400 can also include at least one type of sensor 470, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 461 according to the brightness of the ambient light, and the proximity sensor may close the display panel 461 when the mobile phone 400 moves to the ear. / or backlight.
- the accelerometer sensor can detect the acceleration of each direction (usually three axes). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the posture of the mobile phone (such as horizontal and vertical).
- Audio circuit 480, speaker 481, microphone 482 can provide an audio interface between the user and handset 400.
- the audio circuit 480 can transmit the converted electrical data of the received audio data to the speaker 481 for conversion to the sound signal output by the speaker 481; on the other hand, the microphone 482 converts the collected sound signal into an electrical signal by the audio circuit 480. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 410 for transmission to, for example, another mobile phone, or the audio data is output to the memory 440 for further processing.
- WiFi is a short-range wireless transmission technology
- the mobile phone 400 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 490, which provides wireless broadband Internet access for users.
- FIG. 4 shows the WiFi module 490, it can be understood that it does not belong to the essential configuration of the mobile phone 400, and may be omitted as needed within the scope of not changing the essence of the invention.
- Processor 430 is the control center of handset 400, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 440, and recalling data stored in memory 440, The various functions and processing data of the mobile phone 400 are performed, thereby realizing various services based on the mobile phone.
- the processor 430 may include one or more processing units; preferably, the processor 430 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 430.
- the handset 400 also includes a power source 420 (e.g., a battery) that powers the various components.
- a power source 420 e.g., a battery
- the power source can be logically coupled to the processor 430 via a power management system to manage functions such as charging, discharging, and power consumption through the power management system.
- the mobile phone 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- a display method provided by an embodiment of the present invention where the method is used for a display system of a terminal device,
- the display system is configured to execute a device display process, an application drawing process, and a layer surface flinger synthesis process in each Vsync cycle.
- the terminal device may be a computer, a tablet computer, and a mobile phone as shown in FIG. 4, and the like.
- the specific process of the method includes:
- Step 501 The display system acquires a first processing duration of the first process performed by the display system in the Mth Vsync period, where the first process is an application drawing process or a surfaceflinger synthesis process, where the M is greater than or equal to A positive integer of 1.
- the display system of the terminal device adopts the Vsync technology
- the display system needs to process the application drawing process, the surfaceflinger synthesis process, and the device display process in parallel at the beginning of each Vsync cycle.
- each process in a Vsync cycle should be completed before or at the end of the Vsync cycle.
- the device display process only needs the display system to read. The data in the cache is taken and displayed in the display panel of the terminal device. Therefore, the process has a shorter processing time than the other two processes, generally several milliseconds, and the other two processes take a little longer.
- Step 502 The display system determines, according to the first processing duration, a start time of the first process in the M+1th Vsync period, where the first time is in the M+1th Vsync period.
- the start time of the process is after the start time of the device display process, and the start time of the first process is offset from the start time of the M+1th Vsync cycle by the first time
- the sum of the processing durations is less than or equal to the duration of the M+1th Vsync period.
- the start time of the device display flow in the M+1th Vsync period is the start time of the M+1 Vsync periods.
- the start time of the first process in the M+1th Vsync period set by the display system is after the start time of the device display process, that is, the first The start time of the process is offset, so that the first process is delayed.
- the display system Since the display system needs to delay execution of the first process in the M+1th Vsync period, the display system determines the start of the first process in the M+1th Vsync period. At the beginning time, it is also necessary to avoid the phenomenon that the display system has not executed the first process due to the end of the M+1th Vsync period, thereby causing hysteresis of the display screen. Therefore, when determining the start time of the first process in the M+1th Vsync period, it is necessary to estimate a processing duration of the first process performed by the display system in the current Vsync period.
- the similarity between adjacent two frames of images is relatively high, and the data processed by the display system in the application drawing process in two adjacent Vsync cycles respectively belongs to the data in the adjacent two frames of images, and the same reason.
- the data processed by the display system in the surfaceflinger synthesis process in the adjacent two Vsync cycles respectively belongs to the data in the adjacent two frames of images, and the data processed in the device display process in the adjacent two Vsync cycles respectively
- the display system performs the processing duration of the application drawing process, the surfaceflinger synthesis process, and the device display process in the Mth Vsync cycle, respectively, with the display system in the Mth
- the processing duration of executing the corresponding process in +1 Vsync cycles is similar.
- the first processing duration of the first process in the Mth Vsync period is adopted, and the display system estimated by the display system is in the M+ The processing duration of the first process in one Vsync cycle.
- the offset time of the start time of the first flow in the M+1th Vsync period determined by the display system from the start time of the M+1th Vsync cycle and the first processing time The sum is less than or equal to the duration of the M+1th Vsync period, and it is guaranteed that the display system may end the execution of the first process at the end of the M+1th Vsync period to avoid causing a display screen. Hysteresis.
- the display system offsets the start time of the first process in the M+1th Vsync period, delaying execution of the first process, and reducing display of the terminal device.
- the system processes the time of three processes in parallel in the M+1th Vsync period, and reduces the power consumption of the CPU of the terminal device.
- the display system sets the start time of the surfaceflinger synthesis process in the M+1th Vsync period. After the device displays the time, the display system delays execution of the surfaceflinger synthesis process, as shown, reducing the time that the display system processes three processes in parallel in the M+1th Vsync cycle, and reduces the terminal device.
- CPU power consumption is a surfaceflinger synthesis process shown in FIG. 6A
- the first process when it is an application drawing process, it can also be reduced.
- the display system processes the time of three processes in parallel in the M+1th Vsync period, and reduces the power consumption of the CPU of the terminal device.
- the display system determines, according to the first processing duration, a start time of the first process in the M+1th Vsync period, including:
- the display system acquires a second processing duration of the display system to execute the device display process in the Mth Vsync period;
- a start time of the first process in the M+1th Vsync period is a time when the start time of the device display flow passes the second processing time, and the start time distance of the first flow
- the sum of the offset duration of the start time of the M+1th Vsync period and the first processing duration is less than or equal to the duration of the M+1th Vsync period.
- the display system needs to set the start time of the first flow in the M+1th Vsync period to be before: the first time or the first time
- the start time of the first flow in the M+1th Vsync period may be set to be equal to the first time or after the first time .
- the display system sets a start time of the first process in the M+1th Vsync period to be equal to the first time or after the first time, that is, in the display system. Performing the first process when or after the device display process is executed in the M+1th Vsync period, so that the display system can be guaranteed to serially execute the device display process and the first process. It is ensured that the display system does not process three processes in parallel in one Vsync cycle, further reducing the power consumption of the CPU of the terminal device.
- FIG. 7A is a view showing a display example when the first process is a surfaceflinger synthesis process, where the display system executes a start time of a surfaceflinger synthesis process in an M+1th Vsync cycle, where the display system executes After the device shows that the process is completed, that is, the display system serially executes the device display process and the surfaceflinger synthesis process, ensuring that the display system does not process in parallel in the M+1th Vsync cycle.
- Three processes reduce the power consumption of the CPU of the terminal device.
- FIG. 7B is a display example diagram when the first process is an application drawing process, and the display system executes a start time of an application drawing process in an M+1th Vsync cycle, where the display system executes After the device shows that the process is completed, that is, the display system serially executes the device display process and the application drawing process, ensuring that the display system does not process in parallel in the M+1th Vsync period.
- Three processes reduce the power consumption of the CPU of the terminal device.
- the start time of the first process in the M+1th Vsync period is that the display system performs the first process of the first process in the Mth Vsync period.
- the processing duration is estimated to be that the display system actually performs the processing duration of the first process in the M+1th Vsync period, but since the display system is actually in the M+1th Vsync period Performing the required processing duration of the first process may have an error with the first processing duration, if the display system actually performs the first process in the M+1th Vsync period
- the processing duration is greater than the first processing duration, and the starting time of the first flow in the M+1th Vsync period is offset from the starting time of the M+1th Vsync period.
- the sum of the first processing durations is equal to the duration of the M+1th Vsync period, so that the display system cannot perform the first process in the M+1th Vsync period, thereby causing the The display system displays a hysteresis.
- the start time of the first flow determined by the display system is offset from the start time of the M+1th Vsync period.
- the sum of the duration and the first processing duration is less than or equal to the difference between the duration of the M+1th Vsync period and the first preset duration.
- the display system is configured to perform the first processing time length in the M+1th Vsync period, and the duration difference of the first processing duration is less than the first preset duration, the display system
- the execution of the first process may be ended before the end of the M+1th Vsync period, which reduces the probability of occurrence of hysteresis in the display screen of the display system.
- Step 503 In the M+1th Vsync period, the display system starts to execute the display process at a start time of the device display process; the display system is at a start time of the first process The execution of the first process begins.
- the display system is in the M+1th Vsync period.
- the device display process begins.
- the starting time of the second process in the M+1th Vsync period may also be the starting time of the M+1 Vsync periods, where the second process is an application drawing process and Other processes in the surfaceflinger synthesis process other than the first process, that is, the display system starts to execute the second process and the device display process at the beginning of the M+1th Vsync cycle. Because the display system performs the display of the application drawing process and the surfaceflinger synthesis process, the power consumption of the CPU of the terminal device is high, and the display system performs the device display with respect to the above two processes. The process power consumption is low.
- the first process is delayed in the M+1th Vsync period of the display system, and the execution is started at the start time of the M+1th Vsync cycle.
- the second process and the device display process can not only reduce the time for the display system to process three processes in parallel in the M+1th Vsync period, but also reduce the display system in the M+1th Vsync period. The time during which the first process and the second process are processed in parallel further reduces the power consumption of the CPU of the terminal device.
- the display system may also delay execution of the second process.
- the method further includes:
- the display system acquires a third processing duration of the second process performed by the display system in the Mth Vsync period, where the second process is in addition to the first process in the application drawing process and the surfaceflinger synthesis process.
- Other processes ;
- the display system starts executing the second process at a start time of the second process.
- the display system is also configured to pass the third process of the second process of the Mth Vsync cycle when determining a start time of the second process in the M+1th Vsync period.
- the duration of processing of the second flow in the M+1th Vsync period of the display system estimated by the display system.
- the display system also offsets the start time of the second flow in the M+1th Vsync period, so that the second flow is also delayed, and the display may be reduced.
- the system processes the time of three processes in parallel, which reduces the power consumption of the CPU of the terminal device.
- the first process is a surfaceflinger synthesis process
- the second process is an application drawing process.
- the display system passes the first process and the The start time offset of the second process reduces the time during which the display system processes the three processes in parallel in the M+1th Vsync period, and reduces the power consumption of the CPU of the terminal device.
- the start time of the first process in the M+1th Vsync period determined by the display system is different from the start time of the second process, as shown in FIG. Not only can the time for the display system to process three processes in parallel in the M+1th Vsync period, but also reduce the display system to process the first process in parallel in the M+1th Vsync period.
- the time of the second process further reduces the power consumption of the CPU of the terminal device.
- the display system determines, according to the third processing duration, a start time of the second process in the M+1 Vsync periods, including:
- the display system acquires a second processing duration of the display system to execute the device display process in the Mth Vsync period;
- the display system needs to set the start time of the second flow in the M+1th Vsync period to be before: the second time or the first time After the second time, it is necessary to determine the sum of the offset duration of the second flow from the start time of the M+1th Vsync cycle and the third processing duration and the M+1th a relationship between the duration of the Vsync period and the sum of the offset duration from the start time of the M+1th Vsync period and the third processing duration is less than or equal to the
- the start time of the second process in the M+1th Vsync period may be set equal to the second time or after the second time .
- the display system sets a start time of the second flow in the M+1th Vsync period to be equal to or after the second time, that is, in the display system. Performing the second process when or after the device display process is executed in the M+1th Vsync period, so that the display system can be guaranteed to serially execute the device display process and the second process. It is ensured that the display system does not process three processes in parallel in one Vsync cycle, further reducing the power consumption of the CPU of the terminal device.
- the first process is a surfaceflinger synthesis process
- the second process is an application drawing process
- the display system is in the M+1th Vsync cycle.
- the display system may be in a certain period of time after the current Vsync cycle ends executing the device display process
- three processes are executed in parallel with the conventional display system, and the power consumption of the CPU of the terminal device is reduced.
- the offset time of the start time of the second flow determined by the display system from the start time of the M+1th Vsync period and the third process The sum of the durations is less than or equal to the difference between the duration of the M+1th Vsync period and the second preset duration. In this way, even if the required processing duration of the second flow is greater than the third processing duration in the M+1th Vsync period, as long as the display system is actually in the M+1th
- the duration of the required processing time of the second process in the Vsync period minus the third processing duration is less than the second preset duration, and the display system can still be in the M+1th Vsync period.
- Exceeding the execution of the second flow before the end the probability of occurrence of hysteresis on the display screen of the display system is reduced.
- the second preset duration may be the same as the first preset duration, or may be different, which is not limited by the embodiment of the present invention.
- the sum of the first processing duration, the second processing duration, and the third processing duration determined by the display system is less than or equal to a duration of the M+1th Vsync period
- the duration between the start time of the first process and the start time of the second process is greater than or equal to the first processing duration or the third processing duration.
- the display system sequentially executes the device display process, the first process, and the second process; if the first process is a surfaceflinger synthesis process and the second process is an application drawing process, the display process is as shown in FIG. 10A; If the first process is an application drawing process and the second process is a surfaceflinger synthesis process, the display process is as shown in FIG. 10B;
- the display system sequentially executes a device display process, the second process, and the first process;
- the process is a surfaceflinger synthesis process
- the second process is an application drawing process
- the display process is as shown in FIG. 10B; if the first process is an application drawing process and the second process is a surfaceflinger synthesis process, the display process is as shown in FIG. 10A.
- the display system when the sum of the first processing duration, the second processing duration, and the third processing duration determined by the display system is less than or equal to the duration of the M+1th Vsync period, The duration between the start time of the first process and the start time of the second process in the M+1th Vsync period is greater than or equal to the first processing duration or the third processing duration.
- the display system performs three processes serially in the M+1th Vsync period, thereby minimizing the power consumption of the CPU of the terminal device.
- the display system may set a third preset duration, and the display system determines that the sum of the first processing duration, the second processing duration, and the third processing duration is less than Or when the difference between the duration of the M+1th Vsync period and the third preset duration is set, the start time of the first flow in the M+1th Vsync period and the first The duration between the start times of the two processes is greater than or equal to the first processing duration or the third processing duration.
- the display system may offset a start time of the first process in each Vsync cycle, reduce a time in which the display system processes three processes in parallel in each Vsync cycle, and decrease the terminal.
- the power consumption of the CPU during the entire display process similarly, the display system may further offset the start time of the second process in each Vsync cycle, reducing the display in each Vsync cycle.
- the system processes the time of the three processes in parallel to reduce the CPU power consumption of the terminal device during the entire display process; further, the display system sets the start time of the first process in each Vsync cycle and the The starting time of the second process is set to different times, reducing the time during which the display system processes the first process and the second process in parallel in each Vsync cycle, further reducing the CPU of the terminal device. Power consumption; further, if the display system sets the start time of the first process and the second process in each Vsync cycle The duration between the start time is greater than or equal to the first processing duration or the third processing duration, so that the display system can sequentially perform three processes in each Vsync cycle, which can minimize the terminal.
- the display system can shift the start time of the first process in each Vsync cycle, a delay display or a frame dropping phenomenon may occur. Since the display system needs to synthesize data in the surfaceflinger synthesis process in the current Vsync cycle as the drawing result of the application drawing process in the last Vsync cycle, the data to be displayed in the device display process is the surfaceflinger synthesis process in the last Vsync cycle. After the synthesis results.
- the surfaceflinger synthesis process in a certain Vsync cycle is synthesized too slowly, and at the end of the Vsync cycle, the surfaceflinger synthesis process Not yet completed, and the application drawing process is normal or too fast.
- the synthesis result of the surfaceflinger synthesis process of the previous cycle cannot be displayed, which will lead to delay display and frame dropping. .
- the display system offsets the start time of the surfaceflinger synthesis process in the mth Vsync cycle according to the processing duration of the surfaceflinger process in the previous Vsync cycle; as shown in the figure, the device in the Vsync cycle displays the processing process When the data of one frame is processed and completed, the first frame image is displayed in the display panel; the data of the second frame is processed in the surfaceflinger synthesis process; and the data of the third frame is processed by the drawing process;
- the display system still offsets the start time of the surfaceflinger synthesis process in the m+1th Vsync cycle according to the processing duration of the surfaceflinger process in the mth Vsync cycle; as shown in the figure, the device display in the Vsync cycle Processing the data of the second frame in the process, and when the processing is completed, the second frame image is displayed in the display panel; the data of the third frame is processed in the surfaceflinger synthesis process; and the data of the fourth frame is processed by the drawing; wherein, due to the surfaceflinger synthesis The processing time of the process is long, resulting in the surfaceflinger synthesis process not being processed at the end of the m+1th Vsync cycle;
- the display system continues to process according to the surfaceflinger process in the m+1th Vsync cycle
- the duration offsets the start time of the surfaceflinger synthesis process in the m+2 Vsync cycle; as shown in the figure, the surfaceflinger synthesis process starts in the m+1th Vsync cycle at the start execution time of the device display flow.
- the third frame cannot be displayed, so that the second frame image is still displayed in the display panel; after the surfaceflinger synthesis process started in the m+1 Vsync cycles, the surfaceflinger synthesis of the Vsync cycle is started.
- a process processing the data of the fourth frame in the surfaceflinger synthesis process; and applying the data of the fifth frame by the drawing;
- the display system continues to shift the start time of the surfaceflinger synthesis process in the m+3 Vsync cycles according to the processing duration of the surfaceflinger process in the m+2 Vsync cycles; as shown in the figure, the Vsync cycle
- the data of the fourth frame is processed, and when the processing is completed, the fourth frame image is displayed in the display panel; the data of the fifth frame is processed in the surfaceflinger synthesis flow; and the data of the sixth frame is processed by the application drawing.
- the second frame image of two Vsync cycles is continuously displayed in the display panel, and the fourth frame is directly displayed, and the third frame is not displayed, so that the frame dropping phenomenon occurs. .
- the display system offsets the start time of the surfaceflinger synthesis process in the mth Vsync cycle according to the processing duration of the surfaceflinger process in the previous Vsync cycle; as shown in the figure, the device display flow in the Vsync cycle displays When the data of one frame is processed and completed, the image of the first frame is displayed on the display panel, the data of the second frame is processed in the surfaceflinger synthesis process, and the data of the third frame is processed by the drawing process;
- the display system still offsets the start time of the surfaceflinger synthesis process in the m+1th Vsync cycle according to the processing duration of the surfaceflinger process in the mth Vsync cycle; as shown in the figure, the device display in the Vsync cycle
- the device display in the Vsync cycle
- the data of the second frame is displayed in the process and the processing is completed
- the second frame image is displayed in the display panel
- the data of the third frame is processed in the surfaceflinger synthesis process. Since there is no image update subsequently, there is no data processing in the application drawing process; Due to the long processing time of the surfaceflinger synthesis process, the surfaceflinger synthesis process is not processed at the end of the m+1th Vsync cycle;
- the display system continues to offset the start time of the surfaceflinger synthesis process in the m+2 Vsync cycles according to the processing duration of the surfaceflinger process in the m+1th Vsync cycle; as shown in the figure, due to the device display process The surfaceflinger synthesis process started in the m+1th Vsync cycle at the start of execution time has not been executed yet. Therefore, the third frame cannot be displayed, so that the second frame image is still displayed in the display panel, at m+1.
- the surfaceflinger synthesis process of the Vsync cycle is started, but since the application drawing process does not process data in the m+1 Vsync cycle, the surfaceflinger synthesis process of the Vsync cycle has no data. Processing; the application drawing process in this Vsync cycle continues without data processing;
- the m+1th Vsync cycle In the surfaceflinger synthesis process, the generated data is not overwritten.
- the data of the third frame is processed in the device display flow, and when the processing is completed, the third frame image is displayed on the display panel.
- the third frame image is displayed, so that the third frame image has a delayed display phenomenon.
- the display system offsets the start time of the surfaceflinger synthesis process in each Vsync cycle, the surfaceflinger synthesis process in a Vsync cycle may be longer than the surfaceflinger synthesis process in the previous Vsync cycle, then the subsequent occurrence occurs.
- the probability of delay display and frame loss is high.
- the display system will shift the start time of the surfaceflinger synthesis process after continuously setting a Vsync cycle, and then the next Vsync.
- the start time of the surfaceflinger synthesis process in the cycle is set to the start time of the Vsync cycle, so that the start time of the surfaceflinger synthesis process in the Vsync cycle is not offset;
- the display system sets the start time of the application drawing process in the next Vsync cycle to the start time of the Vsync cycle after continuously setting a Vsync period to offset the start time of the application drawing process. Make the start time of the surfaceflinger synthesis process in the Vsync cycle not Offset.
- the display system sets the start time of the first flow in the M+P Vsync cycles to be the start time of the M+P Vsync cycles, where the P is preset. a positive integer greater than 1;
- the display system sets a start time of the second flow in the M+Qth Vsync period as a start time of the M+Qth Vsync period, where the Q is a preset positive integer greater than 1. .
- the P and the Q may be the same number, such as 10, 20, etc., and may be set to different numbers, which is not limited by the present invention.
- the frequency of the CPU of the terminal device can directly reflect the working performance and power consumption of the CPU. Therefore, in the embodiment of the present invention, by simulating the frequency of the CPU, it is determined that the drawing process is applied to the application in each Vsync cycle. After at least one process in the surfaceflinger synthesis process sets the corresponding offset, whether the power consumption and performance of the CPU can be reduced. See Figure 13:
- the next Vsync is determined according to the first processing duration.
- the start time of the first process in the period (the M+1th Vsync period), the first process is an application drawing process or a surfaceflinger synthesis process, and the first part in the M+1th Vsync period
- the start time of the process is after the start time of the device display process, and the start time of the first process is offset from the start time of the M+1th Vsync cycle and the first processing time
- the sum is less than or equal to the duration of the M+1th Vsync period; in the M+1th Vsync period, the display system begins to execute the device display process at the beginning of the device display flow And executing the first process at the beginning of the first process.
- the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the display system of the terminal device in the M+
- the processing time of three processes is paralleled in one Vsync cycle, and the power consumption of the CPU of the terminal device is reduced.
- the embodiment of the present invention further provides a terminal device, which is configured to execute a device display process, an application drawing process, and a surfaceflinger synthesis process in a Vsync cycle.
- the terminal device is used. 1400 includes: an obtaining unit 1401, a processing unit 1402, and an operating unit 1403, where
- the obtaining unit 1401 is configured to obtain a first processing duration of the first process performed by the running unit 1403 in the Mth Vsync period, where the first process is an application drawing process or a surfaceflinger synthesis process, where the M is greater than or equal to 1. Positive integer
- the processing unit 1402 is configured to determine, according to the first processing duration, an M+1th Vsync period. a start time of the first process, in the M+1th Vsync period, a start time of the first process is after a start time of the device display process, and the first process The sum of the offset time from the start time of the M+1th Vsync period and the first processing duration is less than or equal to the duration of the M+1th Vsync period;
- the running unit 1403 is configured to start executing the display process at a start time of the device display process in the M+1th Vsync cycle, and start executing the first process at a start time of the first process A process.
- a start time of the device display process in the M+1th Vsync period is a start time of the M+1 Vsync periods.
- the obtaining unit 1401 is further configured to acquire, by the running unit 1403, a second processing duration of the device display process in the Mth Vsync period;
- the processing unit 1402 is specifically configured to: determine, according to the first processing duration and the second processing duration, a start time of the first process in the M+1th Vsync period, where the a start time of a process is equal to or after the first time, the first time is a time when the start time of the device display flow passes the second processing time, and the first time The sum of the offset duration from the start time of the M+1th Vsync period and the first processing duration is less than or equal to the duration of the M+1th Vsync period.
- the obtaining unit 1401 is further configured to acquire, by the running unit 1403, a third processing duration of the second process in the Mth Vsync period, where the second process is an application drawing process and a surfaceflinger synthesis.
- the second process is an application drawing process and a surfaceflinger synthesis.
- the processing unit 1402 is further configured to determine, according to the third processing duration, a start time of the second process in the M+1 Vsync periods, where the M+1 Vsync cycles are a starting time of the second flow is after a start time of the device display flow, and an offset time of the start time of the second flow from a start time of the M+1th Vsync cycle is The sum of the third processing durations is less than or equal to the duration of the M+1th Vsync period;
- the running unit 1403 is further configured to start executing the second process at a start time of the second process in the M+1th Vsync cycle.
- the obtaining unit 1401 is further configured to acquire, by the running unit 1403, a second processing duration of the device display process in the Mth Vsync period;
- the processing unit 1402 is specifically configured to: determine, according to the second processing duration and the third processing duration, a start time of the second process in the M+1th Vsync period, where the The start time of the second process is equal to or after the second time, the second time is a time when the start time of the device display flow passes the second processing time, and the second time The sum of the offset duration from the start time of the M+1th Vsync period and the third processing duration is less than or equal to the duration of the M+1th Vsync period.
- processing unit 1402 is further configured to:
- the duration between the start time of the first process and the start time of the second process is greater than or equal to the first processing duration or the third processing duration.
- the sum of the offset time of the start time of the first process from the start time of the M+1th Vsync period and the first processing duration is less than or equal to the M+1th The difference between the duration of the Vsync period and the first preset duration.
- the sum of the offset time from the start time of the M+1th Vsync period and the third processing duration is less than or equal to the M+1th The difference between the duration of the Vsync period and the second preset duration.
- processing unit 1402 is further configured to:
- the start time of the first flow in the M+P Vsync cycle is set as the start time of the M+P Vsync cycles, and the P is a preset positive integer greater than 1.
- processing unit 1402 is further configured to:
- the start time of the second flow in the M+Qth Vsync period is set as the start time of the M+Qth Vsync cycle, and the Q is a preset positive integer greater than 1.
- the terminal device determines the M+1 Vsync period according to the first processing time length.
- the first process is an application drawing process or a surfaceflinger synthesis process, and the start time of the first process in the M+1th Vsync cycle is at the beginning of the device display process.
- the sum of the offset time of the start time of the first flow from the start time of the M+1th Vsync period and the first processing time is less than or equal to the M+1th The duration of the Vsync cycle; in the M+1th Vsync cycle, the terminal device starts executing the device display process at the beginning of the device display flow, and at the start time of the first process The execution of the first process begins. In this way, in the M+1th Vsync period, the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the terminal device in the M+1th Vsync. The time of processing three processes in parallel during the cycle reduces the power consumption of the CPU of the terminal device.
- the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
- the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the instructions include a plurality of instructions for causing a terminal device (which may be a personal computer, a cell phone, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
- the embodiment of the present invention further provides a terminal device, where the terminal device For performing the device display process, the application drawing process, and the layer surface flinger synthesis process in a vertical synchronous Vsync cycle, as shown in FIG. 15, the terminal device 1500 includes: a processor 1501, a bus 1502, a memory 1503, and a display panel 1504. among them,
- the processor 1501, the memory 1503, and the display panel 1504 are connected by the bus 1502; the bus 1502 may be a peripheral component interconnect (PCI) bus or an extended industry standard structure (extended industry) Standard architecture, referred to as EISA) bus.
- PCI peripheral component interconnect
- EISA extended industry standard structure
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 15, but it does not mean that there is only one bus or one type of bus.
- the processor 1501 is configured to implement the display method as shown in FIG. 5:
- the display flow is started at a start time of the device display flow; and the first flow is started at a start time of the first flow.
- a start time of the device display process in the M+1th Vsync period is a start time of the M+1 Vsync periods.
- the processor 1501 determines, according to the first processing duration, a start time of the first process in the M+1th Vsync period, including:
- a start time of the first process in a period, where a start time of the first process is equal to or after the first time, the first time is a start from a flow of the device display a time when the second processing time is passed, and a sum of an offset time of the start time of the first flow from a start time of the M+1th Vsync cycle and the first processing time is less than or It is equal to the duration of the M+1th Vsync period.
- the processor 1501 is further configured to:
- the second process is started at the start time of the second process.
- determining, according to the third processing duration, a start time of the second process in the M+1 Vsync periods including:
- the processor 1501 determines the first processing duration and the second processing time
- the sum of the length of the third processing time and the duration of the M+1th Vsync period is less than or equal to the duration between the start time of the first flow and the start time of the second flow Is greater than or equal to the first processing duration or the third processing duration.
- the sum of the offset time of the start time of the first process from the start time of the M+1th Vsync period and the first processing duration is less than or equal to the M+1th The difference between the duration of the Vsync period and the first preset duration.
- the sum of the offset time from the start time of the M+1th Vsync period and the third processing duration is less than or equal to the M+1th The difference between the duration of the Vsync period and the second preset duration.
- the processor 1501 is further configured to:
- the start time of the first flow in the M+P Vsync cycle is set as the start time of the M+P Vsync cycles, and the P is a preset positive integer greater than 1.
- the processor 1501 is further configured to:
- the start time of the second flow in the M+Qth Vsync period is set as the start time of the M+Qth Vsync cycle, and the Q is a preset positive integer greater than 1.
- the display panel 1504 is configured to display, after the processor performs the device display process in each Vsync cycle, the processor to execute an image generated by the device display process, and the display panel 1504 may adopt an LCD, OLED and other forms are set.
- the display system of the terminal device acquires the first processing duration of the first process in the Mth Vsync period, according to the Determining a start time of the first process in the M+1th Vsync period, where the first process is an application drawing process or a surfaceflinger synthesis process, where the M+1 Vsync period is
- the start time of the first process is after the start time of the device display process, and the start time of the first process is offset from the start time of the M+1th Vsync cycle by the first time
- the sum of the processing durations is less than or equal to the duration of the M+1th Vsync period; in the M+1th Vsync period, the display system starts executing the device at the beginning of the device display flow Display the process and start at the beginning of the first process The first process is described.
- the display system delays execution of any one of the application drawing process and the surfaceflinger synthesis process, and reduces the display system of the terminal device in the M+
- the processing time of three processes is paralleled in one Vsync cycle, and the power consumption of the CPU of the terminal device is reduced.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Multimedia (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Controls And Circuits For Display Device (AREA)
- Digital Computer Display Output (AREA)
- Liquid Crystal Display Device Control (AREA)
- Control Of El Displays (AREA)
Abstract
Description
| 系统负荷 | 低频数量 | 中频数量 | 高频数量 |
| 仿真结果1 | 若干 | 43 | 8 |
| 仿真结果2 | 若干 | 42 | 2 |
Claims (21)
- 一种显示方法,其特征在于,所述方法用于终端设备的显示系统,所述显示系统用于在一个垂直同步Vsync周期内执行器件显示流程、应用绘图流程以及图层surfaceflinger合成流程,所述方法包括:所述显示系统获取所述显示系统在第M个Vsync周期内执行第一流程的第一处理时长,所述第一流程为应用绘图流程或surfaceflinger合成流程,所述M为大于或等于1的正整数;所述显示系统根据所述第一处理时长,确定第M+1个Vsync周期内的所述第一流程的起始时刻,所述第M+1个Vsync周期内,所述第一流程的起始时刻位于所述器件显示流程的起始时刻之后,且所述第一流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长;在所述第M+1个Vsync周期中,所述显示系统在所述器件显示流程的起始时刻开始执行所述显示流程;所述显示系统在所述第一流程的起始时刻开始执行所述第一流程。
- 如权利要求1所述的方法,其特征在于,所述第M+1个Vsync周期内所述器件显示流程的起始时刻为所述M+1个Vsync周期的起始时刻。
- 如权利要求1或2所述的方法,其特征在于,所述显示系统根据所述第一处理时长,确定所述第M+1个Vsync周期内的所述第一流程的起始时刻,包括:所述显示系统获取所述显示系统在所述第M个Vsync周期内执行所述器件显示流程的第二处理时长;所述显示系统根据所述第一处理时长和所述第二处理时长,确定所述第M+1个Vsync周期内的所述第一流程的起始时刻,所述第一流程的起始时刻等于第一时刻或位于所述第一时刻之后,所述第一时刻为距离所述器件显示流程的起始时刻经过所述第二处理时长的时刻,且所述第一流程的起始时刻 距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长。
- 如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:所述显示系统获取所述显示系统在所述第M个Vsync周期内执行第二流程的第三处理时长,所述第二流程为应用绘图流程和surfaceflinger合成流程中除所述第一流程以外的其他流程;所述显示系统根据所述第三处理时长,确定所述M+1个Vsync周期内的所述第二流程的起始时刻,所述第M+1个Vsync周期内所述第二流程的起始时刻位于所述器件显示流程的起始时刻之后,且所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长;在所述第M+1个Vsync周期中,所述显示系统在所述第二流程的起始时刻开始执行所述第二流程。
- 如权利要求4所述的方法,其特征在于,所述显示系统根据所述第三处理时长,确定所述M+1个Vsync周期内的所述第二流程的起始时刻,包括:所述显示系统获取所述显示系统在所述第M个Vsync周期内执行所述器件显示流程的第二处理时长;所述显示系统根据所述第二处理时长和所述第三处理时长,确定所述第M+1个Vsync周期内的所述第二流程的起始时刻,所述第二流程的起始时刻等于第二时刻或位于所述第二时刻之后,所述第二时刻为距离所述器件显示流程的起始时刻经过所述第二处理时长的时刻,且所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长。
- 如权利要求4或5所述的方法,其特征在于,当所述显示系统确定的所述第一处理时长、所述第二处理时长以及所述第三处理时长的和,小于或等于所述第M+1个Vsync周期的时长时,所述第一流程的起始时刻与所述第二流程的起始时刻之间的时长,大于或等于所述第一处理时长或所述第三处 理时长。
- 如权利要求1-6任一项所述的方法,其特征在于,所述第一流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长与第一预设时长的差。
- 如权利要求4-6任一项所述的方法,其特征在于,所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长与第二预设时长的差。
- 如权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:所述显示系统设置第M+P个Vsync周期内的所述第一流程的起始时刻为所述第M+P个Vsync周期的起始时刻,所述P为预设的大于1的正整数。
- 如权利要求4-6,8任一项所述的方法,其特征在于,所述方法还包括:所述显示系统设置第M+Q个Vsync周期内的所述第二流程的起始时刻为所述第M+Q个Vsync周期的起始时刻,所述Q为预设的大于1的正整数。
- 一种终端设备,其特征在于,所述终端设备用于在一个垂直同步Vsync周期内执行器件显示流程、应用绘图流程以及图层surfaceflinger合成流程,所述终端设备包括:获取单元,用于获取运行单元在第M个Vsync周期内执行第一流程的第一处理时长,所述第一流程为应用绘图流程或surfaceflinger合成流程,所述M为大于或等于1的正整数;处理单元,用于根据所述第一处理时长,确定第M+1个Vsync周期内的所述第一流程的起始时刻,所述第M+1个Vsync周期内,所述第一流程的起始时刻位于所述器件显示流程的起始时刻之后,且所述第一流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长;运行单元,用于在所述第M+1个Vsync周期中,在所述器件显示流程的起始时刻开始执行所述显示流程;在所述第一流程的起始时刻开始执行所述第一流程。
- 如权利要求11所述的终端设备,其特征在于,所述第M+1个Vsync周期内所述器件显示流程的起始时刻为所述M+1个Vsync周期的起始时刻。
- 如权利要求11或12所述的终端设备,其特征在于,所述获取单元,还用于获取所述运行单元在所述第M个Vsync周期内执行所述器件显示流程的第二处理时长;所述处理单元,具体用于:根据所述第一处理时长和所述第二处理时长,确定所述第M+1个Vsync周期内的所述第一流程的起始时刻,所述第一流程的起始时刻等于第一时刻或位于所述第一时刻之后,所述第一时刻为距离所述器件显示流程的起始时刻经过所述第二处理时长的时刻,且所述第一流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长。
- 如权利要求11-13任一项所述的终端设备,其特征在于,所述获取单元,还用于获取所述运行单元在所述第M个Vsync周期内执行第二流程的第三处理时长,所述第二流程为应用绘图流程和surfaceflinger合成流程中除所述第一流程以外的其他流程;所述处理单元,还用于根据所述第三处理时长,确定所述M+1个Vsync周期内的所述第二流程的起始时刻,所述第M+1个Vsync周期内所述第二流程的起始时刻位于所述器件显示流程的起始时刻之后,且所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长;所述运行单元,还用于在所述第M+1个Vsync周期中,在所述第二流程的起始时刻开始执行所述第二流程。
- 如权利要求14所述的终端设备,其特征在于,所述获取单元,还用于获取所述运行单元在所述第M个Vsync周期内执行所述器件显示流程的第二处理时长;所述处理单元,具体用于:根据所述第二处理时长和所述第三处理时长,确定所述第M+1个Vsync周期内的所述第二流程的起始时刻,所述第二流程 的起始时刻等于第二时刻或位于所述第二时刻之后,所述第二时刻为距离所述器件显示流程的起始时刻经过所述第二处理时长的时刻,且所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长。
- 如权利要求14或15所述的终端设备,其特征在于,所述处理单元还用于:当确定的所述第一处理时长、所述第二处理时长以及所述第三处理时长的和,小于或等于所述第M+1个Vsync周期的时长时,设置所述第M+1个Vsync周期内的所述第一流程的起始时刻和所述第二流程的起始时刻满足以下条件:所述第一流程的起始时刻与所述第二流程的起始时刻之间的时长,大于或等于所述第一处理时长或所述第三处理时长。
- 如权利要求11-16任一项所述的终端设备,其特征在于,所述第一流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第一处理时长之和小于或等于所述第M+1个Vsync周期的时长与第一预设时长的差。
- 如权利要求14-16任一项所述的终端设备,其特征在于,所述第二流程的起始时刻距离所述第M+1个Vsync周期的起始时刻的偏移时长与所述第三处理时长之和小于或等于所述第M+1个Vsync周期的时长与第二预设时长的差。
- 如权利要求11-18任一项所述的终端设备,其特征在于,所述处理单元,还用于:设置第M+P个Vsync周期内的所述第一流程的起始时刻为所述第M+P个Vsync周期的起始时刻,所述P为预设的大于1的正整数。
- 如权利要求14-16,18任一项所述的终端设备,其特征在于,所述处理单元,还用于:设置第M+Q个Vsync周期内的所述第二流程的起始时刻为所述第M+Q 个Vsync周期的起始时刻,所述Q为预设的大于1的正整数。
- 一种终端设备,其特征在于,所述终端设备用于在一个垂直同步Vsync周期内执行器件显示流程、应用绘图流程以及图层surfaceflinger合成流程,所述终端设备包括:处理器、总线、存储器以及显示面板,所述处理器、所述存储器以及所述显示面板通过所述总线连接;所述处理器调用所述存储器中的指令,执行如权利要求1-10任一项所述的方法;所述显示面板,用于所述处理器在每个Vsync周期内执行所述器件显示流程后,显示所述处理器执行所述器件显示流程生成的图像。
Priority Applications (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020187028704A KR102137647B1 (ko) | 2016-03-08 | 2016-03-08 | 디스플레이 방법 및 단말 장치 |
| PCT/CN2016/075846 WO2017152355A1 (zh) | 2016-03-08 | 2016-03-08 | 一种显示方法及终端设备 |
| US16/083,027 US10614772B2 (en) | 2016-03-08 | 2016-03-08 | Display method and terminal device |
| JP2018547469A JP6598408B2 (ja) | 2016-03-08 | 2016-03-08 | 表示方法および端末デバイス |
| CN201680024976.XA CN107533450B (zh) | 2016-03-08 | 2016-03-08 | 一种显示方法及终端设备 |
| EP16893007.1A EP3418879A4 (en) | 2016-03-08 | 2016-03-08 | Display method and terminal device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/075846 WO2017152355A1 (zh) | 2016-03-08 | 2016-03-08 | 一种显示方法及终端设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017152355A1 true WO2017152355A1 (zh) | 2017-09-14 |
Family
ID=59789934
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/075846 Ceased WO2017152355A1 (zh) | 2016-03-08 | 2016-03-08 | 一种显示方法及终端设备 |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US10614772B2 (zh) |
| EP (1) | EP3418879A4 (zh) |
| JP (1) | JP6598408B2 (zh) |
| KR (1) | KR102137647B1 (zh) |
| CN (1) | CN107533450B (zh) |
| WO (1) | WO2017152355A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020259457A1 (zh) * | 2019-06-25 | 2020-12-30 | 华为技术有限公司 | 一种基于垂直同步信号的控制方法及电子设备 |
| EP3815078A4 (en) * | 2018-06-29 | 2022-03-23 | INTEL Corporation | Computers for supporting multiple virtual reality display devices and related methods |
Families Citing this family (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102606693B1 (ko) | 2016-08-23 | 2023-11-28 | 삼성전자 주식회사 | 전자 장치 및 전자 장치의 동작 제어 방법 |
| KR102429433B1 (ko) * | 2018-01-18 | 2022-08-04 | 삼성전자주식회사 | 영상 표시 장치 및 그 구동 방법 |
| CN110503708A (zh) * | 2019-07-03 | 2019-11-26 | 华为技术有限公司 | 一种基于垂直同步信号的图像处理方法及电子设备 |
| US11145107B2 (en) * | 2019-11-04 | 2021-10-12 | Facebook Technologies, Llc | Artificial reality system using superframes to communicate surface data |
| US11430141B2 (en) | 2019-11-04 | 2022-08-30 | Facebook Technologies, Llc | Artificial reality system using a multisurface display protocol to communicate surface data |
| CN111124230B (zh) * | 2019-12-24 | 2020-11-17 | 腾讯科技(深圳)有限公司 | 输入响应方法、装置、电子设备及计算机可读存储介质 |
| KR102731422B1 (ko) * | 2020-06-02 | 2024-11-19 | 삼성전자주식회사 | 레코딩을 위한 전자 장치 및 그 동작 방법 |
| CN113867517A (zh) * | 2020-06-30 | 2021-12-31 | 北京小米移动软件有限公司 | 触控方法、装置、电子设备和存储介质 |
| CN113903128B (zh) * | 2021-12-09 | 2022-03-15 | 武汉天喻信息产业股份有限公司 | 一种带显示的设备及提高带显示的设备运行性能的方法 |
| CN117396835A (zh) * | 2022-05-11 | 2024-01-12 | 北京小米移动软件有限公司 | 显示图像的更新方法、装置及存储介质 |
| EP4579636A4 (en) | 2022-09-30 | 2025-09-17 | Samsung Electronics Co Ltd | ELECTRONIC DEVICE INCLUDING A DISPLAY DRIVER CIRCUIT THAT ADAPTIVELY STORES AN IMAGE |
| WO2024072057A1 (ko) * | 2022-09-30 | 2024-04-04 | 삼성전자주식회사 | 터치 회로로부터의 신호에 기반하여 이미지의 표시를 스케줄링하는 전자 장치 및 방법 |
| EP4546319A4 (en) | 2022-09-30 | 2025-07-09 | Samsung Electronics Co Ltd | ELECTRONIC DEVICE AND METHOD FOR CONTROLLING A SIGNAL PROVIDED TO A PROCESSOR |
| WO2024071930A1 (ko) * | 2022-09-30 | 2024-04-04 | 삼성전자주식회사 | 이미지를 적응적으로 저장하는 디스플레이 구동 회로를 포함하는 전자 장치 |
| EP4542534A4 (en) | 2022-09-30 | 2025-08-06 | Samsung Electronics Co Ltd | ELECTRONIC DEVICE FOR CONTROLLING A PULSE SIGNAL FROM A PROCESSOR TO A DISPLAY DEVICE |
| WO2024072176A1 (ko) * | 2022-09-30 | 2024-04-04 | 삼성전자주식회사 | 재생율에 기반하여 이미지 송신을 변경하는 전자 장치 |
| CN120298560A (zh) * | 2024-01-02 | 2025-07-11 | 荣耀终端股份有限公司 | 基于垂直同步信号的图像处理方法、电子设备和存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1938671A (zh) * | 2004-03-30 | 2007-03-28 | 英特尔公司 | 通过请求调整处理器的工作点来管理功耗 |
| CN101523909A (zh) * | 2006-08-11 | 2009-09-02 | 夏普株式会社 | 图像显示装置、图像数据提供装置、图像显示系统、图像显示系统的控制方法、控制程序以及记录介质 |
| CN103593155A (zh) * | 2013-11-06 | 2014-02-19 | 华为终端有限公司 | 显示帧生成方法和终端设备 |
| CN104050040A (zh) * | 2013-03-15 | 2014-09-17 | 英特尔公司 | 媒体重放工作负荷调度器 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6621500B1 (en) * | 2000-11-17 | 2003-09-16 | Hewlett-Packard Development Company, L.P. | Systems and methods for rendering graphical data |
| US6864894B1 (en) * | 2000-11-17 | 2005-03-08 | Hewlett-Packard Development Company, L.P. | Single logical screen system and method for rendering graphical data |
| US6727904B2 (en) * | 2002-03-01 | 2004-04-27 | Hewlett-Packard Development Company, L.P. | System and method for rendering graphical data |
| US6853380B2 (en) * | 2002-03-04 | 2005-02-08 | Hewlett-Packard Development Company, L.P. | Graphical display system and method |
| JP4926852B2 (ja) * | 2006-08-11 | 2012-05-09 | シャープ株式会社 | 画像表示装置、画像データ提供装置、画像表示システム、画像表示システムの制御方法、制御プログラム、および、記録媒体 |
| JP2012002952A (ja) * | 2010-06-15 | 2012-01-05 | Panasonic Corp | 画像表示制御装置及び画像表示制御方法 |
| US20140187331A1 (en) * | 2012-12-27 | 2014-07-03 | Nvidia Corporation | Latency reduction by sub-frame encoding and transmission |
| JP6349908B2 (ja) * | 2014-04-22 | 2018-07-04 | 富士通株式会社 | データ処理方法、データ処理装置及びプログラム |
| JP2016099792A (ja) * | 2014-11-20 | 2016-05-30 | 富士通株式会社 | 画像データ生成方法および画像データ生成装置 |
-
2016
- 2016-03-08 JP JP2018547469A patent/JP6598408B2/ja not_active Expired - Fee Related
- 2016-03-08 WO PCT/CN2016/075846 patent/WO2017152355A1/zh not_active Ceased
- 2016-03-08 CN CN201680024976.XA patent/CN107533450B/zh active Active
- 2016-03-08 US US16/083,027 patent/US10614772B2/en active Active
- 2016-03-08 EP EP16893007.1A patent/EP3418879A4/en not_active Ceased
- 2016-03-08 KR KR1020187028704A patent/KR102137647B1/ko not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1938671A (zh) * | 2004-03-30 | 2007-03-28 | 英特尔公司 | 通过请求调整处理器的工作点来管理功耗 |
| CN101523909A (zh) * | 2006-08-11 | 2009-09-02 | 夏普株式会社 | 图像显示装置、图像数据提供装置、图像显示系统、图像显示系统的控制方法、控制程序以及记录介质 |
| CN104050040A (zh) * | 2013-03-15 | 2014-09-17 | 英特尔公司 | 媒体重放工作负荷调度器 |
| CN103593155A (zh) * | 2013-11-06 | 2014-02-19 | 华为终端有限公司 | 显示帧生成方法和终端设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3418879A4 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3815078A4 (en) * | 2018-06-29 | 2022-03-23 | INTEL Corporation | Computers for supporting multiple virtual reality display devices and related methods |
| US11657781B2 (en) | 2018-06-29 | 2023-05-23 | Intel Corporation | Computers for supporting multiple virtual reality display devices and related methods |
| WO2020259457A1 (zh) * | 2019-06-25 | 2020-12-30 | 华为技术有限公司 | 一种基于垂直同步信号的控制方法及电子设备 |
| US11847992B2 (en) | 2019-06-25 | 2023-12-19 | Huawei Device Co., Ltd. | Control method based on vertical synchronization signal and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| KR102137647B1 (ko) | 2020-07-24 |
| EP3418879A4 (en) | 2019-01-02 |
| JP2019509568A (ja) | 2019-04-04 |
| CN107533450A (zh) | 2018-01-02 |
| JP6598408B2 (ja) | 2019-10-30 |
| US10614772B2 (en) | 2020-04-07 |
| EP3418879A1 (en) | 2018-12-26 |
| CN107533450B (zh) | 2020-06-16 |
| US20190096358A1 (en) | 2019-03-28 |
| KR20180118209A (ko) | 2018-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107533450B (zh) | 一种显示方法及终端设备 | |
| CN107102936B (zh) | 一种流畅度的评估方法和移动终端以及存储介质 | |
| CN109343759B (zh) | 一种息屏显示的控制方法及终端 | |
| CN109525874B (zh) | 一种截屏方法及终端设备 | |
| CN104571979B (zh) | 一种实现分屏视图的方法和装置 | |
| CN108052368B (zh) | 一种应用显示界面控制方法及移动终端 | |
| CN112423138A (zh) | 一种搜索结果展示方法及终端设备 | |
| CN110874128B (zh) | 可视化数据处理方法和电子设备 | |
| CN110244884B (zh) | 一种桌面图标管理方法及终端设备 | |
| CN108984066B (zh) | 一种应用程序图标显示方法及移动终端 | |
| CN110099296B (zh) | 一种信息显示方法及终端设备 | |
| CN112817501B (zh) | 一种媒体内容显示的方法以及相关装置 | |
| EP3418871A1 (en) | Swiping response acceleration method and related products | |
| CN110990172A (zh) | 一种应用分享方法、第一电子设备及计算机可读存储介质 | |
| CN108228120A (zh) | 一种ar场景下的多屏联动方法和系统 | |
| CN103559731A (zh) | 一种锁屏状态下歌词显示的方法及终端 | |
| WO2019076250A1 (zh) | 推送消息的管理方法及相关产品 | |
| CN108196781B (zh) | 界面的显示方法和移动终端 | |
| WO2023284621A1 (zh) | 设置方法、装置、电子设备和存储介质 | |
| WO2016188252A1 (zh) | 参考内容展示的方法、装置以及存储介质 | |
| CN109126127B (zh) | 游戏控制方法、双屏移动终端及计算机可读存储介质 | |
| CN108920040B (zh) | 一种应用图标整理方法及移动终端 | |
| CN105513098B (zh) | 一种图像处理的方法和装置 | |
| CN109947323B (zh) | 一种终端的显示方法及终端 | |
| CN108628534B (zh) | 一种字符展示方法及移动终端 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| ENP | Entry into the national phase |
Ref document number: 2018547469 Country of ref document: JP Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2016893007 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2016893007 Country of ref document: EP Effective date: 20180919 |
|
| ENP | Entry into the national phase |
Ref document number: 20187028704 Country of ref document: KR Kind code of ref document: A |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16893007 Country of ref document: EP Kind code of ref document: A1 |