Display method and electronic device
By adjusting the offset and configuration duration of the vertical synchronization signal, the rendering and synthesis operations of electronic devices are optimized, solving the problem of poor chirality of electronic devices in touch operation scenarios, and improving user experience and operation efficiency.
Patent Information
- Application Number
- PCT/CN2023/127903
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-28
- Filing Date
- 2023-10-30
- Publication Date
- 2024-09-19
AI Technical Summary
Existing electronic devices have problems with poor chirality in touch operation scenarios, resulting in display lag and affecting user experience.
By adjusting the offset and configuration duration of the vertical synchronization signal, the rendering, composition, and display operations are optimized, especially in hands-free operation scenarios to shorten the configuration duration, reduce touch delay, and improve chirality.
It effectively reduces the touch delay and improves the user experience, especially in the scenario of sliding operation without leaving the hand, displaying images in advance and improving hand following performance.
Smart Images

Figure CN2023127903_19092024_PF_FP_ABST
Abstract
Description
Display method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 28, 2023, with application number 202310041624.7 and invention name “A display method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of display systems, and in particular to a display method and electronic equipment. Background Art
[0003] Tracking performance is a key indicator of the touch experience. The shorter the tracking response time, the better the tracking performance. Tracking response time refers to the time it takes for an electronic device to display the corresponding page on the display after receiving a user touch operation.
[0004] Currently, some touch screen operation scenarios still suffer from poor hand tracking. That is, when electronic devices display content, there is often a display lag, which affects the user experience.
[0005] Summary of the Invention
[0006] The present application provides a display method and an electronic device for solving the problem of poor chirality.
[0007] In a first aspect, the present application provides a display method, which is applied to an electronic device, the method comprising: receiving a first touch operation input by a user; if the touch scenario of the first touch operation is a hand-off operation scenario, then in response to a received first application vertical synchronization signal, within a first configuration time length in the hand-off operation scenario, performing a drawing and rendering operation on a first image frame; in response to a received first synthetic vertical synchronization signal, within a second configuration time length in the hand-off operation scenario, performing a synthesis operation on the first image frame after drawing and rendering; wherein, the first synthetic vertical synchronization signal and the first application vertical synchronization signal are separated by the first configuration time length; in response to a received first hardware vertical synchronization signal, performing a display operation on the synthesized first image frame; wherein, the first hardware vertical synchronization signal and the first synthetic vertical synchronization signal are separated by the second configuration time length; receiving the user input a second touch operation; if the touch scenario of the second touch operation is a hands-on operation scenario, then in response to the received second application vertical synchronization signal, within the third configuration time length in the hands-on operation scenario, a drawing and rendering operation is performed on the second image frame; in response to the received second synthetic vertical synchronization signal, within the fourth configuration time length in the hands-on operation scenario, a synthesis operation is performed on the second image frame after drawing and rendering; wherein, the second synthetic vertical synchronization signal and the second application vertical synchronization signal are separated by the third configuration time length; in response to the received second hardware vertical synchronization signal, a display operation is performed on the synthesized second image frame; the second hardware vertical synchronization signal and the second synthetic vertical synchronization signal are separated by the fourth configuration time length; wherein, the third configuration time length is less than the first configuration time length, and / or, the fourth configuration time length is less than the second configuration time length.
[0008] In this way, different working durations are configured for different touch operation scenarios, which can better adapt to the different needs of different application scenarios. Specifically, in the hands-on operation scenario, the configuration duration (including drawing duration and / or synthesis duration) can be adjusted so that the configuration duration in the hands-on operation scenario is shorter than the configuration duration in the hands-off operation scenario. In this way, based on the adjusted configuration duration, the drawing, rendering, synthesis, and display operations are performed, which can reduce touch delay, improve hand tracking, and improve user experience.
[0009] In one possible implementation, the hands-on operation scenario includes a hands-on sliding operation scenario and a hands-on pressing operation scenario.
[0010] In one implementable embodiment, the method further includes: if the touch scenario of the first touch operation is a hands-off operation scenario, determining first configuration information corresponding to the hands-off operation scenario, the first configuration information including the first configuration duration and the second configuration duration; if the touch scenario of the second touch operation is a hands-on operation scenario, determining second configuration information corresponding to the hands-on operation scenario, the second configuration information including the third configuration duration and the fourth configuration duration.
[0011] In one implementation, the second application vertical synchronization signal and the third application vertical synchronization signal are spaced apart by a first time length, the second application vertical synchronization signal and the fourth application vertical synchronization signal are spaced apart by a second time length, the third application vertical synchronization signal is the previous application vertical synchronization signal of the second application vertical synchronization signal, and the fourth application vertical synchronization signal is the next application vertical synchronization signal of the second application vertical synchronization signal; the second synthetic vertical synchronization signal and the third synthetic vertical synchronization signal are spaced apart by a third time length, the second synthetic vertical synchronization signal and the fourth synthetic vertical synchronization signal are spaced apart by a fourth time length, the third synthetic vertical synchronization signal is the previous synthetic vertical synchronization signal of the second synthetic vertical synchronization signal, and the fourth synthetic vertical synchronization signal is the next synthetic vertical synchronization signal of the second synthetic vertical synchronization signal; wherein, the first time length is different from the second time length, and / or the third time length is different from the fourth time length.
[0012] In this way, the configuration duration can be modified by adjusting the offset of the applied vertical signal and / or the synthesized vertical signal.
[0013] In one implementation, if the touch scenario of the second touch operation is a hands-on operation scenario, the method further includes: generating the second application vertical synchronization signal based on the second hardware vertical synchronization signal and the first signal offset in the hands-on operation scenario; generating the second synthetic vertical synchronization signal based on the second hardware vertical synchronization signal and the second signal offset in the hands-on operation scenario.
[0014] In one possible implementation, the method further includes: obtaining a historical drawing duration for executing the drawing and rendering operation, and a historical synthesis duration for executing the synthesis operation; determining the third configuration duration and the fourth configuration duration based on the historical drawing duration and the historical synthesis duration; the third configuration duration is greater than or equal to a maximum drawing duration among the historical drawing durations, and the fourth configuration duration is greater than or equal to the maximum synthesis duration among the historical synthesis durations.
[0015] In this way, the third configuration duration and the fourth configuration duration determined based on historical statistical data can better ensure that the drawing rendering, synthesis and display operations are completed on time within the third configuration duration and the fourth configuration duration.
[0016] In one achievable embodiment, the method further includes: determining a chirality level corresponding to the hands-free operation scenario; and determining the third configuration duration and the fourth configuration duration based on the chirality level, wherein different chirality levels correspond to different configuration durations.
[0017] In this way, the present application further subdivides the hand-free sliding operation, so that different hand-free sliding operation scenarios correspond to different configuration durations, which can better adapt to the hand tracking requirements in different sliding operation scenarios and further improve the user experience.
[0018] In one implementable manner, the hands-on operation scenario includes a finger-on-hand operation scenario and a stylus-on-hand operation scenario, and the stylus-on-hand operation scenario corresponds to a higher chirality level than the finger-on-hand operation scenario; wherein the third configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the third configuration duration corresponding to the finger-on-hand operation scenario, and / or the fourth configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the fourth configuration duration corresponding to the finger-on-hand operation scenario.
[0019] In one implementation, if the touch scenario of the second touch operation is a hands-on operation scenario, the method further includes: when there are multiple cached frames in a cache queue used to cache rendered image frames, and the first cached frame at the top of the cache queue meets the frame drop condition, determining a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time is a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time is a preset display sending time corresponding to a second synthesized vertical synchronization signal; when the first preset display sending time is earlier than the second preset display sending time, determining a third preset display sending time corresponding to the second cached frame; the third preset display sending time is a preset time for performing a display sending operation on the second cached frame, and the second cached frame is a cached frame located after the first cached frame in the cache queue; when the third preset display sending time is the same as the second preset display sending time, or when the third preset display sending time is earlier than the second preset display sending time, discarding the first cached frame and performing a synthesis operation on the second cached frame.
[0020] In this way, the first cached frame can be discarded and the second cached frame can be used for the synthesis operation, so as to display the image on the display screen as quickly as possible without the user feeling any lag.
[0021] In one implementation, the method further includes: when the third preset display time is later than the second preset display time, and it is determined that the interval between the currently received second synthetic vertical synchronization signal and the previous second synthetic vertical synchronization signal is less than one Vsync cycle, or when the interval between the second application vertical synchronization signal used to trigger the drawing and rendering operation on the second cache frame and the previous second application vertical synchronization signal is less than one Vsync cycle, discarding the first cache frame and performing the synthesis operation on the second cache frame.
[0022] In this way, the accumulation of cache frames due to misjudgment of the cache status can be avoided.
[0023] In one achievable embodiment, the method further includes: performing a synthesis operation on the first cache frame when the first preset display time is the same as the second preset display time, or when the third preset display time is later than the second preset display time.
[0024] In one implementation, the frame loss conditions include: the timestamp attribute corresponding to the first preset display time of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval between the last time the image frame in the cache queue was discarded is greater than a preset time interval threshold.
[0025] In a second aspect, the present application provides another display method, applied to an electronic device, the method comprising: receiving a second touch operation input by a user; if the touch scenario of the second touch operation is a hands-free operation scenario, then, when there are multiple cached frames in a cache queue for caching rendered image frames, and the first cached frame at the top of the cache queue meets a frame drop condition, determining a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time is a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time is a preset display sending time corresponding to a second synthesized vertical synchronization signal; when the first preset display sending time is earlier than the second preset display sending time, determining a third preset display sending time corresponding to the second cached frame; the third preset display sending time is a preset time for performing a display sending operation on the second cached frame, and the second cached frame is a cached frame located after the first cached frame in the cache queue; when the third preset display sending time is the same as the second preset display sending time, or when the third preset display sending time is earlier than the second preset display sending time, discarding the first cached frame and performing a synthesis operation on the second cached frame.
[0026] In this way, the first cached frame can be discarded and the second cached frame can be used for the synthesis operation, so as to display the image on the display screen as quickly as possible without the user feeling any lag.
[0027] In one implementation, the method further includes: when the third preset display time is later than the second preset display time, and it is determined that the interval between the currently received second synthetic vertical synchronization signal and the previous second synthetic vertical synchronization signal is less than one Vsync cycle, or when the interval between the second application vertical synchronization signal used to trigger the drawing and rendering operation on the second cache frame and the previous second application vertical synchronization signal is less than one Vsync cycle, discarding the first cache frame and performing the synthesis operation on the second cache frame.
[0028] In this way, the accumulation of cache frames due to misjudgment of the cache status can be avoided.
[0029] In one achievable embodiment, the method further includes: performing a synthesis operation on the first cache frame when the first preset display time is the same as the second preset display time, or when the third preset display time is later than the second preset display time.
[0030] In one implementation, the frame loss conditions include: the timestamp attribute corresponding to the first preset display time of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval between the last time the image frame in the cache queue was discarded is greater than a preset time interval threshold.
[0031] In a third aspect, the present application provides a display device, which may include: a first receiving module for receiving a first touch operation input by a user; a first drawing and rendering module for, when the touch scenario of the first touch operation is a hand-off operation scenario, responding to a received first application vertical synchronization signal, performing a drawing and rendering operation on a first image frame within a first configuration time length in the hand-off operation scenario; a first synthesis module for, in response to a received first synthesis vertical synchronization signal, performing a synthesis operation on the first image frame after drawing and rendering within a second configuration time length in the hand-off operation scenario; wherein the first synthesis vertical synchronization signal and the first application vertical synchronization signal are separated by the first configuration time length; a first display module for performing a display operation on the synthesized first image frame in response to a received first hardware vertical synchronization signal; wherein the first hardware vertical synchronization signal and the first synthesis vertical synchronization signal are separated by the second configuration time length; a second receiving module for receiving a second touch operation received from the user; a second drawing and rendering module, for, when the touch scenario of the second touch operation is a hands-on operation scenario, performing a drawing and rendering operation on the second image frame within a third configuration time length in the hands-on operation scenario in response to the received second application vertical synchronization signal; a second synthesis module, for, in response to the received second synthesis vertical synchronization signal, performing a synthesis operation on the second image frame after drawing and rendering within a fourth configuration time length in the hands-on operation scenario; wherein, the second synthesis vertical synchronization signal and the second application vertical synchronization signal are separated by the third configuration time length; a second display module, for, in response to the received second hardware vertical synchronization signal, performing a display operation on the synthesized second image frame; the second hardware vertical synchronization signal and the second synthesis vertical synchronization signal are separated by the fourth configuration time length; wherein, the third configuration time length is less than the first configuration time length, and / or, the fourth configuration time length is less than the second configuration time length.
[0032] Among them, the display device provided in the third aspect can be used to execute any display method in the first aspect.
[0033] In a fourth aspect, the present application provides another display device, which includes a sixth determination module for determining, when there are multiple cached frames in a cache queue for caching rendered image frames and the first cached frame at the top of the cache queue meets the frame loss condition, a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time is a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time is a preset display sending time corresponding to a second synthesized vertical synchronization signal; a seventh determination module for determining, when the first preset display sending time is earlier than the second preset display sending time, a third preset display sending time corresponding to the second cached frame; the third preset display sending time is a preset time for performing a display sending operation on the second cached frame, and the second cached frame is a cached frame located after the first cached frame in the cache queue; a second synthesis module for discarding the first cached frame and performing a synthesis operation on the second cached frame when the third preset display sending time is the same as the second preset display sending time, or when the third preset display sending time is earlier than the second preset display sending time.
[0034] Among them, the display device provided in the fourth aspect can be used to execute any display method in the second aspect.
[0035] In a fifth aspect, the present application provides an electronic device comprising a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes a method as described in any one of the first aspect or the second aspect.
[0036] In a sixth aspect, the present application provides a computer storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method as described in any one of the first aspect or the second aspect is executed.
[0037] In a seventh aspect, the present application provides a computer program product comprising a computer-readable code, which, when executed in an electronic device, enables the electronic device to implement the method as described in any one of the first aspect or the second aspect.
[0038] It should be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] FIG1 is a framework diagram of an image display process provided by an embodiment of the present application;
[0040] FIG2 is a schematic diagram of a touch delay provided by an embodiment of the present application;
[0041] FIG3 is a schematic diagram of an image display process in a click operation scenario provided by an embodiment of the present application;
[0042] FIG4 is a schematic diagram of an image display process in another click operation scenario provided by an embodiment of the present application;
[0043] FIG5 is a schematic diagram of another image display process provided in an embodiment of the present application;
[0044] FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0045] FIG7 is a block diagram of the software structure of the electronic device provided in an embodiment of the present application;
[0046] FIG8 is a flow chart of a display method provided in Example 1 of the present application;
[0047] FIG9 is a module interaction diagram of a display method provided in Example 1 of the present application;
[0048] FIG10 is a scene diagram of a user sliding operation on a display screen provided by an embodiment of the present application;
[0049] FIG11 is a flowchart of a display method in a hands-on sliding operation scenario provided by the first embodiment of the present application;
[0050] FIG12 is a flowchart of a display method in another hands-on sliding operation scenario provided in the first embodiment of the present application;
[0051] FIG13 is a schematic diagram of a display process provided in an embodiment of the present application;
[0052] FIG14 is a statistical diagram of the actual working time of a drawing, rendering and compositing operation provided by an embodiment of the present application;
[0053] FIG15 is a flow chart of a display method provided in Example 2 of the present application;
[0054] FIG16 is a schematic diagram of an image display process provided in Example 2 of the present application;
[0055] FIG17 is a schematic diagram of another image display process provided in Example 2 of the present application;
[0056] FIG18 is a schematic structural diagram of a display device provided in an embodiment of the present application;
[0057] FIG19 is a schematic structural diagram of another display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0059] The technical solution of this application is described below in conjunction with the accompanying drawings.
[0060] In the description of this application, unless otherwise specified, "and / or" is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, "at least one" means one or more, "at least two" means two or more, and "plurality" also means two or more. Words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean different.
[0061] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0062] In order to facilitate understanding of the technical solution of the present application, the application scenarios of the technical solution provided by the present application are first exemplified below.
[0063] As shown in Figure 1, when a user touches the touch screen TP, the pressure sensor inside the touch screen TP detects the pressure value and uploads the pressure value to the algorithm library. The algorithm library converts the pressure value into a coordinate value (also known as point data), and then sends the coordinate value to the Input module. The Input module can resample the coordinate value to obtain the resampled coordinate value. When the application receives the Vsync-APP signal (also known as the application vertical synchronization signal), the application obtains the resampled coordinate value for image drawing and rendering; when it receives the Vsync-SF signal (also known as the synthetic vertical synchronization signal), the synthesis module synthesizes the rendered image; when it receives the Vsync-HW signal (also known as the hardware vertical synchronization signal), the synthesis module sends the synthesized image to the display LCD for display.
[0064] The time it takes for an electronic device to display the page corresponding to a touch operation on the display screen after receiving a touch operation input by the user is called the touch response time, also known as touch latency.
[0065] As shown in Figures 1 and 2, the touch delay mainly includes the following four parts of delay: the first part of the delay T1 represents the time consumed from the user touching the touch screen TP (point A in Figure 2) to the generation of the point reporting data (point B in Figure 2); the second part of the delay T2 represents the time consumed by transmitting the point reporting data to the input subsystem and waiting for the point reporting to be consumed (point C in Figure 2); the third part of the delay T3 represents the time consumed by retrieving the point reporting data, rendering, synthesis and displaying (point D in Figure 2); the fourth part of the delay T4 represents the time consumed by displaying the synthesized image (point E in Figure 2) on the display screen.
[0066] Figure 2 illustrates the entire process from a user touching a display screen to the screen displaying the corresponding image. It should be understood that optimizing any of the four delays mentioned above can improve hand tracking performance. The method provided in this embodiment of the application is intended to optimize the third delay, T3.
[0067] The processing flow corresponding to the third part of the delay T3 is further introduced below.
[0068] To facilitate understanding, firstly, some relevant concepts in the processing flow corresponding to the third part of the delay T3 are introduced.
[0069] 1. Frame: This refers to the smallest unit of a single image in an interface display. A frame can be thought of as a still image. Displaying multiple frames in rapid succession can create the illusion of motion. Frame rate refers to the number of frames that refresh an image in one second. It can also be understood as the number of times a graphics processor in an electronic device refreshes the image per second. A higher frame rate results in smoother and more realistic animation. The more frames per second, the smoother the displayed motion.
[0070] It should be noted that before the interface displays a frame, it usually needs to go through processes such as drawing, rendering, and synthesis.
[0071] 2. Frame drawing: refers to the image 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. A subview corresponds to a small widget in the view. For example, a subview corresponds to a symbol in the image view.
[0072] 3. Frame rendering: This is to shade the drawn view or add 3D effects, etc. For example, 3D effects can be lighting effects, shadow effects, and texture effects.
[0073] 4. Frame synthesis: It is the process of synthesizing multiple or more rendered views into a display interface.
[0074] 5. Sending for display: This is the operation of sending the synthesized view to the display module (such as the display driver chip DDIC).
[0075] The interface display process corresponding to the third part of the delay T3 is described below.
[0076] In order to improve display smoothness and reduce display freezes, electronic devices generally display based on vertical synchronization (Vsync) signals to synchronize image rendering, synthesis, and display processes.
[0077] The Vsync signal is a periodic signal, and the Vsync signal period can be set according to the screen refresh rate. For example, when the screen refresh rate is 60Hz, the Vsync signal period can be 16.6ms, that is, the electronic device generates a control signal every 16.6ms to trigger the Vsync signal period. For another example, when the screen refresh rate is 90Hz, the Vsync signal period can be 11.1ms, that is, the electronic device generates a control signal every 11.1ms to trigger the Vsync signal period.
[0078] It should be noted that Vsync signals are divided into hardware Vsync signals (also known as Vsync-HW signals) and software Vsync signals. The Vsync-HW signal is generated by the LCD screen, and the synthesis module converts the Vsync-HW signal into software signals: Vsync-APP and Vsync-SF signals. The Vsync-APP signal is used to trigger drawing and rendering operations. The Vsync-SF signal is used to trigger synthesis operations. The Vsync-HW signal is used to trigger display operations.
[0079] It should also be noted that in current electronic devices, the system pre-configures sufficient drawing time for applications and sufficient composition time for the composition module to perform drawing, rendering, and composition operations. Specifically, when the composition module converts the Vsync-HW signal into a software signal, it can adjust the offset of the Vsync-APP signal and the Vsync-SF signal so that the Vsync-APP signal, Vsync-SF signal, and Vsync-HW signal are sent at different times during each Vsync cycle, so that the drawing, rendering, and composition operations meet their respective configured durations.
[0080] For example, as shown in Figure 3, when the synthesis module converts the Vsync-HW signal into a software signal, the offset of the Vsync-APP signal is set to 1ms, and the offset of the Vsync-SF signal is set to -2ms. In this way, the transmission rhythm of the Vsync-APP signal, Vsync-SF signal, and Vsync-HW signal is shown in Figure 3.
[0081] Currently, based on the offset of the Vsync-APP signal and the offset of the Vsync-SF signal, the method for calculating the drawing duration configured for the drawing rendering operation and the composition duration configured for the composition operation is as follows:
[0082] The rendering time Tapp is calculated according to the following first relationship, and the synthesis time Tsf is calculated according to the following second relationship.
[0083] The first relationship is: Tapp = Tte + (sfOffset - appOffset);
[0084] The second relational expression is: Tsf=Tte−sfOffset.
[0085] Among them, Tapp represents the drawing time configured for the drawing rendering operation, Tsf represents the composition time configured for the composition operation, Tte represents the Vsync period, appOffset represents the offset of the Vsync-APP signal, and sfOffset represents the offset of the Vsync-SF signal.
[0086] It should be noted that, in the existing calculation method, if Tapp calculated according to the following first relationship is smaller than Tte, Tte is added to the calculated Tapp.
[0087] For example, take appOffset = 1ms, sfOffset = -2ms, and Tte = 11.1ms. According to the first equation, Tapp = 11.1 + (-2 - 1) = 8.1ms, and Tsf = 11.1 – (-2) = 13.1ms. Since Tapp = 8.1ms < 11.1ms, Tapp = 8.1 + 11.1 = 19.2ms.
[0088] Thus, as shown in FIG3 , in response to the Vsync-APP signal 11, the application performs a drawing and rendering operation on frame 1. The drawn and rendered frame 1 cannot be consumed until a Vsync-SF signal (i.e., Vsync-SF signal 22 in FIG3 ) is received at an interval of 19.2 ms from the Vsync-APP signal 11. That is, in response to the Vsync-SF signal 22, the synthesis module extracts the drawn and rendered frame 1 for consumption and performs a synthesis operation. Similarly, the synthesized frame 1 cannot be consumed until a Vsync-HW signal (i.e., Vsync-HW signal 33 in FIG3 ) is received at an interval of 13.1 ms from the Vsync-SF signal 22. That is, in response to the Vsync-HW signal 33, the display module performs a display operation on the synthesized frame 1, refreshing frame 1 to the screen. Thus, it takes approximately three Vsync cycles from the drawing and rendering of frame 1 to the display module for display.
[0089] At present, for any touch operation scenario of the user, the electronic device uses the corresponding drawing duration and synthesis duration pre-set by the above method to perform drawing rendering, synthesis and display operations. This leads to the following problem: the above-mentioned pre-set configuration duration may be able to meet the requirements of drawing in some application scenarios (such as click operation scenarios). However, for scenarios with requirements for hand tracking, such as dragging pages and other scenarios where the user does not let go of the hand to slide, the drawing rendering, synthesis and display operations are still performed based on such configuration duration, which may cause poor hand tracking. For example, as shown in Figure 3 above, a frame of image takes about three Vsync cycles from drawing and rendering to sending it to the display module for display. The image display efficiency is poor, the touch response is slow, and the hand tracking is poor, which seriously affects the user's application experience in the scenario where the user does not let go of the hand to slide.
[0090] As shown in Figure 5, the rendered image frames can be cached in the cache queue of the synthesis module, waiting to be consumed by the synthesis module. After receiving the Vsync-SF signal, the synthesis module sequentially takes out the cached frames from the cache queue to perform synthesis operations.
[0091] In some abnormal situations, such as when the rendering of frame 1 is not completed in the first Vsync cycle, two cached frames may accumulate in the cache queue in the second Vsync cycle. When there are multiple cached frames in the cache queue, the synthesis module takes out the cached frames from the cache queue for synthesis operations in the order in which the cached frames are queued. For example, in the first Vsync cycle, the application starts to draw and render frame 4, and the cache queue includes frames 2 and 3 after drawing and rendering. In the second Vsync cycle, the application starts to draw and render frame 5, and the synthesis module takes out frame 2, which is ranked first, from the cache queue for synthesis operations, and the cache queue includes frames 3 and 4 after drawing and rendering. And so on, frame 4 is not displayed on the screen until the fifth Vsync cycle. It can be seen that compared to the case where there are no cached frames in the cache queue, when there are two cached frames in the cache queue, the image will be delayed by two Vsync cycles when it is displayed.
[0092] Therefore, the number of cached frames accumulated in the cache queue will also affect the third part of the delay T3.
[0093] In summary, the third part of the delay T3 can be expressed by the following third relationship: T3=Tpair+M*Tte.
[0094] Among them, T represents the total configuration time from the start of rendering to the display operation; M represents the number of cached frames accumulated in the cache queue, and M is a positive integer greater than or equal to 0.
[0095] To optimize the third portion of latency T3, embodiments of the present application provide a display method that can reduce the third portion of latency T3 by optimizing the configuration duration and / or reducing the number of cached frames accumulated in the cache queue, thereby improving hand tracking performance.
[0096] A display method provided in an embodiment of the present application can be applied to any electronic device with a touch screen, such as a mobile phone, a watch, a tablet computer, etc.
[0097] For example, the specific structure of the electronic device can refer to the structural diagram of the electronic device shown in FIG6 .
[0098] As shown in Figure 6, 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0099] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0100] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0101] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0102] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0103] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0104] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0105] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0106] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0107] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0108] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0109] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0110] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0111] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0112] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0113] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0114] 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.
[0115] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0116] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0117] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0118] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0119] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0120] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is 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 modify display information.
[0121] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0122] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0123] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0124] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0125] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it 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.
[0126] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0127] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0128] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0129] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0130] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0131] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0132] Speaker 170A, also known as a "horn," is used to convert audio electrical signals into sound signals. Electronic device 100 can use speaker 170A to listen to music or make hands-free calls. Multiple speakers 170A can be provided in electronic device 100. For example, one speaker 170A can be provided on the top of electronic device 100, another speaker 170A can be provided on the bottom, and so on.
[0133] Receiver 170B, also known as an "earpiece," is used to convert audio signals into sound signals. When electronic device 100 receives a call or voice message, the user can hold receiver 170B close to their ear to listen to the voice. In some embodiments, speaker 170A and receiver 170B may be integrated into one component, although this is not a limitation of the present invention.
[0134] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0135] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0136] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0137] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0138] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0139] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0140] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0141] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0142] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0143] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0144] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0145] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0146] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0147] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0148] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0149] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0150] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0151] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0152] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0153] FIG7 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
[0154] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0155] The application layer can include a series of application packages.
[0156] As shown in FIG7 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0157] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0158] As shown in FIG7 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0159] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0160] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0161] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0162] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0163] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0164] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.
[0165] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0166] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0167] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0168] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0169] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0170] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0171] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0172] A 2D graphics engine is a drawing engine for 2D drawings.
[0173] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0174] The display method provided by this application is described below.
[0175] Example 1
[0176] The display method provided in the first embodiment of the present application reduces the third part delay T3 by optimizing the configuration time, thereby improving the hand tracking performance.
[0177] FIG4 is a schematic diagram of the display process corresponding to FIG3 . As shown in FIG4 , the applicant found that in the actual execution process, in most cases, there is a large amount of idle time in the drawing time configured for the drawing rendering operation. For example, although the drawing time configured for the drawing rendering operation is 19.2ms, the actual time consumed for drawing and rendering a frame of image is only 8.6ms, and there is an idle time of 10.6ms. Similarly, although the synthesis time configured for the synthesis operation is 13.1ms, the actual time consumed for synthesizing a frame of image is only 8.1ms, and there is an idle time of 5.2ms.
[0178] In view of this, the display method provided in the first embodiment of the present application can shorten the working time configured for drawing, rendering and synthesis operations after confirming that the current scene is a hands-free operation scene, in order to improve the tracking performance of the hands-free sliding scene, and speed up the touch response to refresh the image to the screen as soon as possible.
[0179] FIG8 is a flow chart of a display method provided in the first embodiment of the present application. As shown in FIG8 , the display method provided in the first embodiment of the present application may include the following steps:
[0180] Step S101: receiving a first touch operation input by a user.
[0181] Step S102: If the touch scenario of the first touch operation is a hands-off operation scenario, in response to the received first Vsync-APP signal (i.e., the first application vertical synchronization signal), a drawing rendering operation is performed on the first image frame within a first configured duration in the hands-off operation scenario.
[0182] Step S103 , in response to the received first Vsync-SF signal (ie, the first synthesized vertical synchronization signal), performing a synthesis operation on the rendered first image frame within a second configured duration in the hands-off operation scenario.
[0183] Step S104 : In response to the received first Vsync-HW signal (ie, the first hardware vertical synchronization signal), a display operation is performed on the synthesized first image frame.
[0184] The embodiments of the present application include two touch operation scenarios: one is a hands-off operation scenario, such as a click operation scenario. The other is a hands-on operation scenario, which is also called a follow-up operation scenario. The hands-on operation scenario can include a hands-off sliding operation scenario and a hands-off pressing operation scenario.
[0185] The first configured duration is the drawing duration configured for rendering operations in hands-free operation scenarios; the second configured duration is the composition duration configured for composition operations in hands-free operation scenarios. The first configured duration is the interval between the first Vsync-SF signal and the first Vsync-APP signal, and the interval between the first Vsync-HW signal and the first Vsync-SF signal is the second configured duration. As shown in Figures 3 and 4, the first configured duration is 19.2ms, and the second configured duration is 13.1ms.
[0186] As shown in Figure 3, taking the display process of frame 1 as an example, in response to the received first Vsync-APP signal 11, a rendering operation is performed on frame 1 to obtain the rendered frame 1. Subsequently, upon receiving a first Vsync-SF signal 22 separated from the first Vsync-APP signal 11 by a first matching time length (i.e., 19.2ms), a synthesis operation is performed on the rendered frame 1 to obtain the synthesized frame 1. Next, upon receiving a first Vsync-HW signal 33 separated from the first Vsync-SF signal 22 by a second matching time length (i.e., 13.1ms), a display operation is performed on the synthesized frame 1 to refresh the image corresponding to frame 1 onto the screen.
[0187] It should be noted that the first Vsync-HW signal 33 is located after the first Vsync-SF signal 22 , and the first Vsync-SF signal 22 is located after the first Vsync-APP signal 11 .
[0188] Step S105: receiving a second touch operation input by the user.
[0189] Step S106, if the touch scenario of the second touch operation is a hands-on operation scenario, then in response to the received second Vsync-APP signal (i.e., the second application vertical synchronization signal), a drawing rendering operation is performed on the second image frame within a third configured time length in the hands-on operation scenario.
[0190] Step S107 , in response to the received second Vsync-SF signal (ie, the second synthesized vertical synchronization signal), performing a synthesis operation on the rendered second image frame within a fourth configured duration in the hands-on operation scenario.
[0191] Step S108 , in response to the received second Vsync-HW signal (ie, the second hardware vertical synchronization signal), performing a display operation on the synthesized second image frame.
[0192] The third configuration duration refers to the drawing duration configured for the drawing and rendering operation in the hands-free operation scenario; the fourth configuration duration refers to the synthesis duration configured for the synthesis operation in the hands-free operation scenario. Among them, the second Vsync-SF signal and the second Vsync-APP signal are separated by the third configuration duration, and the second Vsync-HW signal and the second Vsync-SF signal are separated by the fourth configuration duration. Among them, the third configuration duration is less than the first configuration duration, and / or the fourth configuration duration is less than the second configuration duration. For example, as shown in Figures 11 and 12, the first configuration duration is 11.1ms and the second configuration duration is 13.1ms.
[0193] As shown in Figure 11, taking the display process of frame 0 as an example, in response to the received second Vsync-APP signal 11, a rendering operation is performed on frame 0 to obtain the rendered frame 0. Thereafter, upon receiving a second Vsync-SF signal 22 separated from the second Vsync-APP signal 11 by a third matching time length (i.e., 11.1ms), a synthesis operation is performed on the rendered frame 0 to obtain the synthesized frame 0. Next, upon receiving a second Vsync-HW signal 33 separated from the second Vsync-SF signal 22 by a fourth matching time length (i.e., 13.1ms), a display operation is performed on the synthesized frame 0 to flush the image corresponding to frame 0 to the screen.
[0194] It should be noted that the second Vsync-HW signal 33 is located after the second Vsync-SF signal 22 , and the second Vsync-SF signal 22 is located after the second Vsync-APP signal 11 .
[0195] As shown in Figure 12, in a hands-free operation scenario (such as a hands-free sliding operation scenario), when performing a drawing and rendering operation based on the drawing duration corresponding to the hands-free operation scenario, the idle time is 2.5ms, and when performing a synthesis operation based on the synthesis duration corresponding to the hands-free operation scenario, the idle time is 5.2ms. In this way, compared to the display process shown in Figure 4, the present application shortens the idle time of drawing and rendering in the hands-free operation scenario, thereby shortening the duration of the entire display process and improving the chirality. Specifically, in the hands-free operation scenario, a frame of image in the present application needs to go through about three Vsync cycles before it can be output to the display screen for display; in the hands-free sliding operation scenario, a frame of image can be output to the display screen for display after about two Vsync cycles. In this way, compared to the hands-free operation scenario in Figure 4, the present application can refresh the image to the display screen one Vsync cycle in advance in the hands-free sliding operation scenario, thereby improving the chirality in the hands-free sliding operation scenario.
[0196] The display method provided in the embodiment of the present application configures different working times for different touch operation scenarios, which can better adapt to different needs in different application scenarios. For example, the hands-off operation scenario can be the operation of the user clicking on the touch screen, and the hands-on operation scenario can be the operation of the user sliding on the touch screen without leaving the hand, such as dragging and displaying icons on the desktop. Generally, compared with the click operation, the user has higher requirements for the hand-following performance of the hands-on sliding operation. Therefore, in the embodiment of the present application, the total configuration time of the corresponding drawing and synthesis in the hands-on sliding operation scenario can be made shorter than the total configuration time of the drawing and synthesis in the click operation scenario. In this way, in the click operation scenario, the drawing rendering, synthesis and display operations are performed based on the longer configuration time, which neither affects the user's application experience nor reduces the load on the electronic device. In the hands-on sliding operation scenario, the drawing rendering, synthesis and display operations are performed based on the shorter configuration time, which can reduce the touch delay, improve the hand-following performance and improve the user experience.
[0197] The following describes the interaction between the modules involved in the method provided in Example 1 of the present application in conjunction with Figure 9. The modules involved include: an input module, an application, a synthesis module, and a display module.
[0198] Step S201: When the electronic device receives a touch operation input by a user, the input module may determine the type of the input event.
[0199] There are three types of input events: Down event, Move event, and Up event. Down event indicates that the screen is being pressed, Move event indicates that the screen is being swiped, and Up event indicates that the screen is being left.
[0200] Figure 10 is a scene diagram of a user sliding operation on a display screen provided in an embodiment of the present application. Figure 10 exemplarily shows the path of the user sliding on the display screen through position 1, position 2, position 3, position 4 and position 5, where position 1, position 2, position 3, position 4 and position 5 represent the corresponding coordinate positions on the display screen.
[0201] The user starts pressing the display screen at position 1, then slides down in a straight line until lifting the hand off the display screen at position 5. It should be noted that the user passes through multiple positions during the downward sliding process, and FIG10 only exemplarily shows positions 2, 3, and 4.
[0202] During a user's swipe operation, the Input module determines the input event type corresponding to each touch point. For example, in Figure 10, position 1 corresponds to a Down input event type, while position 5 corresponds to an Up input event type. The input event types between positions 1 and 5 are all Move, and positions 2, 3, and 4 all have Move input event types. It should be understood that prior to position 5, the user's swipe operations were all continuous, and at position 5, the user's finger left the screen.
[0203] It should be noted that the Input module can not only be used to determine the type of input event, but also to obtain coordinate information corresponding to the touch operation and send the coordinate information to the application for drawing and rendering operations.
[0204] Step S202: When the input event type is Down or Up, the Input module sends the corresponding input event type information to the synthesis module.
[0205] For example, if the Input module determines that the current input event type is a Down event, the Input module may send first indication information to the synthesis module, where the first indication information is used to indicate that the currently received input event is a Down event. For another example, if the Input module determines that the current input event type is an Up event, the Input module may send second indication information to the synthesis module, where the second indication information is used to indicate that the currently received input event is an Up event.
[0206] When the Input module determines that the current input event type is a Move event, it may not send any indication information to the synthesis module.
[0207] Step S203 : In response to the Vsync-SF signal, the synthesis module determines the current touch scene according to the type of the currently received input event.
[0208] It should be noted that each time the synthesis module determines the current touch scene, it may receive only one Down event, one Up event, or two events: one Down event and one Up event. In another case, the synthesis module may not receive any events.
[0209] Correspondingly, in response to the Vsync-SF signal, if the synthesis module currently only receives a Down event, the synthesis module determines that the current touch scene is a hands-on operation scene, for example, a hands-on sliding operation scene or a hands-on pressing operation scene; if the synthesis module currently receives two events (a Down event and an Up event), the synthesis module determines that the current touch scene is a hands-off operation scene, for example, a click operation scene; if the synthesis module currently only receives an Up event, the synthesis module determines that the current touch scene is a hands-off operation scene.
[0210] Step S204: The synthesis module calls configuration information corresponding to the current touch scene.
[0211] The configuration information may include a drawing duration configured for drawing rendering, a composition duration configured for composition, a Vsync-APP signal offset, and a Vsync-SF signal offset.
[0212] For example, the hands-off operation scenario corresponds to the first configuration information, which may include a first configuration duration and a second configuration duration. The first configuration information may also include a first offset and a second offset. The first offset is the Vsync-APP signal offset corresponding to the hands-off operation scenario, and the second offset is the Vsync-SF signal offset corresponding to the hands-off operation scenario.
[0213] Exemplarily, the hands-free operation scenario corresponds to the second configuration information, and the second configuration information may include a third configuration duration and a fourth configuration duration. The second configuration information may also include a third offset and a fourth offset. The third offset is the Vsync-APP signal offset corresponding to the hands-free operation scenario, and the fourth offset is the Vsync-SF signal offset corresponding to the hands-free operation scenario.
[0214] The third configuration duration can be less than the first configuration duration and the fourth configuration duration is the same as the second configuration duration, or the fourth configuration duration can be less than the second configuration duration and the third configuration duration is the same as the first configuration duration, or the third configuration duration can be less than the first configuration duration and the fourth configuration duration can be less than the second configuration duration. As long as the total configuration duration of drawing, rendering, and synthesis in the hands-on sliding operation scenario is less than the total configuration duration of drawing, rendering, and synthesis in the hands-off sliding operation scenario, it will be sufficient.
[0215] Correspondingly, the third offset may be different from the first offset, or the fourth offset may be different from the second offset, or the third offset may be different from the first offset and the fourth offset may be different from the second offset.
[0216] Step S205 : The synthesis module adjusts the Vsync-APP signal and the Vsync-SF signal based on the Vsync-APP signal offset and the Vsync-SF signal offset in the configuration information.
[0217] Step S206: The synthesis module sends the offset-adjusted Vsync-APP signal to the application.
[0218] Step S207 : The application performs a drawing and rendering operation in response to the Vsync-APP signal after the offset is adjusted.
[0219] Step S208: The application sends the rendered image to the buffer queue of the synthesis module.
[0220] Step S209 : The synthesis module performs a synthesis operation in response to the Vsync-SF signal having a drawing duration interval with the adjusted Vsync-APP signal.
[0221] Step S2010: The synthesis module sends the synthesized image to the buffer queue of the display module.
[0222] Step S2011 : The display module performs a display operation in response to the Vsync-HW signal having a synthesis time interval with the adjusted Vsync-SF signal.
[0223] For example, in step S203, it is determined that the current touch scenario is a hands-on sliding scenario, and the configuration information corresponding to the hands-on sliding scenario includes a Vsync-APP signal offset of -2ms and a Vsync-SF signal offset of -2ms. Thus, as shown in FIG11 , the synthesis module adjusts the Vsync-APP and Vsync-SF signals in step S205 based on the Vsync-APP and Vsync-SF signal offsets corresponding to the hands-on sliding scenario. The adjusted transmission rhythms of the Vsync-APP, Vsync-SF, and Vsync-HW signals are shown in FIG11 .
[0224] Next, steps S206 to S2011 perform drawing rendering, compositing, and displaying operations based on the adjusted Vsync-APP and Vsync-SF signal transmission rhythms, as well as the drawing duration and composition duration corresponding to the hands-on sliding scenario, until the current input event type received by the composition module is Up. When the current input event type received by the composition module is Up, the composition module again calls the configuration information corresponding to the hands-off operation scenario, and subsequently performs drawing rendering, compositing, and displaying operations based on the Vsync-APP and Vsync-SF signal transmission rhythms corresponding to the hands-off sliding operation scenario, and the configured duration corresponding to the hands-off sliding scenario.
[0225] Figure 12 is a schematic diagram of the display process corresponding to Figure 11. As shown in Figures 11 and 12, in the scenario of sliding operation without leaving the hands, the drawing time in the configuration information is 11.1ms, the synthesis time in the configuration information is 13.1ms, the Vsync-APP signal offset is -2ms, and the Vsync-SF signal offset is -2ms. In this way, the time for drawing, rendering, synthesis and displaying a frame of image can be reduced to 22.1ms. In other words, in the scenario of sliding operation without leaving the hands, the present application can output a frame of image to the display screen for display after two Vsync cycles. In this way, compared with Figure 4, the image can be refreshed to the display screen one Vsync cycle in advance, thereby improving the hand-following performance in the scenario of sliding operation without leaving the hands.
[0226] Exemplarily, as shown in FIG13 , during the display of frame 1, the synthesis module adopts the configuration information corresponding to the hands-off operation scenario, wherein the drawing duration configured for the rendering operation is 19.2ms, and the synthesis duration configured for the synthesis operation is 13.1ms. In this way, in response to the Vsync-APP signal 11, frame 1 is drawn and rendered; in response to the Vsync-SF signal 22, a synthesis operation is performed on frame 1; and in response to the Vsync-HW signal 33, a display operation is performed on the synthesized frame 1. Among them, the interval between the Vsync-APP signal 11 and the Vsync-SF signal 22 meets the drawing duration of 19.2ms corresponding to the hands-off operation scenario, and the interval between the Vsync-SF signal 22 and the Vsync-HW signal 33 meets the synthesis duration of 13.1ms corresponding to the hands-off operation scenario.
[0227] The offset of the Vsync-APP signal and / or the offset of the Vsync-SF signal will cause the corresponding configuration duration to change, thereby modifying the drawing duration and the synthesis duration.
[0228] Assuming that a Down event is received from the Input module at point M between Vsync-APP signals 12 and 13, upon receiving Vsync-SF signal 23, the synthesis module adjusts the transmission rhythm of the Vsync-APP and Vsync-SF signals in subsequent Vsync cycles based on the configuration information corresponding to the hands-free sliding operation scenario. That is, the synthesis module adjusts the starting time of the subsequent Vsync-APP and Vsync-SF signals based on the configuration information corresponding to the hands-free sliding operation scenario, and periodically transmits the Vsync-APP and Vsync-SF signals at the re-determined starting time. As shown in Figure 13, the offset of Vsync-APP signal 14 after Vsync-SF signal 23 is -2ms, and the offset of Vsync-SF signal 24 is -2ms. Because the offset of the Vsync-APP signals changes before and after the adjustment, the interval between the first Vsync-APP signal (Vsync-APP signal 14) after the offset adjustment and the previous Vsync-APP signal (Vsync-APP signal 13) is no longer one Vsync cycle (11.1ms). In Figure 13 , the interval between Vsync-APP signal 13 and Vsync-APP signal 14 (i.e., the first duration) is equal to the sum of the interval between Vsync-SF signal 23 and Vsync-SF signal 24 and the interval between Vsync-APP signal 13 and Vsync-SF signal 23. That is, the interval between Vsync-APP signal 13 and Vsync-APP signal 14 is equal to 19.2 ms. In other words, the first duration (19.2 ms) of the interval between Vsync-APP signal 14 and Vsync-APP signal 13 is different from the second duration (11.1 ms) of the interval between Vsync-APP signal 14 and Vsync-APP signal 15. Correspondingly, since the offset of the Vsync-SF signal remains unchanged before and after the adjustment, the third duration (11.1 ms) of the interval between Vsync-SF signal 24 and Vsync-SF signal 23 after the offset adjustment is the same as the fourth duration (11.1 ms) of the interval between Vsync-SF signal 24 and Vsync-SF signal 25.
[0229] Next, the application performs drawing and rendering operations based on the drawing duration corresponding to the hands-free sliding operation scenario, and the synthesis module performs synthesis and display operations based on the synthesis duration corresponding to the hands-free sliding operation scenario. For example, in response to the Vsync-APP signal 14, the rendering frame 4 is drawn; in response to the Vsync-SF signal 25, the synthesis operation is performed on frame 4; and in response to the Vsync-HW signal 36, the synthesized frame 4 is displayed. Among them, by offsetting the Vsync-APP signal, the interval between the Vsync-APP signal 14 and the Vsync-SF signal 25 meets the drawing duration of 11.1ms corresponding to the hands-free operation scenario, and the interval between the Vsync-SF signal 25 and the Vsync-HW signal 36 meets the synthesis duration of 13.1ms corresponding to the hands-free operation scenario.
[0230] As can be seen from Figure 13, before receiving the user's hand-held swipe operation, approximately three Vsync cycles are required before frame 1 can be output to the display module for display. After receiving the user's hand-held swipe operation, approximately two Vsync cycles are required before frame 4 can be output to the display module for display. This allows the image to be refreshed to the display screen one Vsync cycle earlier, thereby improving hand tracking in the hand-held swipe operation scenario.
[0231] It should be noted that the above embodiment only uses the example of adjusting the Vsync-APP signal offset in the hands-on sliding operation scenario as an example, and does not limit the offset adjustment method in different operation scenarios. For example, the Vsync-APP signal offset and the Vsync-SF signal offset are different in different operation scenarios. For another example, the Vsync-APP signal offset is the same, while the Vsync-SF signal offset is different in different operation scenarios.
[0232] The embodiments of the present application do not limit the method for configuring the drawing duration for the drawing and rendering operation and the method for configuring the synthesis duration for the synthesis operation in the hands-free operation scenario.
[0233] In one implementable manner, a historical drawing duration for executing the drawing and rendering operation and a historical synthesis duration for executing the synthesis operation are obtained; then, based on the historical drawing duration and the historical synthesis duration, a drawing duration configured for the drawing and rendering operation and a synthesis duration configured for the synthesis operation are determined; wherein the drawing duration configured for the drawing and rendering operation is greater than or equal to a maximum drawing duration in the historical drawing durations, and the synthesis duration configured for the synthesis operation is greater than or equal to the maximum synthesis duration in the historical synthesis durations.
[0234] First of all, it should be noted that the historical drawing duration refers to the actual duration consumed by each drawing and rendering operation, and the historical synthesis duration refers to the actual duration consumed by each synthesis operation.
[0235] The total historical drawing duration includes the upper limit of the historical drawing duration (i.e., the maximum drawing duration) and the lower limit of the historical drawing duration (i.e., the minimum drawing duration). Similarly, the total historical synthesis duration includes the upper limit of the historical synthesis duration (i.e., the maximum synthesis duration) and the lower limit of the historical synthesis duration (i.e., the minimum synthesis duration). However, the upper limit of the historical drawing duration and the upper limit of the historical synthesis duration may include outliers. Therefore, after calculating the historical drawing duration and the historical synthesis duration, an outlier elimination algorithm can be used to eliminate outliers. Then, the upper limit of the historical drawing duration and the upper limit of the historical synthesis duration can be determined from the remaining normal points.
[0236] For example, Figure 14 shows the historical drawing durations for rendering operations performed on frames 1 to 40, as well as the historical composition durations for composition operations performed on frames 1 to 40. As shown in Figure 14 , the upper limit of the historical drawing durations is 13.0ms (point C in Figure 13 ), and the lower limit of the historical drawing durations is 8.0ms (point A2 in Figure 13 ). The upper limit of the historical composition durations is 8.5ms (point B1 in Figure 13 ), and the lower limit of the historical composition durations is 8.0ms (point B2 in Figure 13 ).
[0237] However, as shown in Figure 14, the historical drawing duration generally fluctuates around 8.0ms, with point C being a clear outlier. Therefore, we can eliminate point C first and then determine the upper limit of the historical drawing duration as 8.2ms (point A1 in Figure 13) from the remaining normal points.
[0238] Based on the above statistical results, we can determine that the configured drawing time for rendering operations should be greater than 8.2ms, and the configured compositing time for compositing operations should be greater than 8.5ms. For example, the configured drawing time for the hands-free sliding operation scenario can be 11.1ms, and the configured compositing time for the hands-free sliding operation scenario can be 13.1ms, resulting in a total configured time of 24.2ms for the hands-free sliding operation scenario.
[0239] The offset of the Vsync-APP signal and the Vsync-SF signal may be set so that the drawing duration configured for the drawing and rendering operation is 11.1 ms and the composition duration configured for the composition operation is 13.1 ms.
[0240] For example, taking the Vsync period as 11.1 ms, the offset of the Vsync-APP signal is set to -2 ms, and the offset of the Vsync-SF signal is set to -2 ms.
[0241] Thus, according to the first relational expression, Tapp = 11.1 + (-2) - (-2) = 11.1 ms can be calculated. According to the second relational expression, Tsf = 11.1 - (-2) = 13.1 ms can be calculated.
[0242] It should be noted that in the embodiment of the present application, Tapp can be less than 11.1ms. That is, in the embodiment of the present application, when the calculated Tapp is less than 11.1ms, there is no need to add Tte to the calculated Tapp. This achieves the purpose of shortening the configuration time in the hands-free sliding operation field.
[0243] It should be noted that the embodiments of the present application do not limit the form of the configuration information. For example, the configuration information may include the drawing duration configured for the drawing rendering operation and the synthesis duration configured for the synthesis operation (e.g., the configuration information is Tapp=11.1ms, Tsf=13.1ms). For another example, the configuration information may also include the offset of the Vsync-APP signal and the deviation of the Vsync-SF signal (e.g., the configuration information is appOffset=-2ms, sfOffset=-2ms). For another example, the configuration information may also include the drawing duration configured for the drawing rendering operation, the synthesis duration configured for the synthesis operation, the offset of the Vsync-APP signal, and the offset of the Vsync-SF signal.
[0244] It should also be noted that, in the configuration information for different touch operation scenarios, at least one of the values of the drawing duration configured for the drawing and rendering operation and the composition duration configured for the composition operation may differ. Similarly, in the configuration information for different touch operation scenarios, at least one of the values of the offset of the Vsync-APP signal and the offset of the Vsync-SF signal may differ.
[0245] In addition, since the drawing duration configured for the drawing and rendering operation and the composition duration configured for the composition operation are determined based on historical statistical data, and the image processing status of the electronic device changes in real time, if the drawing, rendering, composition, and display operations are always performed based on the same configured duration, it may happen that the image drawing and rendering cannot be completed within the configured drawing duration, or it may happen that the image composition cannot be completed within the configured composition duration. To avoid this situation, the embodiment of the present application can periodically detect the actual situation of executing the drawing, rendering, composition, and display operations based on the current configured duration.
[0246] For example, the number of times a drawing and rendering operation cannot be completed within the currently configured drawing duration, and the number of times a compositing operation cannot be completed within the configured drawing duration, can be determined at preset time intervals. If the number of times a corresponding operation cannot be completed within the configured duration reaches a preset threshold, the drawing duration configured for the drawing and rendering operation and the compositing duration configured for the compositing operation are re-determined. Then, the drawing, rendering, compositing, and display operations are performed based on the re-configured drawing and compositing durations.
[0247] In order to further improve the user experience, the embodiment of the present application can further subdivide the hands-on sliding operation scenarios so that different hands-on sliding operation scenarios correspond to different configuration durations.
[0248] In one implementation, different hand-free swipe operations can be classified into different chirality levels. Thus, after receiving a hand-free swipe operation from a user, the chirality level corresponding to the hand-free swipe operation can be determined. Then, based on the chirality level, the configured drawing duration and composition duration can be determined. Different chirality levels correspond to different configured durations.
[0249] Exemplarily, the hand-free sliding operation can be specifically divided into the finger-free sliding operation scenario and the stylus-free sliding operation scenario. The finger-free sliding operation scenario refers to the scenario in which the finger performs the hand-free sliding operation on the display screen, and the stylus-free sliding operation scenario refers to the scenario in which the stylus performs the hand-free sliding operation on the display screen. Among them, the chirality requirement for the stylus to perform the hand-free sliding operation on the display screen is higher than the chirality requirement for the finger to perform the hand-free sliding operation on the display screen. In this way, the embodiment of the present application can classify the specific scenarios of the hand-free sliding operation into levels of chirality requirements. For example, the chirality requirement level of the stylus to perform the hand-free sliding operation on the display screen is level one, and the chirality requirement level of the finger to perform the hand-free sliding operation on the display screen is level two, wherein the level one chirality requirement level is higher than the level two chirality requirement level.
[0250] Furthermore, different levels of chirality requirements correspond to different configuration durations. For example, the third configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the third configuration duration corresponding to the finger-on-hand operation scenario, and / or the fourth configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the fourth configuration duration corresponding to the finger-on-hand operation scenario. For example, the total configuration duration of the third and fourth configuration durations corresponding to the hand-on-hand sliding operation scenario with a level of chirality requirement of level 1 is 11.1ms. The total configuration duration of the third and fourth configuration durations corresponding to the hand-on-hand sliding operation scenario with a level of chirality requirement of level 2 is 24.2ms. Thus, if the hand-on-hand sliding operation is determined to be a finger-on-hand sliding operation on the display screen, the image rendering, compositing, and displaying operations can be completed within 24.2ms. Correspondingly, if the hand-on-hand sliding operation is determined to be a stylus-on-hand sliding operation on the display screen, the image rendering, compositing, and displaying operations can be completed within 11.1ms. In this way, compared with the operation scenario where the finger does not leave the hand, the operation scenario where the stylus does not leave the hand can further advance one Vsync cycle and refresh the image to the display. This can better adapt to the tracking requirements in different operation scenarios where the finger does not leave the hand, and improve the user experience.
[0251] This application does not limit the method for determining whether a hands-free swipe operation is finger-triggered or stylus-triggered. For example, the method can be to detect the touchscreen temperature corresponding to the swipe trajectory during the hands-free swipe operation. When the touchscreen temperature is above a temperature threshold, the current hands-free swipe operation is determined to be finger-triggered. When the touchscreen temperature is below or equal to the temperature threshold, the current hands-free swipe operation is determined to be stylus-triggered.
[0252] It should be noted that the present embodiment only uses a finger or stylus as the trigger for the hand-free swipe operation to illustrate the classification of chirality requirement levels, and does not limit the classification of chirality requirement levels. For example, the chirality requirement levels can also be divided based on the interface attributes of the hand-free swipe operation. For example, the chirality requirement for a game application interface is level 1, while the chirality requirement for a video application interface is level 2.
[0253] In summary, the display method provided in the first embodiment of the present application performs drawing rendering, synthesis and display sending operations based on the configuration duration corresponding to the hand-off operation scenario in the case of a hands-off operation scenario; and performs drawing rendering, synthesis and display sending operations based on the configuration duration corresponding to the hand-on operation scenario in the case of a hands-on operation scenario. In this way, configuring different durations for different touch operation scenarios can better adapt to different needs in different application scenarios. Specifically, in the scenario of a hands-on sliding operation, performing drawing rendering, synthesis and display sending operations based on a relatively short configuration duration can reduce touch delay, improve hand tracking in the hands-on sliding operation scenario, and improve user experience.
[0254] It should be noted that when an electronic device performs a frame rate switching operation or uses a GPU to perform a synthesis operation, the load on the electronic device is relatively large. If in this case, based on the configuration duration corresponding to the non-hands sliding operation scenario, the drawing rendering, synthesis and display sending operations are performed, the application or synthesis module may not be able to complete their respective tasks on time. Therefore, before the present application performs the drawing rendering, synthesis and display sending operations based on the configuration duration corresponding to the non-hands sliding operation scenario, it can first determine whether the frame rate switching operation is being performed at the current moment; if the frame rate switching operation is not being performed at the current moment, it can determine whether the GPU is being used to perform the synthesis operation at the current moment; if the GPU is not being used to perform the synthesis operation at the current moment, in response to the non-hands sliding operation, the drawing rendering, synthesis and display sending operations are performed based on the configuration duration corresponding to the non-hands sliding operation scenario.
[0255] Example 2
[0256] The display method provided in the second embodiment of the present application reduces the third part of the delay T3 by optimizing the number of cache frames accumulated in the cache queue, thereby improving the hand tracking performance.
[0257] FIG15 is a flow chart of a display control method provided in the second embodiment of the present application. As shown in FIG15 , the display method provided in the first embodiment of the present application may include the following steps:
[0258] Step S301, receiving a second touch operation input by the user;
[0259] Step S302 : if the touch scenario of the second touch operation is a hands-on operation scenario, and there are multiple cached frames in the cache queue for caching rendered image frames, determine whether the cached frames in the cache queue meet a frame loss condition.
[0260] In an embodiment of the present application, the cache queue refers to the cache queue of the synthesis module, that is, the cache queue used to cache the image frames after drawing and rendering. For example, the cache queue includes a first cache frame, a second cache frame and a third cache frame, wherein the first cache frame is the image frame at the top of the cache queue.
[0261] As shown in Figure 5, during the first Vsync cycle, the cache queue contains two cached frames: frame 2 and frame 3, which are rendered frames. Frame 2 is placed first in the cache queue, and frame 3 is placed after frame 2. Therefore, during the first Vsync cycle, frame 2 is the first cached frame in the cache queue, and frame 3 is the second cached frame.
[0262] In the embodiment of the present application, frame loss means that when there are cached frame buffers accumulated in the cache queue, the first cached frame can be discarded at an appropriate time and the second cached frame can be used to participate in the synthesis operation, so as to achieve the purpose of displaying the image on the display screen as soon as possible.
[0263] In one implementation, an embodiment of the present application may first determine whether the first cached frame meets the frame drop condition. If the first cached frame meets the frame drop condition, then determine whether to use the first cached frame or the second cached frame for the composition operation. If it is determined that the second cached frame is to be used for the composition operation, then discard the first cached frame. This embodiment of the present application does not limit the method for frame drop; for example, frames determined not to be displayed may be deleted or overwritten.
[0264] Among them, the frame loss conditions may include that the timestamp attribute of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval between the last discarded image frame in the cache queue is greater than a preset time interval threshold, wherein the first timestamp attribute is used to characterize the first preset display time of the first cached frame.
[0265] The timestamp attributes of cached frames can be divided into automatic timestamps and manual timestamps. Manual timestamps specify the display time of cached frames, which means that the display time of cached frames cannot be changed. For example, the timestamp attributes of cached frames corresponding to video content are generally manual timestamps, which means that the display time of each frame in the video cannot be arbitrarily changed. For example, you can specify that the first cached frame be displayed at the 1st second and the second cached frame be displayed at the 5th second. Automatic timestamps are timestamps that are automatically generated according to the queue order without special specifications.
[0266] According to human factors analysis, the frame loss duration during which users can feel the freeze is 25-58ms, which means that when the refresh rate is 60Hz, if a frame is lost, the frame spacing increases to 33.2ms, which will make the user feel the freeze; when the refresh rate is 90Hz, if a frame is lost, the frame spacing increases to 22.2ms, which will not make the user feel the freeze; when the refresh rate is 120Hz, if a frame is lost, the frame spacing increases to 16.6ms, which will not make the user feel the freeze. Therefore, in order to avoid the freeze phenomenon, the embodiment of the present application sets a refresh rate greater than 60Hz as one of the frame loss conditions. For example, the frame loss scheme can be implemented when the refresh rate is 90Hz or 120Hz.
[0267] Based on the above analysis, it can be seen that if two frames are discarded consecutively within a relatively short period of time, a noticeable delay will occur. Therefore, in this embodiment of the application, one of the frame drop conditions is that the time interval since the last discarded image frame in the cache queue is greater than a preset time interval threshold. For example, the time interval since the last discarded image frame in the cache queue must be greater than 100ms. In other words, two frames cannot be discarded consecutively within 100ms.
[0268] The frame loss condition may also include the first cached frame being an image frame of a whitelisted application. For example, the whitelisted applications include video applications and gaming applications. Thus, if the first cached frame is an image frame of a video application or a gaming application, then the first cached frame is determined to be an image frame of a whitelisted application.
[0269] It should be noted that the embodiment of the present application does not limit the order of judging the frame loss conditions such as the timestamp attribute of the first cached frame, whether the current refresh rate is greater than 60Hz, and whether the time interval since the last discarded image frame in the cache queue is greater than the preset time interval threshold.
[0270] For example, it is possible to first determine whether the timestamp attribute of the first cached frame is an automatic timestamp. If the timestamp attribute of the first cached frame is an automatic timestamp, it is possible to further determine whether the current refresh rate is greater than 60 Hz. If the current refresh rate is greater than 60 Hz, it is possible to further determine whether the time interval since the last discarded image frame in the cache queue is greater than a preset time interval threshold. If the time interval since the last discarded image frame in the cache queue is greater than the preset time interval threshold, it is possible to further determine whether the first cached frame belongs to an image frame of a whitelist application. If the first cached frame belongs to an image frame of a whitelist application, subsequent step S303 can be executed.
[0271] Step S303 : When the first buffered frame in the buffer queue meets the frame loss condition, the buffering state of the first buffered frame is determined.
[0272] The embodiment of the present application divides the cache states of the cached frames into three types: early, current, and late.
[0273] In one implementation, the cache state of the first cached frame can be determined in the following manner: determining the first expected display time (also referred to as the first preset display time) and the second expected display time (also referred to as the second preset display time) corresponding to the first cached frame. The first preset display time is the preset time for performing a display operation on the first cached frame, and the second preset display time is the preset display time corresponding to the Vsync-SF signal. It can also be understood that the first preset display time is the expected display time corresponding to the Vsync-APP signal used to indicate the execution of a drawing and rendering operation on the first cached frame, and the second preset display time is the expected display time corresponding to the current Vsync-SF signal. If the first preset display time is earlier than the second preset display time, the cache state of the first cached frame is determined to be late. If the first preset display time is later than the second preset display time, the cache state of the first cached frame is determined to be early. If the first preset display time is the same as the second preset display time, the cache state of the first cached frame is determined to be current.
[0274] First, the first preset display time and the second preset display time are explained as follows.
[0275] As shown in Figure 16, each Vsync-APP signal corresponds to a first preset display time, and each Vsync-SF signal also corresponds to a second preset display time. For example, in Figure 16, the first preset display time corresponding to Vsync-APP signal 11 is T2, the first preset display time corresponding to Vsync-APP signal 12 is T3, and the first preset display time corresponding to Vsync-APP signal 13 is T4. Similarly, in Figure 16, the second preset display time corresponding to Vsync-SF signal 23 is T3, the second preset display time corresponding to Vsync-SF signal 24 is T4, and the second preset display time corresponding to Vsync-SF signal 25 is T5.
[0276] That is, the first preset display time corresponding to the Vsync-APP signal refers to the preset display time for drawing and rendering image frames under the guidance of the Vsync-APP signal. The second preset display time corresponding to the Vsync-SF signal refers to the preset display time for synthesizing image frames under the guidance of the Vsync-SF signal.
[0277] In an embodiment of the present application, the preset time for performing the display sending operation on the first cache frame is called the first preset display sending time, the preset time for performing the display sending operation on the second cache frame is called the third preset display sending time, and the preset time for performing the display sending operation on the third cache frame is called the fourth preset display sending time.
[0278] In one implementation, a rendered image frame drawn in response to a Vsync-APP signal may carry a timestamp indicating a first preset display time corresponding to the image frame. For example, as shown in FIG16 , the timestamp for drawing rendered frame 0 in response to a Vsync-APP signal 11 is T2, the timestamp for drawing rendered frame 1 in response to a Vsync-APP signal 12 is T3, and the timestamp for drawing rendered frame 2 in response to a Vsync-APP signal 13 is T4.
[0279] As shown in FIG. 16 , taking the current Vsync-SF signal being the Vsync-SF signal 23 as an example, the determination of the buffering status of the buffered frames in the buffer queue is described.
[0280] When the Vsync-SF signal 22 is received, the application has not yet completed the drawing and rendering of frame 0. Therefore, in response to the Vsync-SF signal 22, the synthesis module cannot obtain the drawn and rendered frame 0, and the cache queue is empty. When the Vsync-SF signal 23 arrives, the application has completed the drawing and rendering of frames 0, 1, and 2. In this way, when the Vsync-SF signal 23 is received, the cache queue includes three cache frames, frame 0, frame 1, and frame 2. Among them, frame 0 is the first cache frame, frame 1 is the second cache frame, and frame 2 is the third cache frame. Among them, the second preset display time of frame 0, frame 1, and frame 2 is T3, the first preset display time corresponding to frame 0 is T2, the third preset display time corresponding to frame 1 is T3, and the fourth preset display time corresponding to frame 2 is T4. In this way, the first preset display time T2 corresponding to frame 0 is earlier than the second preset display time T3, so the cache state of frame 0 is late; the third preset display time T3 corresponding to frame 1 is the same as the second preset display time T3, so the cache state of frame 1 is current; the fourth preset display time T4 corresponding to frame 2 is later than the second preset display time T3, so the cache state of frame 2 is early.
[0281] The cache status of the first cache frame may include the following situations:
[0282] Case 1: The cache state of the first cached frame is late.
[0283] When the cache state of the first cache frame is late, the following steps S304 to S306 may be performed.
[0284] Step S304: Determine the cache status of the second cache frame.
[0285] The method for determining the cache status of the second cache frame can be found in the above description of step S303 and will not be repeated here.
[0286] Step S305 : When the cache state of the second cache frame is late or current, it is determined to discard the first cache frame, and a synthesis operation is performed on the second cache frame in the current Vsync period.
[0287] For example, as shown in FIG16 , in the third Vsync cycle, in response to the Vsync-SF signal 23, the late frame 0 can be discarded and the frame 1 can be used for this synthesis operation. In this way, the frame 1 can be displayed on the display screen one Vsync cycle in advance.
[0288] Step S306 : When the cache state of the second cache frame is early, determine to perform a synthesis operation on the first cache frame in the current Vsync period.
[0289] The cached frame in the early state indicates that the frame is rendered one Vsync cycle in advance, so it can wait until the next Vsync cycle to participate in synthesis.
[0290] It should be noted that when the electronic device is actually running, the Vsync-APP signal or the second Vyscn signal may be disordered. For example, when switching the frame rate, the electronic device needs to recalibrate the Vsync cycle. In this way, it may happen that the Vsync-APP signal or the Vyscn-SF signal is received in advance. If the cache state of the cache frame is still determined according to the above method when the Vsync-APP signal or the Vyscn-SF signal is received in advance, it may cause the subsequent cache frames to accumulate. For example, it is possible that the cache frame that should have been in the current state is mistakenly judged as the early state. In other words, the cache frame that should have been taken out and consumed for synthesis processing in the current Vsync cycle will be mistakenly judged to be taken out and consumed for synthesis processing in the next Vsync cycle, which will cause the subsequent cache frames to accumulate.
[0291] For example, as shown in FIG17 , the frame rate corresponding to the first Vsync cycle is 90 Hz. At this frame rate, the Vsync cycle is 11.1 ms, the interval between the Vsync-APP signal 11 and the Vsync-APP signal 12 is 11.1 ms, and the interval between the Vsync-SF signal 21 and the Vsync-SF signal 22 is 11.1 ms. In the second Vsync cycle, since the frame rate is switched from 90 Hz to 120 Hz, the Vsync-SF signal 23 is received in advance, so that the interval between the Vsync-SF signal 22 and the Vsync-SF signal 23 is less than 11.1 ms.
[0292] If frame 0 is rendered before Vsync-SF signal 23, the first preset display time for frame 0 remains T2, corresponding to the 90Hz frame rate, while the second preset display time for frame 0 becomes TA, corresponding to the 120Hz frame rate, with TA falling between T1 and T2. Since the first preset display time T2 for frame 0 is later than the second preset display time TA for frame 0, the cache state of frame 0 is determined to be early. In reality, the cache state of frame 0 should be current.
[0293] Based on the above analysis, in the embodiment of the present application, when the cache status of the second cached frame is early, the following solution can also be adopted: the synthesis module first determines whether the Vsync-APP signal or Vsync-SF signal is received in advance; if the Vsync-APP signal or Vsync-SF signal is received in advance during the current Vsync cycle, the first cached frame is discarded and the second cached frame is determined to be used to synthesize the image frame during the current Vsync cycle. This can avoid the accumulation of cached frames due to misjudgment of the cache status.
[0294] Case 2: The cache state of the first cached frame is current.
[0295] When the cache state of the first cache frame is current, the following step S307 may be performed.
[0296] Step S307 : Determine to perform a synthesis operation on the first buffered frame in the current Vsync period.
[0297] If the cache status of the first cache frame is current, then the cache status of the cache frame following the first cache frame should be early. Therefore, when it is determined that the cache status of the first cache frame is current, it can be directly determined to use the first cache frame to synthesize the image frame without continuing to judge the cache status of the subsequent cache frames.
[0298] Case 3: The cache state of the first cached frame is early.
[0299] When the buffering state of the first buffered frame is early, the following step S308 may be performed.
[0300] Step S308 : Determine to perform a synthesis operation on the first buffered frame in the next Vsync period.
[0301] If the cache state of the first cached frame is early, then the cache state of the cached frames following the first cached frame should also be early. Therefore, if the cache state of the first cached frame is determined to be early, the first cached frame can be directly used to synthesize the image frame in the next Vsync cycle without further determining the cache state of the subsequent cached frames. In other words, if the cache state of the first cached frame is determined to be early, the Vsync-SF signal of this Vsync cycle can be idle, and no synthesis operation is performed on any cached frames.
[0302] Similarly, to avoid the problem of cached frames piling up due to the erroneous judgment of a cached frame that should be in the current state as the early state, when the cache state of the first cached frame is early, the following solution can also be adopted: first determine whether the Vsync-APP signal or the Vsync-SF signal is received in advance during the current Vsync cycle; if the Vsync-APP signal or the Vsync-SF signal is received in advance during the current Vsync cycle, determine to use the first cached frame to synthesize the image frame during the current Vsync cycle. In this way, the problem of cached frames piling up due to the misjudgment of the cache state can be avoided.
[0303] It should be noted that embodiments of the present application can employ the above-described method to determine whether each cached frame in the cache queue satisfies the frame loss condition and the cache status of the cached frame. For example, the step of determining whether each cached frame in the cache queue satisfies the frame loss condition and the cache status of the cached frame can be performed by traversing each cached frame in order from the first cached frame in the cache queue to the last cached frame.
[0304] In summary, the display method provided in the second embodiment of the present application determines the timing of frame drop based on the frame drop condition and the cache status of the cached frame in the hands-free operation scenario, so as to output and display the image as quickly as possible and improve hand tracking.
[0305] The various method embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the scope of protection of this application.
[0306] The above describes in detail the method provided by the embodiment of the present application. Below, the apparatus provided by the embodiment of the present application is described in detail in conjunction with Figures 18 and 19. It should be understood that the description of the apparatus embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, please refer to the method embodiment above. For the sake of brevity, it will not be repeated here.
[0307] The above embodiments introduce the display method provided by the present application. It is understandable that, in order to realize the above functions, the display device includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0308] In the embodiment of the present application, the functional modules of the display device can be divided according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0309] FIG18 is a schematic diagram of the structure of a display device provided in an embodiment of the present application. In one embodiment, the electronic device can implement the corresponding functions through the software device shown in FIG18. As shown in FIG18, the display device may include:
[0310] A first receiving module 401 is configured to receive a first touch operation input by a user;
[0311] A first drawing and rendering module 402 is configured to, when the touch scenario of the first touch operation is a hands-off operation scenario, perform a drawing and rendering operation on the first image frame within a first configured duration in the hands-off operation scenario in response to a received first application vertical synchronization signal;
[0312] A first synthesis module 403 is configured to perform a synthesis operation on the rendered first image frame within a second configured duration in the hands-off operation scenario in response to a received first synthesis vertical synchronization signal; wherein the first synthesis vertical synchronization signal is separated from the first application vertical synchronization signal by the first configured duration;
[0313] The first display module 404 is configured to display the synthesized first image frame in response to a received first hardware vertical synchronization signal, wherein the first hardware vertical synchronization signal and the first synthesized vertical synchronization signal are separated by the second configured time length;
[0314] The second receiving module 405 is configured to receive a second touch operation input by a user;
[0315] A second drawing and rendering module 406 is configured to, when the touch scenario of the second touch operation is a hands-on operation scenario, perform a drawing and rendering operation on the second image frame within a third configured duration in the hands-on operation scenario in response to a received second application vertical synchronization signal;
[0316] a second synthesis module 407 configured to perform a synthesis operation on the rendered second image frame within a fourth configured duration in the hands-on operation scenario in response to a received second synthesis vertical synchronization signal, wherein the second synthesis vertical synchronization signal is separated from the second application vertical synchronization signal by a third configured duration;
[0317] The second display module 408 is used to perform a display operation on the synthesized second image frame in response to the received second hardware vertical synchronization signal; the second hardware vertical synchronization signal and the second synthesized vertical synchronization signal are separated by the fourth configuration time length; wherein, the third configuration time length is less than the first configuration time length, and / or the fourth configuration time length is less than the second configuration time length.
[0318] In a possible implementation, the hands-on operation scenario includes a hands-on sliding operation scenario and a hands-on pressing operation scenario.
[0319] A possible implementation also includes:
[0320] A first determining module is configured to, when the touch scenario of the first touch operation is a hands-off operation scenario, determine first configuration information corresponding to the hands-off operation scenario, the first configuration information including the first configuration duration and the second configuration duration;
[0321] The second determining module is configured to determine, when the touch scenario of the second touch operation is a hands-on operation scenario, second configuration information corresponding to the hands-on operation scenario, wherein the second configuration information includes the third configuration duration and the fourth configuration duration.
[0322] In a possible implementation, the second application vertical synchronization signal and the third application vertical synchronization signal are separated by a first duration, the second application vertical synchronization signal and the fourth application vertical synchronization signal are separated by a second duration, the third application vertical synchronization signal is the previous application vertical synchronization signal of the second application vertical synchronization signal, and the fourth application vertical synchronization signal is the next application vertical synchronization signal of the second application vertical synchronization signal;
[0323] The second composite vertical synchronization signal and the third composite vertical synchronization signal are separated by a third time length, the second composite vertical synchronization signal and the fourth composite vertical synchronization signal are separated by a fourth time length, the third composite vertical synchronization signal is the previous composite vertical synchronization signal of the second composite vertical synchronization signal, and the fourth composite vertical synchronization signal is the next composite vertical synchronization signal of the second composite vertical synchronization signal;
[0324] The first duration is different from the second duration, and / or the third duration is different from the fourth duration.
[0325] A possible implementation also includes:
[0326] a first generating module, configured to generate the second application vertical synchronization signal based on the second hardware vertical synchronization signal and the first signal offset in the hands-on operation scenario;
[0327] The second generating module is configured to generate the second synthesized vertical synchronization signal based on the second hardware vertical synchronization signal and the second signal offset in the hands-free operation scenario.
[0328] A possible implementation also includes:
[0329] An acquisition module, configured to acquire a historical drawing duration for executing the drawing and rendering operation, and a historical synthesis duration for executing the synthesis operation;
[0330] A third determining module is configured to determine the third configuration duration and the fourth configuration duration based on the historical rendering durations and the historical synthesis durations; the third configuration duration is greater than or equal to a maximum rendering duration among the historical rendering durations, and the fourth configuration duration is greater than or equal to the maximum synthesis duration among the historical synthesis durations.
[0331] A possible implementation also includes:
[0332] a fourth determining module, configured to determine a chirality level corresponding to the hands-on operation scenario;
[0333] The fifth determining module is configured to determine the third configuration duration and the fourth configuration duration based on the chirality level, wherein different chirality levels correspond to different configuration durations.
[0334] In one possible implementation, the hands-on operation scenario includes a finger-on-hand operation scenario and a stylus-on-hand operation scenario, and the stylus-on-hand operation scenario corresponds to a higher chirality level than the finger-on-hand operation scenario.
[0335] Among them, the third configuration time length corresponding to the stylus pen non-leaving hand operation scenario is shorter than the third configuration time length corresponding to the finger non-leaving hand operation scenario, and / or the fourth configuration time length corresponding to the stylus pen non-leaving hand operation scenario is shorter than the fourth configuration time length corresponding to the finger non-leaving hand operation scenario.
[0336] A possible implementation also includes:
[0337] a sixth determining module, configured to, if there are multiple cached frames in a cache queue for caching rendered image frames and a first cached frame at the top of the cache queue meets a frame loss condition, determine a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time being a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time being a preset display sending time corresponding to a second synthesized vertical synchronization signal;
[0338] a seventh determining module, configured to determine, when the first preset display sending time is earlier than the second preset display sending time, that the second cached frame corresponds to a third preset display sending time; the third preset display sending time being a preset time for performing a display sending operation on the second cached frame, the second cached frame being a cached frame located after the first cached frame in the cache queue;
[0339] The second synthesis module is used to discard the first cache frame and perform a synthesis operation on the second cache frame when the third preset display time is the same as the second preset display time, or when the third preset display time is earlier than the second preset display time.
[0340] In one possible implementation, the second synthesis module is further used to discard the first cache frame and perform a synthesis operation on the second cache frame when the third preset display time is later than the second preset display time and it is determined that the interval between the currently received second synthesized vertical synchronization signal and the previous second synthesized vertical synchronization signal is less than one Vsync cycle, or when the interval between the second application vertical synchronization signal for triggering the drawing and rendering operation on the second cache frame and the previous second application vertical synchronization signal is less than one Vsync cycle.
[0341] In one possible implementation, the second synthesis module is further configured to perform a synthesis operation on the first cache frame when the first preset display time is the same as the second preset display time, or when the third preset display time is later than the second preset display time.
[0342] In one possible implementation, the frame loss conditions include: the timestamp attribute corresponding to the first preset display time of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval from the last time the image frame in the cache queue was discarded is greater than a preset time interval threshold.
[0343] Figure 19 is a structural diagram of a display device provided in an embodiment of the present application. In one embodiment, the electronic device can implement the corresponding functions through the hardware device shown in Figure 19. As shown in Figure 19, the device 1000 may include a transceiver 1001, a processor 1002 and a memory 1003. Among them, the transceiver 1001 may be used to receive the user's touch operation. The processor 1002 may include one or more processing units, for example: the processor 1002 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated into one or more processors. The memory 1003 is coupled to the processor 1002 for storing various software programs and / or multiple sets of instructions. The memory 1003 may include a volatile memory and / or a non-volatile memory.
[0344] The apparatus 1000 can execute the operations performed in the above method embodiments.
[0345] For example, in an optional embodiment of the present application, the transceiver 1001 is used to: receive a first touch operation input by the user, and receive a second touch operation input by the user. The processor 1002 is used to: if the touch scenario of the first touch operation is a hands-off operation scenario, then in response to the received first application vertical synchronization signal, perform a drawing and rendering operation on the first image frame within the first configuration duration in the hands-off operation scenario; in response to the received first synthetic vertical synchronization signal, perform a synthesis operation on the first image frame after drawing and rendering within the second configuration duration in the hands-off operation scenario; wherein the first synthetic vertical synchronization signal and the first application vertical synchronization signal are separated by the first configuration duration; in response to the received first hardware vertical synchronization signal, perform a display operation on the synthesized first image frame; wherein the first hardware vertical synchronization signal and the first synthetic vertical synchronization signal are separated by the second configuration duration; if the touch scenario of the second touch operation is a hands-on operation scenario, then the processor 1002 is used to: if the touch scenario of the first touch operation is a hands-off operation scenario, then in response to the received first application vertical synchronization signal, perform a display operation on the first image frame after drawing and rendering; wherein the first hardware vertical synchronization signal and the first synthetic vertical synchronization signal are separated by the second configuration duration; if the touch scenario of the second touch operation is a hands-on operation scenario, then operation scenario, in response to the received second application vertical synchronization signal, a drawing and rendering operation is performed on the second image frame within the third configuration time length in the hands-free operation scenario; in response to the received second synthetic vertical synchronization signal, a synthesis operation is performed on the second image frame after drawing and rendering within the fourth configuration time length in the hands-free operation scenario; wherein, the second synthetic vertical synchronization signal and the second application vertical synchronization signal are separated by the third configuration time length; in response to the received second hardware vertical synchronization signal, a display operation is performed on the synthesized second image frame; the second hardware vertical synchronization signal and the second synthetic vertical synchronization signal are separated by the fourth configuration time length; wherein, the third configuration time length is less than the first configuration time length, and / or, the fourth configuration time length is less than the second configuration time length.
[0346] In a possible implementation, the hands-on operation scenario includes a hands-on sliding operation scenario and a hands-on pressing operation scenario.
[0347] In one possible implementation, the processor 1002 is further used to: if the touch scenario of the first touch operation is a hands-off operation scenario, determine the first configuration information corresponding to the hands-off operation scenario, the first configuration information including the first configuration duration and the second configuration duration; if the touch scenario of the second touch operation is a hands-on operation scenario, determine the second configuration information corresponding to the hands-on operation scenario, the second configuration information including the third configuration duration and the fourth configuration duration.
[0348] In one possible implementation, the second application vertical synchronization signal and the third application vertical synchronization signal are separated by a first time length, the second application vertical synchronization signal and the fourth application vertical synchronization signal are separated by a second time length, the third application vertical synchronization signal is the previous application vertical synchronization signal of the second application vertical synchronization signal, and the fourth application vertical synchronization signal is the next application vertical synchronization signal of the second application vertical synchronization signal; the second synthetic vertical synchronization signal and the third synthetic vertical synchronization signal are separated by a third time length, the second synthetic vertical synchronization signal and the fourth synthetic vertical synchronization signal are separated by a fourth time length, the third synthetic vertical synchronization signal is the previous synthetic vertical synchronization signal of the second synthetic vertical synchronization signal, and the fourth synthetic vertical synchronization signal is the next synthetic vertical synchronization signal of the second synthetic vertical synchronization signal; wherein, the first time length is different from the second time length, and / or the third time length is different from the fourth time length.
[0349] In one possible implementation, the processor 1002 is further used to: generate the second application vertical synchronization signal based on the second hardware vertical synchronization signal and the first signal offset in the hands-free operation scenario; and generate the second synthetic vertical synchronization signal based on the second hardware vertical synchronization signal and the second signal offset in the hands-free operation scenario.
[0350] In one possible implementation, the processor 1002 is further used to: obtain a historical drawing duration for executing the drawing and rendering operation, and a historical synthesis duration for executing the synthesis operation; determine the third configuration duration and the fourth configuration duration based on the historical drawing duration and the historical synthesis duration; the third configuration duration is greater than or equal to the maximum drawing duration in the historical drawing duration, and the fourth configuration duration is greater than or equal to the maximum synthesis duration in the historical synthesis duration.
[0351] In one possible implementation, processor 1002 is further configured to: determine a chirality level corresponding to the hands-free operation scenario; and determine the third configuration duration and the fourth configuration duration based on the chirality level, wherein different chirality levels correspond to different configuration durations.
[0352] In one possible implementation, the hands-on operation scenario includes a finger-on-hand operation scenario and a stylus-on-hand operation scenario, and the stylus-on-hand operation scenario corresponds to a higher chirality level than the finger-on-hand operation scenario; wherein the third configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the third configuration duration corresponding to the finger-on-hand operation scenario, and / or the fourth configuration duration corresponding to the stylus-on-hand operation scenario is shorter than the fourth configuration duration corresponding to the finger-on-hand operation scenario.
[0353] In one possible implementation, the processor 1002 is further used to: when there are multiple cached frames in a cache queue used to cache rendered image frames, and the first cached frame at the top of the cache queue meets the frame loss condition, determine a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time is a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time is a preset display sending time corresponding to a second synthesized vertical synchronization signal; when the first preset display sending time is earlier than the second preset display sending time, determine a third preset display sending time corresponding to the second cached frame; the third preset display sending time is a preset time for performing a display sending operation on the second cached frame, and the second cached frame is a cached frame located after the first cached frame in the cache queue; when the third preset display sending time is the same as the second preset display sending time, or when the third preset display sending time is earlier than the second preset display sending time, discard the first cached frame and perform a synthesis operation on the second cached frame.
[0354] In one possible implementation, the processor 1002 is further used to: discard the first cached frame and perform a synthesis operation on the second cached frame when the third preset display time is later than the second preset display time, and it is determined that the interval between the currently received second synthetic vertical synchronization signal and the previous second synthetic vertical synchronization signal is less than one Vsync cycle, or when the interval between the second application vertical synchronization signal used to trigger the drawing and rendering operation on the second cached frame and the previous second application vertical synchronization signal is less than one Vsync cycle.
[0355] In one possible implementation, the processor 1002 is further configured to: perform a synthesis operation on the first cached frame when the first preset display time is the same as the second preset display time, or when the third preset display time is later than the second preset display time.
[0356] In one possible implementation, the frame loss conditions include: the timestamp attribute corresponding to the first preset display time of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval from the last time the image frame in the cache queue was discarded is greater than a preset time interval threshold.
[0357] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it will not be described in detail here.
[0358] It should be noted that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0359] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the apparatus and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0360] According to the method provided in the embodiment of the present application, the embodiment of the present application also provides a computer program product, which includes: a computer program or instructions, which, when the computer program or instructions are run on a computer, enables the computer to execute the method of any one of the method embodiments.
[0361] According to the method provided in the embodiment of the present application, the embodiment of the present application also provides a computer storage medium, which stores a computer program or instruction. When the computer program or instruction is run on a computer, the computer executes the method of any one of the embodiments of the method.
[0362] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0363] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0364] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0365] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0366] In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.
[0367] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0368] The devices, computer storage media, and computer program products provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.
[0369] It should be understood that in each embodiment of the present application, the execution order of each step should be determined by its function and internal logic. The size of the sequence number of each step does not mean the order of execution and does not limit the implementation process of the embodiment.
[0370] The various sections of this specification are described in a progressive manner. Similar portions between embodiments can be referenced to each other, and each embodiment focuses on the differences between the other embodiments. In particular, the embodiments of the apparatus, computer storage medium, and computer program product are generally similar to the method embodiments, so their descriptions are simplified. For relevant details, refer to the descriptions of the method embodiments.
[0371] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0372] The above-described embodiments of the present application do not constitute a limitation on the scope of protection of the present application.
Claims
1. A display method, characterized in that: Applied to electronic equipment, the method comprises: When there are multiple cached frames in a cache queue for caching rendered image frames, and a first cached frame at the top of the cache queue meets a frame loss condition, determine a first preset display sending time and a second preset display sending time corresponding to the first cached frame; the first preset display sending time is a preset time for performing a display sending operation on the first cached frame, and the second preset display sending time is a preset display sending time corresponding to a second synthetic vertical synchronization Vsync-SF signal; In the case where the first preset display sending time is earlier than the second preset display sending time, determining that the second cache frame corresponds to a third preset display sending time; the third preset display sending time is a preset time for performing a display sending operation on the second cache frame, and the second cache frame is a cache frame in the cache queue that is located after the first cache frame; When the third preset display time is the same as the second preset display time, or when the third preset display time is earlier than the second preset display time, the first cache frame is discarded and a synthesis operation is performed on the second cache frame.
2. The method according to claim 1, characterized in that The method further comprises: When the third preset display time is later than the second preset display time, and it is determined that the interval between the currently received second synthetic vertical synchronization signal and the previous second synthetic vertical synchronization signal is less than one Vsync cycle, or when the interval between the second application vertical synchronization Vsync-APP signal used to trigger the drawing and rendering operation on the second cache frame and the previous second application vertical synchronization signal is less than one Vsync cycle, the first cache frame is discarded and the synthesis operation is performed on the second cache frame.
3. The method according to claim 1, characterized in that: The method further comprises: When the first preset display time is the same as the second preset display time, or when the third preset display time is later than the second preset display time, a synthesis operation is performed on the first cache frame.
4. The method according to claim 1, characterized in that: The frame loss conditions include: the timestamp attribute corresponding to the first preset display time of the first cached frame is an automatic timestamp, the current refresh rate is greater than 60Hz, and the time interval from the last discarding of the image frame in the cache queue is greater than a preset time interval threshold.
5. The method according to claim 1, characterized in that The method further comprises: determining a first preset display sending time and a second preset display sending time corresponding to a first cached frame when there are multiple cached frames in a cache queue for caching rendered image frames and a first cached frame at the top of the cache queue meets a frame loss condition, including: Receiving a second touch operation input by the user; If the touch scenario of the second touch operation is a hands-on operation scenario, and there are multiple cached frames in the cache queue used to cache the rendered image frames, and the first cached frame at the top of the cache queue meets the frame loss condition, determine the first preset display time and the second preset display time corresponding to the first cached frame.
6. The method according to claim 5, characterized in that Before receiving the second touch operation input by the user, the method further includes: Receiving a first touch operation input by a user; If the touch scenario of the first touch operation is a hands-off operation scenario, in response to the received first application vertical synchronization Vsync-APP signal, perform a drawing rendering operation on the first image frame within a first configured time length in the hands-off operation scenario; In response to the received first synthetic vertical synchronization Vsync-SF signal, performing a synthesis operation on the first image frame after drawing and rendering within a second configuration time length in the hands-off operation scenario; wherein the first synthetic vertical synchronization signal and the first application vertical synchronization signal are separated by the first configuration time length; In response to the received first hardware vertical synchronization Vsync-HW signal, a display operation is performed on the synthesized first image frame; wherein the first hardware vertical synchronization signal and the first synthesized vertical synchronization signal are separated by the second configuration time length.
7. The method according to claim 6, characterized in that After receiving the second touch operation input by the user, the method further includes: If the touch scenario of the second touch operation is a hands-on operation scenario, in response to the received second application vertical synchronization signal, perform a drawing rendering operation on the second image frame within a third configured time length in the hands-on operation scenario; In response to the received second synthetic vertical synchronization signal, performing a synthesis operation on the second image frame after drawing and rendering within a fourth configuration time length in the hands-free operation scenario; wherein the second synthetic vertical synchronization signal and the second application vertical synchronization signal are separated by the third configuration time length; In response to the received second hardware vertical synchronization Vsync-HW signal, performing a display operation on the synthesized second image frame; the second hardware vertical synchronization signal and the second synthesized vertical synchronization signal are separated by the fourth configuration time length; Among them, the third configuration duration is shorter than the first configuration duration, and / or the fourth configuration duration is shorter than the second configuration duration.
8. The method according to any one of claims 5 to 7, characterized in that: The hands-on operation scenarios include hands-on sliding operation scenarios and hands-on pressing operation scenarios.
9. The method according to claim 7, characterized in that: The method further comprises: If the touch scenario of the first touch operation is a hands-off operation scenario, determining first configuration information corresponding to the hands-off operation scenario, the first configuration information including the first configuration duration and the second configuration duration; If the touch scenario of the second touch operation is a hands-on operation scenario, second configuration information corresponding to the hands-on operation scenario is determined, where the second configuration information includes the third configuration duration and the fourth configuration duration.
10. The method according to claim 7, characterized in that The second application vertical synchronization signal and the third application vertical synchronization signal are separated by a first time length, the second application vertical synchronization signal and the fourth application vertical synchronization signal are separated by a second time length, the third application vertical synchronization signal is the previous application vertical synchronization signal of the second application vertical synchronization signal, and the fourth application vertical synchronization signal is the next application vertical synchronization signal of the second application vertical synchronization signal; The second synthesized vertical synchronization signal and the third synthesized vertical synchronization signal are separated by a third time length, the second synthesized vertical synchronization signal and the fourth synthesized vertical synchronization signal are separated by a fourth time length, the third synthesized vertical synchronization signal is the previous synthesized vertical synchronization signal of the second synthesized vertical synchronization signal, and the fourth synthesized vertical synchronization signal is the next synthesized vertical synchronization signal of the second synthesized vertical synchronization signal; The first duration is different from the second duration, and / or the third duration is different from the fourth duration.
11. The method according to claim 7, characterized in that If the touch scene of the second touch operation is a hands-on operation scene, the method further includes: generating the second application vertical synchronization signal based on the second hardware vertical synchronization signal and the first signal offset in the hands-free operation scenario; The second synthesized vertical synchronization signal is generated based on the second hardware vertical synchronization signal and the second signal offset in the hands-free operation scenario.
12. The method according to claim 7, characterized in that The method further comprises: Obtaining a historical drawing time for executing the drawing and rendering operation, and a historical synthesis time for executing the synthesis operation; The third configuration duration and the fourth configuration duration are determined according to the historical drawing duration and the historical synthesis duration; the third configuration duration is greater than or equal to the maximum drawing duration in the historical drawing durations, and the fourth configuration duration is greater than or equal to the maximum synthesis duration in the historical synthesis durations.
13. The method according to claim 7, characterized in that The method further comprises: Determining a chirality level corresponding to the hands-free operation scenario; The third configuration duration and the fourth configuration duration are determined based on the chirality level, wherein different chirality levels correspond to different configuration durations.
14. The method according to claim 13, characterized in that The non-hands-off operation scenario includes a finger-on-hand operation scenario and a stylus-on-hand operation scenario, and the stylus-on-hand operation scenario corresponds to a higher chirality level than the finger-on-hand operation scenario; Among them, the third configuration time length corresponding to the stylus pen never leaves hand operation scenario is shorter than the third configuration time length corresponding to the finger never leaves hand operation scenario, and / or the fourth configuration time length corresponding to the stylus pen never leaves hand operation scenario is shorter than the fourth configuration time length corresponding to the finger never leaves hand operation scenario.
15. An electronic device, characterized in that: It comprises a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-14.
16. A computer storage medium, characterized in that: The computer storage medium stores a computer program or instruction. When the computer program or instruction is executed, the method according to any one of claims 1 to 14 is executed.
