WO2024016798A1 - 图像显示方法和相关装置 - Google Patents
图像显示方法和相关装置 Download PDFInfo
- Publication number
- WO2024016798A1 WO2024016798A1 PCT/CN2023/093741 CN2023093741W WO2024016798A1 WO 2024016798 A1 WO2024016798 A1 WO 2024016798A1 CN 2023093741 W CN2023093741 W CN 2023093741W WO 2024016798 A1 WO2024016798 A1 WO 2024016798A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- rendering
- priority
- foreground
- frequency
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—Two-dimensional [2D] image generation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- 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
- 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/001—Arbitration of resources in a display system, e.g. control of access to frame buffer by video controller and/or main processor
-
- 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/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
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/24—Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
-
- 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/10—Mixing of images, i.e. displayed pixel being the result of an operation, e.g. adding, on the corresponding input pixels
-
- 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/12—Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2354/00—Aspects of interface with display user
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2370/00—Aspects of data communication
- G09G2370/20—Details of the management of multiple sources of image data
Definitions
- the present application relates to the field of terminal technology, and in particular, to an image display method and related devices.
- Embodiments of the present application provide an image display method and related devices, which are applied to electronic equipment. By reducing the frequency of sending Vsync signals or stopping sending Vsync signals to foreground applications with lower rendering priority, the fluency of foreground applications with higher rendering priority is improved and the user experience is improved.
- an embodiment of the present application proposes an image display method applied to an electronic device.
- the method includes: based on the first initial rendering priority of the first application, whether the first application corresponds to the focus window and/or the application of the first application.
- the switching type determines the first rendering priority of the first application; wherein the first rendering initial priority is related to the application type of the first application and/or the rendering load of the first application, and the application switching type includes switching out of the application or switching in to the application.
- the sending frequency of the Vsync signal is reduced or the sending of the Vsync signal is stopped.
- Foreground applications with higher rendering priority maintain the original Vsync signal sending frequency, thereby improving the smoothness of foreground applications with higher rendering priority and improving user experience.
- the first application is a switch-out application
- the second application is a switch-in application
- determining the first rendering priority of the first application includes: according to the first rendering initialization of the first application Priority and No.
- the application switching type of an application determines the first rendering priority of the first application
- determining the second rendering priority of the second application includes: based on the second rendering initial priority of the second application and the application switching type of the second application. , determine the second rendering priority of the second application.
- the first rendering priority of the first application is determined based on the first rendering initial priority of the first application and the application switching type of the first application; based on the first rendering priority of the second application;
- the second rendering initial priority determines the second rendering priority of the second application according to the application switching type of the second application, and then determines the difference between the first application and the second rendering priority by comparing the first rendering priority and the second rendering priority.
- the rendering control method of the second application is determined based on the first rendering initial priority of the first application and the application switching type of the first application.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and the application switching type of the first application includes: based on the first application being a cut-out application, reducing the first application The first rendering initial priority of the first application is obtained; the second rendering priority of the second application is determined according to the second rendering initial priority of the second application and the application switching type of the second application, The method includes: based on the second application being a cut-in application, increasing the second rendering initial priority of the second application to obtain the second rendering priority of the second application.
- the first application is switched out based on the first application, and the first rendering initial priority of the first application is reduced to obtain the first rendering priority of the first application; based on the second
- the application is a cut-in application, and the second rendering initial priority of the second application is increased to obtain the second rendering priority of the second application. Then, the first rendering priority and the second rendering priority can be compared to determine the priority of the first application. and the rendering control method of the second application.
- the electronic device is in a split-screen display scenario, and the first application and the second application are displayed in two different windows respectively; determining the first rendering priority of the first application includes: according to the first rendering priority of the first application The initial rendering priority and whether the first application corresponds to the focus window, determine the first rendering priority of the first application; determine the second rendering priority of the second application, including: based on the second rendering initial priority of the second application and the second rendering priority. Whether the second application corresponds to the focus window determines the second rendering priority of the second application.
- the first rendering priority of the first application is determined based on whether the first application corresponds to the focus window; based on the second rendering initial priority of the second application, based on the second application Whether it corresponds to the focus window, determine the second rendering priority of the second application, and then determine the rendering control method for the first application and the second application by comparing the first rendering priority and the second rendering priority.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window includes: reducing the first application based on the first application corresponding to the non-focus window.
- the first rendering initial priority of the first application is obtained;
- the second rendering priority of the second application is determined according to the second rendering initial priority of the second application and whether the second application corresponds to the focus window,
- the method includes: based on the focus window corresponding to the second application, increasing the second rendering initial priority of the second application to obtain the second rendering priority of the second application.
- the focus window is the window with higher focus of the user.
- the initial priority of the first rendering of the first application is reduced to obtain the first rendering of the first application.
- the electronic device is in a scene where the floating window is displayed; determining the first rendering priority of the first application includes: determining the first application according to the first rendering initial priority of the first application and whether the first application corresponds to the focus window. the first rendering priority; determining the second rendering priority of the second application, including: determining the second rendering priority of the second application based on the second initial rendering priority of the second application and whether the second application corresponds to the focus window .
- the first rendering priority of the first application is determined based on whether the first application corresponds to the focus window; based on the second rendering initial priority of the second application, based on the second application Whether it corresponds to the focus window, determine the second rendering priority of the second application, and then determine the rendering control method for the first application and the second application by comparing the first rendering priority and the second rendering priority.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window includes: reducing the first application based on the first application corresponding to the non-focus window.
- the first rendering initial priority of the first application is obtained;
- the second rendering priority of the second application is determined according to the second rendering initial priority of the second application and whether the second application corresponds to the focus window,
- the method includes: based on the focus window corresponding to the second application, increasing the second rendering initial priority of the second application to obtain the second rendering priority of the second application.
- the focus window is the window with higher focus of the user.
- the initial priority of the first rendering of the first application is reduced to obtain the first rendering of the first application.
- the method before determining the first rendering priority of the first application and determining the second rendering priority of the second application, the method further includes: obtaining the rendering area of the first application and the rendering area of the second application; determining the first The first rendering priority of the application and the second rendering priority of the second application include: when the rendering area of the first application and the rendering area of the second application are both greater than the first preset value, determining the first rendering priority of the first application. a rendering priority, and determining a second rendering priority of the second application.
- the first rendering priority of the first application and the second rendering priority of the second application are determined. According to the first rendering The priority and the second rendering priority control the rendering of the first application and the second application, thereby reducing the rendering load of the system and improving the smoothness of the application.
- the method before determining the first rendering priority of the first application and determining the second rendering priority of the second application, the method further includes: obtaining window information of the application running in the foreground and/or switching information of the application running in the foreground. ; According to the window information of the application running in the foreground and/or the switching information of the application running in the foreground, determine that the application running in the foreground includes the first application and the second application.
- the application running in the foreground includes the first application and the second application based on the window information of the application running in the foreground and/or the switching information of the application running in the foreground.
- the applications running in the foreground include the first application and the second application, compare the first rendering priority of the first application and the second rendering priority of the second application, and then perform rendering control on the first application and the second application, Improve application fluency; when it is determined that the application running in the foreground includes the first application and does not include the second application, there is no need to obtain the first rendering priority of the first application, thereby saving system resources.
- embodiments of the present application propose an image display method, applied to electronic devices.
- the method includes: displaying a multi-task interface, where the multi-task interface includes a first application and a second application; receiving a first operation from a user; for switching the first application in and switching the second application out; in response to the first operation, sending the vertical synchronization signal Vsync signal to the first application at the first frequency, or stopping sending the Vsync signal to the first application; in response to the first operation One operation, sending a Vsync signal to the second application at the second frequency; wherein the first frequency is less than the second frequency; synthesizing the image rendered in the first application and the image rendered in the second application to obtain the target image ;Display the target image.
- the first operation may be the click operation in Figure 12
- the first application may be the video application in Figure 12
- the second application may be the social application in Figure 12.
- Vsync signals are sent to them at the original frequency; for switching-out applications, the frequency of sending Vsync signals is reduced, or Vsync signals are stopped being sent to them, so that switching-in applications can have sufficient rendering resources and improve switching-in. Application fluency.
- embodiments of the present application propose an image display method, applied to electronic devices.
- the method includes: displaying a first interface, where the first interface includes a first application; and receiving a user's request to separate the first application and the second application. a second operation of screen display; in response to the second operation, displaying the first application in the first window, and displaying the second application in the second window; receiving a third operation on the second application in the second window; In response to the third operation, send the Vsync signal to the first application at the first frequency, or stop sending the Vsync signal to the first application; in response to the second operation, send the Vsync signal to the second application at the second frequency; wherein, the first The frequency is smaller than the second frequency; the image rendered in the first application and the image rendered in the second application are synthesized to obtain a target image; and the target image is displayed.
- the first application can be a word application as shown in Figure 14
- the second application can be a ppt application as shown in Figure 14
- the first window can be a window corresponding to the word application
- the second window can be a window corresponding to the ppt application.
- the third operation can be an operation for the user to create a ppt in the ppt application corresponding to the second window.
- Vsync signals are sent to them at the original frequency.
- the frequency of sending Vsync signals is reduced, or Vsync signals are stopped being sent to them, so that applications in the focus window There can be sufficient rendering resources to improve the smoothness of applications in the focus window.
- embodiments of the present application propose an image display method, applied to electronic devices.
- the method includes: displaying a first application in full screen; receiving a fourth operation for triggering a second application; responding to the fourth operation, displaying a first application in full screen Display the second application, and display the first application in a floating window on the second application; receive the fifth operation on the second application; in response to the fifth operation, send the vertical synchronization signal Vsync signal to the first application at the first frequency , or stop sending the Vsync signal to the first application; in response to the fifth operation, send the Vsync signal to the second application at the second frequency; wherein the first frequency is less than the second frequency; compare the rendered image in the first application with the The rendered images in the second application are synthesized and processed to obtain the target image; the target image is displayed.
- the first application may be a video application as shown in a in Figure 15
- the second application may be a social application as shown in b in Figure 15
- the fourth operation may be as shown in a in Figure 15
- the fifth operation of clicking on the message reminder of the social application may be the operation of replying to the message as shown in b in Figure 15 .
- Vsync signals are sent to them at the original frequency.
- the frequency of sending Vsync signals is reduced, or Vsync signals are stopped being sent to them, so that applications in the focus window There can be sufficient rendering resources to improve the smoothness of applications in the focus window.
- embodiments of the present application propose an image display method, applied to an electronic device.
- the method includes: receiving a sixth operation from the user to return to the desktop application from the first application; in response to the sixth operation, stopping the display to the first application.
- Send the Vsync signal send the vertical synchronization signal Vsync signal to the first application at the first frequency, or stop sending the Vsync signal to the first application; in response to the sixth operation, send the Vsync signal to the second application at the second frequency; wherein, the The first frequency is smaller than the second frequency; the image rendered in the first application and the image rendered in the desktop application are synthesized to obtain a target image; and the target image is displayed.
- the first application may be a social networking application as shown in a in Figure 13
- the second application may be a desktop application as shown in b in Figure 13
- the sixth operation may be as shown in a in Figure 13 Swipe up to return to the desktop.
- Vsync signals are sent to them at the original frequency; for switching-out applications, the frequency of sending Vsync signals is reduced, or Vsync signals are stopped being sent to them, so that switching-in applications can have sufficient rendering resources. source to improve the smoothness of entering applications.
- embodiments of the present application provide an electronic device, which includes: a touch screen, wherein the touch screen includes a touch panel and a display screen; one or more processors; a memory; a plurality of application programs; and one or more a computer program, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: first initial rendering according to the first application The priority, whether the first application corresponds to the focus window and/or the application switching type of the first application, determine the first rendering priority of the first application; wherein the first rendering initial priority is related to the application type of the first application and/or Determined based on the second initial rendering priority of the second application, whether the second application corresponds to the focus window and/or the application switching type of the second application.
- the second rendering priority of the second application wherein the second rendering initial priority is related to the application type of the second application and/or the rendering load of the interface to be displayed by the second application; wherein the first application and the second application are electronic An application running on the device in the foreground; when the first rendering priority is lower than the second rendering priority, sending the vertical synchronization signal Vsync signal to the first application at the first frequency, or stopping sending the Vsync signal to the first application; and The second frequency sends a Vsync signal to the second application; where the first frequency is smaller than the second frequency; the image rendered in the first application and the image rendered in the second application are synthesized to obtain a target image; and the target image is displayed.
- embodiments of the present application provide an electronic device, which includes: a touch screen, wherein the touch screen includes a touch panel and a display screen; one or more processors; a memory; a plurality of application programs; and one or more A computer program, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: display a multi-tasking interface, and the multi-tasking interface includes The first application and the second application; receive a first operation from the user; the first operation is used to switch the first application in and switch the second application out; in response to the first operation, send vertical synchronization to the first application at a first frequency signal the Vsync signal, or stop sending the Vsync signal to the first application; in response to the first operation, send the Vsync signal to the second application at the second frequency; wherein the first frequency is smaller than the second frequency; the rendered Vsync signal in the first application is The
- embodiments of the present application provide an electronic device, which includes: a touch screen, wherein the touch screen includes a touch panel and a display screen; one or more processors; a memory; a plurality of application programs; and one or more A computer program, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: display a first interface, and the first interface includes The first application; receiving a second operation from the user to display the first application and the second application in split screens; in response to the second operation, displaying the first application in the first window and displaying the second application in the second window.
- Receiving a third operation for the second application in the second window In response to the third operation, sending the vertical synchronization signal Vsync signal to the first application at the first frequency, or stopping sending the Vsync signal to the first application;
- In response to The second operation is to send a Vsync signal to the second application at a second frequency; wherein the first frequency is smaller than the second frequency; and the image rendered in the first application and the image rendered in the second application are synthesized to obtain the target image. ;Display the target image.
- embodiments of the present application provide an electronic device, which includes: a touch screen, wherein the touch screen includes a touch panel and a display screen; one or more processors; a memory; a plurality of application programs; and one or more A computer program, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: display the first application in full screen; receive a user request in triggering a fourth operation of the second application; in response to the fourth operation, displaying the second application in full screen, and in the second application The first application is displayed in a floating window; the fifth operation on the second application is received; in response to the fifth operation, the vertical synchronization signal Vsync signal is sent to the first application at the first frequency, or the Vsync signal is stopped to be sent to the first application ; In response to the fifth operation, sending a Vsync signal to the second application at the second frequency; wherein the first frequency is
- embodiments of the present application provide an electronic device, which includes: a touch screen, wherein the touch screen includes a touch panel and a display screen; one or more processors; a memory; a plurality of application programs; and one or more A computer program, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the following steps: receiving the user's return to the desktop from the first application A sixth operation of the application; in response to the sixth operation, stopping sending the Vsync signal to the first application, sending the vertical synchronization signal Vsync signal to the first application at the first frequency, or stopping sending the Vsync signal to the first application; in response to the sixth operation Operation, send a Vsync signal to the second application at the second frequency; wherein the first frequency is less than the second frequency; synthesize the image rendered in the first application and the image rendered in the desktop application to obtain the target image; display target image.
- embodiments of the present application provide an electronic device, including: a processor and a memory.
- the processor is configured to call a program in the memory to cause the electronic device to execute the above first aspect, the second aspect, the third aspect, and the fourth aspect. method provided by aspect or fifth aspect.
- embodiments of the present application provide a computer-readable storage medium.
- the computer-readable storage medium stores computer instructions.
- the electronic device causes the electronic device to execute the first aspect and the second aspect. , the method provided by the third aspect, the fourth aspect or the fifth aspect.
- inventions of the present application provide a computer program product.
- the computer program product includes a computer program.
- the computer program When the computer program is run, it causes the computer to execute the above-mentioned first aspect, second aspect, third aspect, and fourth aspect. Or the method provided by the fifth aspect.
- Figure 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- Figure 2 is a software structure block diagram of the terminal device provided by the embodiment of the present application.
- FIG. 3 is a schematic diagram of module interaction provided by an embodiment of the present application.
- Figure 4 is a schematic diagram of module interaction provided by an embodiment of the present application.
- Figure 5 is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 6 is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 7 is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 8 is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 9 is a schematic flowchart of an image display method provided by an embodiment of the present application.
- Figure 10a is a schematic diagram of rendering control for a foreground application provided by an embodiment of the present application.
- Figure 10b is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 11a is a schematic diagram of rendering control for a foreground application provided by an embodiment of the present application.
- Figure 11b is a schematic diagram of an electronic device interface display processing flow provided by an embodiment of the present application.
- Figure 12 is a schematic diagram of a first scenario applicable to an image display method provided by an embodiment of the present application.
- Figure 13 is a schematic diagram of a second scenario applicable to an image display method provided by an embodiment of the present application.
- Figure 14 is a schematic diagram of a third scenario applicable to an image display method provided by an embodiment of the present application.
- Figure 15 is a schematic diagram of a fourth scenario applicable to an image display method provided by an embodiment of the present application.
- Figure 16 is a schematic flowchart of an image display method provided by an embodiment of the present application.
- Figure 17 is a schematic structural diagram of an image display device provided by an embodiment of the present application.
- FIG. 18 is a schematic diagram of the hardware structure of an image display device provided by an embodiment of the present application.
- System application An application developed by the manufacturer of a certain electronic device in order to solve various practical problems and improve user experience.
- system applications can be system desktop, system gallery, etc.
- Third-party applications In addition to applications developed by manufacturers of electronic devices, there are also applications developed by other individuals or companies for certain electronic devices, which are called third-party applications.
- the third-party application can be WeChat, Toutiao, etc.
- Frame refers to the smallest unit of a single picture in the interface display.
- a frame can be understood as a still picture, and displaying multiple connected frames in rapid succession can create the illusion of object movement.
- Frame rate refers to the number of images that can be generated in 1 second, the unit is frame per second (fps).
- Refresh rate refers to the number of frames that refresh the picture in 1 second. It can also be understood as the number of times the graphics processor in the electronic device refreshes the picture per second. A high frame rate results in smoother and more realistic animations. The more frames per second, the smoother the action shown will be. The unit is hertz (Hz).
- the interface usually needs to go through processes such as drawing, rendering, and synthesis before displaying frames.
- Frame drawing refers to the picture drawing of the display interface.
- the display interface can be composed of one or more views. Each view can be drawn by the visual control of the view system. Each view is composed of subviews. One subview corresponds to a widget in the view. For example, one of the subviews corresponds to the picture view. a symbol in .
- Frame rendering It is to perform coloring operations on the drawn view or add 3D effects, etc.
- 3D effects can be lighting effects, shadow effects, texture effects, etc.
- Frame synthesis It is the process of synthesizing one or more of the above rendered views into a display interface.
- words such as “first” and “second” are used to distinguish identical or similar items with basically the same functions and effects.
- the first chip and the second chip are only used to distinguish different chips, and their sequence is not limited.
- words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
- At least one refers to one or more, and “multiple” refers to two or more.
- “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the related objects are in an “or” relationship.
- “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
- At least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
- the electronic device when there are multiple foreground applications, the electronic device will perform rendering control according to the rendering priority of each foreground application, reducing the overall load of the system and improving the smoothness of the application interface. , thereby improving user experience.
- the image display method provided by the embodiment of the present application can be applied to electronic devices that support multiple foreground applications.
- Terminal equipment includes terminal equipment, which can also be called terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc.
- Terminal devices can be mobile phones, smart TVs, wearable devices, tablets (Pads), computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminals Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
- the embodiments of the present application do not limit the specific technology and specific device form used by the electronic device.
- the structure of the electronic device of the embodiments of the present application is introduced below:
- FIG. 1 shows a schematic structural diagram of an electronic device 100 .
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc.
- SIM Subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
- the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be recalled from memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and/or Universal serial bus (USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous receiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB Universal serial bus
- the interface connection relationships between the modules illustrated in the embodiments of the present application are schematic illustrations and do not constitute a structural limitation on the electronic device 100 .
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device 100 through the power management module 141.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- the electronic device 100 implements display functions through a graphics processing unit (GPU), a display screen 194, an application processor, and the like.
- the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 194 is used for displaying images, displaying videos, receiving sliding operations, and the like.
- Display 194 includes a display panel.
- the display panel may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode.
- LCD liquid crystal display
- OLED organic light-emitting diode
- AMOLED active-matrix organic light emitting diode
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the internal memory 121 may include a program storage area and a data storage area.
- the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
- the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, etc.
- the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- Figure 2 is a software structure block diagram of the electronic device according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has clear roles and division of labor.
- the layers communicate through software interfaces.
- the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime and system library, and kernel layer.
- the application layer can include a series of application packages. As shown in Figure 2, the application package can include desktop launcher Launcher, system user interface SystemUI, phone, camera, calendar, WeChat and other applications.
- the application framework layer provides application programming interface (API) and programming framework for applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer can include a system server, a rendering orchestrator, a graphics system, a view system, etc.
- the system server can include a window manager, package manager, activity manager, input system, etc.
- the graphics system is used to manage the graphics data of each application, including frame buffer, graphics rendering pipeline, etc.
- Window manager service is used to manage window programs.
- the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
- Package managers are used for program management within the system, such as application installation, uninstallation, and upgrades.
- AMS Activity manager service
- Android is the core service of Android. It is mainly responsible for the startup, switching, and scheduling of multiple important components in the system, as well as the management and scheduling of application processes. It also tracks and manages the switching of foreground applications.
- the input system is used for processing input events, for example, receiving user touch operations.
- the rendering orchestrator is used to provide a unified logical update and callback processing mechanism for the application, and is responsible for requesting and receiving APP-Vsync signals to provide a stable operating mechanism for the application.
- the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
- a view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- Android runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
- the application layer and application framework layer run in virtual machines.
- the virtual machine executes the java files of the application layer and application framework layer into binary files.
- the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
- System libraries can include multiple functional modules. For example: surface manager, 3D graphics processing library (for example: OpenGL ES), graphics synthesis module, compositor client, graphics rendering management module, etc.
- 3D graphics processing library for example: OpenGL ES
- graphics synthesis module for example: compositor client
- graphics rendering management module etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
- Graphics synthesis module includes connection manager, signal simulator, graphics synthesizer and synthesis controller.
- connection manager is used to establish a connection between the application and the graphics synthesis module when the application is started, receive layer information related to the application, and send Vsync signals to the application.
- Signal simulator is used to modulate software Vsync signals based on hardware Vsync signals.
- the graphics synthesizer is used to synthesize one or more rendered views into a display interface. For example, in a multi-window display, the images of multiple windows are synthesized after rendering.
- the synthesizer client is used to encapsulate the external functional interface of the graphics synthesizer, including layer creation, destruction, rearrangement, event delivery, rendering control, etc.
- the graphics rendering management module is responsible for recording and managing the rendering status of applications in the system, and controlling the rendering of each application according to the rendering control strategy.
- the hardware abstraction layer can include multiple library modules.
- the library modules can be hardware configuration modules (hwcomposer, HWC), camera library modules, etc.
- the Android system can load the corresponding library module for the device hardware, thereby achieving the purpose of the application framework layer accessing the device hardware.
- the kernel layer is the layer between hardware and software.
- the kernel layer is used to drive the hardware and make the hardware work.
- the kernel layer at least includes central processor driver, sensor driver, display driver, audio driver, camera driver, backlight driver and graphics processor driver.
- Hardware can be audio devices, Bluetooth devices, LCD screens, cameras, etc.
- the display process of the electronic device 100 will be described below.
- the WeChat application calls the image drawing module in the system library to draw the image through the view system of the application framework layer, and calls the image rendering module to render the drawn image.
- the WeChat application sends the rendered image to the graphics synthesis module.
- the graphics synthesis module calls the image synthesis module in the system library to synthesize the rendered images.
- the graphics synthesis module sends the synthesized image to the HWC of the hardware abstraction layer. HWC will The synthesized image is sent to the LCD/LED driver of the core layer.
- the LCD/LED driver drives the screen to refresh the display image.
- electronic devices generally display based on Vsync signals to synchronize processes such as image drawing, rendering, synthesis, and screen refresh display.
- the Vsync signal is a periodic signal
- the Vsync period can be set according to the screen refresh frame rate.
- the Vsync period can be 16.6ms, that is, the electronic device generates a control signal every 16.6ms. Vsync cycle trigger.
- the modules involved in the image display method provided by the embodiment of the present application may include an application program, a graphics synthesis module, a graphics rendering management module, a system server, and a rendering orchestrator.
- Figures 3 and 4 are interaction diagrams of each module.
- the system server may include a window manager and an activity manager
- the graphics rendering management module may include a rendering load manager and a rendering controller
- the graphics composition module may include a connection manager, a signal simulator and a composition controller.
- the application receives and responds to the preset operation and establishes a Vsync signal transmission channel through the connection manager and the graphics synthesis module.
- the preset operation is used to instruct opening an application or switching applications.
- the system server monitors changes in the foreground application, records the window information of the foreground application in the window manager, records the activity information of the foreground application in the activity manager, and sends the window information of the foreground application and the activity information of the foreground application to Render load manager.
- the change of the foreground application includes adding a foreground application or switching the foreground application.
- the foreground application creates a rendering thread, sends the rendering attribute information to the rendering load manager, and at the same time, registers the rendering callback function to the rendering orchestrator.
- the rendering attribute information includes information such as the initial priority of rendering.
- the rendering controller obtains the window information of the foreground application and the activity information of the foreground application from the rendering load manager, and determines the number of foreground applications based on the window information of the foreground application and the activity information of the foreground application.
- the rendering controller obtains the initial rendering priority from the rendering load manager, and determines the rendering priority of each foreground application based on the window information of the foreground application, the activity information of the foreground application, and the initial rendering priority. , obtain the rendering control strategies of multiple front-end applications, and send the rendering control strategies to the composition controller.
- the signal simulator obtains the rendering control strategy from the composition controller, and sends corresponding Vsync signals to multiple front-end applications according to the rendering control strategy and based on the established Vsync signal transmission channel.
- the Vsync signal may be a software Vsync signal (for example, APP-Vsync), and the software Vsync signal is a Vsync signal modulated by the signal simulator based on the hardware Vsync signal.
- the hardware Vsync signal is the HW-Vsync signal generated by the LCD/LED driver.
- the LCD/LED driver sends the HW-Vsync signal to the graphics synthesis module through HWC, and the graphics synthesis module
- the signal simulator in the software modulates the software Vsync signal based on the hardware Vsync signal.
- connection manager there are communication connections between the connection manager, the signal simulator and the synthesis controller.
- Multiple front-end applications call the rendering callback function in the rendering orchestrator according to the corresponding Vsync signal to perform rendering operations.
- the APP-Vsync signal can be sent normally to each foreground application. After receiving the APP-Vsync signal, Application 1, Application 2 and Application 3 can all render according to the APP-Vsync signal.
- the rendering control method can be to send the APP-Vsync signal to Application 1 normally, and stop sending APP-Vsync to Application 2 and Application 3. Signal. Specifically, after application 1 receives the APP-Vsync signal, it can render according to the APP-Vsync signal; but after application 2 and application 3 cannot receive the APP-Vsync signal, the display interface will no longer be refreshed.
- Vsync signals in electronic equipment can be divided into software Vsync signals and hardware Vsync signals.
- Software Vsync signals include APP-Vsync signals and SF-Vsync signals.
- the APP-Vsync signal is used to trigger the drawing and rendering process
- the SF-Vsync signal is used to trigger the synthesis process.
- the hardware Vsync signal (HW-Vsync signal) is used to trigger the screen display refresh process.
- the software Vsync signal and the hardware Vsync signal maintain period synchronization. Taking the change between 60Hz and 120Hz as an example, if the HW-Vsync signal switches from 60Hz to 120Hz, the APP-Vsync signal and the SF-Vsync signal change synchronously, switching from 60Hz to 120Hz.
- the application sends a Vsync request to the graphics synthesis module
- the graphics synthesis module sends a HW-Vsync request to the HWC
- the HWC sends a HW-Vsync request to the LCD/LED driver
- the LCD/LED driver generates the HW-Vsync signal
- the HW-Vsync The signal is fed back to the HWC, the HWC feeds back the HW-Vsync signal to the graphics synthesis module
- the graphics synthesis module sends the HW-Vsync signal to the application.
- the application draws and renders the image based on the received HW-Vsync signal; the graphics synthesis module performs image synthesis based on the HW-Vsync signal; the HWC controls the LCD/LED screen to refresh and display the image based on the HW-Vsync signal through the LCD/LED driver of the kernel layer. .
- the graphics synthesis module can generate software Vsync signals to control image drawing, rendering, synthesis and other processes.
- the graphics synthesis module collects the timestamp of the HW-Vsync signal.
- the graphics synthesis module receives the HW-Vsync signal multiple times in succession, the graphics synthesis module generates the software Vsync signal according to the recorded period of the HW-Vsync signal, and sends the software Vsync signal to the application to synchronize the drawing, rendering and synthesis of the image. Waiting process.
- the display process of the electronic device is given as an example for reference.
- Figure 5 is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the content displayed by the electronic device corresponds to frame 1, frame 2, frame 3, frame 4 and frame 5.
- the Vsync period is 8.3ms
- the Vsync period is 16.6ms, etc.
- the difference between the screen refresh rate and the Vsync period is The specific value is not specifically limited.
- the electronic device application when application 1 renders, taking frame 2 as an example, the electronic device application renders frame 2 through the view system of the application framework layer. After the rendering of frame 2 is completed, the application of the electronic device sends the rendered frame 2 to the graphics synthesis module (for example, surfaceflinger), and the graphics synthesis module synthesizes the rendered frame 2. After frame 1 is synthesized, the electronic device can start the display driver by calling the kernel layer to display the content corresponding to frame 2 on the screen. Frames 3 and 4 are also synthesized and displayed in a process similar to that of frame 2, which will not be described again here.
- the graphics synthesis module for example, surfaceflinger
- the interface of application 1 is displayed as frame 1, frame 2, frame 3 and frame 4 in sequence.
- the interface changes continuously and smoothly without any lag.
- the time it takes for the application to draw the rendered image and the time it takes to synthesize the image are related to the system load and other conditions of the electronic device.
- the display interface of the electronic device changes smoothly.
- the system load is heavy (for example, two applications are rendering at the same time)
- the time it takes for the application to draw the rendered image and/or the time it takes to synthesize the image increases, which may cause a certain frame of image to not be sent to the display in time, resulting in frame loss. , causing the display of electronic devices to freeze and reducing the user experience.
- Figure 6 is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the electronic device renders, synthesizes, and displays frame 2, frame 3, and frame 4 in Figure 6 respectively.
- frame 2, frame 3, and frame 4 in Figure 6 respectively.
- the rendering thread of the application includes rendering operations in the CPU and rendering in the GPU.
- the rendering operation will do some event processing, specifically including: in response to the event, calling the DoFrame function to perform processing on the application interface. layout, and sends various attribute information of the interface to the GPU through rendering instructions, and the GPU performs specific rendering operations according to the rendering instructions.
- Figure 7 is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the electronic device renders, synthesizes and displays frame 2, frame 3 and frame 4 in Figure 7 respectively.
- frame 2 frame 3 and frame 4 in Figure 7 respectively.
- Application 1 and Application 2 are running in the foreground at the same time. Due to insufficient resource supply and other reasons, frame 3 takes more time to synthesize and cannot be completed within the Vsync cycle. As a result, when the electronic device is displayed, Application 1 The interface of Application 2 is displayed as Frame 1, Frame 2, Frame 2 and Frame 3 in sequence. The interface of Application 2 is displayed as Frame 1, Frame 2, Frame 2 and Frame 3 in sequence. The display duration of Frame 2 in Application 1 and Application 2 increases. , causing the display of Application 1 and Application 2 to freeze, reducing the user experience.
- FIG. 8 is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the content displayed by the electronic device corresponds to frame 1, frame 2, frame 3, frame 4 and frame 5.
- the electronic device renders, synthesizes, and displays frame 2, frame 3, and frame 4 in Figure 8 respectively.
- Figure 9 is a schematic flowchart of an image display method provided by an embodiment of the present application.
- the method shown in Figure 9 can be performed by the electronic device 100 shown in Figure 1.
- the method includes:
- the application receives and responds to the preset operation.
- the system server monitors changes in the foreground application, records the window information and activity information of the foreground application in the system server, and stores the window information and activity information of the foreground application in the system server.
- the activity information is sent to the graphics rendering management module.
- the preset operation is used to instruct opening an application or switching applications.
- a foreground application can be understood as a running application visible on the desktop taskbar of the terminal device, for example, a running game application.
- window information can be understood as the existence of a corresponding window interface for each application during the running process.
- Each window interface has its own corresponding information and data. These information and data can include window size and window position. and window layout and other attribute information.
- WeChat window information can include the location of each button, the size of the dialog box, and other information.
- activity information can be understood as information generated and stored in the activity manager when the application of the terminal device is started or the foreground application is switched, so as to facilitate tracking and management of the switching of the foreground application. For example, when the front-end application is switched from a social application to a game application, activity information will be generated and recorded in the activity manager.
- the system server includes a window manager and an activity manager.
- the window information of the foreground application is recorded in the window manager, and the activity information of the foreground application is recorded in the activity manager.
- the graphics rendering management module includes a rendering load manager.
- the graphics rendering management module records the obtained information in the rendering load manager.
- the system server sends the window information of the foreground application and the activity information of the foreground application to the graphics rendering management module. , stored in the render load manager.
- the system server when an application receives a preset operation indicating opening the application or switching applications, the system server will monitor changes in the foreground application and generate window information and activity information.
- social applications and game applications have been pre-launched on the electronic device.
- the social application runs in the foreground and the game application runs in the background.
- the foreground application switches and a generated Window information and activity information.
- the foreground application sends the rendering attribute information to the graphics rendering management module based on the created rendering thread.
- the rendering attribute information includes information such as the initial priority of rendering.
- the foreground application sends the rendering attribute information to the graphics rendering management module, it is also stored in the rendering load manager.
- the initial rendering priority can be divided into high-medium-low.
- the initial rendering priority can be set to 0-2 in order from high to low.
- the initial rendering priority is high, it corresponds to 0, and when the rendering initial priority is high, it corresponds to 0.
- the initial priority is medium, it corresponds to 1, and when the initial rendering priority is low, it corresponds to 2.
- the initial rendering priority is high, it corresponds to 2.
- the initial rendering priority is medium, it corresponds to 1.
- the initial rendering priority is low, it corresponds to 1. 0.
- the rendering initial priority can be set based on the application type of the application. Specifically, the initial rendering priority of the system application can be set higher than the initial rendering priority of the third-party application.
- system application It can include desktop launcher, system user interface, etc.
- Third-party applications can include WeChat, Toutiao, etc.
- the initial rendering priority can be set based on the application's rendering load. Specifically, the initial rendering priority of an application with a large rendering load may be set higher than the initial rendering priority of an application with a small rendering load. For example, if the rendering load of a game application is greater than that of a social application, set the initial rendering priority of the game application to be higher than the initial rendering priority of the social application.
- the rendering initial priority can be set based on the application type of the application and the application's rendering load. Specifically, when multiple applications have the same application type, the initial rendering priority can be set according to the rendering load of the application, and the initial rendering priority of the application with a large rendering load is set higher than the initial rendering priority of the application with a small rendering load. class. For example, when the two foreground applications are a third-party game application and a third-party social application respectively, and the rendering load of the third-party game application is greater than that of the third-party social application, set the initial rendering priority of the third-party game application to be higher than that of the third-party social application. Initial rendering priority for third-party social applications.
- the foreground application creates a rendering thread and sends rendering attribute information such as the initial rendering priority in the rendering thread to the rendering load manager.
- the graphics rendering management module can determine the number of foreground applications based on the window information of the foreground application and the activity information of the foreground application.
- the graphics rendering management module can determine whether the foreground application has changed based on the window information of the foreground application and the activity information of the foreground application, for example, the switching or addition of the foreground application, and based on the window information of the foreground application and the activity information of the foreground application.
- Application activity information to obtain which applications are in the foreground, thereby determining the number of foreground applications.
- the embodiment of the present application can also use any other method to determine the number of foreground applications, and the embodiment of the present application does not make a specific limitation.
- the graphics rendering management module determines the rendering priority of each foreground application based on the window information of the foreground application, the activity information of the foreground application and the initial rendering priority, and obtains the rendering corresponding to multiple foreground applications. Control strategy and send the rendering control strategy to the graphics synthesis module.
- the rendering controller determines the rendering priority of each foreground application based on the window information of the foreground application, the activity information of the foreground application, and the initial rendering priority stored in the rendering load manager, and obtains multiple The rendering control strategy corresponding to the foreground application.
- rendering priority can be used to control rendering to varying degrees on multiple foreground applications. For example, when rendering multiple foreground applications, the higher the rendering priority of the foreground application, the more computing resources are given, which can improve the smoothness of the foreground application with high rendering priority.
- the rendering priority can be divided into high-medium-low.
- the rendering priority can be set to 0-2 in order from high to low.
- the rendering priority is high, it corresponds to 0, and the rendering priority is Medium corresponds to 1, and rendering priority to low corresponds to 2.
- the rendering priority is high, it corresponds to 2, when the rendering priority is medium, it corresponds to 1, and when the rendering priority is low, it corresponds to 0.
- the graphics rendering management module determines the rendering control strategies corresponding to multiple foreground applications based on the rendering priority of each foreground application, which may include: the rendering controller obtains the initial rendering priority from the rendering load manager, and based on The window information of the foreground application, the activity information of the foreground application and the initial rendering priority are used to determine the rendering priority of each foreground application and obtain the rendering control strategies corresponding to multiple foreground applications.
- the window information also includes the rendering area of the foreground application.
- the base Determine whether to control rendering of each foreground application based on the rendering area of each foreground application.
- rendering control is not performed on each foreground application; when the rendering area of each foreground application exceeds a certain threshold, rendering control is performed on each foreground application.
- the window information of the application, the activity information of the foreground application and the initial rendering priority are used to determine the rendering priority of each foreground application and obtain the rendering control strategy of multiple foreground applications.
- the threshold can be set according to the actual situation or experience, for example, it can be set to one-half of the screen area, etc.
- the embodiment of the present application does not limit the specific value of the threshold.
- the window information may also include the z-order of the windows corresponding to each foreground application, and whether the window corresponding to each foreground application is the focus window.
- the activity information includes switching information of the foreground application, and the rendering controller may The rendering priority of each foreground application is obtained based on the z-order of the corresponding windows, whether the window corresponding to each foreground application is the focus window, the switching information of the foreground application and/or the initial rendering priority of the foreground application.
- window z-order can be understood as the order of windows stacked on each other along an imaginary straight line perpendicular to the screen. High-level rendering priority is given to applications whose window z-order is close to the top, and low-level rendering priority is given to applications whose window z-order is close to the bottom.
- the focus window can be determined according to the user's operation. For example, when two foreground applications are displayed on a split screen and the user performs a touch operation on the upper half of the screen, the foreground application displayed in the upper half of the screen is the focus window, and the display The foreground application in the lower half of the screen is an unfocused window.
- the window manager when the user performs a touch operation, the window manager will also receive corresponding information, so that the foreground application corresponding to the focus window can be determined based on the window information.
- the initial rendering priority is set to 0-2 in order from high to low. Based on the initial rendering priority of each application, for the application that is about to be switched out, the rendering priority is increased by 1, and for the application that is about to be switched in, the rendering priority is increased by 1. For applications whose z-order is moved forward, the rendering priority is decreased by 1; for applications whose windows are moved forward in z-order, the rendering priority is decreased by 1; for applications whose windows are moved back in z-order, the rendering priority is increased by 1; for applications corresponding to the focus window, the rendering priority is decreased 1. For applications corresponding to non-focused windows, the rendering priority is increased by 1.
- the rendering control strategy may be related to the rendering priority of each application.
- the rendering control strategy can be determined based on the rendering priority, such as stopping sending Vsync signals to foreground applications with lower rendering priority, or reducing the frequency of sending Vsync signals to foreground applications with lower rendering priority, or first Stop sending Vsync signals to foreground applications with lower rendering priority. If based on the window information of the foreground application and the activity information of the foreground application, it is recognized that the load of multiple foreground applications has reduced to the first threshold, then adjust to give priority to rendering. Lower level foreground applications reduce the frequency of sending Vsync signals.
- Figure 10a and Figure 11a are two rendering control diagrams for foreground applications.
- Figure 10a shows stopping sending Vsync signals to the foreground application with lower rendering priority
- Figure 11a shows stopping sending Vsync signals to the foreground application with lower rendering priority. The application reduces the frequency of sending Vsync signals.
- the graphics synthesis module stops sending Vsync signals to foreground applications with lower rendering priority, and normally sends Vsync signals to foreground applications with higher rendering priority according to the original Vsync cycle.
- FIG. 10b is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the graphics synthesis module stops sending Vsync signals to the foreground application with a lower rendering priority, and according to In the original Vsync cycle, Vsync signals are normally sent to the foreground application with a higher rendering priority.
- the foreground application interface with a higher rendering priority processes frame 1, frame 2, frame 3, frame 4, and frame 5 according to the original Vsync cycle. render.
- frame 2, frame 3, and frame 4 rendered by the foreground application with a higher rendering priority are processed according to the original Vsync cycle. and frame 5, etc. are synthesized and displayed in sequence, and the last frame frame 1 rendered by the foreground application with a lower rendering priority is synthesized and displayed according to the original Vsync cycle.
- the synthesized pictures are still displayed sequentially in the order of frame 1, frame 2, and frame 3.
- the foreground application interface with higher rendering priority is refreshed according to the original Vsync cycle, while the foreground application interface with lower rendering priority stays on the last frame before rendering control.
- the graphics synthesis module reduces the Vsync signal sending frequency for foreground applications with lower rendering priority, for example, to half of the original Vsync signal sending frequency, and according to the original There is a Vsync cycle, and Vsync signals are normally sent to the foreground application with a higher rendering priority.
- FIG. 11b is a schematic diagram of an electronic device interface display processing flow in a possible implementation.
- the graphics synthesis module reduces the Vsync signal sending frequency of the foreground application with a lower rendering priority to one-half of the original Vsync signal sending frequency.
- the lower front-end application interface renders frame 1, frame 3, and frame 5 according to the reduced Vsync cycle, and according to the original Vsync cycle, normally sends Vsync signals to the foreground application with a higher rendering priority, and the rendering priority is higher.
- the high-end front-end application interface renders frame 1, frame 2, frame 3, frame 4, and frame 5 according to the original Vsync cycle.
- frame 2, frame 3, and frame 4 rendered by the foreground application with a higher rendering priority are processed according to the original Vsync cycle. and frame 5, etc. are synthesized and displayed in sequence, and frames 1, frame 3, frame 5, etc. rendered by the foreground application with a lower rendering priority are synthesized and displayed in sequence according to the reduced Vsync cycle.
- the synthesized pictures are still displayed sequentially in the order of frame 1, frame 2, and frame 3.
- the foreground application interface with a higher rendering priority is refreshed according to the original Vsync cycle, while the foreground application interface with a lower rendering priority is rendered less frequently and the screen refreshes slower.
- the foreground application interface with a higher rendering priority is rendered,
- the foreground application interface with lower rendering priority can only refresh 1 frame.
- the refresh frequency of the foreground application interface with lower rendering priority is half slower than the refresh frequency of the foreground application interface with higher rendering priority.
- the graphics rendering management module obtains the rendering priority of each foreground application and determines the rendering control strategy corresponding to multiple foreground applications.
- the graphics rendering management module can be as follows: for foreground applications with lower rendering priority , stop sending Vsync signals and/or reduce the frequency of sending Vsync signals until the load of the foreground application is recognized or the number of foreground applications is reduced to the corresponding threshold; for foreground applications with higher priority, the normal Vsync cycle will be used according to the original Vsync cycle. Send Vsync signal.
- the graphics synthesis module performs rendering control on each foreground application according to the rendering control strategies corresponding to the multiple foreground applications.
- the graphics synthesis module includes synthesis controller, signal simulator, connection manager, etc.
- the graphics synthesis module stores the rendering control strategy sent by the rendering controller in the synthesis controller, and the synthesis controller sends the rendering control strategy to the signal simulator.
- the signal simulator establishes the rendering control strategy according to the rendering control strategy.
- the Vsync signal transmission channel sends corresponding Vsync signals to each front-end application.
- the Vsync signal transmission channel is a channel established between the graphics synthesis module and the foreground application through the connection manager, so that the Vsync signal generated by the signal simulator can be sent to the foreground application.
- the signal simulator stops sending Vsync signals to the foreground application with a lower rendering priority within the rendering control duration based on the established Vsync signal transmission channel.
- the lower-priority foreground application sends a Vsync signal, and according to the original Vsync cycle, normally sends a Vsync signal to the higher-priority foreground application.
- the signal simulator stops sending Vsync signals to Application 2, and Application 2 stops rendering within the rendering control duration.
- the picture of application 2 stays at the last frame before rendering control, and according to the original Vsync cycle, a Vsync signal is sent to application 1, and application 1 can render normally.
- the signal simulator when the rendering control method reduces the frequency of Vsync signal transmission for foreground applications with lower rendering priority, the signal simulator prioritizes rendering within the rendering control duration based on the established Vsync signal transmission channel.
- the lower-level foreground application reduces the sending frequency of Vsync signals (for example, to one-half or one-third of the original Vsync signal sending frequency, etc.), and according to the original Vsync cycle, normally sends signals to higher-priority applications.
- the foreground application sends a Vsync signal.
- the original Vsync signal sending frequency of Application 1 and Application 2 is both 60Hz, and the rendering priority of Application 1 is higher than the rendering priority of Application 2, the original Vsync signal of Application 2 will be If the sending frequency of the Vsync signal is reduced to 30Hz, and the sending frequency of Application 1 is maintained at 60Hz, within the rendering control duration, when the screen of Application 1 is refreshed for 2 frames, the screen of Application 2 can only be refreshed for 1 frame.
- the screen refresh frequency of Application 2 is one-half slower than the screen refresh frequency of Application 1.
- the number of foreground applications may be reduced, and/or the load of the foreground application may be reduced. In this way, the number of foreground applications can be reduced to 1 or the load of the foreground application is less than a certain
- the rendering control strategy stops executing. It is understandable that changes in the foreground application are uncertain, so the rendering control duration for executing the rendering control strategy may also be uncertain.
- the number of foreground applications can also be identified based on the window information of the foreground application and the activity information of the foreground application.
- the rendering control method can be stopped.
- the load of multiple foreground applications is identified based on the window information of the foreground application and the activity information of the foreground application.
- the rendering control method can be stopped.
- the electronic device when multiple foreground applications occur, the electronic device will perform rendering control according to the rendering priority of each foreground application, reducing the overall load of the system and improving the smoothness of applications with higher rendering priority. sex, thereby improving user experience.
- the image display method provided by the embodiment of the present application can be applied in a multi-window display scenario.
- the multi-window display can include interface display during foreground application switching, split-screen display or floating window display, etc.
- the graphics rendering management module determines the rendering control strategies corresponding to multiple foreground applications based on the rendering priority of each foreground application, it will be explained from three scenarios: foreground application switching, split-screen display, and floating window display.
- each foreground application meets the conditions of rendering control, the rendering control of each foreground application is triggered; when the rendering area of each foreground application does not meet the conditions of rendering control, each foreground application will be triggered according to the original Vsync signal for rendering.
- the multi-window display scenario can be a scenario where the foreground application switches, for example, the foreground application switches from a third-party application to Or other system applications return to the desktop, open third-party applications or other system applications, foreground applications are swapped in/out from third-party applications or other system applications, etc.
- the specific process includes: displaying a multi-tasking interface on the screen of the electronic device, and the multi-tasking interface includes a first application and a second application; receiving the user's second application.
- the first operation is used to switch the first application in, and switch the second application out; in response to the first operation, send the vertical synchronization signal Vsync signal to the first application at the first frequency, or stop sending the vertical synchronization signal Vsync signal to the first application Vsync signal; in response to the first operation, sending a Vsync signal to the second application at a second frequency; wherein the first frequency is less than the second frequency; performing a comparison between the rendered image in the first application and the rendered image in the second application Synthesize and process to obtain the target image; display the target image.
- FIG. 12 shows a schematic diagram of the first scenario to which the image display method according to the embodiment of the present application is applicable.
- a multi-tasking interface is displayed on the screen of the electronic device.
- the multi-tasking interface includes a social application and a video application. It receives the user's operation of clicking on the social application.
- the social application is switched in, and the video is The application is cut out, and the interface shown in b in Figure 12 is obtained, and the social application is displayed on the screen.
- the Vsync signal is sent to the video application at the first frequency, or the Vsync signal is stopped to be sent to the video application; in response to this operation, the Vsync signal is sent to the social application at the second frequency.
- the application sends a Vsync signal; wherein the first frequency is smaller than the second frequency; the image rendered in the video application and the image rendered in the social application are synthesized to obtain a target image; and the target image is displayed.
- Vsync signals are sent to them at the original frequency; for hand-out applications, the frequency of sending Vsync signals is reduced or Vsync signals are stopped being sent to them, so that the hand-in applications can have sufficient Render resources to improve the smoothness of entering applications.
- the specific process includes: receiving the sixth operation of the user returning from the first application to the desktop application; in response to the sixth operation, stopping sending data to the first application.
- Figure 13 shows a schematic diagram of the second scenario applicable to the image display method according to the embodiment of the present application.
- the social application can be a third-party application or a system application.
- the Vsync signal is sent to the social application at the first frequency, or the Vsync signal is stopped to be sent to the video application; in response to this operation, the Vsync signal is sent to the Launcher at the second frequency.
- Vsync signal wherein, the first frequency is smaller than the second frequency; the image rendered in the social application and the image rendered by the Launcher are synthesized to obtain the target image; the target image is displayed.
- the social application and Launcher may be rendered at the same time, which may cause the system load to be too high.
- the electronic device may render social applications and Launcher according to their rendering priorities. Perform rendering control.
- Launcher It is located at the top level in the window z order.
- the window z order corresponding to Launcher and other applications does not change when the foreground application is switched; when the foreground application is two other applications except Launcher , when the foreground application is switched, the z-order of the swapped-in application is moved forward and the rendering priority is increased. The z-order of the swapped-out application is moved backward and the rendering priority is lowered.
- the rendering priority of the swapped-in application is increased, and the rendering priority of the swapped-out application is lowered, thereby ensuring the smoothness of the application to be displayed in the foreground.
- the window touched by the user may not be the window corresponding to the application to be swapped in. Therefore, there is no need to adjust the rendering priority of the application based on whether it corresponds to the focused window.
- the initial rendering priority set by the electronic device is 0 to 2 from high to low
- the initial rendering priority of the social interface and the initial rendering priority of the Launcher are 2 and 1 respectively.
- the Launcher's rendering priority is reduced by 1 based on its initial rendering priority
- the Launcher's rendering priority becomes 0
- the rendering priority of the social application is increased by 1 based on its initial rendering priority
- the rendering of the social application The priority becomes 3.
- the window z-order corresponding to Launcher and social applications does not change.
- the corresponding relationship between foreground applications and rendering priorities can be shown in Table 1.
- limiting the rendering of the social application may include stopping sending the Vsync signal to the social application and/or reducing the frequency of sending the Vsync signal.
- Vsync signals are sent to them at the original frequency; for hand-out applications, the frequency of sending Vsync signals is reduced or Vsync signals are stopped being sent to them, so that the hand-in applications can have sufficient Render resources to improve the smoothness of entering applications.
- the scene displayed in multiple windows can be a scene displayed in split screen.
- the upper half window of the screen and the lower half window of the screen display different applications respectively.
- the upper half of the screen displays a ppt file
- the lower half of the screen displays a word document.
- a first interface is displayed, and the first interface includes a first application; a second operation is received from the user to display the first application and the second application in split screens; in response to the second operation, the first application is displayed in the first window. an application, and displaying the second application in the second window; receiving a third operation on the second application in the second window; in response to the third operation, sending a vertical synchronization signal Vsync signal to the first application at a first frequency , or stop sending the Vsync signal to the first application; in response to the second operation, send the Vsync signal to the second application at the second frequency; wherein the first frequency is less than the second frequency; combine the rendered image in the first application with the second The rendered images in the application are synthesized and processed to obtain the target image; the target image is displayed.
- Figure 14 shows a schematic diagram of the third scenario applicable to the image display method according to the embodiment of the present application.
- the display interface of the electronic device includes ppt application and word application, and the upper half window of the screen displays ppt file, the lower half window of the screen displays a word document, and the user edits the ppt file based on the word document. Then the user performs a touch operation on the upper half window of the screen, thereby determining that the upper half window is the focus window.
- the initial rendering priority set by the electronic device is 0 to 2 from high to low.
- the initial rendering priority of the word application and the initial rendering priority of the ppt application are both 2. Since the window corresponding to the ppt application is the focus window, then The rendering priority of the ppt application is reduced by 1 based on its initial rendering priority, and the rendering priority of the ppt application becomes 1; since the window corresponding to the word application is a non-focus window, the rendering priority of the word application is at the initial rendering priority of the word application. Add 1 to the priority, and the rendering priority of the word application becomes 3.
- Table 2 The corresponding relationship between foreground applications and rendering priorities can be shown in Table 2.
- the rendering priority of the word application is 3 and the rendering priority of the ppt application is 1, so the rendering priority of the word application can be restricted.
- Rendering ensures the rendering of ppt applications and improves the smoothness of ppt applications.
- limiting the rendering of the word application may include stopping sending Vsync signals to the word application and/or reducing the frequency of sending Vsync signals.
- Vsync signals are sent to them at the original frequency, and for applications in non-focus windows, the frequency of sending Vsync signals is reduced or Vsync signals are stopped being sent to them, so that The application in the focus window can have sufficient rendering resources, improving the fluency of the application in the focus window.
- the scene of multi-window display can be the scene of floating window display, for example, picture-in-picture display of video application, display of web pages, files and other windows on the desktop, etc.
- the first application is displayed in full screen; a fourth operation for triggering the second application is received; in response to the fourth operation, the second application is displayed in full screen, and the first application is displayed in a floating window on the second application; receiving to the fifth operation for the second application; in response to the fifth operation, sending the vertical synchronization signal Vsync signal to the first application at the first frequency, or stopping sending the Vsync signal to the first application; in response to the fifth operation, using the second The frequency sends a Vsync signal to the second application; wherein the first frequency is smaller than the second frequency; the image rendered in the first application and the image rendered in the second application are synthesized to obtain a target image; and the target image is displayed.
- FIG. 15 shows a schematic diagram of the fourth scenario applicable to the image display method according to the embodiment of the present application.
- a social application for example, WeChat
- the playback interface is switched to full-screen display, the dialog interface of the social application and the playback interface of the video application are displayed in the form of a floating window, resulting in the display interface of the electronic device as shown in b in Figure 15, including both the social application and the video application.
- Frontend application when the user is watching the video in full screen through the video software, a social application (for example, WeChat) pops up a message notification, and the user clicks on the message notification, and the display interface of the electronic device changes from full screen display to the video application.
- the playback interface is switched to full-screen display, the dialog interface of the social application and the playback interface of the video application are displayed in the form of a floating window, resulting in the display interface of the electronic device as shown in b in Figure 15, including both the social application and the video application.
- Frontend application when the user is watching the video in full screen through the video software, a social application (for example, WeChat) pops up a message
- the electronic device can render the social application and the video application based on the rendering priority. Rendering control for social applications and video applications.
- the user since the user switches from the full-screen display interface of the video application to the dialog box of the social application, and performs operations such as viewing messages or replying to messages, the user's focus is on the social application, and the corresponding The window is determined as the focused window, and the window corresponding to the video application is determined as the non-focused window.
- the social application corresponds to the focus window and the video application corresponds to the focus window, and the Vsync signal is sent to the video application at the first frequency, or the Vsync signal is stopped to be sent to the video application; in response to the Operation, send a Vsync signal to the social application at the second frequency; wherein the first frequency is less than the second frequency; synthesize the image rendered in the video application and the image rendered in the social application to obtain a target image; display the target image .
- the initial rendering priority set by the electronic device is 0 to 2 from high to low
- the initial rendering priority of the social interface and the initial rendering priority of the video application are 2 and 1 respectively.
- the window corresponding to the social application is the focus window
- the rendering priority of the social application is reduced by 1 based on its initial rendering priority, and the rendering priority of the social application becomes 1; the window corresponding to the video application is not If the focus window is focused, the rendering priority of the video application is increased by 1 based on its initial rendering priority, and the rendering priority of the video application becomes 2.
- Table 3 The corresponding relationship between foreground applications and rendering priorities can be shown in Table 3.
- Vsync signals are sent to them at the original frequency, and for applications in non-focus windows, the frequency of sending Vsync signals is reduced, or Vsync signals are stopped being sent to them, so that The application in the focus window can have sufficient rendering resources, improving the fluency of the application in the focus window.
- FIG. 16 is a schematic flowchart of an image display method provided by an embodiment of the present application.
- the method shown in Figure 16 can be performed by the electronic device 100 shown in Figure 1.
- the method includes:
- S1601. Determine the first rendering priority of the first application according to the first initial rendering priority of the first application, whether the first application corresponds to the focus window, and/or the application switching type of the first application.
- the first rendering initial priority is related to the application type of the first application and/or the rendering load of the first application.
- the initial rendering priority can be divided into high-medium-low.
- the initial rendering priority can be set to 0-2 in order from high to low.
- the initial rendering priority is high, it corresponds to 0, and when the rendering initial priority is high, it corresponds to 0.
- the initial priority is medium, it corresponds to 1, and when the initial rendering priority is low, it corresponds to 2.
- the initial rendering priority is high, it corresponds to 2.
- the initial rendering priority is medium, it corresponds to 1.
- the initial rendering priority is low, it corresponds to 1. 0.
- the rendering initial priority can be set based on the application type of the application. Specifically, the initial rendering priority of the system application can be set higher than the initial rendering priority of the third-party application.
- system application It can include desktop launcher, system user interface, etc.
- Third-party applications can include WeChat, Toutiao, etc.
- the initial rendering priority can be set based on the application's rendering load. Specifically, the initial rendering priority of an application with a large rendering load may be set higher than the initial rendering priority of an application with a small rendering load. For example, if the rendering load of a game application is greater than that of a social application, set the initial rendering priority of the game application to be higher than the initial rendering priority of the social application.
- the rendering initial priority can be set based on the application type of the application and the application's rendering load. Specifically, when multiple applications have the same application type, the initial rendering priority can be set according to the rendering load of the application, and the initial rendering priority of the application with a large rendering load is set higher than the initial rendering priority of the application with a small rendering load. class. For example, when the two foreground applications are a third-party game application and a third-party social application, and the rendering load of the third-party game application is greater than that of the third-party social application, set the initial rendering priority of the third-party game application to be higher than that of the third-party social application. Initial rendering priority for third-party social applications.
- application switching types include switching out of applications or switching in applications.
- Switching in applications can be understood as switching into the foreground of the electronic device.
- Switching out applications can be understood as switching out of the foreground of the electronic device and switching into the foreground of the electronic device. Background application.
- the first initial rendering of the first application when the window corresponding to the first application is the focus window and/or the application switching type of the first application is a cut-in application, the first initial rendering of the first application is increased. Priority; when the window corresponding to the first application is a non-focus window and/or the application switching type of the first application is a cut-out application, the first initial rendering priority of the first application is reduced, thereby obtaining the first priority of the first application. Rendering priority.
- S1602. Determine the second rendering priority of the second application according to the second initial rendering priority of the second application, whether the second application corresponds to the focus window, and/or the application switching type of the second application.
- the second rendering initial priority is related to the application type of the second application and/or the rendering load of the interface to be displayed by the second application.
- the description of the second rendering initial priority may refer to the description in step S1501, and will not be described again here.
- first application and the second application are applications in which the electronic device is running in the foreground.
- the first frequency is smaller than the second frequency, and the first frequency can be understood as the frequency obtained by reducing the second frequency.
- rendering priority can be used to control rendering to varying degrees on multiple foreground applications. For example, when rendering multiple foreground applications, the higher the rendering priority of the foreground application, the more computing resources are given, which can improve the smoothness of the foreground application with high rendering priority.
- the rendering priority can be divided into high-medium-low.
- the rendering priority can be set to 0-2 in order from high to low.
- the rendering priority is high, it corresponds to 0, and the rendering priority is Medium corresponds to 1, and rendering priority to low corresponds to 2.
- the rendering priority is high, it corresponds to 2, when the rendering priority is medium, it corresponds to 1, and when the rendering priority is low, it corresponds to 0.
- the first rendering priority of the first application is lower than the second rendering priority of the second application, send the Vsync signal to the second application at the second frequency, and stop sending the Vsync signal to the first application, or , based on the second frequency, reduce the sending frequency of the first application Vsync signal to the first frame rate.
- the application sends a Vsync signal, renders the second application, and obtains an image rendered by the second application.
- the image rendered in the first application and the image rendered in the second application are synthesized to obtain a target image.
- the synthesized interface of the first application and the second application is displayed on the screen of the electronic device.
- the synthesized interface is a target image synthesized by combining the image rendered in the first application and the image rendered in the second application. .
- the first application and the second application are applications running in the foreground of the electronic device.
- the first initial rendering priority of the first application whether the first application corresponds to the focus window and/or the The application switching type of an application determines the first rendering priority of the first application; the second initial rendering priority of the second application is determined based on whether the second application corresponds to the focus window and/or the application switching type of the second application.
- a second rendering priority of the two applications when the first rendering priority is lower than the second rendering priority, sending a Vsync signal to the first application at a first frequency, or stopping sending a Vsync signal to the first application; and using a second rendering priority.
- the frequency sends a Vsync signal to the second application; wherein the first frequency is smaller than the second frequency; the image rendered in the first application and the image rendered in the second application are synthesized to obtain a target image; and the target image is displayed.
- the sending frequency of the Vsync signal is reduced or the sending of the Vsync signal is stopped. Foreground applications with higher rendering priority maintain the original Vsync signal sending frequency, thereby improving the smoothness of rendering foreground applications with higher priority and improving user experience.
- the image display method further includes:
- the first application is a switch-out application
- the second application is a switch-in application
- determining the first rendering priority of the first application includes: determining the first rendering priority of the first application according to the first rendering initial priority of the first application and the application switching type of the first application. and determining the second rendering priority of the second application, including: determining the second rendering priority of the second application according to the second rendering initial priority of the second application and the application switching type of the second application.
- the first rendering priority of the first application is determined based on the first rendering initial priority of the first application and the application switching type of the first application; based on the second rendering priority of the second application
- the initial rendering priority determines the second rendering priority of the second application according to the application switching type of the second application, and then determines the difference between the first application and the second rendering priority by comparing the first rendering priority and the second rendering priority.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and the application switching type of the first application includes: based on the first application being a cut-out application, reducing The first rendering initial priority of the first application is the first rendering priority of the first application. and determining the second rendering priority of the second application based on the second rendering initial priority of the second application and the application switching type of the second application, including: based on the second application being a cut-in application, improving the second rendering of the second application Initial priority, get the second rendering priority of the second application.
- the first rendering initial priority of the first application is reduced to obtain the first rendering priority of the first application; based on The second application is a cut-in application.
- the initial priority of the second rendering of the second application is increased to obtain the second rendering priority of the second application.
- the first rendering priority and the second rendering priority can be compared to determine the priority of the second rendering.
- 1 is added to the initial rendering priority of the application to be switched out, and for the application to be switched in, 1 is added to the initial rendering priority of the application to be switched in. minus 1.
- the initial rendering priority set by the electronic device is 0 to 2 from high to low
- the initial rendering priority of the social interface and the initial rendering priority of the Launcher are 2 and 1 respectively.
- the Launcher's rendering priority is reduced by 1 based on its initial rendering priority
- the Launcher's rendering priority becomes 0
- the rendering priority of the social application is increased by 1 based on its initial rendering priority
- the rendering of the social application The priority becomes 3.
- the electronic device is in a split-screen display scenario, and the first application and the second application are displayed in two different windows respectively.
- determining the first rendering priority of the first application includes: determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window; and determining The second rendering priority of the second application includes: determining the second rendering priority of the second application based on the second initial rendering priority of the second application and whether the second application corresponds to the focus window.
- the first application and the second application are displayed in two different windows respectively, and the two different windows may respectively correspond to the focus window and the non-focus window.
- the first application corresponds to the focus application
- the second application corresponds to the non-focus application
- the first application corresponds to the non-focus application
- the second application corresponds to the focus application.
- the first rendering priority of the first application is determined according to whether the first application corresponds to the focus window; based on the second rendering initial priority of the second application, the first rendering priority is determined based on the first rendering priority of the first application. Whether the second application corresponds to the focus window determines the second rendering priority of the second application, and then the rendering control method for the first application and the second application can be determined by comparing the first rendering priority and the second rendering priority.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window includes: based on the first application corresponding to the non-focus window, reducing According to the first rendering initial priority of the first application, the first rendering priority of the first application is obtained; according to the second rendering initial priority of the second application and whether the second application corresponds to the focus window, the second rendering of the second application is determined.
- the priority includes: based on the focus window corresponding to the second application, increasing the second rendering initial priority of the second application to obtain the second rendering priority of the second application.
- the focus window is a window with a higher focus of the user.
- the first rendering initial priority of the first application is reduced to obtain the first The first rendering priority of the application; based on the focus window corresponding to the second application, the second rendering initial priority of the second application is increased to obtain the second rendering priority of the second application.
- the focus window can be determined according to the user's operation. For example, when two foreground applications are displayed on a split screen and the user performs a touch operation on the upper half of the screen, the foreground application displayed in the upper half of the screen is the focus window, and the display The foreground application in the lower half of the screen is an unfocused window.
- the initial rendering priority set by the terminal device is 0 to 2 from high to low.
- the display interface of the terminal device includes a ppt application and a word application.
- the initial rendering priority of the word application and the initial rendering priority of the ppt application are both 2.
- the upper half window of the screen displays the ppt file, and the lower half window of the screen displays the word document. If the user edits the ppt file based on the word document, the user touches the upper half window of the screen, so that the upper half window can be determined.
- the window is the focus window.
- the rendering priority of the ppt application is reduced by 1 based on its initial rendering priority, and the rendering priority of the ppt application becomes 1; since the window corresponding to the word application is a non-focus window, Then the rendering priority of the word application is increased by 1 based on its initial rendering priority, and the rendering priority of the word application becomes 3.
- the corresponding initial rendering priority is increased, and for applications displayed in the non-focus window, the corresponding initial rendering priority is lowered, so that the corresponding initial rendering priority can be improved. application fluency.
- the electronic device is in a floating window display scenario.
- determining the first rendering priority of the first application includes: determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window; and determining The second rendering priority of the second application includes: determining the second rendering priority of the second application based on the second initial rendering priority of the second application and whether the second application corresponds to the focus window.
- the application type of the second application when the electronic device is in a scene where the floating window is displayed, for the two applications running in the foreground, when the application type of the first application is a switch-in application, the application type of the second application is a switch-out application; when When the application type of the first application is a switch-out application, the application type of the second application is a switch-in application.
- the first application corresponds to the focus application
- the second application corresponds to the non-focus application
- the first application corresponds to the non-focus application
- the second application corresponds to the focus application.
- the first rendering priority of the first application is determined according to whether the first application corresponds to the focus window; based on the second rendering initial priority of the second application, the first rendering priority is determined based on the first rendering priority of the first application. Whether the second application corresponds to the focus window determines the second rendering priority of the second application, and then the rendering control method for the first application and the second application can be determined by comparing the first rendering priority and the second rendering priority.
- determining the first rendering priority of the first application based on the first rendering initial priority of the first application and whether the first application corresponds to the focus window includes: based on the first application corresponding to the non-focus window, reducing According to the first rendering initial priority of the first application, the first rendering priority of the first application is obtained; according to the second rendering initial priority of the second application and whether the second application corresponds to the focus window, the second rendering of the second application is determined.
- the priority includes: based on the focus window corresponding to the second application, increasing the second rendering initial priority of the second application to obtain the second rendering priority of the second application.
- the focus window is a window with a higher focus of the user.
- the first rendering initial priority of the first application is reduced to obtain the first The first rendering priority of the application; based on the focus window corresponding to the second application, the second rendering initial priority of the second application is increased to obtain the second rendering priority of the second application.
- the focus window can be determined based on the user's operation. For example, when two applications are running in the foreground, application 2 is displayed in full screen on the screen of the electronic device, application 1 is displayed on application 2 in the form of a floating window, and the user targets the application 2 performs a touch operation, application 2 corresponds to the focused window, and application 1 corresponds to the non-focused window.
- the initial rendering priority set by the terminal electronic device is 0 to 2 from high to low
- the initial rendering priority of the social interface and the initial rendering priority of the video application are 2 and 1 respectively.
- the social network is displayed in full screen on the screen of the electronic device
- the video application is displayed on the social application in the form of a floating window.
- the corresponding social application window If the window is the focus window, the rendering priority of the social application will be reduced by 1 based on its initial rendering priority, and the rendering priority of the social application will become 1; if the window corresponding to the video application is a non-focus window, the rendering of the video application will take priority The level is increased by 1 to its initial rendering priority, and the video application's rendering priority becomes 2.
- the method before determining the first rendering priority of the first application and determining the second rendering priority of the second application, the method further includes: obtaining the rendering area of the first application and the rendering area of the second application. Determining the first rendering priority of the first application and the second rendering priority of the second application includes: when the rendering area of the first application and the rendering area of the second application are both greater than a first preset value, determining the first A first rendering priority for an application, and determining a second rendering priority for a second application.
- the size of the rendering area may be used to represent the size of the rendering load.
- the rendering load of the system is large, which will affect the first application. Fluency of the primary application and/or secondary application. Therefore, when the rendering area of the first application and the rendering area of the second application are both greater than the first preset value, the first rendering priority of the first application and the second rendering priority of the second application are determined, according to the first rendering The priority and the second rendering priority control the rendering of the first application and the second application, thereby reducing the rendering load of the system and improving the smoothness of the application.
- the method before determining the first rendering priority of the first application and determining the second rendering priority of the second application, the method further includes: obtaining window information of the application running in the foreground and/or the application running in the foreground. switching information; according to the window information of the application running in the foreground and/or the switching information of the application running in the foreground, it is determined that the application running in the foreground includes the first application and the second application.
- window information can be understood as the existence of a corresponding window interface for each application during the running process.
- Each window interface has its own corresponding information and data. These information and data can include window size and window position. and window layout and other attribute information.
- WeChat window information can include the location of each button, the size of the dialog box, and other information.
- the switching information of the application running in the foreground can be understood as information generated when the foreground application of the electronic device is switched, so as to facilitate tracking and management of the switching of the foreground application. For example, when the foreground application is switched from a social application to a game application, switching information of the application running in the foreground will be generated.
- the application running in the foreground includes the first application and the second application according to the window information of the application running in the foreground and/or the switching information of the application running in the foreground.
- the applications running in the foreground include the first application and the second application, compare the first rendering priority of the first application and the second rendering priority of the second application, and then perform rendering control on the first application and the second application, Improve application fluency; when it is determined that the application running in the foreground includes the first application and does not include the second application, there is no need to obtain the first rendering priority of the first application, thereby saving system resources.
- the electronic device performance adjustment method according to the embodiment of the present application has been described above.
- the electronic device performing the above image display method provided by the embodiment of the present application will be described below.
- Those skilled in the art can understand that methods and devices can be combined and referenced with each other, and the electronic device provided in the embodiment of the present application can perform the steps in the above image display method.
- Figure 17 shows a schematic structural diagram of an image display device provided by an embodiment of the present application.
- the image display device may be an electronic device in the embodiment of the present application.
- the image display device includes: a touch screen 1701, where the touch screen includes a touch panel and a display screen; one or more processors 1702; a memory 1703; a plurality of applications and one or more computer programs, wherein the one or more computer programs are stored in the memory 1703, the one or more computer programs include instructions, and when the instructions are executed by the image display device, the image display in the above embodiment is realized. method.
- FIG. 18 is a schematic diagram of the hardware structure of an image display device provided by an embodiment of the present application.
- the device includes: a memory 1801, a processor 1802 and a display screen 1804.
- the device may also include an interface circuit 1803, in which the memory 1801, the processor 1802, the interface circuit 1803 and the display screen 1804 can communicate; for example, the memory 1801, the processor 1802, the interface circuit 1803 and the display screen 1804 can communicate through a communication bus.
- the memory 1801 is used to store computer execution instructions, which are controlled by the processor 1802 for execution, and displayed by the display screen 1804, thereby realizing the image display method provided by the following embodiments of the present application.
- the computer execution instructions in the embodiments of the present application may also be called application codes, which are not specifically limited in the embodiments of the present application.
- the interface circuit 1803 may also include a transmitter and/or a receiver.
- the above-mentioned processor 1802 may include one or more CPUs, and may also be other general-purpose processors, digital signal processors (digital signal processors, DSPs), application specific integrated circuits (application specific integrated circuits, ASICs), etc.
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in this application can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
- the device of this embodiment can be used to perform the steps performed in the above method embodiment.
- the implementation principles and technical effects are similar and will not be described again here.
- An embodiment of the present application also provides a computer-readable storage medium.
- the methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
- Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another.
- the storage media can be any target media that can be accessed by the computer.
- the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or may be targeted to carry or any other medium that stores the required program code in the form of instructions or data structures and accessible by a computer.
- any connection is properly termed a computer-readable medium.
- coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave
- coaxial Cables, fiber optic cables, twisted pairs, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium.
- Disk and optical disc includes optical disc, laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
- Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.
- These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing device produce a To implement a process or processes in a flowchart and/or a box or boxes in a block diagram A device with a specific function.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
Claims (16)
- 一种图像显示方法,其特征在于,应用于电子设备,所述方法包括:根据第一应用的第一初始渲染优先级、所述第一应用是否对应焦点窗口和/或所述第一应用的应用切换类型,确定所述第一应用的第一渲染优先级;其中,所述第一渲染初始优先级与所述第一应用的应用类型和/或所述第一应用的渲染负载有关,所述应用切换类型包括切出应用或切入应用;根据第二应用的第二初始渲染优先级、所述第二应用是否对应焦点窗口和/或所述第二应用的应用切换类型,确定所述第二应用的第二渲染优先级,其中,所述第二渲染初始优先级与所述第二应用的应用类型和/或所述第二应用待显示界面的渲染负载有关;其中,所述第一应用和所述第二应用为所述电子设备处于前台运行的应用;当所述第一渲染优先级低于所述第二渲染优先级时,以第一频率向所述第一应用发送垂直同步信号Vsync信号,或者停止向所述第一应用发送Vsync信号;以及以第二频率向所述第二应用发送Vsync信号;其中,所述第一频率小于所述第二频率;将所述第一应用中渲染后的图像与所述第二应用中渲染后的图像进行合成处理,得到目标图像;显示所述目标图像。
- 根据权利要求1所述的方法,所述电子设备处于前台应用切换的场景,所述第一应用为切出应用,所述第二应用为切入应用;所述确定所述第一应用的第一渲染优先级,包括:根据所述第一应用的第一渲染初始优先级和所述第一应用的应用切换类型,确定所述第一应用的第一渲染优先级;所述确定所述第二应用的第二渲染优先级,包括:根据所述第二应用的第二渲染初始优先级和所述第二应用的应用切换类型,确定所述第二应用的第二渲染优先级。
- 根据权利要求2所述的方法,其特征在于,所述根据所述第一应用的第一渲染初始优先级和所述第一应用的应用切换类型,确定所述第一应用的第一渲染优先级,包括:基于所述第一应用为切出应用,降低所述第一应用的第一渲染初始优先级,得到所述第一应用的第一渲染优先级;所述根据所述第二应用的第二渲染初始优先级和所述第二应用的应用切换类型,确定所述第二应用的第二渲染优先级,包括:基于所述第二应用为切入应用,提高所述第二应用的第二渲染初始优先级,得到所述第二应用的第二渲染优先级。
- 根据权利要求1所述的方法,所述电子设备处于分屏显示的场景,所述第一应用和所述第二应用分别显示在两个不同的窗口中;所述确定所述第一应用的第一渲染优先级,包括:根据所述第一应用的第一渲染初始优先级和所述第一应用是否对应焦点窗口,确定所述第一应用的第一渲染优先级;所述确定所述第二应用的第二渲染优先级,包括:根据所述第二应用的第二渲染初始优先级和所述第二应用是否对应焦点窗口,确定所 述第二应用的第二渲染优先级。
- 根据权利要求4所述的方法,所述根据所述第一应用的第一渲染初始优先级和所述第一应用是否对应焦点窗口,确定所述第一应用的第一渲染优先级,包括:基于所述第一应用对应非焦点窗口,降低所述第一应用的第一渲染初始优先级,得到所述第一应用的第一渲染优先级;所述根据所述第二应用的第二渲染初始优先级和所述第二应用是否对应焦点窗口,确定所述第二应用的第二渲染优先级,包括:基于所述第二应用对应所述焦点窗口,增加所述第二应用的第二渲染初始优先级,得到所述第二应用的第二渲染优先级。
- 根据权利要求1所述的方法,所述电子设备处于悬浮窗显示的场景;所述确定所述第一应用的第一渲染优先级,包括:根据所述第一应用的第一渲染初始优先级和所述第一应用是否对应焦点窗口,确定所述第一应用的第一渲染优先级;所述确定所述第二应用的第二渲染优先级,包括:根据所述第二应用的第二渲染初始优先级和所述第二应用是否对应焦点窗口,确定所述第二应用的第二渲染优先级。
- 根据权利要求6所述的方法,所述根据所述第一应用的第一渲染初始优先级和所述第一应用是否对应焦点窗口,确定所述第一应用的第一渲染优先级,包括:基于所述第一应用对应所述非焦点窗口,降低所述第一应用的第一渲染初始优先级,得到所述第一应用的第一渲染优先级;所述根据所述第二应用的第二渲染初始优先级和所述第二应用是否对应焦点窗口,确定所述第二应用的第二渲染优先级,包括:基于所述第二应用对应所述焦点窗口,提高所述第二应用的第二渲染初始优先级,得到所述第二应用的第二渲染优先级。
- 根据权利要求1-7任一项所述的方法,在确定所述第一应用的第一渲染优先级,以及确定所述第二应用的第二渲染优先级之前,还包括:获取所述第一应用的渲染面积和所述第二应用的渲染面积;所述确定所述第一应用的第一渲染优先级,以及所述第二应用的第二渲染优先级,包括:当所述第一应用的渲染面积和所述第二应用的渲染面积均大于第一预设值时,确定所述第一应用的第一渲染优先级,以及确定所述第二应用的第二渲染优先级。
- 根据权利要求1-8任一项所述的方法,在确定所述第一应用的第一渲染优先级,以及确定所述第二应用的第二渲染优先级之前,还包括:获取所述前台运行的应用的窗口信息和/或所述前台运行的应用的切换信息;根据所述前台运行的应用的窗口信息和/或所述前台运行的应用切换信息,确定前台运行的应用包括所述第一应用和所述第二应用。
- 一种图像显示方法,其特征在于,应用于电子设备,所述方法包括:显示多任务界面,所述多任务界面包括第一应用和第二应用;接收用户第一操作;所述第一操作用于将所述第一应用切入,以及将所述第二应用切出;响应于所述第一操作,以第一频率向所述第一应用发送垂直同步信号Vsync信号,或者停止向所述第一应用发送Vsync信号;响应于所述第一操作,以第二频率向所述第二应用发送Vsync信号;其中,所述第一频率小于所述第二频率;将所述第一应用中渲染后的图像与所述第二应用中渲染后的图像进行合成处理,得到目标图像;显示所述目标图像。
- 一种图像显示方法,其特征在于,应用于电子设备,所述方法包括:显示第一界面,所述第一界面包括第一应用;接收用户用于将所述第一应用以及第二应用分屏显示的第二操作;响应于所述第二操作,在第一窗口中显示所述第一应用,以及在第二窗口中显示所述第二应用;接收到对所述第二窗口中的所述第二应用的第三操作;响应于所述第三操作,以第一频率向所述第一应用发送垂直同步信号Vsync信号,或者停止向所述第一应用发送Vsync信号;响应于所述第二操作,以第二频率向所述第二应用发送Vsync信号;其中,所述第一频率小于所述第二频率;将所述第一应用中渲染后图像与所述第二应用中渲染后的图像进行合成处理,得到目标图像;显示所述目标图像。
- 一种图像显示方法,其特征在于,应用于电子设备,所述方法包括:全屏显示第一应用;接收到用于触发第二应用的第四操作;响应于所述第四操作,全屏显示所述第二应用,以及在所述第二应用上以悬浮窗显示所述第一应用;接收到对所述第二应用的第五操作;响应于所述第五操作,以第一频率向所述第一应用发送垂直同步信号Vsync信号,或者停止向所述第一应用发送Vsync信号;响应于所述第五操作,以第二频率向所述第二应用发送Vsync信号;其中,所述第一频率小于所述第二频率;将所述第一应用中渲染后的图像与所述第二应用中渲染后的图像进行合成处理,得到目标图像;显示所述目标图像。
- 一种图像显示方法,其特征在于,应用于电子设备,所述方法包括:接收用户从第一应用返回到桌面应用的第六操作;响应于所述第六操作,以第一频率向所述第一应用发送垂直同步信号Vsync信号,或者停止向所述第一应用发送Vsync信号;响应于所述第六操作,以第二频率向所述桌面应用发送Vsync信号;其中,所述第一频率小于所述第二频率;将所述第一应用中渲染后的图像与所述桌面应用中渲染后的图像进行合成处理,得到目标图像;显示所述目标图像。
- 一种电子设备,其特征在于,包括:处理器和存储器,所述处理器用于调用所述存储器中的程序以使所述电子设备执行权利要求1-13任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-13任一项所述的方法。
- 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1-13任一项所述的方法。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/873,060 US20250363677A1 (en) | 2022-07-21 | 2023-05-12 | Image display method and related apparatus |
| CN202380055467.3A CN119698594A (zh) | 2022-07-21 | 2023-05-12 | 图像显示方法和相关装置 |
| EP23841867.7A EP4509957A4 (en) | 2022-07-21 | 2023-05-12 | IMAGE DISPLAY METHOD AND ASSOCIATED APPARATUS |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210868302.5A CN117472483A (zh) | 2022-07-21 | 2022-07-21 | 图像显示方法和相关装置 |
| CN202210868302.5 | 2022-07-21 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2024016798A1 true WO2024016798A1 (zh) | 2024-01-25 |
| WO2024016798A9 WO2024016798A9 (zh) | 2024-05-16 |
Family
ID=89616964
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/093741 Ceased WO2024016798A1 (zh) | 2022-07-21 | 2023-05-12 | 图像显示方法和相关装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250363677A1 (zh) |
| EP (1) | EP4509957A4 (zh) |
| CN (2) | CN117472483A (zh) |
| WO (1) | WO2024016798A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119248217B (zh) * | 2024-03-15 | 2025-08-29 | 荣耀终端股份有限公司 | 显示方法、电子设备及计算机可读存储介质 |
| CN119271029B (zh) * | 2024-04-29 | 2026-04-21 | 荣耀终端股份有限公司 | 一种调频方法及电子设备 |
| CN121326187A (zh) * | 2024-07-05 | 2026-01-13 | 荣耀终端股份有限公司 | 数据处理方法和相关装置 |
| CN118689580B (zh) * | 2024-08-22 | 2026-01-27 | 北京茵沃汽车科技有限公司 | 应用窗口切换方法及装置、存储介质及电子设备 |
| CN121680986A (zh) * | 2024-09-14 | 2026-03-17 | 华为技术有限公司 | 窗口帧率控制方法及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106933328A (zh) * | 2017-03-10 | 2017-07-07 | 广东欧珀移动通信有限公司 | 一种移动终端帧率的控制方法、装置及移动终端 |
| CN112199067A (zh) * | 2020-12-04 | 2021-01-08 | 湖北芯擎科技有限公司 | 一种显示切换方法及装置 |
| CN112711477A (zh) * | 2021-03-29 | 2021-04-27 | 北京拓课网络科技有限公司 | 一种切换应用程序的方法、装置及电子设备 |
| CN113722030A (zh) * | 2021-06-10 | 2021-11-30 | 荣耀终端有限公司 | 一种显示方法、电子设备及计算机存储介质 |
| WO2022087871A1 (en) * | 2020-10-28 | 2022-05-05 | Qualcomm Incorporated | Intelligent management of application layer rendering |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102725794B1 (ko) * | 2020-08-04 | 2024-11-05 | 삼성전자주식회사 | 디스플레이 다중 구동 방법 및 이를 지원하는 전자 장치 |
| CN113553130B (zh) * | 2021-03-24 | 2023-04-28 | 华为技术有限公司 | 应用执行绘制操作的方法及电子设备 |
-
2022
- 2022-07-21 CN CN202210868302.5A patent/CN117472483A/zh active Pending
-
2023
- 2023-05-12 CN CN202380055467.3A patent/CN119698594A/zh active Pending
- 2023-05-12 US US18/873,060 patent/US20250363677A1/en active Pending
- 2023-05-12 EP EP23841867.7A patent/EP4509957A4/en active Pending
- 2023-05-12 WO PCT/CN2023/093741 patent/WO2024016798A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106933328A (zh) * | 2017-03-10 | 2017-07-07 | 广东欧珀移动通信有限公司 | 一种移动终端帧率的控制方法、装置及移动终端 |
| WO2022087871A1 (en) * | 2020-10-28 | 2022-05-05 | Qualcomm Incorporated | Intelligent management of application layer rendering |
| CN112199067A (zh) * | 2020-12-04 | 2021-01-08 | 湖北芯擎科技有限公司 | 一种显示切换方法及装置 |
| CN112711477A (zh) * | 2021-03-29 | 2021-04-27 | 北京拓课网络科技有限公司 | 一种切换应用程序的方法、装置及电子设备 |
| CN113722030A (zh) * | 2021-06-10 | 2021-11-30 | 荣耀终端有限公司 | 一种显示方法、电子设备及计算机存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4509957A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119698594A (zh) | 2025-03-25 |
| WO2024016798A9 (zh) | 2024-05-16 |
| EP4509957A4 (en) | 2025-07-16 |
| CN117472483A (zh) | 2024-01-30 |
| EP4509957A1 (en) | 2025-02-19 |
| US20250363677A1 (en) | 2025-11-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114518817B (zh) | 一种显示方法、电子设备及存储介质 | |
| CN114648951B (zh) | 控制屏幕刷新率动态变化的方法及电子设备 | |
| CN116052618B (zh) | 一种屏幕刷新率切换方法及电子设备 | |
| WO2024016798A1 (zh) | 图像显示方法和相关装置 | |
| CN114911336B (zh) | 调整频率的方法、装置、电子设备及可读存储介质 | |
| CN114632329B (zh) | 终端设备性能调节方法和相关装置 | |
| US12452486B2 (en) | Refresh rate setting method and related device | |
| CN117707406B (zh) | 一种亮屏显示方法、电子设备及存储介质 | |
| CN118626201A (zh) | 运行帧率控制方法、电子设备、芯片系统及可读存储介质 | |
| US20260031018A1 (en) | Refresh rate adjustment method and electronic device | |
| US20260073584A1 (en) | Surface composition method, electronic device, and storage medium | |
| WO2025007587A1 (zh) | 显示方法和相关装置 | |
| CN116361013A (zh) | 任务处理方法和电子设备 | |
| CN116077940B (zh) | 游戏应用中的绘图处理方法和相关装置 | |
| US20260113530A1 (en) | Display Control Method and Electronic Device | |
| EP4603970A1 (en) | Window animation processing method and electronic device | |
| CN121750778A (zh) | 一种图像处理方法及电子设备 | |
| CN120238755A (zh) | 一种图像处理方法及电子设备 | |
| CN120335906A (zh) | 帧合成方法、电子设备及计算机可读存储介质 | |
| WO2025199952A1 (zh) | 一种相机应用启动方法及电子设备 | |
| HK40091417B (zh) | 用於虚拟场景的推流方法、装置、设备及存储介质 | |
| CN120238754A (zh) | 一种图像处理方法及电子设备 | |
| CN117991961A (zh) | 数据处理方法、设备及存储介质 | |
| HK40091417A (zh) | 用於虚拟场景的推流方法、装置、设备及存储介质 | |
| CN120255766A (zh) | 一种界面处理方法及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23841867 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2023841867 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2023841867 Country of ref document: EP Effective date: 20241113 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18873060 Country of ref document: US |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202380055467.3 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 202380055467.3 Country of ref document: CN |
|
| WWP | Wipo information: published in national office |
Ref document number: 18873060 Country of ref document: US |