Application window display method and device, electronic equipment and storage medium

By detecting operation instructions and reducing the refresh rate of non-target application windows, the problems of high power consumption and easy heat generation of electronic devices in multi-application window mode are solved, and the effect of reducing power consumption and taking into account both the user experience is achieved.

CN119440336APending Publication Date: 2025-02-14BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310967838.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the multi-application window mode, the high power consumption and prone to heat generation of electronic devices are mainly due to the fact that the operation of multiple applications occupies a lot of system resources.

Method used

By detecting the operation instructions of multiple application windows displayed by the electronic device, the target application window is determined, and the refresh rate of application windows outside the target application window is reduced to reduce system resource usage.

Benefits of technology

It realizes the reduction of power consumption of electronic devices and slows down temperature rise, while maintaining the display fluency of the target application window, taking into account power consumption and user visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440336A_ABST
    Figure CN119440336A_ABST
Patent Text Reader

Abstract

The invention relates to an application window display method and device, electronic equipment and a storage medium. The method comprises the steps that operation instructions for multiple application windows displayed by the electronic equipment are detected; determining a target application window according to the operation instruction; and reducing the refresh rate of the application windows except the target application window in the plurality of application windows. Through the scheme, the display effect of the target application window with relatively high user attention can be considered on the basis of reducing the power consumption of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of application operation, and in particular to a method and device for displaying an application window, an electronic device, and a storage medium. Background Art

[0002] As electronic devices such as smartphones and tablets become more and more popular, people have higher and higher requirements for their power consumption and temperature rise in daily use. Due to the large screen properties of electronic devices, the multi-application window function is opened to improve the convenience of users using multiple applications in electronic devices. At the same time, the operation of multiple applications occupies more system resources, resulting in more prominent problems of high power consumption and easy heating of electronic devices in this scenario. Summary of the invention

[0003] The present disclosure provides a method and device for displaying an application window, an electronic device, and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for displaying an application window is provided, which is applied to an electronic device and includes:

[0005] Detecting operation instructions for multiple application windows displayed by the electronic device;

[0006] According to the operation instruction, determining the target application window;

[0007] The refresh rates of application windows other than the target application window among the multiple application windows are reduced.

[0008] In some embodiments, the method further comprises:

[0009] Acquiring operating environment parameters of the electronic device;

[0010] The reducing the refresh rate of the application windows other than the target application window among the multiple application windows comprises:

[0011] When the operating environment parameter does not meet the preset environment parameter threshold, the refresh rate of application windows other than the target application window is reduced.

[0012] In some embodiments, the operating environment parameter includes a processor load of the electronic device and / or a temperature of the electronic device;

[0013] When the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of the application windows other than the target application window includes:

[0014] When the processor load of the electronic device is greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, the refresh rate of application windows other than the target application window is reduced.

[0015] In some embodiments, when the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of application windows other than the target application window includes:

[0016] When the operating environment parameter does not meet the preset environment parameter threshold, for each application window other than the target application window, determining a reduced target refresh rate corresponding to the application window according to the operating environment parameter;

[0017] Each application window other than the target application window is controlled to be displayed according to the target refresh rate corresponding to the application window.

[0018] In some embodiments, for each application window other than the target application window, determining the reduced target refresh rate corresponding to the application window according to the operating environment parameter includes:

[0019] For each application window other than the target application window, the target refresh rate of the application window is determined according to the identification of the application window, the operating environment parameters and the preset refresh rate correspondence; wherein the preset refresh rate correspondence includes a mapping between the identification of the application window, the operating environment parameters and the refresh rate.

[0020] In some embodiments, the method further comprises:

[0021] For each application window other than the target application window, obtaining a current refresh rate of the application window;

[0022] The determining the target refresh rate of the application window according to the identifier of the application window, the operating environment parameter and the preset refresh rate correspondence includes:

[0023] Determine the preset refresh rate corresponding to the identifier of the application window and the preset refresh rate corresponding to the operating environment parameter in the preset refresh rate correspondence;

[0024] When the preset refresh rate is less than the current refresh rate of the application window, the preset refresh rate is determined as the target refresh rate.

[0025] In some embodiments, the method further comprises:

[0026] For each application window other than the target application window, associating the identifier of the application window with the target refresh rate corresponding to the application window and writing the result into a preset configuration file;

[0027] The controlling each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window includes:

[0028] For each application window other than the target application window, the target refresh rate associated with the identifier of the application window is read from the preset configuration file according to the identifier of the application window, and the application window is controlled to be displayed according to the target refresh rate.

[0029] According to a second aspect of an embodiment of the present disclosure, there is provided a display device for an application window, which is applied to an electronic device and includes:

[0030] A detection module, used to detect operation instructions for multiple application windows displayed by the electronic device;

[0031] A determination module, used to determine a target application window according to the operation instruction;

[0032] The reducing module is used to reduce the refresh rate of the application windows other than the target application window among the multiple application windows.

[0033] In some embodiments, the apparatus further comprises:

[0034] A first acquisition module, used to acquire operating environment parameters of the electronic device;

[0035] The reducing module is used to reduce the refresh rate of application windows other than the target application window when the operating environment parameter does not meet the preset environment parameter threshold.

[0036] In some embodiments, the operating environment parameter includes a processor load of the electronic device and / or a temperature of the electronic device;

[0037] The reduction module is used to reduce the refresh rate of application windows other than the target application window when the processor load of the electronic device is greater than a preset load threshold and / or the temperature of the electronic device is greater than a preset temperature threshold.

[0038] In some embodiments, the reduction module is used to determine, for each application window other than the target application window, a reduced target refresh rate corresponding to the application window according to the operating environment parameters when the operating environment parameters do not meet the preset environment parameter threshold; and control each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window.

[0039] In some embodiments, the reduction module is used to determine the target refresh rate of the application window for each application window other than the target application window based on the application window identifier, the operating environment parameters and a preset refresh rate correspondence; wherein the preset refresh rate correspondence includes a mapping between the application window identifier, the operating environment parameters and the refresh rate.

[0040] In some embodiments, the apparatus further comprises:

[0041] A second acquisition module, configured to acquire a current refresh rate of each application window other than the target application window;

[0042] The reduction module is used to determine the preset refresh rate corresponding to the identifier of the application window and the operating environment parameters in the preset refresh rate correspondence relationship; when the preset refresh rate is less than the current refresh rate of the application window, the preset refresh rate is determined as the target refresh rate.

[0043] In some embodiments, the apparatus further comprises:

[0044] a configuration module, configured to associate the identifier of the application window with the target refresh rate corresponding to the application window for each application window other than the target application window, and then write the associated identifier into a preset configuration file;

[0045] The reduction module is used to read the target refresh rate associated with the identifier of each application window other than the target application window from the preset configuration file according to the identifier of the application window, and control the application window to be displayed according to the target refresh rate.

[0046] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0047] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method as described in the first aspect above.

[0048] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:

[0049] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in the first aspect above.

[0050] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0051] In the case where an electronic device displays multiple application windows, the disclosed embodiment determines a target application window with higher user attention based on detected operation instructions for the multiple application windows displayed on the electronic device, and reduces the power consumption of the electronic device and slows down the temperature rise by reducing the refresh rate of application windows other than the target application window. In addition, since the refresh rate of the target application window with higher user attention is not reduced, the display smoothness of the target application window is better, thereby taking into account both the power consumption of the electronic device and the visual experience of the user.

[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0054] Figure 1 This is an example of a display method flow of an application window provided by an embodiment of the present disclosure. Figure 1 .

[0055] Figure 2 This is an example diagram of an electronic device displaying multiple application windows provided by an embodiment of the present disclosure.

[0056] Figure 3 This is an example diagram of a display module of an application window provided in an embodiment of the present disclosure.

[0057] Figure 4 This is an example of a display method flow of an application window provided by an embodiment of the present disclosure. Figure 2 .

[0058] Figure 5 4 is a diagram of a display device for an application window shown in an embodiment of the present disclosure.

[0059] Figure 6 It is a block diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0061] In the related art, when it is detected that the electronic device has entered the multi-application window mode, the power consumption and temperature rise of the electronic device are reduced by limiting the processor frequency and screen refresh rate of the electronic device. However, this approach has the problem of a one-size-fits-all approach. Directly limiting the processor frequency and screen refresh rate will cause all application windows to freeze, greatly affecting the user experience.

[0062] In this regard, an embodiment of the present disclosure provides a method for displaying an application window, and the execution subject may be an electronic device that can display an application window, such as a user equipment (UE), a mobile device, a user terminal, a mobile phone, a tablet computer, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for displaying an application window may be implemented by a processor in an electronic device calling a computer-readable instruction stored in a memory.

[0063] Figure 1 This is an example of a display method flow of an application window shown in an embodiment of the present disclosure. Figure 1 , used in electronic equipment, by Figure 1 It can be seen that the following steps are included:

[0064] S101, detecting an operation instruction for a plurality of application windows displayed on the electronic device;

[0065] S102, determining a target application window according to the operation instruction;

[0066] S103: Reduce the refresh rate of application windows other than the target application window among the multiple application windows.

[0067] The electronic device of the embodiment of the present disclosure includes a display component, such as a display screen, for displaying an application window corresponding to an application running in the electronic device. The electronic device of the embodiment of the present disclosure can display one or more application windows through the display component.

[0068] Figure 2 An example diagram of an electronic device displaying multiple application windows provided by an embodiment of the present disclosure, Figure 2 In the example, the electronic device displays application window a, application window b, and application window c.

[0069] In step S101, when the electronic device displays multiple application windows, an operation instruction for the displayed multiple application windows is detected; wherein the operation instruction is such as a user clicking or sliding operation on the application window, or a selection operation on a button corresponding to the application window, etc.; wherein the button corresponding to the application window can be a virtual button or a physical button. In addition, the operation instruction can also be a user's voice instruction based on the application window, such as "enlarge the window of application A", etc.

[0070] In step S102, the electronic device determines the target application window according to the operation instruction; for example, the electronic device determines the application window affected by the user's click operation as the target application window; or determines the application window indicated by the voice instruction as the target application window.

[0071] In addition, the electronic device may also determine the target application window based on the operation instruction and the states of the multiple application windows; for example, if the user enlarges the window size of the application window through a sliding operation, after the electronic device enlarges the window size of the application window based on the sliding operation, in response to the application window after the enlarged window size is the largest application window among the multiple application windows, the electronic device determines the application window after the enlarged window size as the target application window, such as Figure 2 If the user moves the position of the application window to the left by clicking a button, the electronic device moves the application window based on the clicking operation, and in response to the moved application window being the application window displayed in the center of the multiple application windows, determines the moved application window in the center as the target application window.

[0072] It can be understood that the target application window in the embodiment of the present disclosure is the application window that the user is currently paying more attention to.

[0073] In step S103, after determining the target application window among the multiple application windows, the electronic device reduces the refresh rate of application windows other than the target application window among the multiple application windows; for example, the refresh rate of application windows other than the target application window is reduced to a preset refresh rate (such as 30 frames per second); or based on the current refresh rate of application windows other than the target application window, it is reduced by a preset reduction amount, etc.

[0074] For example, the electronic device runs and displays application window d and application window e at the same time, resulting in high power consumption and faster heating of the electronic device; wherein application window d synthesizes 60 frames per second and application window e synthesizes 120 frames per second. If the target application window determined by the electronic device based on the operation instruction is application window e, the refresh rate of application window d can be reduced to 30 frames per second, achieving a 23% reduction in the power consumption of the electronic device and a 2-degree drop in the maximum temperature of the entire device.

[0075] It should be noted that, in the embodiment of the present disclosure, on the basis of reducing the refresh rate of application windows outside the target application window, if the application windows outside the target application window are application windows for videos, games, etc., the electronic device can also reduce the volume of application windows outside the target application window; if the application windows outside the target application window correspond to message reminder functions, the electronic device can also turn off the message reminder function of application windows outside the target application window, thereby further reducing the overall power consumption of the electronic device and mitigating temperature rise.

[0076] It can be understood that in the embodiment of the present disclosure, when an electronic device displays multiple application windows, based on the detected operation instructions for the multiple application windows displayed by the electronic device, a target application window with higher user attention is determined, and the power consumption of the electronic device is reduced and the temperature rise is slowed down by reducing the refresh rate of application windows other than the target application window. In addition, since the refresh rate of the target application window with higher user attention is not reduced, the display smoothness of the target application window is better, thereby taking into account both the power consumption of the electronic device and the visual experience of the user.

[0077] In some embodiments, the method further comprises:

[0078] Acquiring operating environment parameters of the electronic device;

[0079] The reducing the refresh rate of the application windows other than the target application window among the multiple application windows comprises:

[0080] When the operating environment parameter does not meet the preset environment parameter threshold, the refresh rate of application windows other than the target application window is reduced.

[0081] In the disclosed embodiment, the operating environment parameters of the electronic device are obtained, wherein the operating environment parameters include the load of the current processor of the electronic device, the usage ratio of computing resources, the delay of the main thread, etc.; the operating environment parameters may also be the temperature of the electronic device, the temperature of the environment in which the electronic device is located, etc. The processor of the electronic device may include a central processing unit (CPU), a microcontroller unit (MCU), a graphics processing unit (GPU), etc.

[0082] In the case where the operating environment parameters do not meet the preset environment parameter threshold, the embodiment of the present disclosure reduces the refresh rate of application windows other than the target application window; wherein, the operating environment parameters do not meet the preset environment parameter threshold, indicating that the current operating environment of the electronic device is poor, such as the usage percentage of computing resources or the load of the processor is greater than the preset percentage threshold, the delay of the main thread is greater than the preset delay threshold, the temperature of the electronic device is greater than the preset temperature threshold, the ambient temperature of the electronic device is greater than the preset ambient temperature threshold, etc.

[0083] It can be understood that, in the embodiment of the present disclosure, when the operating environment parameters do not meet the preset environmental parameter thresholds, indicating that the current operating environment of the electronic device is poor, the refresh rate of application windows other than the target application window is reduced. This can increase the necessity of reducing the refresh rate of application windows other than the target application window and reduce the impact of reducing the refresh rate of application windows when the operating environment of the electronic device is better on the user's visual experience.

[0084] In some embodiments, the operating environment parameter includes a processor load of the electronic device and / or a temperature of the electronic device;

[0085] When the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of the application windows other than the target application window includes:

[0086] When the processor load of the electronic device is greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, the refresh rate of application windows other than the target application window is reduced.

[0087] In an embodiment of the present disclosure, the operating environment parameters of the electronic device include a processor load and / or a temperature of the electronic device; in the embodiment of the present disclosure, when the processor load of the electronic device is greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, the refresh rate of application windows outside the target application window is reduced. Since the processor load of the electronic device is highly correlated with the power consumption of the electronic device, and the temperature of the electronic device can directly reflect the power consumption of the electronic device, in the embodiment of the present disclosure, when the processor load of the electronic device is greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, it is highly likely that the current power consumption of the electronic device is high, thereby reducing the refresh rate of application windows outside the target application window, further improving the necessity and purpose of reducing the refresh rate of application windows outside the target application window.

[0088] In some embodiments, when the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of application windows other than the target application window includes:

[0089] When the operating environment parameter does not meet the preset environment parameter threshold, for each application window other than the target application window, determining a reduced target refresh rate corresponding to the application window according to the operating environment parameter;

[0090] Each application window other than the target application window is controlled to be displayed according to the target refresh rate corresponding to the application window.

[0091] In an embodiment of the present disclosure, when the operating environment parameters of the electronic device do not meet the preset environment parameter threshold, the electronic device determines, for each application window other than the target application window, a reduced target refresh rate corresponding to the application window based on the operating environment parameters; in some embodiments, for each application window other than the target application window, the operating environment parameters are processed using a preset refresh rate function to obtain the reduced target refresh rate corresponding to the application window.

[0092] In some embodiments, based on a preset refresh rate model, the operating environment parameters are input into the preset refresh rate model, and the refresh rate output by the preset refresh rate model is determined as the target refresh rate after the application window is lowered; wherein the preset refresh rate model may be trained based on a deep learning network, for example, based on training sample data and label values, networks such as convolutional neural networks (CNN) and deep learning networks (DNN) are trained and parameterized to obtain the preset refresh rate model, wherein the label value is the preset refresh rate.

[0093] After determining the target refresh rate corresponding to each application window other than the target application window, the electronic device of the disclosed embodiment controls each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window.

[0094] It can be understood that due to the different operating environment parameters of electronic devices, the current power consumption and / or temperature rise of the corresponding electronic devices are different. In this regard, when the operating environment parameters do not meet the preset environmental parameter threshold, the embodiment of the present disclosure determines the reduced target refresh rate corresponding to each application window other than the target application window according to the operating environment parameters, thereby controlling each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window, which can improve the matching degree between the reduced refresh rate of the application window and the current operating environment of the electronic device.

[0095] In some embodiments, for each application window other than the target application window, determining the reduced target refresh rate corresponding to the application window according to the operating environment parameter includes:

[0096] For each application window other than the target application window, the target refresh rate of the application window is determined according to the identification of the application window, the operating environment parameters and the preset refresh rate correspondence; wherein the preset refresh rate correspondence includes a mapping between the identification of the application window, the operating environment parameters and the refresh rate.

[0097] In the disclosed embodiment, the electronic device determines the target refresh rate of each application window other than the target application window according to the identifier of the application window, the operating environment parameters of the electronic device and the preset refresh rate correspondence; for example, the identifier of the application window and the preset refresh rate corresponding to the operating environment parameters in the preset refresh rate correspondence are determined as the target refresh rate of the application window; or, the difference between the identifier of the application window and the preset refresh rate corresponding to the operating environment parameters in the preset refresh rate correspondence and the preset reduction amount is determined as the target refresh rate of the application window, etc. Among them, the identifier of the application window is such as the name of the application, or information that can be uniquely identified such as letters and numbers; the preset refresh rate correspondence includes the mapping between the identifier of the application window, the operating environment parameters, and the refresh rate.

[0098] It can be understood that compared to using the aforementioned refresh rate model to determine the target refresh rate of the application window, the embodiment of the present disclosure determines the target refresh rate of application windows other than the target application window based on a preset refresh rate correspondence, which can reduce the computing resource usage of the electronic device and help reduce the power consumption of the electronic device.

[0099] In some embodiments, the method further comprises:

[0100] For each application window other than the target application window, obtaining a current refresh rate of the application window;

[0101] The determining the target refresh rate of the application window according to the identifier of the application window, the operating environment parameter and the preset refresh rate correspondence includes:

[0102] Determine the preset refresh rate corresponding to the identifier of the application window and the preset refresh rate corresponding to the operating environment parameter in the preset refresh rate correspondence;

[0103] When the preset refresh rate is less than the current refresh rate of the application window, the preset refresh rate is determined as the target refresh rate.

[0104] In an embodiment of the present disclosure, the electronic device obtains the current refresh rate of each application window other than the target application window; based on a preset refresh rate correspondence, determines the identifier of the application window in the preset refresh rate correspondence and the preset refresh rate corresponding to the operating environment parameters, and when the preset refresh rate is less than the current refresh rate of the application window, determines the preset refresh rate as the target refresh rate; when the preset refresh rate is greater than or equal to the current refresh rate of the application window, determines the current refresh rate as the target refresh rate, or determines the difference between the current refresh rate and the preset reduction amount as the target refresh rate.

[0105] It can be understood that the refresh rate of the application window before adjustment (the current refresh rate) is usually a refresh rate that better matches the application. In the embodiment of the present disclosure, when the preset refresh rate is lower than the current refresh rate of the application window, the preset refresh rate is determined as the lowered target refresh rate, which can increase the necessity of reducing the refresh rate of the application window.

[0106] In some embodiments, the method further comprises:

[0107] For each application window other than the target application window, associating the identifier of the application window with the target refresh rate corresponding to the application window and writing the result into a preset configuration file;

[0108] The controlling each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window includes:

[0109] For each application window other than the target application window, the target refresh rate associated with the identifier of the application window is read from the preset configuration file according to the identifier of the application window, and the application window is controlled to be displayed according to the target refresh rate.

[0110] In the disclosed embodiment, after determining the target refresh rate corresponding to the application window other than the target application window, the electronic device associates the identification of the application window with the target refresh rate corresponding to the application window for each application window other than the target application window, and then writes it into a preset configuration file; thereby, in the application window frame drawing scene, according to the identification of the application window, the target refresh rate associated with the identification of the application window is read from the preset configuration file, and the application window is controlled to draw frames according to the target refresh rate and display. Through this solution, the application window can accurately read its corresponding target refresh rate through the preset configuration file, which improves the convenience of the application in obtaining the target refresh rate corresponding to the application window.

[0111] Figure 3 An example diagram of a display module of an application window provided in an embodiment of the present disclosure, which is applied to an electronic device, Figure 3 It is known that, including:

[0112] The multi-window status monitoring module 301 is used to monitor window applications; detect the operation instructions for the application window displayed by the electronic device, and identify the focus application (corresponding to the target application window) according to the operation instructions; and monitor the electronic device temperature, the central processing unit load and the graphics processing unit load of the electronic device in real time.

[0113] When an electronic device displays multiple application windows, if the CPU load and GPU load of the electronic device are greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, an application frame rate strategy is formulated; specifically, for each application window other than the target application window, the reduced target refresh rate corresponding to the application window is determined based on the CPU load, GPU load and / or temperature of the electronic device, and then the target refresh rate corresponding to the application window is associated with the identifier of the application window and written into the dynamic frame rate configuration file.

[0114] The dynamic frame rate configuration file 302 corresponds to the aforementioned preset configuration file and is used to store the target refresh rates corresponding to each application window other than the target application window in a multi-application window scenario; wherein the frame rate configuration file is dynamically updated based on the target refresh rates corresponding to the application windows determined in real time.

[0115] The application frame drawing module 303 is used to read the reduced target refresh rate associated with the application window identifier from the frame rate configuration file according to the application window identifier corresponding to the application when the application starts drawing frames, as the updated frame rate target, and control the application window to perform delayed frame drawing and display according to the target refresh rate.

[0116] Figure 4 An example of a display method for an application window provided in an embodiment of the present disclosure Figure 2 , used in electronic equipment, by Figure 4 It can be seen that the following steps are included:

[0117] S401, registration system service;

[0118] In the disclosed embodiment, a system service is registered, such as MultyWindowService, etc. The disclosed embodiment system service is used to execute steps S402 to S410, determine the target application window, and determine the reduced refresh rate of application windows other than the target application window according to the operating environment parameters of the electronic device.

[0119] S402, creating a dynamic frame rate file;

[0120] In an embodiment of the present disclosure, a new dynamic frame rate file is created through a system service; wherein the dynamic frame rate file is used to store a target refresh rate corresponding to an application window.

[0121] S403, registering a window application listener;

[0122] In an embodiment of the present disclosure, a window application listener is registered to monitor whether the electronic device currently displays multiple application windows.

[0123] S404, registering a focus listener;

[0124] In an embodiment of the present disclosure, a focus listener is registered to detect operation instructions for an application window displayed by an electronic device.

[0125] S405, registering a device temperature monitor;

[0126] In the embodiment of the present disclosure, a device temperature monitor is registered to monitor the temperature of the electronic device.

[0127] S406, registering a CPU load listener;

[0128] In the embodiment of the present disclosure, a CPU load listener is registered to monitor the CPU load of the electronic device.

[0129] S407, registering a GPU load listener;

[0130] In the embodiment of the present disclosure, a graphics processor load listener is registered to monitor the graphics processor load of the electronic device.

[0131] S408, enter cycle monitoring;

[0132] In the disclosed embodiment, the monitoring tasks of the above steps S402 to S407 are executed cyclically by performing cyclic monitoring.

[0133] When changes in window applications are detected, the system service of the embodiment of the present disclosure sends the detected operation instructions, the sizes of each application window, and the monitored CPU load, GPU load, and temperature of the electronic device to the application frame rate manager.

[0134] S409, applying a frame rate manager;

[0135] In the embodiment of the present disclosure, the application frame rate manager determines the target application window according to the range corresponding to the application window size into which the coordinates of the operation instruction fall; and when one of the current CPU load, image processor load, and temperature of the electronic device does not meet the preset environmental parameter threshold, the target refresh rate corresponding to the application window outside the target application window is determined based on the current CPU load, image processor load, and temperature of the electronic device, and the target refresh rate corresponding to the application window outside the target application window is associated with the identifier of the application window and written into the application frame rate configuration file. Among them, the CPU load, image processor load, and temperature of the electronic device correspond to the aforementioned operating environment parameters of the electronic device.

[0136] S410, applying a frame rate profile;

[0137] In the disclosed embodiment, the application frame rate profile corresponds to the aforementioned preset profile; the target refresh rate corresponding to the application window other than the target application window sent by the system service is associated and stored with the identifier of the application window through the application frame rate profile.

[0138] S411, add frame rate configuration listener;

[0139] In the embodiment of the present disclosure, the process of the application (application process 1) is initialized, such as allocating memory resources, computing resources, etc. to the process of the application, and adding a frame rate profile listener.

[0140] S412, start drawing frames;

[0141] In an embodiment of the present disclosure, when an application starts drawing a frame, based on a frame rate profile listener, when the application frame rate profile changes, the target refresh rate corresponding to the identifier of the application window stored in the application frame rate profile is read.

[0142] S413, updating the frame rate configuration;

[0143] In the disclosed embodiment, the target refresh rate is updated to the frame rate configuration corresponding to the application.

[0144] S414, determine whether to limit the frame rate; if so, execute step S415; if not, execute step S416;

[0145] In an embodiment of the present disclosure, when the target refresh rate in the frame rate configuration is less than the current refresh rate of the application window, the frame rate is determined to be limited and executed.

[0146] S415, executing a frame limit operation;

[0147] In the disclosed embodiment, delayed rendering of drawing frames is performed based on the target refresh rate.

[0148] S416, ending the drawing of the rendering frame;

[0149] In the embodiment of the present disclosure, after the rendering frame is finished, step S412 is executed to start drawing the next frame.

[0150] Figure 4 In the example, the application process n is a process of another application. The process of the application process n executing the frame drawing can be understood by referring to the description of the aforementioned steps S411 to S416, which will not be repeated here.

[0151] Figure 5 is a diagram of a display device of an application window shown in an embodiment of the present disclosure, which is applied to an electronic device. Figure 5 It is known that, including:

[0152] A detection module 501, configured to detect operation instructions for multiple application windows displayed on the electronic device;

[0153] A determination module 502, configured to determine a target application window according to the operation instruction;

[0154] The reducing module 503 is configured to reduce the refresh rate of application windows other than the target application window among the multiple application windows.

[0155] In some embodiments, the apparatus further comprises:

[0156] A first acquisition module 504, used to acquire operating environment parameters of the electronic device;

[0157] The reducing module 503 is used to reduce the refresh rate of application windows other than the target application window when the operating environment parameter does not meet the preset environment parameter threshold.

[0158] In some embodiments, the operating environment parameter includes a processor load of the electronic device and / or a temperature of the electronic device;

[0159] The reducing module 503 is used to reduce the refresh rate of application windows other than the target application window when the processor load of the electronic device is greater than a preset load threshold and / or the temperature of the electronic device is greater than a preset temperature threshold.

[0160] In some embodiments, the reduction module 503 is used to determine, for each application window other than the target application window, a reduced target refresh rate corresponding to the application window according to the operating environment parameters when the operating environment parameters do not meet the preset environment parameter threshold; and control each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window.

[0161] In some embodiments, the reduction module 503 is used to determine the target refresh rate of the application window for each application window other than the target application window according to the application window identifier, the operating environment parameters and a preset refresh rate correspondence; wherein the preset refresh rate correspondence includes a mapping between the application window identifier, the operating environment parameters and the refresh rate.

[0162] In some embodiments, the apparatus further comprises:

[0163] A second acquisition module 505 is used to acquire the current refresh rate of each application window other than the target application window;

[0164] The reduction module 503 is used to determine the preset refresh rate corresponding to the identifier of the application window and the operating environment parameters in the preset refresh rate correspondence relationship; when the preset refresh rate is less than the current refresh rate of the application window, the preset refresh rate is determined as the target refresh rate.

[0165] In some embodiments, the apparatus further comprises:

[0166] Configuration module 506, for associating the identifier of each application window other than the target application window with the target refresh rate corresponding to the application window and writing the associated information into a preset configuration file;

[0167] The reducing module 503 is used to read the target refresh rate associated with the identifier of each application window other than the target application window from the preset configuration file according to the identifier of the application window, and control the application window to be displayed according to the target refresh rate.

[0168] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0169] Figure 6 800 is a block diagram of an electronic device shown in an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, etc.

[0170] Reference Figure 6 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0171] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0172] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0173] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0174] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0175] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0176] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0177] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0178] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0179] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0180] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0181] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the aforementioned method for displaying an application window.

[0182] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.

[0183] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for displaying an application window, characterized in that: Applied in an electronic device, the method comprises: Detecting operation instructions for multiple application windows displayed by the electronic device; According to the operation instruction, determining the target application window; The refresh rates of application windows other than the target application window among the multiple application windows are reduced.

2. The method according to claim 1, characterized in that The method further comprises: Acquiring operating environment parameters of the electronic device; The reducing the refresh rate of the application windows other than the target application window among the multiple application windows comprises: When the operating environment parameter does not meet the preset environment parameter threshold, the refresh rate of application windows other than the target application window is reduced.

3. The method according to claim 2, characterized in that The operating environment parameters include a processor load of the electronic device and / or a temperature of the electronic device; When the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of the application windows other than the target application window includes: When the processor load of the electronic device is greater than a preset load threshold, and / or the temperature of the electronic device is greater than a preset temperature threshold, the refresh rate of application windows other than the target application window is reduced.

4. The method according to claim 2, characterized in that: When the operating environment parameter does not meet the preset environment parameter threshold, reducing the refresh rate of the application windows other than the target application window includes: When the operating environment parameter does not meet the preset environment parameter threshold, for each application window other than the target application window, determining a reduced target refresh rate corresponding to the application window according to the operating environment parameter; Each application window other than the target application window is controlled to be displayed according to the target refresh rate corresponding to the application window.

5. The method according to claim 4, characterized in that The step of determining, for each application window other than the target application window, according to the operating environment parameter, a reduced target refresh rate corresponding to the application window, comprises: For each application window other than the target application window, the target refresh rate of the application window is determined according to the identification of the application window, the operating environment parameters and the preset refresh rate correspondence; wherein the preset refresh rate correspondence includes a mapping between the identification of the application window, the operating environment parameters and the refresh rate.

6. The method according to claim 5, characterized in that The method further comprises: For each application window other than the target application window, obtaining a current refresh rate of the application window; The determining the target refresh rate of the application window according to the identifier of the application window, the operating environment parameter and the preset refresh rate correspondence includes: Determine the preset refresh rate corresponding to the identifier of the application window and the preset refresh rate corresponding to the operating environment parameter in the preset refresh rate correspondence; When the preset refresh rate is less than the current refresh rate of the application window, the preset refresh rate is determined as the target refresh rate.

7. The method according to claim 4, characterized in that The method further comprises: For each application window other than the target application window, associating the identifier of the application window with the target refresh rate corresponding to the application window and writing the result into a preset configuration file; The controlling each application window other than the target application window to be displayed according to the target refresh rate corresponding to the application window includes: For each application window other than the target application window, the target refresh rate associated with the identifier of the application window is read from the preset configuration file according to the identifier of the application window, and the application window is controlled to be displayed according to the target refresh rate.

8. A display device for an application window, characterized in that: Applied in electronic equipment, the device comprises: A detection module, used to detect operation instructions for multiple application windows displayed by the electronic device; A determination module, used to determine a target application window according to the operation instruction; The reducing module is used to reduce the refresh rate of the application windows other than the target application window among the multiple application windows.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Window frame rate control method and electronic device

    WO2026056384A1