Page display control method, electronic device and computer-readable storage medium

By controlling the UI rendering and graphics service timing according to the vertical synchronization signal cycle in electronic devices, the problem of unsmooth screen during sliding and dragging operations is solved, resulting in smoother page display and improved user experience.

WO2026237328A1PCT designated stage Publication Date: 2026-11-19HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/138825
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-16
Filing Date
2025-11-29
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

When electronic devices are used for swiping and dragging, the screen display is not smooth, causing lag and affecting the user experience.

Method used

By determining the appropriate time to perform UI drawing and graphics service operations based on the period of the vertical synchronization signal after receiving a displacement event, we can ensure that drawing and graphics processing are completed before the next vertical synchronization signal arrives, thus avoiding empty drawing and frame dropping issues.

Benefits of technology

It improved the smoothness of page display, reduced lag, and enhanced the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025138825_19112026_PF_FP_ABST
    Figure CN2025138825_19112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronics, and provides a page display control method, an electronic device and a computer-readable storage medium. The method comprises: receiving a first displacement event at a first moment, the first displacement event being a displacement event generated in response to a first operation, and the first operation comprising a sliding operation and / or a drag operation (S910); and if the first moment is later than a second moment, and the first moment is earlier than or equal to a third moment, executing a UI rendering operation on the first displacement event at a moment earlier than the third moment or at the third moment, the second moment being a moment determined on the basis of a period of a first vertical synchronization signal and used for triggering the first vertical synchronization signal, the first vertical synchronization signal being used for triggering the UI rendering operation, and the third moment being later than the second moment (S920). By means of the method, the normal UI rendering operation can be performed on the first displacement event within the current period of the first vertical synchronization signal, thus avoiding, as much as possible, a stuttering phenomenon caused by no-op UI rendering.
Need to check novelty before this filing date? Find Prior Art

Description

The page displays control methods, electronic devices, and computer-readable storage media.

[0001] This application claims priority to Chinese Patent Application No. 202510642943.2, filed on May 16, 2025, entitled "Page Display Control Method, Electronic Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic technology, and more specifically, to a page display control method, an electronic device, and a computer-readable storage medium. Background Technology

[0003] Swiping and dragging are two important ways for users to interact with electronic devices. For example, users can swipe their fingers on the screen to browse news or view photos, or drag and drop icons to personalize their layout.

[0004] Electronic devices involve multiple processes from receiving user input (such as swiping or dragging) to displaying the corresponding screen. The processing delay of any of these processes can cause the screen to be unsmooth, resulting in stuttering and affecting the user experience. Summary of the Invention

[0005] This application provides a page display control method, an electronic device, and a computer-readable storage medium that can solve the problem of unsmooth screen display, thereby improving the user experience.

[0006] Firstly, a page display control method is provided, which can be applied to electronic devices. The method includes: receiving a first displacement event at a first moment, the first displacement event being a displacement event generated in response to a first operation, the first operation including a sliding operation and / or a dragging operation; if the first moment is later than a second moment, and the first moment is earlier than or equal to a third moment, performing a user interface (UI) drawing operation on the first displacement event at a moment earlier than the third moment or at the third moment. The second moment is a moment determined based on the period of a first vertical synchronization (VSYNC) signal for triggering the first vertical synchronization signal, the first vertical synchronization signal being used to trigger the UI drawing operation; the third moment is later than the second moment.

[0007] The period of the first vertical sync signal can be equal to 1 / screen refresh rate, or in other words, the frequency of the first vertical sync signal can be equal to the screen refresh rate. For example, if the screen refresh rate is 120Hz, then the period of the first vertical sync signal is approximately 8.3ms.

[0008] For example, a swipe operation can be any of the following: a user quickly swiping their finger on the screen, a user continuously swiping their finger on the screen so that the view content follows the finger, a mouse scrolling one notch, a mouse scrolling quickly and then stopping, a mouse scrolling up and down, a user holding down shift and scrolling the mouse wheel up and down at the same time, a stylus (or pen, etc.) tip quickly swiping on the screen, or a pen tip swiping on the screen.

[0009] For example, a drag-and-drop operation can be any of the following: a user long-presses an element and moves the element, a user presses the left mouse button and moves the mouse to move the element, or a pen tip touches the screen for a long time and then slides it.

[0010] In one example, UI drawing operations are used to update the properties of the application's UI controls (such as shape, color, and text) and synchronize them to the graphics service. In some embodiments, UI drawing may include building an element tree, building a render tree, and layout calculation to obtain the geometric information (such as position and size) and styles (such as color and font) after layout calculation. The layout calculation process involves using various layout algorithms to calculate the actual size and position of each render node in the render tree in relative space.

[0011] In another example, UI drawing operations are used to update the properties of the application's UI controls (such as shape, color, and text) and convert the properties of the UI elements into drawing instructions that are synchronized to the rendering thread. The rendering thread then converts the drawing instructions into image information.

[0012] In one implementation, if no input event (e.g., a first displacement event) is received before the start time (e.g., the second moment) of the current VSYNC cycle (i.e., the period of the first vertical synchronization signal), UI empty drawing can be performed. However, this will result in the final output image frame not including the page displacement or element position change corresponding to the user operation (e.g., the first operation). In the page display control method provided in the above embodiments of this application, even if no input event (e.g., a first displacement event) is received before the start time of the current VSYNC cycle, that is, even if the time when the input event is received is later than the start time of the current VSYNC cycle, as long as the time when the input event is received is not later than a certain moment (e.g., the third moment, which may be the latest moment when UI drawing operations need to be started), normal UI drawing operations can be performed on the input event within the current VSYNC cycle. This can minimize the stuttering caused by UI empty drawing and ensure smooth screen display.

[0013] In one possible implementation, the swipe operation is a touch swipe operation on the page. Before receiving the first displacement event at the first moment, the method further includes: displaying the page of the first application; and generating the first displacement event in response to the touch swipe operation on the page.

[0014] For example, the touch swipe operation is either a user quickly swiping their finger across the screen or a user continuously swiping their finger across the screen so that the view content follows the finger's movement.

[0015] In one possible implementation, the duration between the third and second moments is determined based on the time required to perform the UI drawing operation. For example, the duration between the third and fourth moments is equal to the time required to perform the UI drawing operation.

[0016] Based on this scheme, the third moment can be determined according to the time required to perform the UI drawing operation. This helps to ensure that the UI drawing operation is completed before the next first vertical synchronization signal arrives, so that subsequent graphics services can be executed when the next first vertical synchronization signal arrives, avoiding frame dropping issues.

[0017] Optionally, the time required to perform the UI drawing operation can be determined based on the drawing instruction corresponding to the first displacement event. For example, the time required to perform the UI drawing operation is the same as the time required to execute the drawing instruction corresponding to the first displacement event.

[0018] Optionally, the duration required to perform UI drawing operations can be determined based on the time consumed by performing UI drawing operations on historical frames. For example, the average time consumed by performing UI drawing operations on historical frames of the corresponding displacement event type over a period of time can be used as the duration required to perform UI drawing operations. By determining the duration required to perform UI drawing operations based on the time consumed by performing UI drawing operations on historical events, a third time step can be set. This allows sufficient time to perform UI drawing operations on the first displacement event, which helps ensure that the UI drawing operation is completed before the next first vertical synchronization signal arrives.

[0019] In one possible implementation, before receiving the first displacement event at the first moment, the method may further include: triggering a first vertical synchronization signal at the second moment.

[0020] This method still does not require any changes to the mechanism that triggers the first vertical synchronization signal, making it easy to implement.

[0021] In one possible implementation, before performing a UI drawing operation on the first displacement event at a time earlier than the third time or at the third time, the method may further include: triggering a first vertical synchronization signal at the first time; wherein performing a UI drawing operation on the first displacement event at a time earlier than the third time or at the third time includes: performing a UI drawing operation on the first displacement event at the first time.

[0022] In one implementation, the first vertical synchronization signal is triggered at a second time according to the mechanism for triggering the first vertical synchronization signal. However, in the above embodiments of this application, if no first displacement event is received when the second time for triggering the first vertical synchronization signal arrives, the first vertical synchronization signal may not be triggered at the second time. Furthermore, if the first time the first displacement event is received is no later than the third time, the first vertical synchronization signal may be triggered at the first time.

[0023] In one possible implementation, the duration between the third and fourth moments is equal to the duration required to perform the UI drawing operation, the fourth moment is later than the second moment, and the duration between the fourth and second moments is the period of the first vertical synchronization signal.

[0024] Based on this scheme, the third moment can be determined according to the time required to perform the UI drawing operation. This helps to ensure that the UI drawing operation is completed before the next first vertical synchronization signal arrives, so that subsequent graphics services can be executed when the next first vertical synchronization signal arrives, avoiding frame dropping issues.

[0025] In one possible implementation, the method further includes: receiving the UI drawing result corresponding to the UI drawing operation at a sixth time, the sixth time being later than the fifth time, the fifth time being the time determined based on the period of the second vertical synchronization signal for triggering the second vertical synchronization signal, the second vertical synchronization signal being used to trigger the graphics service; determining the remaining duration of the rendering pipeline, the remaining duration of the rendering pipeline being the duration between the time when the processing result corresponding to the graphics service is displayed and the sixth time; and performing the graphics service on the UI drawing result at the sixth time if the remaining duration of the rendering pipeline is greater than or equal to the first duration.

[0026] The period of the second vertical sync signal can be equal to 1 / screen refresh rate, or in other words, the frequency of the second vertical sync signal can be equal to the screen refresh rate. For example, if the screen refresh rate is 120Hz, then the period of the first vertical sync signal is approximately 8.3ms.

[0027] In one embodiment, if the UI rendering result is not received before the start time (e.g., the fifth moment) of the current VSYNC cycle (i.e., the period of the second vertical synchronization signal), graphics services are not performed on the UI rendering result within the current VSYNC cycle, resulting in frame dropping. However, in the page display control method provided in the above embodiments of this application, even if the time when the UI rendering result is received is later than the start time of the current VSYNC cycle, as long as the remaining duration of the rendering pipeline meets a certain condition (i.e., greater than or equal to a first duration), graphics services can still be performed on the UI rendering result within the current VSYNC cycle, thereby avoiding frame dropping and ensuring smooth visuals.

[0028] In one possible implementation, the first duration is determined by the time required to execute the graphics service.

[0029] Based on this scheme, if the remaining duration of the rendering pipeline is greater than or equal to the time required to execute the graphics service, the graphics service can be executed on the first displacement event, thereby avoiding frame dropping issues.

[0030] In one possible implementation, the time required to execute the graphics service is the duration taken to execute the graphics service for historical frames. For example, the duration taken to execute the graphics service for historical frames can be the average duration taken to execute the graphics service for historical frames over a period of time. For any given frame, the duration taken to execute the graphics service is the difference between the end time of executing the graphics service for that frame and the start time of executing the graphics service for that frame.

[0031] In one possible implementation, the method may further include: triggering a second vertical synchronization signal at a sixth moment, the timestamp of which is the fifth moment. The timestamp of the second vertical synchronization signal being the fifth moment implies that the second vertical synchronization signal is used to trigger a graphics service for the UI rendering result corresponding to the first displacement event.

[0032] Secondly, a method for controlling interface display is provided, applied to an electronic device. The method includes: receiving, at a sixth time, a UI drawing result obtained by performing a user interface (UI) drawing operation on a first displacement event, wherein the first displacement event is a displacement event generated in response to a first operation, the first operation including a sliding operation and / or a dragging operation; the sixth time being later than the fifth time, the fifth time being a time determined based on the period of a second vertical synchronization signal for triggering the second vertical synchronization signal, the second vertical synchronization signal being used to trigger a graphics service; determining the remaining duration of the rendering pipeline, the remaining duration of the rendering pipeline being the duration between the time when the processing result corresponding to the graphics service is displayed and the sixth time; and, if the remaining duration of the rendering pipeline is greater than or equal to the first duration, performing a graphics service on the UI drawing result at the sixth time.

[0033] The first displacement event in the solution provided in the second aspect can be the same displacement event as the first displacement event in the first aspect, or they can be different displacement events. For details regarding the first operation, the first displacement event, and the UI drawing operation, please refer to the explanation in the first aspect; it will not be repeated here.

[0034] In one example, a graphics service may include graphics drawing, rendering, and compositing operations. Graphics drawing refers to translating the properties of UI elements into drawing instructions. Rendering may include translating drawing instructions into graphics processing unit (GPU) instructions, filling the graphics display buffer (used to temporarily store image data to be displayed) according to the GPU instructions, and managing dynamic effects (such as animations).

[0035] In another example, the image service includes the above-described compositing operation to obtain the final image frame used for display on the screen.

[0036] In one technique, if the UI rendering result is not received before the start time (e.g., the fifth moment) of the current VSYNC cycle (i.e., the period of the second vertical synchronization signal), graphics services are not performed on the UI rendering result within the current VSYNC cycle, resulting in frame dropping. However, in the page display control method provided in this application, even if the time when the UI rendering result is received is later than the start time of the current VSYNC cycle, as long as the remaining duration of the rendering pipeline meets a certain condition (i.e., greater than or equal to a first duration), graphics services can still be performed on the UI rendering result within the current VSYNC cycle, thereby avoiding frame dropping and ensuring smooth visuals.

[0037] In one possible implementation, the swipe operation is a touch swipe operation on the page. Before receiving the UI drawing result obtained by performing a UI drawing operation on the first displacement event at the sixth time, the method further includes: displaying the page of the first application; generating a first displacement event in response to the touch swipe operation on the page, and performing a UI drawing operation on the first displacement event to obtain a UI drawing result.

[0038] For example, a touch swipe operation is an operation in which a user quickly swipes their finger across the screen or a user continuously swipes their finger across the screen so that the view content follows the finger's movement.

[0039] In one possible implementation, the first duration is determined by the time required to execute the graphics service.

[0040] Based on this scheme, if the remaining duration of the rendering pipeline is greater than or equal to the time required to execute the graphics service, the graphics service can be executed on the first displacement event, thereby avoiding frame dropping issues.

[0041] In one possible implementation, the time required to execute the graphics service is the time consumed by executing the graphics service in the historical frames.

[0042] For example, the time taken to execute a graphics service on a historical frame can be the average time taken to execute a graphics service on historical frames over a period of time. For any given frame, the time taken to execute a graphics service is the difference between the end time of executing the graphics service on that frame and the start time of executing the graphics service on that frame.

[0043] In one possible implementation, the method may further include: triggering a second vertical synchronization signal at a sixth moment, the timestamp of which is the fifth moment. The timestamp of the second vertical synchronization signal being the fifth moment implies that the second vertical synchronization signal is used to trigger a graphics service for the UI rendering result corresponding to the first displacement event.

[0044] Thirdly, an electronic device is provided, which has the function of implementing the method as described in the first aspect or any possible implementation of the first aspect, or the electronic device has the function of implementing the method as described in the second aspect or any possible implementation of the second aspect. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0045] In one design, the electronic device includes an input module and a user interface (UI) module. The input module generates a first displacement event, which is a displacement event generated in response to a first operation, including a sliding operation and / or a dragging operation. The input module is also configured to send the first displacement event to the UI module. The UI module receives the first displacement event at a first moment. If the first moment is later than a second moment and earlier than or equal to a third moment, the UI module performs a UI drawing operation on the first displacement event at a moment earlier than the third moment or at the third moment, wherein the second moment is a moment determined based on the period of a first vertical synchronization signal for triggering the UI drawing operation, and the third moment is later than the second moment.

[0046] Optionally, the swipe operation is a touch swipe operation, and the electronic device further includes a display module; the display module is used to display a page of the first application; wherein, the input module is used to generate a first displacement event, including: in response to the touch swipe operation on the page, the input module is used to generate the first displacement event.

[0047] Optionally, the electronic device further includes a graphics service module; the graphics service module is configured to receive, at a sixth time, the UI drawing result corresponding to the UI drawing operation from the UI module; the graphics service module is further configured to determine the remaining duration of the rendering pipeline, the remaining duration of the rendering pipeline being the duration between the time when the processing result corresponding to the graphics service is triggered to be displayed on the screen and the sixth time; the graphics service module is further configured to execute the graphics service on the UI drawing result at the sixth time if the remaining duration of the rendering pipeline is greater than or equal to a first duration.

[0048] In another design, the electronic device includes a user interface (UI) module and a graphics service module. The UI module is configured to send to the graphics service module a UI rendering result obtained by performing a UI rendering operation on a first displacement event, the first displacement event being a displacement event generated in response to a first operation, the first operation including a sliding operation and / or a dragging operation; the graphics service module is configured to receive the UI rendering result from the UI module at a sixth time, the sixth time being later than a fifth time, the fifth time being a time determined based on the period of a second vertical synchronization signal used to trigger the graphics service; the graphics service module is further configured to determine the remaining duration of the rendering pipeline, the remaining duration being the duration between the time when the processing result corresponding to the graphics service is displayed and the sixth time; the graphics service module is further configured to perform the graphics service on the UI rendering result at the sixth time if the remaining duration of the rendering pipeline is greater than or equal to the first duration.

[0049] Optionally, the swipe operation is a touch swipe operation, and the electronic device further includes a display module; the display module is used to display a page of the first application; wherein, the input module is used to generate a first displacement event, including: in response to the touch swipe operation on the page, the input module is used to generate the first displacement event.

[0050] Fourthly, an electronic device is provided, comprising: a processor, a display screen, and a memory, wherein the memory and the display screen are coupled to the processor, the memory is used to store program code, the program code including instructions, and the processor reads the instructions from the memory to cause the electronic device to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof. Optionally, the memory may be coupled to the processor or may be independent of the memory.

[0051] In one possible design, the electronic device also includes a communication interface that allows the device to communicate with other devices, such as servers. For example, this communication interface could be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or related circuitry.

[0052] Fifthly, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when the computer program is run on an electronic device, causes the electronic device to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof.

[0053] Sixthly, a computer program product is provided, the computer program product comprising: a computer program or instructions, which, when executed on a computer, cause the computer to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof.

[0054] In a seventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes instructions, the at least one processor executes the method in the first aspect or any possible implementation thereof, or executes the method in the second aspect or any possible implementation thereof.

[0055] It should be noted that the technical effects of any of the designs in the second to seventh aspects mentioned above can be found in the technical effects of the corresponding designs in the first or second aspects, and will not be repeated here. Attached Figure Description

[0056] Figure 1 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application;

[0057] Figure 2 is another structural schematic diagram of the electronic device provided in an embodiment of this application;

[0058] Figure 3 is a schematic diagram of the structure of the graphics service module in the electronic device provided in the embodiment of this application;

[0059] Figure 4 is a schematic diagram of the software architecture of the electronic device provided in an embodiment of this application;

[0060] Figure 5 is a flowchart of the process from the arrival of an input event at the input module to the display of an image frame by the display module in an operating system provided in an embodiment of this application;

[0061] Figure 6 is a schematic diagram of another software architecture of the electronic device provided in an embodiment of this application;

[0062] Figure 7 is a flowchart of the process from the arrival of an input event at the input module to the display of an image frame by the display module in another operating system provided in this application embodiment;

[0063] Figure 8A is a schematic diagram of the normal display image based on the user's swiping operation provided in an embodiment of this application;

[0064] Figure 8B is a schematic diagram of the screen stuttering phenomenon based on the user's swiping operation provided in an embodiment of this application;

[0065] Figure 9 is a schematic flowchart of the page display control method provided in an embodiment of this application;

[0066] Figure 10 is a schematic diagram illustrating a specific example of the first operation provided in an embodiment of this application;

[0067] Figure 11 is a timing diagram of UI drawing performed according to the page display control method provided in the embodiments of this application;

[0068] Figure 12 is another timing diagram of UI drawing provided in an embodiment of this application;

[0069] Figure 13 is a schematic flowchart of a specific example of the page display control method provided in the embodiments of this application;

[0070] Figure 14 is an interactive schematic diagram of the page display control method provided in an embodiment of this application;

[0071] Figure 15 is a schematic flowchart of another page display control method provided in an embodiment of this application;

[0072] Figure 16 is a timing diagram of the graphic drawing process according to the page display control method provided in the embodiments of this application;

[0073] Figure 17 is a timing diagram of the graphic drawing process according to the page display control method provided in the embodiments of this application;

[0074] Figure 18 is a schematic flowchart of a specific example of the page display control method provided in the embodiments of this application;

[0075] Figure 19 is an interactive schematic diagram of the page display control method provided in an embodiment of this application;

[0076] Figure 20 is another structural schematic diagram of the electronic device provided in an embodiment of this application. Detailed Implementation

[0077] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0078] In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. In the description of this application, "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. "At least one" means one or more, and "more" means two or more. The terms "first" and "second," etc., in the specification and claims of this application are used to distinguish different objects or to distinguish different treatments of the same object, not to describe a specific order of objects. For example, "first vertical synchronization signal" and "second vertical synchronization signal," etc., are used to distinguish different vertical synchronization signals, not to describe a specific order of vertical synchronization signals. Those skilled in the art will understand that the words "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply difference.

[0079] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0080] It is understood that in this application, descriptions such as "under the circumstances," "if," "when," and "if..." can be used interchangeably. Furthermore, these descriptions all refer to the corresponding actions that will be taken under certain objective circumstances, and are not time-limited, nor do they require any judgment action during implementation, nor do they imply any other limitations.

[0081] The technical solutions provided in this application can be applied to electronic devices including displays. Exemplary examples include mobile phones, tablets, desktop computers, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, or smart city devices, etc. This application does not impose any special limitations on the specific type of electronic device.

[0082] The hardware structure of an electronic device 100 applicable to this application is described below with reference to Figure 1.

[0083] Referring to Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 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, and a display screen 170, etc.

[0084] The processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), a controller, a digital signal processor (DSP), a baseband processor, etc. These different processing units may be independent devices or integrated into one or more processors.

[0085] The processor 110 can generate operation control signals based on the instruction opcode and timing signals to control the instruction fetching and execution.

[0086] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. This memory can store instructions or data that the processor 110 has used or that are used frequently. If the processor 110 needs to use the instruction or data, it can directly retrieve it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0087] In some embodiments, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal serial bus (USB) interface, etc. The processor 110 can connect to modules such as wireless communication modules and displays through at least one of these interfaces.

[0088] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0089] USB connector 130 is a USB standard-compliant interface used to connect electronic device 100 and peripheral devices. Charging management module 140 receives charging input from a charger, which can be either a wireless or wired charger. Power management module 141 connects to battery 142, and charging management module 140 connects to processor 110. Power management module 141 receives input from battery 142 and / or charging management module 140 to power processor 110, internal memory 121, display screen 170, and wireless communication module 160, etc. In some embodiments, power management module 141 and charging management module 140 may also be housed in the same device.

[0090] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0091] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the same device as at least some modules of the processor 110.

[0092] The wireless communication module 160 can provide wireless communication solutions for use on electronic devices 100, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), and near field communication (NFC) technologies.

[0093] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other electronic devices via wireless communication technology. This wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), etc.

[0094] Electronic device 100 can implement display functions through GPU, display screen 170, and application processor. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0095] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions.

[0096] Internal memory 121 can be used to store computer executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (e.g., games or animations), etc. The data storage area may store data created during the use of electronic device 100 (e.g., parsed data of UI page files, etc.). In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional methods or data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0097] The display screen 170 is used to display images, videos, etc. For example, in this embodiment, the display screen can display image frames. The display screen 170 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 170. In some embodiments, the display screen may be a foldable or rollable display screen.

[0098] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also include more or fewer components than those in FIG. 1, or combine some components, or split some components, or have different component arrangements. The components in FIG. 1 may be implemented in hardware, software, or a combination of software and hardware.

[0099] Figure 2 is another structural schematic diagram of the electronic device provided in an embodiment of this application. The basic process of displaying images based on user operation is described below with reference to Figure 2.

[0100] Referring to Figure 2, the electronic device may include an input device 210, a driver module 220, an input module 230, a UI module 240, a graphics service module 250, and a display module 260.

[0101] Input device 210 is a device in an electronic device that enables human-computer interaction. Input device 210 can receive user operations, such as the first operation described below. For example, input device 210 can be a mouse, keyboard, touch panel (TP), stylus (e.g., pen), etc.

[0102] The driver module 220 can acquire raw data from the input device 210 (i.e., data information corresponding to user operations), perform signal processing on the raw data to generate raw input events, and report the raw input events to the input module 230. For example, the driver module 220 can read raw data such as coordinates, pressure, and contact identifier (ID) from the TP, and perform filtering (denoising), coordinate calibration, and palm rejection on the raw data.

[0103] After receiving the raw input event, the input module 230 can preprocess the raw input event (e.g., debouncing, coordinate transformation, gesture recognition, etc.) and generate a standard input event (hereinafter referred to as "input event," such as the first displacement event mentioned below) based on the preprocessed data. Then, the input module 230 performs event dispatching on the generated input event. Event dispatching refers to the process by which the system transmits the input event from the hardware layer to the target application or target control.

[0104] After receiving an input event, the target application or target control calls the UI module 240 to perform UI drawing operations. After the UI module completes the UI drawing operations, it passes the corresponding UI drawing results to the graphics service module 250.

[0105] The first operating system (e.g., HarmonyOS) In a graphical environment, UI drawing operations are used to update the properties of the application's UI controls (such as shape, color, and text) and synchronize them to the graphics service. In some embodiments, UI drawing may include building an element tree, building a render tree, and calculating the layout to obtain the geometric information (such as position and size) and styles (such as color and font) after layout calculation. The process of calculating the layout involves using various layout algorithms to calculate the actual size and position of each render node in the render tree in relative space.

[0106] In a second operating system (e.g., Android) In a rendering application, UI drawing operations are used to update the properties of the application's UI controls (such as shape, color, and text) and convert the properties of UI elements into drawing instructions that are synchronized to the rendering thread. The rendering thread then converts the drawing instructions into image information.

[0107] After receiving the UI drawing result, the graphics service module 250 performs graphics services on the UI drawing result and passes the obtained image frame to the display module 260.

[0108] In the first type of operating system, image services can include graphics drawing, rendering, and compositing operations. Graphics drawing refers to converting the attributes of UI elements into drawing instructions. Rendering can include converting drawing instructions into graphics processing unit (GPU) instructions, filling the graphics display buffer (used to temporarily store image data to be displayed) according to the content indicated by the GPU instructions, and managing dynamic effects (such as animations). GPU instructions can be understood as some graphics application programming interfaces (APIs).

[0109] A set of drawing commands from a programming interface (API) (such as Vulkan or the Open Graphics Library, OpenGL). Compositing is used to overlay the rendered layers to obtain the final image frame used for display on the screen.

[0110] In the second type of operating system, the image service includes the above-described compositing operation to obtain the final image frame for display on the screen.

[0111] The display module 260 can receive and display image frames. After the display module 260 displays the image frame, the image displayed by the display module 260 can be perceived by the human eye.

[0112] In some embodiments, the display module 260 may include a touch panel. In other embodiments, the touch panel may be independent of the display module 260.

[0113] In the processing flow shown in Figure 2, the UI drawing operation performed by the UI module 240 is triggered by the first vertical synchronization signal. Specifically, in one embodiment, if the UI module 240 receives an input event before the arrival of the first vertical synchronization signal, it can perform the UI drawing operation when the first vertical synchronization signal arrives.

[0114] The graphics service performed by the graphics service module 250 is triggered by the second vertical synchronization signal. Specifically, in this embodiment, if the graphics service module 250 receives the UI rendering result before the arrival of the second vertical synchronization signal, it can perform the graphics service when the second vertical synchronization signal arrives.

[0115] The operation of displaying an image frame performed by the display module 260 is triggered by a third vertical synchronization signal. Specifically, if the display module 260 receives an image frame before the arrival of the third vertical synchronization signal, it can display the image frame upon the arrival of the third vertical synchronization signal.

[0116] The first, second, and third vertical sync signals have the same period. The period of the third vertical sync signal is equal to 1 / screen refresh rate. For example, if the screen refresh rate is 120Hz, then the periods of the first, second, and third vertical sync signals are all approximately 8.3ms.

[0117] The first, second, and third vertical synchronization signals can all be referred to as VSYNC signals. The third vertical synchronization signal is a hardware VSYNC signal, while the first and second vertical synchronization signals can be software VSYNC signals. Hardware VSYNC signals can be understood as signals emitted from the display screen of an electronic device, while software VSYNC signals can be understood as signals generated internally by a computational model within the electronic device.

[0118] In some embodiments, there is a time offset between the first vertical synchronization signal and the second vertical synchronization signal; for example, the first vertical synchronization signal may be 1 ms ahead of the second vertical synchronization signal. In other embodiments, there is no time offset between the first vertical synchronization signal and the second vertical synchronization signal. For simplicity and ease of understanding, the embodiments in this application describe the relevant schemes using the example of no time offset between the first vertical synchronization signal and the second vertical synchronization signal.

[0119] There may or may not be a time offset between the first or second vertical synchronization signal and the third vertical synchronization signal; this application embodiment does not limit this. In some embodiments, for a certain input event, if the trigger time of the third vertical synchronization signal that triggers the UI module 240 to perform UI drawing operations is k1, then the earliest image frame corresponding to the input event can be displayed based on the third vertical synchronization signal triggered at time k2, where k2-k1 = Y1. That is, the time offset between the first and third vertical synchronization signals corresponding to the same input event is Y1. For example, in a first operating system, Y1 can be 20ms. In a second operating system, Y1 can be 16.6ms.

[0120] In the first operating system, referring to the graphics service module 250 shown in Figure 3, the graphics service performed by the graphics service module 250 includes not only graphics drawing and rendering operations, but also compositing operations. The second vertical synchronization signal only triggers graphics drawing and rendering operations; the compositing operation is not triggered by the second vertical synchronization signal. In some embodiments, for a certain input event, the compositing operation can begin as early as time r2 after the triggering time r1 of the second vertical synchronization signal that triggers the graphics service. For example, assuming the period of the second vertical synchronization is 8.3ms, then r2-r1 = 11.1ms. The duration between r2 and r1 can be preset, and this embodiment does not specifically limit this value.

[0121] In some embodiments, the first vertical sync signal may also be referred to as VSYNC-UI or VSYNC-APP. The second vertical sync signal may also be referred to as VSYNC-display.

[0122] The software architecture of the electronic device according to the embodiments of this application will be described below, and based on the software architecture of the electronic device, the process of triggering the display of the image based on the first vertical synchronization signal and the second vertical synchronization signal in this embodiment will be described in detail.

[0123] Figure 4 illustrates the software architecture of the first operating system described above. Referring to Figure 4, the first operating system comprises four layers, from bottom to top: the driver layer, the service layer, the framework layer, and the application layer. Figure 4 only shows the content relevant to the solution provided in this application for each layer; for content not shown in Figure 4, please refer to related technologies.

[0124] The application layer includes system applications and third-party applications (or extended applications). For example, the application layer can include applications for cameras, photo galleries, graphic design, animation design, music, video, and SMS. In the first type of operating system, applications are built upon atomic capabilities (AA) and feature capabilities (FA).

[0125] The input device driver submodule in the driver layer can collect raw data from the input devices (e.g., mouse, keyboard, TP, etc.) shown in the hardware layer, perform signal processing on the raw data to generate raw input events, and report the raw input events to the input module. For example, the input device driver submodule can be the driver module shown in Figure 2.

[0126] The input module includes an input event dispatch submodule in the service layer and an input event application-side callback submodule in the framework layer. The input event dispatch submodule converts the raw input event into a standard input event (hereinafter referred to as "input event") and determines the target application corresponding to the input event. The input event application-side callback submodule receives the input event and dispatches it to the window module.

[0127] The UI module includes UI controls in the framework layer and a UI drawing submodule. The UI drawing submodule can perform UI drawing operations on UI controls. For details on UI drawing operations, please refer to the description of UI drawing operations in the first operating system above; it will not be repeated here.

[0128] The window module includes a focus management submodule and a window VSYNC dispatch submodule within the framework layer. The focus management submodule manages the switching of the focus window and is responsible for dispatching input events to the focus window. The window VSYNC dispatch submodule is used to dispatch the first vertical synchronization signal to the UI module.

[0129] The image service module includes the VSYNC management submodule, graphics drawing submodule, rendering submodule, and compositing submodule in the service layer. The VSYNC management submodule is responsible for generating and distributing the first and second vertical synchronization signals. The graphics drawing submodule performs graphics drawing operations. The rendering submodule performs rendering operations. The compositing submodule performs compositing operations. For details on graphics drawing, rendering, and compositing operations, please refer to the previous description of the relevant operations in the first operating system; they will not be repeated here.

[0130] The display module includes an upper screen submodule in the driver layer, a liquid crystal display (LCD) driver submodule in the driver layer, and an LCD in the hardware layer. The upper screen submodule transmits image information to the LCD driver submodule through a display interface. The LCD driver submodule receives the image information sent by the upper screen submodule, and the LCD displays image frames based on the image information. After the LCD displays the image frames, the image displayed on the LCD can be perceived by the human eye.

[0131] Figure 5 shows a flowchart of the process from the arrival of an input event at the input module to the display module displaying an image frame in the first operating system described above.

[0132] It should be noted that in the relevant figures of this application (e.g., Figures 5 and 7), VSYNC N, such as VSYNC 1, VSYNC 2, and VSYNC 3, are all VSYNC signals, which can be either the first vertical synchronization signal or the second vertical synchronization signal. The VSYNC signal triggered for display in the relevant figures of this application (e.g., Figures 5, 7, 16, and 17) is the third vertical synchronization signal described above. Furthermore, in this application, the time offset between the first and third vertical synchronization signals corresponding to the same input event is Y1, and the time offset between the first vertical synchronization signal corresponding to the same input event and the moment of synthesis is Y2. For example, Y1 = 20ms, Y2 = 11.1ms. Or, Y1 = 11.1ms.

[0133] Figure 5 shows five input events, represented by the five boxes corresponding to the input modules shown in the figure. For each input event, the input module sends it to the UI module, which then performs UI drawing operations. For input event 1, since input event 1 has already reached the UI module when VSYNC 2 arrives, the UI module can perform UI drawing operations based on the triggering of VSYNC 2. Input events 3 through 5 are similar to input event 1. However, for input event 2, since input event 2 has not yet reached the UI module when VSYNC 3 arrives, the UI module can only perform empty UI drawing when VSYNC 3 arrives. Empty UI drawing refers to the phenomenon where UI drawing operations are performed but no visible pixel changes are actually generated. Empty UI drawing will result in no change in displacement between the image frames corresponding to input event 1 and input event 2 during the display phase; there may only be changes in animation. From the user's perspective, this is equivalent to frame dropping. The graphics drawing and rendering corresponding to input events 1 through 3 are triggered by VSYNC 3, VSYNC 4, and VSYNC 5, respectively. For input event 4, since the UI drawing operation has not yet been completed when VSYNC 6 arrives, the UI drawing results corresponding to input events 4 and 5 will be merged together as the input for graphics drawing, and the graphics drawing and rendering operations will be performed before final display. It can be seen that the electronic device will not display the image frame corresponding to input event 4; that is, frame dropping occurs.

[0134] Figure 6 illustrates the layered architecture of the second operating system described above. Figure 6 only shows the content relevant to the solution provided in this application within each layer; for content not shown in Figure 6, please refer to related technologies.

[0135] The software architecture shown in Figure 6 differs from the UI module and graphics service module in the software architecture shown in Figure 4. Referring to Figure 6, the UI module in the second operating system can include UI controls, a drawing submodule, and a rendering submodule. The operations performed by the drawing and rendering submodules can be called UI drawing operations. The drawing submodule updates the properties of the application's UI controls (e.g., shape, color, and text) and converts the UI element properties into drawing instructions, which are then synchronized to the rendering submodule. The rendering submodule converts the drawing instructions into image information. The graphics service module in the second operating system can include a VSYNC management submodule and a compositing submodule. The VSYNC management submodule is responsible for generating and distributing the first and second vertical synchronization signals. The compositing submodule performs compositing operations. For details on compositing operations, please refer to the previous description of related operations in the second operating system; further details will not be repeated here.

[0136] For other aspects of the software architecture shown in Figure 6, please refer to the software architecture shown in Figure 4; they will not be elaborated upon here.

[0137] Figure 7 shows a flowchart of the process from the arrival of an input event at the input module to the display module displaying an image frame in the second operating system.

[0138] Referring to Figure 7, five input events are shown, corresponding to the five boxes representing the input modules. For each input event, the input module sends it to the UI module, which then performs UI drawing operations. For input event 1, since it has already reached the UI module when VSYNC 2 arrives, the UI module can perform UI drawing operations based on the triggering of VSYNC 2. Input events 3 through 5 are similar to input event 1. However, for input event 2, since it has not yet reached the UI module when VSYNC 3 arrives, the UI module can only perform empty UI drawing. Empty UI drawing will result in no displacement or elemental changes in the image frames corresponding to input event 1 and input event 2 during the display phase; there may only be changes in animation. From the user's perspective, this is equivalent to frame dropping. The UI drawing corresponding to input events 1 through 3 is triggered by VSYNC 3, VSYNC 4, and VSYNC 5, respectively. For input event 4, since the UI rendering operation was not yet complete when VSYNC 6 arrived, the UI rendering results corresponding to input event 4 and input event 5 were merged together, a compositing operation was performed, and finally, the result was displayed. It can be seen that the electronic device will not display the image frame corresponding to input event 4; that is, frame dropping occurred.

[0139] In summary, the process from when an electronic device detects a user's interaction to when it displays the corresponding image frame involves multiple steps. Any delay in any step (such as a long processing time for the input module and / or UI module) can lead to empty drawing or frame drops, resulting in an unsmooth display and negatively impacting the user experience.

[0140] For example, Figure 8A shows an example of a normally displayed image based on a user's swipe operation, while Figure 8B shows an example of a screen displaying stuttering effect based on a user's swipe operation.

[0141] Referring to Figure 8A, three consecutive frames are displayed at times t11, t12, and t13, with the current frame being interface 810. When the user swipes vertically upwards on the screen, normally, in response to the user's action, the electronic device will sequentially display interfaces 820 and 830. However, if frame dropping occurs, as shown in Figure 8B, the electronic device will still display interface 810 when it should be displaying interface 820. Therefore, the user's visual experience is that the electronic device's display page jumps directly from interface 810 to interface 830, resulting in an unsmooth display.

[0142] To address the issue of unsmooth display in current technologies, this application provides two page display control methods. The first method will be described below.

[0143] Figure 9 is a schematic flowchart of a page display control method provided in an embodiment of this application. The method 900 may include steps S910 and S920, which are described below.

[0144] S910 receives the first displacement event at the first moment.

[0145] Receiving the first displacement event at the first moment can mean that the reception of the first displacement event is completed at the first moment. In some embodiments, the first displacement event is an input move event. In some embodiments, receiving the first displacement event at the first moment can specifically mean that the first displacement event arrives at the input move event queue at the first moment. The input move event queue is used to buffer arriving input move events.

[0146] The first displacement event is a displacement event generated in response to the first operation. In other words, after the electronic device detects the first operation, it can generate a first displacement event. The first displacement event can be any displacement event.

[0147] The first operation can be any user action that causes the page or element (such as a control or icon) to shift (or move). The first operation can include swiping and / or dragging.

[0148] For example, a swipe operation can be any of the following: a user quickly swiping their finger on the screen, a user continuously swiping their finger on the screen so that the view content follows the finger, a mouse scrolling one notch, a mouse scrolling quickly and then stopping, a mouse scrolling up and down, a user holding down shift and scrolling the mouse wheel up and down at the same time, a stylus (or pen, etc.) tip quickly swiping on the screen, or a pen tip swiping on the screen.

[0149] For example, a drag-and-drop operation can be any of the following: a user long-presses an element and moves the element, a user presses the left mouse button and moves the mouse to move the element, or a pen tip touches the screen for a long time and then slides it.

[0150] For example, the first operation could be an interactive behavior used to browse content, switch navigation, or trigger functions. Alternatively, the first operation could be an operation that changes all content on the display screen. For instance, the first operation could include a user sliding their finger or a pointing device (such as a mouse, touchscreen, stylus, etc.) across the screen in a horizontal or vertical direction. Another example is a user looking at the display screen and moving their gaze. Yet another example is a gesture that causes the page to slide.

[0151] For specific examples, the first operation or swipe operation could be a vertical swipe on the settings interface as shown in Figure 8A, a vertical swipe on the screen when browsing a social application as shown in Figure 10(a), a vertical swipe on the screen when browsing a document interface as shown in Figure 10(b), a horizontal swipe on the screen when switching desktops as shown in Figure 10(c), or a horizontal swipe on the screen when browsing a document interface as shown in Figure 10(d). The first operation or drag operation could be a dragging of the progress bar when watching a video as shown in Figure 10(e), or a dragging of an application icon as shown in Figure 10(f).

[0152] In some embodiments, the first displacement event may be a swipe event, a scroll / pan event, or a drag event.

[0153] In some embodiments, the swipe operation or the first operation may be a touch swipe operation. Accordingly, prior to S910, the method may further include: displaying a page of the first application; and generating a first displacement event in response to a touch swipe operation on the page of the first application.

[0154] For example, the page of the first application can be the page shown in Figure 10(a) or Figure 10(b), and correspondingly, the touch swipe operation can be the up and down swipe operation on the screen shown in Figure 10(a) or Figure 10(b).

[0155] S920, if the first moment is later than the second moment, and the first moment is earlier than or equal to (i.e., not later than) the third moment, perform UI drawing operation on the first displacement event at a moment earlier than the third moment or at the third moment.

[0156] The second moment is the moment determined based on the period of the first vertical synchronization signal to trigger the first vertical synchronization signal, which is used to trigger the UI drawing operation. The third moment is later than the second moment.

[0157] It should be noted that the electronic device may or may not trigger the first vertical synchronization signal at the second moment. For example, the electronic device may trigger the first vertical synchronization signal by distributing the first vertical synchronization signal to the UI control, as shown in Figure 4 or Figure 6, through the window VSYNC distribution submodule.

[0158] For example, Figure 11 shows a timing diagram of UI drawing processing according to the page display control method provided in the embodiments of this application. Referring to Figure 11, VSYNC1 to VSYNC5 shown in Figure 11 are all first vertical synchronization signals. The UI module receives the first displacement event at t1 (i.e., the first moment), which is later than t2 (i.e., the second moment) but not later than t3 (i.e., the third moment). Therefore, the UI module can start performing UI drawing operations on the first displacement event at t2. It should be noted that the UI module can also start performing UI drawing operations on the first displacement event at any time between t2 and t3, or the UI module can start performing UI drawing operations on the first displacement event at t3.

[0159] In some embodiments, the first time point being earlier than or equal to the third time point can also be replaced by the duration between the first time point and the fourth time point being greater than or equal to the first duration. Here, the fourth time point is later than the second time point, and the duration between the fourth time point and the second time point is the period of the first vertical synchronization signal. For example, the fourth time point is t4 as shown in Figure 11.

[0160] In one implementation, if no input event (e.g., a first displacement event) is received before the start of the current VSYNC cycle (e.g., the second moment), UI empty drawing can be performed. However, this will result in the final output image frame not including the page displacement or element position change corresponding to the user operation (e.g., the first operation). In the page display control method provided in the above embodiments of this application, even if no input event (e.g., a first displacement event) is received before the start of the current VSYNC cycle—that is, even if the time when the input event is received is later than the start of the current VSYNC cycle—as long as the time when the input event is received is not later than a certain moment (e.g., the third moment, which could be the latest moment when UI drawing operations need to be started), normal UI drawing operations can be performed on the input event within the current VSYNC cycle. This can minimize the stuttering caused by UI empty drawing and ensure smooth screen display.

[0161] In some embodiments, the duration between the third and fourth moments is determined based on the duration required to perform the UI drawing operation.

[0162] For example, the time required to perform the UI drawing operation is the first time mentioned above.

[0163] For example, the duration between the third and fourth moments is equal to the duration required to perform the UI drawing operation.

[0164] Based on this scheme, the third moment can be determined according to the time required to perform UI drawing operations. This helps to ensure that the UI drawing operation is completed before the next first vertical synchronization signal (e.g., VSYNC 4 in Figure 11) arrives, so that subsequent graphics services can be executed when the next first vertical synchronization signal arrives, avoiding frame dropping issues.

[0165] In one possible implementation, the time required to perform the UI drawing operation can be determined based on the drawing instruction corresponding to the first displacement event.

[0166] For example, the time required to perform a UI drawing operation is the same as the time required to execute the drawing instruction corresponding to the first displacement event. Assuming the first displacement event corresponds to M drawing instructions, and the time to complete each drawing instruction is k ms, then the time required to perform the UI drawing operation is M * k ms. For instance, if M can be 50 and k can be 2, then the time required to perform the UI drawing operation is 100ms.

[0167] In another possible implementation, the time required to perform UI drawing operations can be determined based on the time consumed by performing UI drawing operations on historical frames.

[0168] For example, the average time taken to perform UI drawing operations on historical frames corresponding to displacement events over a period of time can be used as the time required to perform UI drawing operations. For instance, if UI drawing operations were performed on 100 displacement events in a recent period, and the average time taken to perform UI drawing operations on these 100 displacement events is 3ms, then the time required to perform UI drawing operations can be 3ms.

[0169] By determining the time required to perform UI drawing operations based on the duration of historical events, a third time point can be set. This allows sufficient time to perform UI drawing operations on the first displacement event, ensuring that the UI drawing operation is completed before the next first vertical synchronization signal arrives.

[0170] In some embodiments, whether a first displacement event is received can be detected at a second time. If the first displacement event is not received at the second time, the first vertical synchronization signal is not triggered at the second time. Further, the first vertical synchronization signal can be triggered at a first time or a third time.

[0171] For example, referring to the timing diagram of the UI rendering process shown in Figure 12, VSYNC1 to VSYNC5 are all first vertical synchronization signals, and t2 is the time determined according to the period T11 of the first vertical synchronization to trigger VSYNC 3. Since no displacement event (e.g., the first displacement event) is detected at t2, VSYNC 3 is not triggered at t2. A displacement event (e.g., the first displacement event) is received at t1 (i.e., the first moment), and t1 is no later than t3 (i.e., the third moment), so VSYNC 3 can be triggered at t1, and UI rendering operations can be performed based on VSYNC 3.

[0172] In one embodiment, the first vertical synchronization signal is triggered at a second time according to the mechanism for triggering the first vertical synchronization signal. However, in the embodiments described above in this application, when the second time for triggering the first vertical synchronization signal arrives, it can first be detected whether a first displacement event has been received. If no first displacement event has been received, the first vertical synchronization signal can be not triggered at the second time. Further, if the first time the first displacement event is received is no later than a third time, the first vertical synchronization signal can be triggered at either the first or third time.

[0173] In other embodiments, the first vertical synchronization signal can be triggered at a second time. Furthermore, the reception of a first displacement event can be detected at the second time. If the first displacement event is not received at the second time, UI drawing operations are temporarily suspended. Upon receiving the first displacement event, the timing of its reception determines whether to perform UI drawing operations on the first displacement event. If the first time the first displacement event is received is no later than the third time, UI drawing operations can be performed on the first displacement event. This scheme will be further explained below with reference to Figure 13.

[0174] Figure 13 shows a schematic flowchart of a specific example of a page display control method based on method 900 shown in Figure 9. Method 1300 may include S1301 to S1306. Concepts appearing in method 1300 that are the same as those in method 900 (e.g., first displacement event) can be referred to the description in method 900.

[0175] S1301 receives the first vertical synchronization signal at the second moment.

[0176] S1302, detect whether the first displacement event is received at the second moment.

[0177] If the first displacement event is not received at the second time, then execute S1303; if the first displacement event is received at the second time, then execute S1306.

[0178] S1303, start the timer.

[0179] The timer duration can be the time between the second and third time points.

[0180] S1304, detect whether the first displacement event has been received.

[0181] If the first displacement event is received, execute S1305; otherwise, continue executing S1304.

[0182] S1305, determine if the timer has expired.

[0183] If the timer has not expired, then S1106 is executed. In some embodiments, if the timer expires, then S1307 is executed.

[0184] S1306, Perform UI drawing operations on the first displacement event.

[0185] S1107, when the next first vertical synchronization channel arrives, perform UI drawing operation on the first displacement event.

[0186] According to the page display control method provided in this application, when the first vertical synchronization signal arrives, it can detect whether a first displacement event has been received. If the first displacement event is not received, it can continue to detect whether the first displacement event has been received for a period of time. If the first displacement event is received within this period, UI drawing operations can be performed on the first displacement event. Based on the above scheme, normal UI drawing operations can be performed on the first displacement event within the current VSYNC cycle, thereby ensuring smooth screen display as much as possible. Furthermore, this method does not require changes to the mechanism that triggers the first vertical synchronization signal, making it easy to implement.

[0187] Figure 14 is an interactive schematic diagram of a page display control method provided in an embodiment of this application. The method 1400 may include steps S1405 to S1408. Optionally, the method may further include one or more steps S1401 to S1404.

[0188] S1401, the display module displays the page of the first application.

[0189] S1402, the display module receives the first operation applied to the page of the first application.

[0190] For example, the touch panel in the display module can receive a first operation applied to the page of the first application. It should be noted that this illustration only uses the deployment of the touch panel in the display module as an example, and this application does not exclude the possibility of the touch panel being deployed independently of the display module.

[0191] In one example, the first operation is a touch swipe or drag operation performed on the page of the first application. The first application can be any application, and the page of the first application can be any page of the first application. For example, the page of the first application can be any page in Figure 10, and correspondingly, the touch swipe operation can be an operation performed on any page in Figure 10.

[0192] S1403, the display module sends the data information corresponding to the first operation to the driver module. Correspondingly, the driver module receives this data information from the display module.

[0193] For example, this data information may include coordinates, pressure, contact identifier (ID), etc.

[0194] S1404, the driver module generates the original input event based on this data information.

[0195] S1405, the driver module sends a raw input event to the input module. Correspondingly, the input module receives the raw input event.

[0196] S1406, the input module generates the first displacement event.

[0197] In response to the first operation described above, the input module generates a first displacement event. For example, the input module can generate a first displacement event based on the original input event.

[0198] S1407, the input module sends a first displacement event to the UI module. Correspondingly, the UI module receives the first displacement event at the first moment.

[0199] Regarding the first displacement event, please refer to the description in Method 900, which will not be repeated here. Additionally, for the operations performed by the display module, drive module, and input module, please refer to the descriptions of Figures 2, 4, or 6 above.

[0200] S1408, if the first moment is later than the second moment, and the first moment is earlier than or equal to (i.e., not later than) the third moment, the UI module performs a user interface UI drawing operation on the first displacement event at a moment earlier than the third moment or at the third moment.

[0201] For details on the operations performed by each module in method 1400, please refer to method 900. This will not be repeated in method 1400.

[0202] In summary, according to the first page display control method provided in the embodiments of this application, even if the displacement event misses the moment for triggering the first vertical synchronization channel, normal UI drawing operations can still be performed on the displacement event within the current cycle. This can avoid the stuttering phenomenon caused by the time jitter of the input module, thereby improving the user experience.

[0203] The second page display control method provided in the embodiments of this application will be described below.

[0204] Figure 15 is a schematic flowchart of a page display control method provided in an embodiment of this application. The method 1500 may include steps S1510 to S1530, which are described below.

[0205] S1510, at the sixth moment, receives the UI drawing result obtained by performing UI drawing operation on the first displacement event.

[0206] The first displacement event is a displacement event generated in response to the first operation. For details on the first displacement event and the first operation, please refer to the previous description; they will not be repeated here. It should be noted that the first displacement event here and the first displacement event mentioned earlier can be the same displacement event or different displacement events.

[0207] The sixth moment is later than the fifth moment. The fifth moment is the time determined based on the period of the second vertical synchronization signal to trigger the second vertical synchronization signal, which is used to trigger the graphics service. It should be noted that in this embodiment, the second vertical synchronization signal is not triggered at the fifth moment; the fifth moment is only the theoretical moment when the second vertical synchronization signal will be triggered.

[0208] For example, Figures 16 and 17 show an example of the timing diagrams for UI rendering and graphics service processing, respectively. Referring to Figures 16 and 17, VSYNC 1 to VSYNC 7 are either the first vertical synchronization signal or the second vertical synchronization signal. Figure 16 corresponds to the first operating system, and Figure 17 corresponds to the second operating system. Event H is the first displacement event. The graphics service module receives the first displacement event at t6 (i.e., the sixth time), which is later than t5 (i.e., the fifth time).

[0209] S1520, determine the remaining time of the rendering pipeline.

[0210] The remaining duration of the rendering pipeline is the time between the moment when the processing result corresponding to the graphics service is displayed on the screen and the sixth moment.

[0211] For example, in Figures 16 and 17, the remaining rendering pipeline duration T1 = t7 - t6, where t7 is the moment used to trigger the display of the corresponding processing result of the graphics service. It should be understood that the unlabeled VSYNC in Figures 16 and 17 is the VSYNC used to trigger the display.

[0212] S1530, if the remaining duration of the rendering pipeline is greater than or equal to the first duration, perform a graphics service on the UI rendering results at the sixth time step.

[0213] It should be noted that the first duration here is different from the first duration in method 900 mentioned above.

[0214] For example, in Figure 16, if T1 ≥ the first duration, then at t6, a graphics service can be performed on the UI drawing result corresponding to the first displacement event. For example, graphics drawing, rendering and compositing operations can be performed in the first operating system, or compositing operations can be performed in the second operating system.

[0215] In some embodiments, a second vertical synchronization signal can be triggered at a sixth time, and the timestamp of the second vertical synchronization signal is a fifth time. The timestamp of the second vertical synchronization signal being a fifth time means that the second vertical synchronization signal is used to trigger a graphics service for the UI drawing result corresponding to the first displacement event. For example, in Figures 16 and 17, a VSYNC 4 event with a timestamp of t5 can be triggered at t6.

[0216] In one implementation, if the UI rendering result is not received before the start of the current VSYNC cycle (e.g., the fifth moment), graphics services are not performed on the UI rendering result within the current VSYNC cycle, resulting in frame dropping. However, in the page display control method provided in the above embodiments of this application, even if the time when the UI rendering result is received is later than the start of the current VSYNC cycle, as long as the remaining duration of the rendering pipeline meets a certain condition (i.e., greater than or equal to a first duration), graphics services can still be performed on the UI rendering result within the current VSYNC cycle, thereby avoiding frame dropping and ensuring smooth screen display.

[0217] In some embodiments, the first duration is equal to the time required to execute the graphics service.

[0218] Based on this scheme, if the remaining duration of the rendering pipeline is greater than or equal to the time required to execute the graphics service, the graphics service can be executed on the first displacement event, thereby avoiding frame dropping issues.

[0219] In one possible implementation, the time required to execute a graphics service is determined based on the time taken to execute graphics services in historical frames.

[0220] For example, the time taken to execute graphics services for historical frames can be the average time taken to execute graphics services for historical frames over a period of time. For instance, if the average time taken to execute graphics services for historical frames over a period of time is 4ms, then the first duration can be set to 4ms.

[0221] For example, for any given frame, the time taken to execute the graphics service is the difference between the end time of executing the graphics service for that frame and the start time of executing the graphics service for that frame.

[0222] In another possible implementation, the time required to execute the graphics service is the time consumed in a single frame of the graphics service software process.

[0223] In some embodiments, if no request to perform a graphics service is received during the time period between the seventh and fifth times, then S1520 is executed. The seventh time is earlier than the fifth time, and the duration between the seventh and fifth times is the period of the second vertical synchronization signal. This scheme will be described in detail below with reference to method 1800 shown in Figure 18. It should be understood that concepts appearing in method 1800 that are the same as those in method 1300 can be referred to the relevant descriptions in method 1300, and will not be repeated in method 1800.

[0224] Figure 18 shows a schematic flowchart of a specific example of a page display control method based on method 1300 shown in Figure 13. Method 1800 may include S1801 to S1806.

[0225] S1801, determine whether a request to perform graphics services was received between the seventh and fifth time points.

[0226] The request to execute graphics services is used to request the execution of graphics services on the UI rendering results. In some scenarios, within a second vertical synchronization signal cycle or a first vertical synchronization signal cycle, such as within the VSYNC cycles corresponding to VSYNC 3 to VSYNC 4 shown in Figure 16 or Figure 17, UI rendering operations may be performed on multiple events. If the UI rendering operation of another event (e.g., a second displacement event) different from the first displacement event is completed before the fifth moment, then a request to execute graphics services will be made for the UI rendering results corresponding to the second displacement event, and the graphics services will be executed on the UI rendering results corresponding to the second displacement event when the fifth moment arrives. This scenario is that the request to execute graphics services is received between the seventh and fifth moments. If the request to execute graphics services is received between the seventh and fifth moments, and the first displacement event is received at the sixth moment, S1806 is executed.

[0227] If no request to execute the graphics service is received between the seventh and fifth time points, then execute S1802.

[0228] S1802, determine the remaining time of the rendering pipeline.

[0229] S1803, determine whether the remaining duration of the rendering pipeline is greater than or equal to the first duration.

[0230] If the remaining rendering pipeline duration is greater than or equal to the first duration, execute S1804; otherwise, execute S1806.

[0231] S1804, at the sixth moment after receiving the UI drawing result corresponding to the first displacement event, a second vertical synchronization signal with a timestamp of the fifth moment is triggered.

[0232] S1805, based on the second vertical synchronization signal with the timestamp of the fifth moment, performs a graphics service on the UI drawing result corresponding to the first displacement event.

[0233] S1806, wait for the next second vertical synchronization signal to arrive before performing graphics services.

[0234] S1806 specifically involves performing a graphics service according to one implementation method. For example, at time t8, as shown in Figure 16 or Figure 17, the UI drawing result corresponding to the first displacement event and the UI drawing result corresponding to event H+1 are combined to perform a graphics service.

[0235] According to the method provided in the embodiments of this application, if the time when the UI drawing result is received is later than the start time of the current VSYNC cycle, as long as the remaining duration of the rendering pipeline meets certain conditions (i.e., greater than or equal to the first duration), the graphics service can also be performed on the UI drawing result within the current VSYNC cycle, thereby avoiding frame dropping issues and ensuring screen smoothness.

[0236] Figure 19 is an interactive schematic diagram of a page display control method provided in an embodiment of this application. Method 1900 may include steps S1901 to S1903. It should be understood that concepts appearing in method 1900 that are the same as those in method 1300 can be referred to the relevant descriptions in method 1300, and will not be repeated in method 1900.

[0237] S1901, the UI module sends the UI drawing result corresponding to the first displacement event to the graphics service module. Correspondingly, the graphics service module receives the UI drawing result corresponding to the first displacement event at the sixth moment.

[0238] S1902, the graphics service module determines the remaining time of the rendering pipeline.

[0239] S1903, the graphics service module determines whether the remaining duration of the rendering pipeline is greater than or equal to the first duration.

[0240] If the remaining duration of the rendering pipeline is greater than or equal to the first duration, then execute S1904; otherwise, execute S1905.

[0241] S1904, the graphics service module performs graphics services on the UI drawing results at the sixth time step.

[0242] S1905, the graphics service module performs graphics services when the next second vertical synchronization signal arrives.

[0243] For example, at time t8 as shown in Figure 16 or Figure 17, the UI drawing result corresponding to the first displacement event and the UI drawing result corresponding to event H+1 are combined and the graphics service is executed.

[0244] According to the method provided in the embodiments of this application, if the time when the UI drawing result is received is later than the start time of the current VSYNC cycle, as long as the remaining duration of the rendering pipeline meets certain conditions (i.e., greater than or equal to the first duration), the graphics service can also be performed on the UI drawing result within the current VSYNC cycle, thereby avoiding frame dropping issues and ensuring screen smoothness.

[0245] It should be understood that the two page display control methods described above (e.g., method 900 and method 1500) can be used in combination (e.g., the first displacement event in the two page display controls can be the same displacement event) or used separately (e.g., the first displacement event in the two page display controls can be different displacement events).

[0246] It should also be understood that although the methods provided in the embodiments of this application are described above using only two operating systems as examples, it should be understood that the solutions provided in the embodiments of this application can also be applied to other operating systems, such as Apple operating system, Windows operating system and other types of operating systems.

[0247] The foregoing section details examples of the page display control method provided in this application. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can 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. This application can divide the graphics processing method into functional units based on the above method examples. For example, each function can be divided into separate functional units, or two or more functions can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application is illustrative and only represents a logical functional division; other division methods may exist in actual implementation.

[0248] Figure 20 shows a schematic diagram of the structure of an electronic device provided in this application. The dashed lines in Figure 20 indicate that the unit or module is optional. The electronic device 2000 can be used to implement the methods described in the above method embodiments. The electronic device 2000 can be a server, a terminal device, or a chip (system).

[0249] The electronic device 2000 includes one or more processors 2001, which can support the electronic device 2000 in implementing any of the method embodiments described above. The processor 2001 can be a general-purpose processor or a special-purpose processor. For example, the processor 2001 can be a central processing unit (CPU). The CPU can be used to control the electronic device 2000, execute software programs, and process data from the software programs.

[0250] The aforementioned electronic device 2000 may be a chip (system) including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory to implement the methods shown in the various embodiments above.

[0251] The electronic device 2000 may include one or more memories 2002 storing a program 2004. The program 2004 can be executed by a processor 2001 to generate instructions 2003, causing the processor 2001 to execute the method described in the above method embodiments according to the instructions 2003. Optionally, the memory 2002 may also store data. Optionally, the processor 2001 may also read data stored in the memory 2002, which may be stored at the same memory address as the program 2004, or it may be stored at a different memory address.

[0252] The processor 2001 and memory 2002 can be configured separately or integrated together, for example, integrated on a system-on-chip (SOC) of an electronic device. For details on how the processor 2001 performs graphics processing, please refer to the relevant description in the method embodiments.

[0253] It should be understood that the steps of the above method embodiments can be implemented by hardware logic circuits or software instructions in the processor 2001. The processor 2001 can be a CPU, a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gate, transistor logic devices, or discrete hardware components.

[0254] This application also provides an electronic device that can be used to implement any of the foregoing method embodiments.

[0255] In some embodiments, the electronic device may include one or more modules as shown in FIG2, FIG4, or FIG6. The operations performed by each module can be referred to the foregoing method embodiments.

[0256] In one possible implementation, the electronic device may include an input module and a UI module as shown in FIG2 or FIG4. The input module is used to generate a first displacement event, which is a displacement event generated in response to a first operation, including a sliding operation and / or a dragging operation; the input module is also used to send the first displacement event to the UI module; the UI module is used to receive the first displacement event at a first moment; if the first moment is later than a second moment and earlier than or equal to a third moment, the UI module is used to perform a user interface (UI) drawing operation on the first displacement event at a moment earlier than the third moment or at the third moment, wherein the second moment is a moment determined based on the period of a first vertical synchronization signal for triggering the first vertical synchronization signal, which is used to trigger the UI drawing operation, and the third moment is later than the second moment.

[0257] In another possible implementation, the electronic device may include a UI module and a graphics service module as shown in Figure 2 or Figure 5. The UI module is configured to send to the graphics service module a UI rendering result obtained by performing a user interface (UI) rendering operation on a first displacement event, the first displacement event being a displacement event generated in response to a first operation, the first operation including a sliding operation and / or a dragging operation; the graphics service module is configured to receive the UI rendering result from the UI module at a sixth time, the sixth time being later than a fifth time, the fifth time being a time determined based on the period of a second vertical synchronization signal used to trigger the graphics service; the graphics service module is further configured to determine the remaining duration of the rendering pipeline, the remaining duration being the duration between the time when the processing result corresponding to the graphics service is displayed and the sixth time; the graphics service module is further configured to perform the graphics service on the UI rendering result at the sixth time if the remaining duration of the rendering pipeline is greater than or equal to the first duration.

[0258] This application also provides a computer program product that, when executed by processor 2001, implements the method of any method embodiment in this application. The computer program product can be stored in memory 2002, for example, as program 2004. Program 2004 undergoes preprocessing, compilation, assembly, and linking processes to ultimately be converted into an executable object file that can be executed by processor 2001.

[0259] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method of any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.

[0260] The computer-readable storage medium is, for example, memory 2002. Memory 2002 can be volatile memory or non-volatile memory, or memory 2002 can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM).

[0261] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process and technical effects of the above-described apparatus and equipment can be referred to the corresponding processes and technical effects in the foregoing method embodiments, and will not be repeated here.

[0262] The systems, apparatuses, and methods disclosed in the several embodiments provided in this application can be implemented in other ways. For example, some features of the method embodiments described above may be omitted or not performed. The apparatus embodiments described above are merely illustrative; the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components may be combined or integrated into another system.

[0263] In addition, the coupling between units or between components can be direct or indirect, including electrical, mechanical or other forms of connection.

Claims

1. A page display control method characterized by comprising: Applied to electronic devices, the method includes: A first displacement event is received at a first moment. The first displacement event is a displacement event generated in response to a first operation, which includes a sliding operation and / or a dragging operation. If the first time point is later than the second time point, and the first time point is earlier than or equal to the third time point, then at a time earlier than the third time point or at the third time point, a user interface (UI) drawing operation is performed on the first displacement event. The second time is a time determined based on the period of the first vertical synchronization signal to trigger the first vertical synchronization signal, which is used to trigger the UI drawing operation. The third time is later than the second time.

2. The method of claim 1, wherein, The sliding operation is a touch sliding operation on the page, and before receiving the first displacement event at the first moment, the method further includes: Display the page of the first application; In response to the touch swipe operation on the page, the first displacement event is generated.

3. The method of claim 1 or 2, wherein, The duration between the third moment and the second moment is determined based on the duration required to perform the UI drawing operation.

4. The method of any one of claims 1-3, wherein, Before receiving the first displacement event at the first moment, the method further includes: The first vertical synchronization signal is triggered at the second moment.

5. The method of any one of claims 1-3, wherein, Before performing the UI drawing operation on the first displacement event at a time earlier than the third time moment or at the third time moment, the method further includes: The first vertical synchronization signal is triggered at the first moment; The step of performing UI drawing operations on the first displacement event at a time earlier than the third time moment or at the third time moment includes: At the first moment, the UI drawing operation is performed on the first displacement event.

6. The method of any one of claims 1-5, wherein, The duration between the third and fourth moments is equal to the duration required to perform the UI drawing operation. The fourth moment is later than the second moment, and the duration between the fourth and second moments is the period of the first vertical synchronization signal.

7. The method of any one of claims 1-6, wherein, The method further includes: The UI drawing result corresponding to the UI drawing operation is received at the sixth time. The sixth time is later than the fifth time. The fifth time is the time determined based on the period of the second vertical synchronization signal to trigger the second vertical synchronization signal. The second vertical synchronization signal is used to trigger the graphics service. The remaining duration of the rendering pipeline is determined, which is the duration between the moment when the processing result corresponding to the graphics service is triggered to be displayed on the screen and the sixth moment. If the remaining duration of the rendering pipeline is greater than or equal to the first duration, the graphics service is executed on the UI rendering result at the sixth time step.

8. The method of claim 7, wherein, The first duration is determined by the time required to execute the graphics service.

9. The method of claim 8, wherein, The time required to execute the graphics service is the time consumed by the historical frame in executing the graphics service.

10. The method of any one of claims 7-9, wherein, The method further includes: The second vertical synchronization signal is triggered at the sixth time, and the timestamp of the second vertical synchronization signal is the fifth time.

11. A page display control method characterized by comprising: Applied to electronic devices, the method includes: At the sixth moment, the UI drawing result obtained by performing a user interface (UI) drawing operation on the first displacement event is received. The first displacement event is a displacement event generated in response to the first operation, which includes a sliding operation and / or a dragging operation. The sixth moment is later than the fifth moment. The fifth moment is a moment for triggering the second vertical synchronization signal, which is determined based on the period of the second vertical synchronization signal. The second vertical synchronization signal is used to trigger the graphics service. The remaining duration of the rendering pipeline is determined, which is the duration between the moment when the processing result corresponding to the graphics service is triggered to be displayed on the screen and the sixth moment. If the remaining duration of the rendering pipeline is greater than or equal to the first duration, the graphics service is executed on the UI rendering result at the sixth time step.

12. The method of claim 11, wherein, The sliding operation is a touch sliding operation on the page. Before receiving the UI drawing result obtained by performing a user interface (UI) drawing operation on the first displacement event at the sixth moment, the method further includes: Display the page of the first application; In response to the touch swipe operation on the page, a first displacement event is generated, and the UI drawing operation is performed on the first displacement event to obtain the UI drawing result.

13. The method of claim 11 or 12, wherein, The first duration is determined by the time required to execute the graphics service.

14. The method of claim 13, wherein, The time required to execute the graphics service is the time consumed by the historical frame in executing the graphics service.

15. The method of any one of claims 11-14, wherein, The method further includes: The second vertical synchronization signal is triggered at the sixth time, and the timestamp of the second vertical synchronization signal is the fifth time.

16. An electronic device, comprising: include: Input module and user interface (UI) module; The input module is used to generate a first displacement event, which is a displacement event generated in response to a first operation, including a sliding operation and / or a dragging operation. The input module is also used to send the first displacement event to the UI module; The UI module is used to receive the first displacement event at the first moment; If the first moment is later than the second moment, and the first moment is earlier than or equal to the third moment, the UI module is used to perform a user interface (UI) drawing operation on the first displacement event at a time earlier than the third moment or at the third moment. The second time is a time determined based on the period of the first vertical synchronization signal to trigger the first vertical synchronization signal, which is used to trigger the UI drawing operation. The third time is later than the second time.

17. The electronic device of claim 16, wherein, The sliding operation is a touch sliding operation, and the electronic device also includes a display module; The display module is used to display the page of the first application; The input module is used to generate the first displacement event, including: In response to the touch swipe operation on the page, the input module generates the first displacement event.

18. The electronic device of claim 16 or 17, wherein, The electronic device also includes a graphics service module; The graphics service module is used to receive the UI drawing result corresponding to the UI drawing operation from the UI module at the sixth time. The graphics service module is further configured to determine the remaining duration of the rendering pipeline, wherein the remaining duration of the rendering pipeline is the duration between the time when the processing result corresponding to the graphics service is triggered to be displayed on the screen and the sixth time. The graphics service module is further configured to perform the graphics service on the UI rendering result at the sixth time step if the remaining duration of the rendering pipeline is greater than or equal to the first duration.

19. An electronic device, comprising: include: User interface (UI) module and graphics service module; The UI module is used to send the UI drawing result obtained by performing a user interface UI drawing operation on the first displacement event to the graphics service module. The first displacement event is a displacement event generated in response to a first operation, and the first operation includes a sliding operation and / or a dragging operation. The graphics service module is used to receive the UI drawing result from the UI module at a sixth time, the sixth time being later than the fifth time, the fifth time being a time determined based on the period of the second vertical synchronization signal to trigger the second vertical synchronization signal, the second vertical synchronization signal being used to trigger the graphics service; The graphics service module is further configured to determine the remaining duration of the rendering pipeline, wherein the remaining duration of the rendering pipeline is the duration between the time when the processing result corresponding to the graphics service is triggered to be displayed on the screen and the sixth time. The graphics service module is further configured to perform the graphics service on the UI rendering result at the sixth time step if the remaining duration of the rendering pipeline is greater than or equal to the first duration.

20. An electronic device, comprising: include: The electronic device includes a processor, a display screen, and a memory, wherein the memory and the display screen are coupled to the processor, the memory is used to store program code including instructions, and the processor reads the instructions from the memory to cause the electronic device to perform the method as described in any one of claims 1-15.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-15.

22. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1-15.