Refresh rate switching method and related device
By real-time detection of the speed of sliding operation and dynamically adjusting the refresh rate, the problem of high power consumption of electronic devices during sliding display is solved, and appropriate refresh rate adjustment is achieved at different sliding speeds, improving energy efficiency performance.
Patent Information
- Application Number
- CN202311170463.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-18
AI Technical Summary
When electronic devices slide to display related content, maintaining a high refresh rate leads to high power consumption, and it is impossible to effectively adjust the refresh rate to adapt to different sliding speeds.
Dynamically adjust the refresh rate of the display by detecting the real-time speed of the sliding operation. When the sliding speed is high, the refresh rate is higher; when the sliding speed is low, the refresh rate is lower.
It achieves the need for display fluency when the sliding speed is high, reduces power consumption when the sliding speed is low, and improves the energy efficiency performance of electronic devices.
Smart Images

Figure CN119645269A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a refresh rate switching method and related devices. Background Art
[0002] Currently, users can view various types of content through the display screen of electronic devices. When there is a lot of content, the display screen cannot display all the content at once; users can slide to control the display screen to slide and display related content. However, when the electronic device slides to display related content, it will maintain a high refresh rate, which makes the electronic device consume a lot of power. Summary of the invention
[0003] The embodiment of the present application provides a refresh rate switching method and related devices, which are applied to the field of terminal technology. The refresh rate of the electronic device is adjusted according to the real-time speed of the sliding operation; when the real-time speed is high, the refresh rate is high; when the real-time speed is low, the refresh rate is low. In this way, the refresh rate is adjusted in real time to meet the display smoothness requirements when the real-time speed is high; and it can also reduce the power consumption when the real-time speed is low.
[0004] In a first aspect, an embodiment of the present application proposes a refresh rate switching method. The method includes: displaying an application interface of a first application at a first refresh rate; detecting a user's sliding operation on the application interface; refreshing the application interface of the first application based on the sliding operation; wherein, when the sliding speed of the sliding operation is a first speed, the refresh rate of the display screen is a second refresh rate; when the sliding speed is a second speed, the refresh rate of the display screen is a third refresh rate; the first speed is less than the second speed, and the second refresh rate is less than the third refresh rate.
[0005] When the sliding speed is high, the refresh rate is high; when the sliding speed is low, the refresh rate is low. In this way, real-time adjustment of the refresh rate can meet the display smoothness requirements when the sliding speed is high; it can also reduce power consumption when the sliding speed is low.
[0006] Optionally, refreshing the application interface of the first application based on the sliding operation includes: determining a first target refresh rate corresponding to the sliding speed based on the sliding speed; and refreshing the application interface of the first application at the first target refresh rate on the display screen.
[0007] In this way, the instantaneous speed of the sliding operation is calculated to adjust the refresh rate, and the refresh rate matches the instantaneous speed, thereby improving the user experience.
[0008] Optionally, before determining the first target refresh rate, the method further includes: detecting a plurality of move events corresponding to the sliding operation; and determining the sliding speed based on position information and time information of the plurality of move events.
[0009] In this way, the sliding speed of non-hand-off sliding is determined according to the input event (report point) corresponding to the sliding operation, which can accurately reflect the changes in the sliding operation and then accurately adjust the refresh rate.
[0010] Optionally, determining the sliding speed based on the position information and time information of multiple move events includes: determining the first speed based on the position information and time information of M move events detected in the first time period; determining the second speed based on the position information and time information of N move events detected in the second time period; M and N are both integers greater than a preset threshold; the time interval between the last moment in the first time period and the last moment in the second time period is greater than a preset duration. The position information may be the coordinates corresponding to the move event. The time information may be the moment of the detected move event.
[0011] The preset threshold value may be 10, 5, or any value, which is not limited here.
[0012] In this way, there is a certain time interval between two refresh rate adjustments, which can reduce the number of refresh rate switching times and reduce the frequent switching of refresh rates.
[0013] Optionally, when the second refresh rate is a first value, the preset duration is the first duration; when the second refresh rate is a second value, the preset duration is the second duration; wherein the first value is greater than the second value, and the first duration is greater than the second duration.
[0014] In this way, the refresh rate is adjusted by slow reduction and fast increase. When the refresh rate is low, the electronic device can increase the refresh rate in time to meet the display smoothness requirements; when the refresh rate is high, the refresh rate can be slowly reduced to reduce the power consumption of the electronic device.
[0015] Optionally, the method also includes: when a down event corresponding to the sliding operation is detected, displaying the application interface of the first application at a fourth refresh rate.
[0016] The fourth refresh rate may be a preset refresh rate, for example, 60 Hz, 90 Hz, etc. This is not limited here.
[0017] In this way, after receiving the user operation, the refresh rate is adjusted to a higher level to facilitate subsequent display based on the user operation and improve the smoothness of the display.
[0018] Optionally, an up event corresponding to the sliding operation is detected; a second target refresh rate is determined based on a speed corresponding to the up event; and the display screen refreshes an application interface of the first application at the second target refresh rate.
[0019] In this way, after the sliding operation stops, the refresh rate is adjusted according to the speed corresponding to the up event.
[0020] Optionally, when the speed corresponding to the up event is less than or equal to the speed threshold, the display screen refreshes the application interface at a first refresh rate; when the speed corresponding to the up event is greater than the speed threshold, the display screen refreshes the application interface at a fifth refresh rate, and the fifth refresh rate corresponds to the speed of the up event.
[0021] The speed threshold may correspond to the second threshold described below.
[0022] In this way, when the speed of the up event is high, the hand-off sliding begins; when the speed of the up event is low, the sliding stops.
[0023] Optionally, the speed corresponding to the up event is greater than the speed threshold; when the speed corresponding to the up event is the third speed, the fifth refresh rate is the first value; when the speed corresponding to the up event is the fourth speed, the fifth refresh rate is the second value; the third speed is less than the fourth speed, and the first value is less than or equal to the second value.
[0024] In this way, the higher the speed corresponding to the up event, the higher the fifth refresh rate, which meets the smoothness requirement of the display when sliding away from the hand.
[0025] Optionally, the first application includes: system application and third-party application.
[0026] System applications include: desktop applications. Third-party applications include: video applications, chat applications, map applications, etc.
[0027] In the second aspect, the embodiment of the present application proposes a refresh rate switching method. The method includes: displaying the application interface of the first application at a first refresh rate; detecting the sliding operation of the user on the application interface; in the case of detecting a down event corresponding to the sliding operation, switching the refresh rate of the display screen from the first refresh rate to the second refresh rate, and displaying the application interface of the first application at the second refresh rate; in the case of detecting multiple move events corresponding to the sliding operation, switching the refresh rate of the display screen from the second refresh rate to the third refresh rate, and displaying the application interface of the first application at the third refresh rate; in the case of detecting that the sliding speed is the second speed, switching the refresh rate of the display screen from the third refresh rate to the fourth refresh rate, and displaying the application interface of the first application at the fourth refresh rate; in the case of detecting an up event corresponding to the sliding operation, switching the refresh rate of the display screen from the fourth refresh rate to the fifth refresh rate, and displaying the application interface of the first application at the fifth refresh rate.
[0028] Among them, when the first speed is lower than the second speed, the third refresh rate is lower than the fourth refresh rate; when the first speed is higher than the second speed, the third refresh rate is higher than the fourth refresh rate.
[0029] The refresh rate is adjusted in real time according to the sliding speed of the sliding operation. When the sliding speed is high, the refresh rate is high; when the sliding speed is low, the refresh rate is low. In this way, the refresh rate can be adjusted in real time to meet the display smoothness requirements when the sliding speed is high; it can also reduce power consumption when the sliding speed is low.
[0030] Optionally, the speed corresponding to the up event is less than or equal to the speed threshold, and the fifth refresh rate is the same as the first refresh rate.
[0031] In this way, the sliding stops when the speed corresponding to the up event is low, and the refresh rate before and after the sliding operation remains consistent.
[0032] Optionally, the speed corresponding to the up event is greater than the speed threshold; when the speed corresponding to the up event is the third speed, the fifth refresh rate is the first value; when the speed corresponding to the up event is the fourth speed, the fifth refresh rate is the second value; the third speed is less than the fourth speed, and the first value is less than or equal to the second value.
[0033] In this way, when the speed of the up event is high, the hand-off sliding is started, and the speed is consistent with the hand-off sliding. The higher the speed corresponding to the up event, the higher the fifth refresh rate, which meets the smoothness requirements of the display when the hand is off.
[0034] Optionally, the sliding operation corresponds to multiple move events, and the method also includes: determining that the speed of the sliding operation is a first speed based on position information and time information corresponding to the first move event, and position information and time information corresponding to the move event before the first move event; wherein the first move event is a move event corresponding to when the type of the sliding operation is detected to be sliding, or a move event after the type of the sliding operation is detected to be sliding.
[0035] In this way, when the electronic device detects that the user operation is sliding, it determines the sliding speed of non-hand-off sliding according to the input event (report point) corresponding to the sliding operation and accurately adjusts the refresh rate.
[0036] Optionally, the speed of the sliding operation is determined to be a second speed based on position information and time information corresponding to the second move event, and position information and time information corresponding to a move event before the second move event; and the time interval between the second move event and the first move event is greater than a preset duration.
[0037] In this way, there is a certain time interval between two refresh rate adjustments, which can reduce the number of refresh rate switching times and reduce the frequent switching of refresh rates.
[0038] Optionally, the first move event is a move event corresponding to when a sliding operation is detected as the user operation, or a move event after a sliding operation is detected as the user operation; the second move event is a move event after a preset duration of the first move event.
[0039] Optionally, when the third refresh rate is a first value, the preset duration is the first duration; when the third refresh rate is a second value, the preset duration is the second duration; wherein the first value is greater than the second value, and the first duration is greater than the second duration.
[0040] In this way, the refresh rate is adjusted by slow reduction and fast increase. When the refresh rate is low, the electronic device can increase the refresh rate in time to meet the display smoothness requirements; when the refresh rate is high, the refresh rate can be slowly reduced to reduce the power consumption of the electronic device.
[0041] Optionally, the first refresh rate is 10 Hz, the second refresh rate is 60 Hz, the third refresh rate is 120 Hz, the fourth refresh rate is 60 Hz, and the fifth refresh rate is 40 Hz.
[0042] Optionally, the first speed is in a first speed range, and the second speed is in a second speed range; the first speed range is different from the second speed range, and the third refresh rate is less than the fourth refresh rate.
[0043] In this way, it is convenient to confirm the refresh rate according to the speed, and the implementation is simple.
[0044] Optionally, the first application includes: system application and third-party application.
[0045] In a third aspect, an embodiment of the present application provides an electronic device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0046] The electronic device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method of the first aspect or the method of the second aspect.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect or the method of the second aspect is implemented.
[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect or the method of the second aspect.
[0049] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method of the first aspect or the method of the second aspect.
[0050] It should be understood that the third to sixth aspects of the present application correspond to the technical solutions of the first or second aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1AA schematic diagram of a sliding operation detected by an electronic device in a possible design;
[0052] Figure 1B A schematic diagram of a click operation detected by an electronic device in a possible design;
[0053] Figure 2 A schematic diagram of a software framework of an electronic device provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0055] Figure 4 A schematic diagram of a refresh rate switching method provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of a sliding operation detected by an electronic device provided in an embodiment of the present application;
[0057] Figure 6 A schematic diagram of a refresh rate switching method provided in an embodiment of the present application;
[0058] Figure 7 A schematic diagram of the interaction between internal modules in a sliding operation scenario provided in an embodiment of the present application;
[0059] Fig. 8A A schematic diagram of a sliding operation detected by an electronic device provided in an embodiment of the present application;
[0060] Figure 8B A schematic diagram of an interface of an electronic device provided in an embodiment of the present application;
[0061] Fig. 9 A schematic diagram of interaction between internal modules provided in an embodiment of the present application;
[0062] Fig.10 A schematic diagram of a click operation detected by an electronic device provided in an embodiment of the present application;
[0063] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0065] 1. Frame: refers to the smallest unit of a single picture in the interface display. A frame can be understood as a still picture. Displaying multiple connected frames quickly and continuously can create the illusion of motion. Frame rate refers to the number of frames that refresh an image in 1 second. It can also be understood as the number of times the graphics processor in an electronic device refreshes the screen per second. A high frame rate can produce smoother and more realistic animations. The more frames per second, the smoother the displayed action will be.
[0066] It should be noted that before the interface displays a frame, it usually needs to go through processes such as drawing, rendering, and synthesis.
[0067] 2. Frame drawing: refers to the picture drawing of the display interface. The display interface can be composed of one or more views, each view can be drawn by the visual control of the view system, each view is composed of subviews, and a subview corresponds to a small widget in the view, for example, one of the subviews corresponds to a symbol in the picture view.
[0068] 3. Frame rendering: It is to color the drawn view or add 3D effects, etc. For example, 3D effects can be lighting effects, shadow effects, and texture effects.
[0069] 4. Frame synthesis: It is the process of synthesizing multiple or more rendered views into a display interface.
[0070] 5. Non-hands-off sliding: refers to the sliding display based on sliding operations on the interface of electronic devices.
[0071] For example, in applications such as Settings and Headlines, the interface displays a list layout, and non-hands-off sliding refers to the process of displaying the interface based on sliding the user's finger.
[0072] It is understandable that when the interface includes a list control, the interface displays a list layout, which is a list interface. The list control can be a listview or a recyleview, and the embodiment of the present application does not limit the list control.
[0073] 6. Other terms
[0074] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0075] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0076] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0077] In the embodiment of the present application, "at..." can be the instant when a certain situation occurs, or can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the interface of the electronic device provided in the embodiment of the present application is only an example, and the interface can also include more or less content.
[0078] 7. Electronic devices
[0079] The electronic device of the embodiment of the present application may be in any form. For example, the electronic device may include a handheld device with a display function, a vehicle-mounted device, etc. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, electronic devices in 5G networks or future evolved public land mobile communication networks (PLANs). The electronic devices in the network (PLMN) and the like are not limited to this in the embodiments of the present application.
[0080] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0081] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in an Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.
[0082] The electronic device in the embodiments of the present application may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
[0083] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0084] Currently, users can view various contents through the display screen of electronic devices. When there is a lot of content, the display screen cannot display all the content at once. Users can slide the display screen to display related content.
[0085] In a possible design, when the electronic device receives a sliding operation or a click operation, the electronic device will adjust from a lower refresh rate to a higher refresh rate. For example, taking the electronic device display setting interface as an example, when the electronic device receives a sliding operation, the electronic device refreshes the display at a frequency of 120Hz.
[0086] It should be noted that the types of input events detected by the electronic device include: press (down), move (move) and lift (up). The down event is the first time the electronic device detects a press input event during a user operation. The move event is an input event that detects a press other than the first time the press is detected; the up event is an input event that the electronic device detects that the press disappears.
[0087] When the electronic device receives a sliding operation from the user, the input events detected include: a down event, a series of move events and an up event. When the electronic device receives a click operation from the user, the input events detected include: a down event and an up event; when the electronic device receives a click operation from the user, the input events detected may also include: a move event.
[0088] For example, Figure 1A Schematic diagram of a sliding operation detected by an electronic device. Figure 1A As shown, when the electronic device receives a sliding operation, the electronic device displays the interface corresponding to the sliding operation based on 120 Hz.
[0089] Specifically, when the electronic device receives a down event, it adjusts the refresh rate to 120Hz; when the electronic device receives a move event, it continues to refresh the display at 120Hz until it receives an up event. After the up event, the display of the electronic device is related to the subsequent displayed content, which is not limited here.
[0090] from Figure 1A It can be seen that after receiving the down event, the electronic device will refresh the display at a higher refresh rate. For example, during the non-hand-off sliding, the refresh rate of the electronic device is independent of the speed corresponding to the move event, and the display is refreshed at a higher refresh rate. However, this will increase the power consumption of the electronic device.
[0091] Since a click operation is similar to a slide operation, in a possible design, the electronic device will also refresh the display at a higher refresh rate when receiving a click operation.
[0092] For example, Figure 1B Schematic diagram of a click operation detected by an electronic device. Figure 1B As shown, when the electronic device receives a click operation, the electronic device displays the interface corresponding to the click operation based on 120Hz. Figure 1B It can be seen that compared with Figure 1A The sliding operation shown, the click operation includes fewer move events. In some embodiments, the click operation may not include a move event.
[0093] Since the click operation is similar to the slide operation, when the electronic device receives a down event, the refresh rate is adjusted to 120Hz; when the electronic device receives a move event, it continues to refresh the display at 120Hz until it receives an up event. After the up event, the display of the electronic device is related to the subsequent displayed content and is not limited here. Figure 1BIn the present invention, after receiving the down event, the electronic device will refresh the display at a higher refresh rate. However, this will increase the power consumption of the electronic device.
[0094] from Figure 1A and Figure 1B It can be seen that after receiving the down event, the electronic device will refresh the display at a higher refresh rate. For example, during the non-hand-off sliding, the refresh rate of the electronic device is independent of the speed corresponding to the move event, and the display is refreshed at a higher refresh rate, which makes the power consumption of the electronic device high.
[0095] In view of this, the embodiment of the present application provides a refresh rate switching method and related devices; the real-time speed of non-hand-off sliding is determined according to the input event (report point) corresponding to the sliding operation, and the refresh rate of the electronic device is adjusted based on the real-time speed; when the real-time speed is high, the refresh rate is high; when the real-time speed is low, the refresh rate is low. In this way, the real-time adjustment of the refresh rate can meet the display smoothness requirements when the real-time speed is high; and can also reduce power consumption when the real-time speed is low.
[0096] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0097] For ease of understanding, the software architecture and application scenarios of the electronic device provided in the embodiments of the present application are described below in conjunction with the accompanying drawings.
[0098] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0099] For example, Figure 2 A software framework diagram of an electronic device provided in an embodiment of the present application. Figure 2 As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0100] The application layer can include a series of application packages. Figure 2 As shown, the application package may include applications such as phone, email, calendar, camera, etc.
[0101] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0102] like Figure 2 As shown, the application framework layer may include an input system (input dispatcher), an activity manager, a location manager, a notification manager, an activity manager, an image synthesis system (surface flinger), and a view system, etc.
[0103] The input system is used to manage the programs of the input device. For example, the input system can determine input operations such as mouse click operations, keyboard input operations, and touch sliding operations. In the embodiment of the present application, the input system is also used to confirm the refresh rate based on the real-time speed corresponding to the sliding operation, and transmit the refresh rate to the image synthesis system to adjust the refresh rate of the electronic device.
[0104] The activity manager is used to manage the life cycle of each application and the navigation back function. It is responsible for creating the Android main thread and maintaining the life cycle of each application.
[0105] The location manager is used to provide location services to applications, including querying the last known location, registering and unregistering from a periodic location update, etc.
[0106] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0107] The activity manager service (AMS) is used to manage the life cycle of each application and the navigation back function. It is responsible for creating the Android main thread and maintaining the life cycle of each application.
[0108] The image synthesis system is used to control image synthesis and generate vertical synchronization (Vsync) signals. The image synthesis system includes: synthesis thread, Vsync thread, cache queue (quenebuffer) thread. The synthesis thread is used to be awakened by the Vsync signal for synthesis. The Vsync thread is used to generate the next Vsync signal according to the Vsync signal request. The cache queue thread is used to store the cache, generate Vsync signal requests, and wake up the synthesis thread, etc.
[0109] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0110] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0111] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0112] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0113] The system library can include multiple functional modules, such as image rendering library, image synthesis library, function library, media library, and input processing library. The image rendering library is used for rendering two-dimensional or three-dimensional images. The image synthesis library is used for synthesizing two-dimensional or three-dimensional images.
[0114] In a possible implementation, the application renders the image through the image rendering library, and then the application sends the rendered image to the cache queue of the image synthesis system. Whenever the Vsync signal arrives, the image synthesis system (e.g., surface flinger) sequentially obtains a frame of image to be synthesized from the cache queue, and then synthesizes the image through the image synthesis library.
[0115] The function library provides macros, type definitions, string operation functions, mathematical calculation functions, and input and output functions used in the C language.
[0116] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG and PNG, etc.
[0117] The input processing library is a library for processing input devices, which can implement mouse, keyboard, and touch input processing, etc.
[0118] The kernel layer is the layer between hardware and software. The kernel layer includes at least the touch panel (TP) driver, display driver, Bluetooth driver, WIFI driver, keyboard driver, shared memory driver, and camera driver. Hardware can be audio devices, Bluetooth devices, camera devices, sensor devices, etc.
[0119] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with a scenario in which an application is started or an interface switch occurs within an application.
[0120] When the touch sensor in the touch panel receives a touch operation, the kernel layer processes the touch operation into an original input event (including touch coordinates, touch strength, timestamp of the touch operation, and other information). The original input event is stored in the kernel layer. The kernel layer reports the original input event to the input system of the application framework layer through the input processing library. The input system of the application framework layer parses the information of the original input event (including: operation type, timestamp, and reporting point position, etc.) and determines the focus application based on the current focus, and sends the parsed information to the focus application. The focus can be the touch point in a touch operation or the click position in a mouse click operation. The focus application is the application running in the foreground of the electronic device or the application corresponding to the touch position in the touch operation. The focus application determines the control corresponding to the original input event based on the parsed information of the original input event (for example, the reporting point position).
[0121] Taking the touch operation as a touch sliding operation, and the control corresponding to the touch sliding operation as a list control of the WeChat application as an example, the WeChat application calls the image rendering library in the system library to draw and render the image through the view system of the application framework layer. The WeChat application sends the drawn and rendered image to the cache queue of the image synthesis system. The image synthesis library in the system library synthesizes the drawn and rendered image in the image synthesis system into the WeChat interface. The image synthesis system uses the display driver of the kernel layer to make the screen (display) display the corresponding interface of the WeChat application.
[0122] The application scenarios provided by the embodiments of the present application are described below with reference to the accompanying drawings. Figure 3 A schematic diagram of an application scenario provided for an embodiment of the present application.
[0123] Electronic devices can be Figure 3 The interface of the social application shown in a in Figure 3 In the settings application interface shown in b, Figure 3 The document interface shown in c, Figure 3 The product browsing interface shown in d in the figure receives a user's upward or downward sliding operation. The electronic device can also Figure 3 In the interface shown in e, Figure 3 The electronic book interface shown in f in FIG. 10 receives a left swipe operation or a right swipe operation from the user. When the electronic device receives a swipe operation from the user, the electronic device performs frame drawing, rendering, synthesis, and other processes based on the swipe operation to display the content corresponding to the swipe operation.
[0124] It is understandable that the above Figure 3 The interfaces of the social application, the settings application, and the document interface shown are only examples, and the method of the embodiment of the present application can also be applied to the scenario where the electronic device displays the interface of the news application, the interface of the video application, or the electronic device displays the slidable interface (page) in any other app. The slidable interface can include: list interface or other types of interface, which are not limited here.
[0125] Combine the following Figures 4 to 10 The refresh rate switching method provided in the embodiment of the present application is described. For example, Figure 4 A flow chart of a refresh rate switching method provided in an embodiment of the present application. Figure 4 As shown, the method includes:
[0126] S401. An electronic device displays an application interface of a first application at a first refresh rate.
[0127] The first application is an application with a slidable display interface, such as a social application, a setting application, a news application, a video application, etc. The embodiment of the present application does not limit the specific type, name, etc. of the first application. The first refresh rate can be 10 Hz, 30 Hz, or any other value, which is not limited here.
[0128] S402: The electronic device detects a sliding operation of the user on the application interface.
[0129] S403: Refresh the application interface of the first application based on the sliding operation.
[0130] When the sliding speed of the sliding operation is high, the refresh rate of the display screen is increased; when the sliding speed of the sliding operation is low, the refresh rate of the display screen is decreased.
[0131] In some embodiments, the electronic device determines a first target refresh rate corresponding to the sliding speed based on the sliding speed of the sliding operation.
[0132] In an embodiment of the present application, when the sliding speed of the sliding operation is the first speed, the application interface is refreshed and displayed with the first value; when the sliding speed is the second speed, the application interface is refreshed and displayed with the second value. If the first speed is less than the second speed, the first value is less than the second value. If the first speed is greater than the second speed, the first value is greater than or equal to the second value. In some embodiments, the electronic device is pre-set with a corresponding relationship between the speed and the refresh rate. The electronic device can confirm the adjusted refresh rate through the corresponding relationship and the sliding speed of the sliding operation.
[0133] In some other embodiments, the electronic device is pre-set with a correspondence between the speed interval and the refresh rate. The electronic device can confirm the adjusted refresh rate through the correspondence and the sliding speed of the sliding operation.
[0134] Exemplarily, the correspondence between the speed range and the refresh rate can be shown in Table 1. When the sliding speed is greater than or equal to 480 pixel / s, the refresh rate is adjusted to 120 Hz; when the sliding speed is greater than or equal to 240 pixel / s and less than 480 pixel / s, the refresh rate is adjusted to 90 Hz; when the sliding speed is greater than or equal to 90 pixel / s and less than 240 pixel / s, the refresh rate is adjusted to 6 Hz; when the sliding speed is greater than or equal to 60 pixel / s and less than 90 pixel / s, the refresh rate is adjusted to 40 Hz; when the sliding speed is less than 60 pixel / s, the refresh rate is adjusted to 30 Hz.
[0135] Table 1 Correspondence table
[0136] Speed range (pixel / s) Refresh rate (Hz) 480≤Speed 120 240≤Speed<480 90 90≤Speed<240 60 60≤Speed<90 40 Speed < 60 30
[0137] It can be understood that the correspondence shown in Table 1 is only an example, and the embodiment of the present application does not limit the correspondence between the speed range and the refresh rate.
[0138] In this way, the electronic device can adjust the refresh rate in real time based on the sliding speed of the sliding operation. When the sliding speed is low, a lower refresh rate is used to refresh the display, reducing the power consumption of the electronic device; when the sliding speed is high, a higher refresh rate is used to refresh the display, improving the smoothness of the display and enhancing the user experience.
[0139] For example, Figure 5 A schematic diagram of a sliding operation detected by an electronic device provided in an embodiment of the present application. Figure 5 As shown, when the electronic device receives a sliding operation, the electronic device displays an interface based on the speed corresponding to the move event.
[0140] Specifically, when the electronic device receives a down event, the refresh rate is adjusted to 60Hz; when the electronic device receives a move event, the refresh rate is adjusted based on the speed corresponding to the move event until an up event is received. When the speed corresponding to the move event is high, the refresh rate is high; when the speed corresponding to the move event is low, the refresh rate is low. After the up event, the electronic device adjusts the refresh rate based on the speed corresponding to the up event.
[0141] Compared with Figure 1A The schematic diagram of the sliding operation shown in FIG. Figure 5 In the schematic diagram of the sliding operation shown, the electronic device can adjust the refresh rate based on the real-time speed corresponding to the sliding operation. When the speed corresponding to the move event is high, the refresh rate is high to meet the display fluency requirements; when the speed corresponding to the move event is low, the refresh rate is low to reduce power consumption.
[0142] Optionally, before determining the first target refresh rate, the method also includes: the electronic device detects multiple move events corresponding to the sliding operation; and determines the sliding speed based on position information and time information of the multiple move events.
[0143] In the embodiment of the present application, the sliding speed of the sliding operation refers to the speed corresponding to the most recent input event. For example, if the Bth input event is received at 100ms and the B+Cth input event is received at 200ms, the sliding speed of the sliding operation at 100ms is the speed corresponding to the Bth input event; the sliding speed of the sliding operation at 200ms is the speed corresponding to the B+Cth input event.
[0144] In the embodiment of the present application, the electronic device can obtain the relationship between position and time by processing the position information and time information of multiple input events; and obtain the speed corresponding to the most recent input event through the relationship between position and time.
[0145] In some embodiments, the electronic device may fit the time and position of input events received within a period of time to obtain a quadratic polynomial formula (y=ax2+bx+c); y represents the position, x represents the time interval with the last input event; the speed corresponding to the last input event is b.
[0146] For example, taking a period of 100ms as an example, the electronic device receives the Bth input event at 100ms and the B+Cth input event at 200ms; the electronic device can perform fitting processing on the position, time, etc. of the Bth input event to the B+Cth input event detected from 100ms to 200ms to obtain a fitted quadratic polynomial formula (y=ax2+bx+c), where y represents the position and x represents the time interval with the B+Cth input event. The speed corresponding to the B+Cth input event is b.
[0147] In other embodiments, the electronic device may fit the time and position of a preset number of input events to obtain a quadratic polynomial formula (y=ax2+bx+c); y represents the position, x represents the time interval with the last input event; and the speed corresponding to the last input event is b.
[0148] Exemplarily, taking the preset number M as an example, the electronic device receives the B+Cth input event in 200ms; the electronic device can fit the position, time, etc. of the B+1th input event to the B+Cth input event to obtain the fitted quadratic polynomial formula (y=ax2+bx+c), where y represents the position, and x represents the time interval with the B+Cth input event. The speed corresponding to the B+Cth input event is b. The embodiment of the present application does not limit the calculation process of the speed corresponding to the input event.
[0149] On the basis of the above embodiment, when the electronic device adjusts the refresh rate of the electronic device based on the sliding speed of the sliding operation, a time interval is set between any two adjustments of the refresh rate.
[0150] Optionally, the electronic device determines the sliding speed based on the location information and time information of multiple move events, including: the electronic device determines the first speed based on the location information and time information of M move events detected in the first time period; the electronic device determines the second speed based on the location information and time information of N move events detected in the second time period; M and N are both integers greater than a preset threshold; the time interval between the last moment in the first time period and the last moment in the second time period is greater than a preset duration. When the sliding speed of the sliding operation is the first speed, the refresh rate of the display screen is the second refresh rate; when the sliding speed is the second speed, the refresh rate of the display screen is the third refresh rate.
[0151] The preset threshold value may be 10, 5 or any value, which is not limited here.
[0152] In this way, there is a certain time interval between two refresh rate adjustments, which can reduce the number of refresh rate switching times and reduce the frequent switching of refresh rates.
[0153] In some embodiments, when the electronic device detects that the type of user operation is sliding, the electronic device adjusts the refresh rate of the display screen to a second refresh rate based on the speed corresponding to the first move event; the first move event is a move event corresponding to when the electronic device detects that the user operation is a sliding operation, or a move event corresponding after the electronic device detects that the user operation is a sliding operation;
[0154] After adjusting to the preset duration of the second refresh rate, the refresh rate of the display screen is adjusted to the third refresh rate based on the speed corresponding to the second move event; the second move event is the most recent move event detected by the electronic device when it is adjusted to the preset duration of the second refresh rate.
[0155] In this way, there is a certain time interval between two refresh rate adjustments, which can reduce the number of refresh rate switching times and reduce the frequent switching of refresh rates.
[0156] In some embodiments, the speed corresponding to the first move event is not the speed corresponding to before the electronic device detects that the user operation type is sliding. In this way, when the refresh rates are different, switching the refresh rates can reduce the number of refresh rate switching times and reduce the freeze caused by the refresh rate switching.
[0157] In some embodiments, the electronic device can realize the preset duration through a timer. For example, after confirming the refresh rate, the electronic device is provided with a timer. When the timer expires, the refresh rate is confirmed again.
[0158] In some other embodiments, after confirming the refresh rate, the electronic device records the time corresponding to the confirmation of the refresh rate; if the difference between the current time and the time is less than the preset time, no processing is performed; if the difference between the current time and the time is greater than or equal to the preset time, the refresh rate is confirmed again, and the time corresponding to the confirmation of the refresh rate is updated. The embodiment of the present application does not specifically limit the method of reconfirming the refresh rate.
[0159] In some embodiments, the preset duration corresponds to the second refresh rate. When the second refresh rate is higher, the preset duration is longer; when the second refresh rate is lower, the preset duration is shorter. Exemplarily, the preset duration corresponding to the second refresh rate being a first value is greater than or equal to the preset duration corresponding to the second refresh rate being a second value; wherein the first value is greater than the second value.
[0160] In this way, the refresh rate is adjusted by slow reduction and fast increase. When the refresh rate is low, the electronic device can increase the refresh rate in time to meet the display smoothness requirements; when the refresh rate is high, the refresh rate can be slowly reduced to reduce the power consumption of the electronic device.
[0161] In an embodiment of the present application, the electronic device can confirm the preset duration based on the second refresh rate and the corresponding relationship between the refresh rate and the preset duration. Exemplarily, the electronic device is pre-set with a corresponding relationship between the refresh rate and the preset duration. The electronic device can confirm the preset duration based on the corresponding relationship.
[0162] Exemplarily, the corresponding relationship between the refresh rate and the preset time length can be shown in Table 2. When the refresh rate is adjusted to 120Hz, the preset time length is 200ms; when the refresh rate is adjusted to 90Hz, the preset time length is 200ms; when the refresh rate is adjusted to 60Hz, the preset time length is 100ms; when the refresh rate is adjusted to 40Hz, the preset time length is 50ms; when the refresh rate is adjusted to 30Hz, the preset time length is 50ms.
[0163] Table 2 Correspondence table
[0164] Refresh rate (Hz) Preset duration (ms) 120 200 90 200 60 100 40 50 30 50
[0165] It can be understood that the correspondence shown in Table 2 is only an example, and the embodiment of the present application does not limit the correspondence between the refresh rate and the preset duration.
[0166] Based on the above embodiment, before detecting a sliding operation of the user on the application interface, the method further includes: when detecting that the input event is a down event, displaying the application interface at a fourth refresh rate.
[0167] The fourth refresh rate can be 60 Hz, 90 Hz, or any value, which is not limited here.
[0168] The fourth refresh rate is a preset refresh rate.
[0169] It is understandable that the interface displayed by the electronic device may have a low refresh rate when no user operation is received. After receiving the user operation, it is adjusted to a higher refresh rate to facilitate subsequent display based on the user operation and improve the smoothness of the display.
[0170] Based on the above embodiment, after the sliding operation ends, the electronic device can confirm whether it enters the hand-off sliding based on the sliding speed when the sliding operation ends.
[0171] Specifically, when the speed corresponding to the up event corresponding to the sliding operation is greater than the second threshold, the application interface of the first application is refreshed and displayed at the fifth refresh rate. The fifth refresh rate corresponds to the speed corresponding to the up event. When the speed corresponding to the up event corresponding to the sliding operation is less than or equal to the second threshold, the application interface of the first application is refreshed and displayed at the first refresh rate.
[0172] The fifth refresh rate corresponds to the speed corresponding to the up event, which means that when the speed corresponding to the up event is the third speed, the fifth refresh rate is the first value; when the speed corresponding to the up event is the fourth speed, the fifth refresh rate is the second value; the third speed is less than the fourth speed, and the first value is less than or equal to the second value. In this way, the higher the speed corresponding to the up event, the higher the fifth refresh rate, which meets the smoothness requirement of display when the hand is released and swiping.
[0173] The electronic device can process the position information and time information of the up event and the position information and time information of the A move events before the up event to obtain the speed corresponding to the up event. A is an arbitrary positive integer. The calculation method of the speed corresponding to the up event is similar to the calculation method of the speed corresponding to the move event, which will not be repeated here.
[0174] The second threshold may be 100 pixel / s, or any other value, which is not limited in the embodiment of the present application.
[0175] In some embodiments, the electronic device may confirm the sliding speed during the off-hand sliding based on the speed corresponding to the up event and the speed curve corresponding to the off-hand sliding, and then adjust the refresh rate of the electronic device based on the sliding speed during the off-hand sliding.
[0176] In this way, when the speed corresponding to the up event is high, the hand-off sliding begins; when the speed corresponding to the up event is low, the sliding stops.
[0177] On the basis of the above embodiment, the electronic device further stores an application list. When the application corresponding to the user operation is an application in the application list, the electronic device adjusts the refresh rate based on the real-time speed of the user operation through the above method; when the application corresponding to the user operation is not an application in the application list, the electronic device refreshes the display at a higher refresh rate when receiving the user operation.
[0178] For example, Figure 6 A flow chart of a refresh rate switching method provided in an embodiment of the present application. Figure 6 As shown, the method includes:
[0179] S601. An electronic device displays an application interface of a first application at a first refresh rate.
[0180] S602: In response to a user operation, the electronic device detects a plurality of input events corresponding to the user operation.
[0181] S603: The electronic device receives a down event and displays the interface of the first application at a fourth refresh rate.
[0182] S604: When the distance between the coordinates of the move event received by the electronic device and the coordinates of the down event is greater than a first threshold, the electronic device confirms that the user operation is a sliding operation.
[0183] The distance in the embodiments of the present application refers to the distance in the sliding direction. Taking the vertical sliding up and down as an example, the distance between the coordinates of the move event and the coordinates of the down event refers to the distance between the coordinates of the move event and the coordinates of the down event in the vertical direction; taking the horizontal sliding left and right as an example, the distance between the coordinates of the move event and the coordinates of the down event refers to the distance between the coordinates of the move event and the coordinates of the down event in the horizontal direction. The embodiments of the present application do not specifically limit the sliding direction.
[0184] S605: The electronic device adjusts the refresh rate based on the sliding speed of the sliding operation.
[0185] The specific execution process of S605 can refer to the above corresponding description, which will not be repeated here.
[0186] S606: When the distance between the coordinates of the move event received by the electronic device and the coordinates of the down event is less than a first threshold, the electronic device does not adjust the refresh rate.
[0187] S607: When the electronic device receives the up event, the electronic device adjusts the refresh rate based on the control corresponding to the position operated by the user.
[0188] When the electronic device receives an up event, the distance between the coordinates of the move event and the coordinates of the down event is less than the first threshold, and the electronic device adjusts the refresh rate based on the control corresponding to the position of the user operation.
[0189] In this way, after receiving a sliding operation, the electronic device can adjust the refresh rate based on the sliding speed of the sliding operation to reduce the power consumption of the electronic device; and does not adjust the refresh rate when receiving a click operation to reduce the power consumption of the electronic device.
[0190] Combine the following Figures 7 to 10 The interaction process between internal modules of the electronic device in different user operations is described. Figures 7 to 8B The interaction process corresponding to the sliding operation; Fig. 9 and Fig.10 This is the interaction process corresponding to the click operation.
[0191] For example, Figure 7 A schematic diagram of the interaction between internal modules in a sliding operation scenario provided by an embodiment of the present application. Take an electronic device including: a touch panel (TP), an input system, and an image synthesis system as an example. Figure 7As shown, the refresh rate switching process includes: when the electronic device displays the list interface at the first refresh rate, it receives a user operation.
[0192] S701: The touch panel (TP) collects information corresponding to user operations and transmits original input events to the input system. The original input events include: touch coordinates, touch force, touch operation timestamp and other information.
[0193] The frequency at which the touch panel (TP) collects information corresponding to user operations may be referred to as a touch sampling rate. The touch sampling rate may be a preset sampling frequency. The touch panel (TP) transmits raw input events to the input system according to the touch sampling rate. The touch sampling rate may be 300 times / second, 120 times / second, or any other value, which is not limited in the embodiments of the present application.
[0194] S702: When receiving (detecting) a first original input event, the input system parses the first original input event to obtain a down event.
[0195] In some embodiments, after receiving the down event, the input system clears the relevant parameters corresponding to the last user operation and / or configures the relevant flag bit, so as to reduce the interference of the parameters of the last operation and reduce the misrecognition of the current operation.
[0196] The relevant flag bits include but are not limited to: a flag bit used to indicate the operation type, a flag bit used to indicate the current refresh rate; a flag bit used to determine the refresh rate adjustment, etc.
[0197] Exemplarily, the flags used to indicate the operation type include: click, slide move; the flags used to indicate the current refresh rate include: boost; the flags used to indicate the refresh rate adjustment include: first checked; last check time. First checked is used to indicate whether the first refresh rate switch is performed. Last check time is used to indicate the time of the last refresh rate switch.
[0198] In some embodiments, boost is used to indicate that the current refresh rate is higher or lower. For example, boost = false is used to indicate that the current refresh rate is lower; boost = true is used to indicate that the current refresh rate is higher. In other embodiments, boost is used to indicate the specific value of the current refresh rate. For example, boost = 60 is used to indicate that the current refresh rate is 60 Hz; boost = 90 is used to indicate that the current refresh rate is 90 Hz. This embodiment of the present application does not limit this.
[0199] Since the input system cannot distinguish between a click operation and a slide operation when detecting a down event, the electronic device assumes that the user operation type is a click operation. The values corresponding to each flag bit are: click = true; move = false; boost = false; first checked = false; last check time = 0.
[0200] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device receives a down event at time t1, and the values corresponding to each flag bit are: click=true; move=false; boost=false; firstchecked=false; last check time=0.
[0201] In some embodiments, when the input system receives the down event, it transmits a message indicating the fourth refresh rate to the image synthesis system. Adaptively, the image synthesis system controls the electronic device to switch from the first refresh rate to the fourth refresh rate.
[0202] S703: When receiving the second original input event, the input system parses the second original input event to obtain a move event.
[0203] S704: When the distance between the coordinates corresponding to the move event and the coordinates corresponding to the down event is greater than a first threshold, the input system confirms that the user operation is a sliding operation.
[0204] The first threshold may be 24 pixels, 30 pixels, or any other value. The embodiment of the present application does not limit the specific value of the first threshold.
[0205] It can be understood that when the distance between the coordinates corresponding to the move event and the coordinates corresponding to the down event is less than or equal to the first threshold, the values corresponding to the flag bits remain unchanged.
[0206] When the input system confirms that the user operation is a sliding operation, the values corresponding to each flag bit are: click=false; move=true; boost=false; first checked=false; last check time=0.
[0207] For example, Fig. 8ATaking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device receives a down event at time t1, and receives a move event after time t1. The coordinates corresponding to the move event received at time t2 are less than or equal to the first threshold, and the electronic device confirms that the user operation is a click operation at time t2. The values corresponding to each flag bit remain unchanged. click = true; move = false; boost = false; first checked = false; last check time = 0.
[0208] The distance between the coordinates corresponding to the move event received at time t3 and the coordinates corresponding to the down event is greater than the first threshold, and the electronic device confirms at time t3 that the user operation is a sliding operation. The flag bit used to indicate the operation type changes, for example, click = false; move = true.
[0209] S705: After confirming that the user operation is a sliding operation, the input system determines a second refresh rate based on a speed corresponding to the first move event.
[0210] Adaptively, after the input system confirms the second refresh rate, the values corresponding to each flag bit are: click=false; move=true; boost=true; first checked=true; last check time=the time corresponding to the first move event.
[0211] In the embodiment of the present application, the first move event may be a move event corresponding to confirming that the user operation is a sliding operation, or may be a move event detected after confirming that the user operation is a sliding operation.
[0212] In a possible implementation method one, the electronic device calculates the speed corresponding to the move event corresponding to confirming that the user operation is a sliding operation, and calculates the speed corresponding to the corresponding move event detected after the user operation is a sliding operation, until the refresh rate corresponding to the speed corresponding to the move event is different from the first refresh rate.
[0213] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation as an example, before time t3, the refresh rate of the electronic device is 60Hz. At time t3, the electronic device confirms that the user operation is a sliding operation, and the electronic device calculates the speed corresponding to the move event received at time t3 as 500pixel / s, and confirms that the refresh rate is 120Hz based on the speed corresponding to the move event.
[0214] Correspondingly, the flag bit for indicating the current refresh rate and the flag bit for indicating the refresh rate adjustment change. For example, boost = true; first checked = true; last check time = t3.
[0215] It can be understood that if the electronic device calculates that the speed corresponding to the move event received at time t3 is 200 pixels, and the refresh rate confirmed by the move event at time t3 is 60 Hz; then the electronic device calculates the speed corresponding to the move event received at time t4 until it confirms that the refresh rate is not 60 Hz based on the speed corresponding to the move event.
[0216] In a second possible implementation, the electronic device adjusts the refresh rate based on a speed corresponding to a move event corresponding to a sliding operation confirmed to be a user operation.
[0217] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device confirms that the user operation is a sliding operation at time t3. The electronic device calculates that the speed corresponding to the move event received at time t3 is 500 pixels / s, and confirms that the refresh rate is 120 Hz based on the speed corresponding to the move event.
[0218] In a third possible implementation, the electronic device adjusts the refresh rate based on a speed corresponding to a move event detected after confirming that the user operation is a sliding operation.
[0219] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device confirms that the user operation is a sliding operation at time t3, and the electronic device calculates the speed corresponding to the move event received at time t4, and determines the refresh rate based on the speed.
[0220] S706: The input system transmits a message indicating the second refresh rate to the image synthesis system.
[0221] Adaptively, the image synthesis system controls the refresh rate of the electronic device to a second refresh rate.
[0222] In some embodiments, the image synthesis system generates a Vsync signal according to the period duration corresponding to the second refresh rate to control the time intervals of drawing, rendering, synthesis, display and other processes.
[0223] S707: When the first duration after S605 arrives, the input system determines the third refresh rate based on the speed corresponding to the second move event. The first duration corresponds to the second refresh rate.
[0224] It can be understood that after the input system confirms the second refresh rate, the values corresponding to the flag bits are: click=false; move=true; boost=true; first checked=true; last check time=the time corresponding to the second move event.
[0225] The correspondence between the second refresh rate and the first duration can be referred to the above corresponding description, which will not be repeated here.
[0226] The second move event is the move event closest to the first duration after S705 obtained before the first duration after S705, which can also be understood as the most recent move event.
[0227] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation as an example, the electronic device adjusts the refresh rate to 120Hz at time t3, and when the preset duration of time t3 arrives, the second move event is the move event detected by the electronic device at time t6. The electronic device calculates the speed corresponding to the move event at time t6 as 200pixel / s, and determines the refresh rate to be 60Hz based on the speed corresponding to the move event at time t6.
[0228] Correspondingly, the flag bit indicating the current refresh rate and the flag bit indicating the refresh rate adjustment change. For example, boost = false; first checked = true; last check time = t6.
[0229] S708: The input system transmits a message indicating the third refresh rate to the image synthesis system.
[0230] Adaptively, the image synthesis system controls the electronic device to switch from the second refresh rate to the third refresh rate.
[0231] In some embodiments, the image synthesis system generates a Vsync signal according to a period duration corresponding to the third refresh rate to control the time intervals of drawing, rendering, synthesis, display and other processes.
[0232] It should be noted that if the second refresh rate is the same as the third refresh rate, the electronic device may not execute S708 or 7608.
[0233] In some embodiments, the image composition system generates a Vsync signal based on a third refresh rate.
[0234] S709: The input system parses the third original input event within a second time period after S707, and detects an up event.
[0235] For example, Fig. 8A Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device adjusts the refresh rate to 60 Hz, detects an up event before the preset duration at time t6 arrives, and calculates the speed corresponding to the up event.
[0236] S710: When the speed corresponding to the up event is less than the second threshold, the input system transmits a message indicating a first refresh rate to the image synthesis system.
[0237] Adaptively, the image synthesis system controls the electronic device to switch from the third refresh rate to the first refresh rate.
[0238] S711. After receiving the up event, the input system clears the relevant parameters corresponding to the user operation.
[0239] The relevant parameters include, but are not limited to: the above-mentioned flags, coordinates corresponding to the down event, coordinates corresponding to the move event, coordinates corresponding to the up event, etc.
[0240] It can be understood that when the speed corresponding to the up event is greater than or equal to the second threshold, the electronic device subsequently confirms the fifth refresh rate based on the speed curve and the speed corresponding to the up event.
[0241] For example, taking the speed corresponding to the up event as 80 pixels / s, the fifth refresh rate is 40 Hz. The relationship between the speed and the fifth refresh rate can refer to the above corresponding description, which will not be repeated here.
[0242] In this way, the electronic device can adjust the refresh rate of the electronic device based on the move event. When the sliding speed corresponding to the sliding operation is slow, the refresh rate is reduced to reduce power consumption; when the sliding speed corresponding to the sliding operation is fast, the refresh rate is increased to meet the smoothness of the sliding display and improve the user experience. In addition, clearing the corresponding mark in S711 can reduce interference with subsequent user operation judgment and reduce the risk of misrecognition.
[0243] For example, Figure 8B A method provided in the embodiment of the present application Fig. 8A The interface diagram corresponding to the sliding operation shown is taken as an example when the electronic device receives a sliding operation from the user when displaying the setting interface.
[0244] Figure 8B The interface shown in a in FIG. 1 is a setting interface. Before time t1, the electronic device refreshes the setting interface at a frequency of 10 Hz without receiving any user operation.
[0245] At time t1, the electronic device detects a down event corresponding to the user's sliding operation, and the electronic device adjusts the refresh rate of the display screen to 60Hz. After time t1, the display screen refreshes the display setting interface (such as Figure 8B(as shown in b in the figure).
[0246] From time t1 to time t3, the display screen refreshes the display setting interface at a frequency of 60 Hz.
[0247] At time t3, the electronic device determines that the type of user operation is sliding, and starts to calculate the speed corresponding to the move event. The speed corresponding to the move event calculated by the electronic device is 500 pixels / s, and the refresh rate of the display screen is adjusted to 120 Hz.
[0248] After t3, the display refreshes the display settings interface at a frequency of 120Hz (such as Figure 8B (as shown in c in the figure).
[0249] From time t3 to time t6, the display screen refreshes the display setting interface at a frequency of 120 Hz.
[0250] At time t6, the preset duration is reached, and the speed corresponding to the move event obtained by the electronic device is 200 pixels / s, and the refresh rate of the display is adjusted to 60 Hz.
[0251] After t6, the display refreshes the display settings interface at a frequency of 60Hz (such as Figure 8B d in the figure).
[0252] From time t6 to time t8, the display screen refreshes the display setting interface at a frequency of 60 Hz.
[0253] At time t8, the electronic device detects an up event corresponding to the user's sliding operation, and obtains that the speed corresponding to the up event is 80 pixels / s, which is greater than the speed threshold, and adjusts the refresh rate of the display to 40 Hz (e.g. Figure 8B The speed threshold may be the second threshold mentioned above.
[0254] Subsequently, the terminal device displays the hand-off sliding process and adjusts the refresh rate. The above embodiment describes the switching of the refresh rate in the sliding scene. The method provided in the embodiment of the present application can also be applied to the scene corresponding to the click operation.
[0255] For example, Fig. 9 A schematic diagram of the interaction between internal modules provided in an embodiment of the present application. Take an electronic device including a touch panel (TP), an input system, an image synthesis system and an application as an example. Fig. 9 As shown, the refresh rate switching process includes: when the electronic device displays the list interface at the first refresh rate, it receives a user operation.
[0256] S901, the touch panel (TP) collects information corresponding to the user operation and transmits the original input event to the input system. The original input event includes: touch coordinates, touch force, touch operation timestamp and other information.
[0257] S902: When receiving (detecting) a first original input event, the input system parses the first original input event to obtain a down event.
[0258] In some embodiments, after receiving the down event, the input system clears the relevant parameters corresponding to the last user operation and / or configures the relevant flag bits.
[0259] The relevant flags can refer to the above corresponding descriptions, which will not be repeated here. Since the input system cannot distinguish between click operations and sliding operations when detecting a down event, the electronic device defaults the user operation type to a click operation. The values corresponding to each flag are: click = true; move = false; boost = false; first checked = false; last check time = 0.
[0260] In some embodiments, when the input system receives the down event, it transmits a message indicating the fourth refresh rate to the image synthesis system. Adaptively, the image synthesis system controls the electronic device to switch from the first refresh rate to the fourth refresh rate.
[0261] S903: When receiving the second original input event, the input system parses the second original input event to obtain a move event.
[0262] When the distance between the coordinates corresponding to the move event and the coordinates corresponding to the down event is less than or equal to the first threshold, the input system does not process it and the flags remain unchanged. The first threshold can refer to the above corresponding description and will not be repeated here.
[0263] For example, Fig.10 Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device receives a down event at time t1, and receives a move event after time t1. The coordinates corresponding to the move event received at time t2 are less than or equal to the first threshold, and the electronic device confirms that the user operation is a click operation at time t2. The values corresponding to each flag bit remain unchanged. click = true; move = false; boost = false; first checked = false; last check time = 0.
[0264] S904: When receiving the third original input event, the input system parses the third original input event to obtain an up event.
[0265] It can be understood that since the distance between the coordinates corresponding to the up event and the coordinates corresponding to the down event is less than the first threshold, the user operation is a click operation. After the up event, the values corresponding to each flag bit are: click = true; move = false; boost = false; first check = false; last check time = 0;
[0266] For example, Fig.10 Taking the schematic diagram corresponding to the sliding operation shown as an example, the electronic device receives a down event at time t1, and receives a move event after time t1. The distances between the coordinates corresponding to the move event received at time t2 and time t3 and the coordinates corresponding to the down event are both less than or equal to the first threshold value. The electronic device confirms that the user operation is a click operation at time t2 and time t3, and does not switch the refresh rate. After time t4, an up event is received. The electronic device confirms that the user operation is a click operation and does not switch the refresh rate.
[0267] S905: The input system transmits a message for indicating a click operation to the application, where the message includes: coordinates corresponding to the up event.
[0268] S906. The application confirms the fifth refresh rate corresponding to the subsequent display based on the coordinates corresponding to the up event.
[0269] Taking the coordinates corresponding to the up event as indicating video playback as an example, the fifth refresh rate may be 60 Hz; taking the coordinates corresponding to the up event as indicating entering a game application as an example, the fifth refresh rate may be 120 Hz; taking the coordinates corresponding to the up event as indicating exiting a game application as an example, the fifth refresh rate may be 90 Hz. The fifth refresh rate confirmed by the application is not limited in the present embodiment.
[0270] S907: The application transmits a message indicating the fifth refresh rate to the image synthesis system.
[0271] Adaptively, the image synthesis system controls the electronic device to switch from the first refresh rate to the fifth refresh rate.
[0272] In some embodiments, the image synthesis system generates a Vsync signal according to the cycle duration corresponding to the fifth refresh rate to control the time interval of drawing, rendering, synthesis, display and other processes.
[0273] It should be noted that if the first refresh rate is the same as the fifth refresh rate, the electronic device may execute S907 or may not execute S907.
[0274] In this way, when receiving a click operation, the electronic device maintains a lower refresh rate to reduce power consumption. After the click operation, the subsequent display and refresh rate are determined based on the position corresponding to the click operation.
[0275] The method provided in the embodiment of the present application has been described above, and the device for executing the above method provided in the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided in the embodiment of the present application can execute the steps in the above method.
[0276] The refresh rate switching method provided in the embodiment of the present application can be applied to electronic devices with display functions. The electronic device includes an electronic device, and the specific device form of the electronic device can refer to the above related description, which will not be repeated here.
[0277] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.
[0278] For example, Fig.11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 As shown, the electronic device includes: the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0279] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0280] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0281] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0282] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0283] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0284] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0285] In addition, on top of the above components, the device also runs an operating system, such as an iOS operating system, an Android operating system, or a Windows operating system, etc. Applications can be installed and run on the operating system.
[0286] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture, etc., which will not be elaborated here.
[0287] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.
[0288] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above method is implemented.
[0289] The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0290] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0291] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.
[0292] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the present application embodiment. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow chart and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and / or one box or multiple boxes of the block chart.
[0293] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0294] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.
Claims
1. A refresh rate switching method, characterized in that: The method is applied to an electronic device, the electronic device includes a display screen and is installed with a first application, and the method includes: Displaying the application interface of the first application at a first refresh rate; Detecting a user's sliding operation on the application interface; Refreshing the application interface of the first application based on the sliding operation; Wherein, when the sliding speed of the sliding operation is the first speed, the refresh rate of the display screen is the second refresh rate; when the sliding speed is the second speed, the refresh rate of the display screen is the third refresh rate; The first speed is less than the second speed, and the second refresh rate is less than or equal to the third refresh rate.
2. The method according to claim 1, characterized in that The refreshing of the application interface of the first application based on the sliding operation includes: Based on the sliding speed, determining a first target refresh rate corresponding to the sliding speed; The display screen refreshes the application interface of the first application at the first target refresh rate.
3. The method according to claim 2, characterized in that Before determining the first target refresh rate, the method further includes: Detecting multiple move events corresponding to the sliding operation; The sliding speed is determined based on the position information and time information of the plurality of move events.
4. The method according to claim 3, characterized in that The determining the sliding speed based on the position information and time information of the plurality of move events includes: Determine the first speed based on position information and time information of M move events detected in a first time period; Determining the second speed based on position information and time information of N move events detected within a second time period; Wherein, both M and N are integers greater than a preset threshold; and the time interval between the last moment in the first time period and the last moment in the second time period is greater than a preset duration.
5. The method according to claim 4, characterized in that When the second refresh rate is a first value, the preset duration is a first duration; When the second refresh rate is a second value, the preset duration is a second duration; The first value is greater than the second value, and the first duration is greater than the second duration.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When a down event corresponding to the sliding operation is detected, the application interface of the first application is displayed at a fourth refresh rate.
7. The method according to any one of claims 1 to 6, characterized in that An up event corresponding to the sliding operation is detected; Determine a second target refresh rate based on the speed corresponding to the up event; The display screen refreshes the application interface of the first application at the second target refresh rate.
8. The method according to claim 7, characterized in that When the speed corresponding to the up event is less than or equal to the speed threshold, the display screen refreshes and displays the application interface of the first application at a first refresh rate; When the speed corresponding to the up event is greater than the speed threshold, the display screen refreshes and displays the application interface of the first application at a fifth refresh rate, where the fifth refresh rate corresponds to the speed corresponding to the up event.
9. A refresh rate switching method, characterized in that: The method is applied to an electronic device, the electronic device includes a display screen and is installed with a first application, and the method includes: Displaying the application interface of the first application at a first refresh rate; Detecting a user's sliding operation on the application interface; When a down event corresponding to the sliding operation is detected, switching the refresh rate of the display screen from the first refresh rate to a second refresh rate, and displaying the application interface of the first application at the second refresh rate; When it is detected that the sliding speed corresponding to the sliding operation is the first speed, switching the refresh rate of the display screen from the second refresh rate to a third refresh rate, and displaying the application interface of the first application at the third refresh rate; When it is detected that the sliding speed is the second speed, switching the refresh rate of the display screen from the third refresh rate to the fourth refresh rate, and displaying the application interface of the first application at the fourth refresh rate, wherein when the first speed is less than the second speed, the third refresh rate is less than the fourth refresh rate, and when the first speed is greater than the second speed, the third refresh rate is greater than the fourth refresh rate; When an up event corresponding to the sliding operation is detected, the refresh rate of the display screen is switched from the fourth refresh rate to the fifth refresh rate, and the application interface of the first application is displayed at the fifth refresh rate.
10. The method according to claim 9, characterized in that The speed corresponding to the up event is less than or equal to a speed threshold, and the fifth refresh rate is the same as the first refresh rate.
11. The method according to claim 9, characterized in that The speed corresponding to the up event is greater than the speed threshold; When the speed corresponding to the up event is the third speed, the fifth refresh rate is the first value; When the speed corresponding to the up event is the fourth speed, the fifth refresh rate is the second value; The third speed is lower than the fourth speed, and the first value is lower than or equal to the second value.
12. The method according to any one of claims 9 to 11, characterized in that: The sliding operation corresponds to a plurality of move events, and the method further includes: Determining a speed of the sliding operation as a first speed based on position information and time information corresponding to the first move event, and position information and time information corresponding to a move event before the first move event; The first move event is a move event corresponding to when it is detected that the type of the sliding operation is sliding, or a move event after it is detected that the type of the sliding operation is sliding.
13. The method according to claim 12, characterized in that The method further comprises: Determining the speed of the sliding operation as a second speed based on the position information and time information corresponding to the second move event, and the position information and time information corresponding to the move event before the second move event; The time interval between the second move event and the first move event is greater than a preset duration.
14. The method according to any one of claims 9 to 13, characterized in that: When the third refresh rate is the first value, the preset duration is the first duration; When the third refresh rate is the second value, the preset duration is the second duration; The first value is greater than the second value, and the first duration is greater than the second duration.
15. The method according to any one of claims 9 to 14, characterized in that: The first refresh rate is 10 Hz, the second refresh rate is 60 Hz, the third refresh rate is 120 Hz, the fourth refresh rate is 60 Hz, and the fifth refresh rate is 40 Hz.
16. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 8, or executes the method according to any one of claims 9 to 15.
17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented, or the method according to any one of claims 9 to 15 is implemented.
18. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 8, or to execute the method according to any one of claims 9 to 15.
Citation Information
Cited By
Refresh rate switching method and related apparatus
EP4726514A1
Refresh rate switching method and related apparatus
WO2025055567A1