Method and device for managing display attributes of electronic equipment, equipment and medium
By acquiring and monitoring the workload of the computing unit in the electronic device and adjusting the display attributes according to whether it meets a predetermined range, the problem of lag in the electronic device when handling high loads is solved, and the user's visual experience is improved.
Patent Information
- Application Number
- CN202311651644.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2025-06-06
AI Technical Summary
When electronic devices deal with interfaces with high resolution and high refresh frequency, they may cause lag due to excessive load, affecting the user's visual experience.
By acquiring the workload of the computing unit in the electronic device, determining whether the predetermined range is met, and if not, the display attributes are adjusted based on the workload, such as reducing resolution and refresh frequency, to slow down the lag.
It effectively slows down the occurrence of display lag, improves the user's visual experience, and provides better display performance within the range of hardware capabilities.
Smart Images

Figure CN120108357A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, apparatuses, devices, and computer-readable storage media for managing display properties of electronic devices. Background Art
[0002] With the rapid development of the Internet, more and more applications are designed to provide various services to users. When the application is active, the electronic device can present the various interfaces provided by the application through the screen. With the development of software and hardware, in order to improve the user's visual experience, the resolution and refresh rate (also known as frame rate) of the screen of electronic devices are getting higher and higher. The increase in screen resolution and refresh rate will greatly increase the resources required for interface refresh, which may cause the electronic device to freeze due to excessive load in some scenarios (such as complex interface scenarios). Summary of the invention
[0003] In a first aspect of the present disclosure, a method for managing display properties of an electronic device is provided. The method includes: obtaining a workload of a computing unit in the electronic device; determining whether the workload satisfies a predetermined range; and in response to determining that the workload does not satisfy the predetermined range, adjusting the display properties of the electronic device based on the workload.
[0004] In a second aspect of the present disclosure, a device for managing display properties of an electronic device is provided. The device includes: a load acquisition module configured to acquire a workload of a computing unit in the electronic device; a range determination module configured to determine whether the workload meets a predetermined range; and a property adjustment module configured to adjust the display properties of the electronic device based on the workload in response to determining that the workload does not meet the predetermined range.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method according to the first aspect of the present disclosure.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor implements the method according to the first aspect of the present disclosure.
[0007] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent in the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0010] Figure 2 A schematic diagram showing an example process of screen refreshing;
[0011] Figure 3 A flowchart showing a process for managing display properties of an electronic device according to some embodiments of the present disclosure is shown;
[0012] Figure 4 A schematic diagram showing a process for managing display properties of an electronic device according to some embodiments of the present disclosure;
[0013] Figure 5 A block diagram showing an apparatus for managing display properties of an electronic device according to some embodiments of the present disclosure; and
[0014] Figure 6 A block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0016] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0017] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0018] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0019] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.
[0020] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.
[0021] As an optional but non-limiting embodiment, in response to receiving an active request from a relevant user, the method of sending a prompt message to the relevant user may be, for example, a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.
[0022] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the embodiments of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the embodiments of the present disclosure.
[0023] As briefly mentioned above, electronic devices can present various interfaces that applications can provide through screens. With the development of software and hardware, in order to improve the user's visual experience, the resolution and refresh rate of electronic device screens are getting higher and higher. The increase in screen resolution and refresh rate will greatly increase the resources required for interface refresh, which may cause electronic devices to freeze in some scenarios due to excessive load. Traditionally, the screen resolution or refresh rate is often fixed to reduce the resources required for interface refresh to avoid freezes. Although this method can solve the freeze problem in some scenarios, it will also result in the inability to utilize the high resolution and high frame rate capabilities of the screen in most ordinary scenarios, affecting the user's visual experience.
[0024] To this end, an embodiment of the present disclosure proposes an improved scheme for managing the display properties of an electronic device. According to various embodiments of the present disclosure, the workload of a computing unit in an electronic device is obtained. It is determined whether the workload meets a predetermined range. If it is determined that the workload does not meet the predetermined range, the display properties of the electronic device are adjusted based on the workload. In this way, the display properties of the electronic device can be adjusted simply and conveniently based on the workload of the electronic device, which can effectively reduce the display jamming phenomenon and help improve the user's visual experience.
[0025] Example Environment
[0026] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, the example environment 100 may include an electronic device 110. In the example environment 100, the electronic device 110 may be installed with an application 120. A user 140 may interact with the application 120 via the electronic device 110 and / or its attached device. The application 120 may be a social application, a content sharing application, an audio and video browsing application, a game application, etc., or any other appropriate application.
[0027] exist Figure 1 In the environment 100, if the application 120 is active, the electronic device 110 can present the interface 150 of the application 120. The interface 150 may include various interfaces that the application 120 can provide, such as a content creation interface, a content viewing interface, a conversation interface, a game interface, etc., or any other appropriate interface.
[0028] The electronic device 110 may include any computing system with computing capabilities, such as various computing devices / systems, terminal devices, server devices, etc. The terminal device may be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a game device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
[0029] In some embodiments, if the electronic device is an electronic device other than a server device, the electronic device 110 may also communicate with the server 130 to provide services for the application 120. The server 130 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. The server 130 may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 may, for example, provide background services for the application 120 in the electronic device 110.
[0030] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired manner or a wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.
[0031] It should be understood that the structure and function of each element in the environment 100 are described for exemplary purposes only, and do not imply any limitation on the scope of the present disclosure. Some exemplary embodiments of the present disclosure will be described below with reference to the accompanying drawings.
[0032] Example process of screen refresh
[0033] Figure 2 FIG. 2 is a schematic diagram of an example process 200 for screen refreshing. Figure 2 As shown, process 200 may include a processing process performed for each frame, and the process includes two threads, a main thread 202 and a rendering thread 204. In the main thread 202, a vertical synchronization (vsync) signal may trigger the screen refresh of each frame. After the refresh of the previous frame 210' is completed, the electronic device 110 may start to refresh the screen of the current frame 210 in response to receiving a new vertical synchronization signal.
[0034] In the following, only the current frame 210 is used as an example to describe the processing process for each frame. When processing the screen refresh of the current frame 210, the electronic device 110 can start the processing process 220 (for example, the DoFrame process) to draw the current frame 210. Specifically, the electronic device 110 can process the input 231 of the current frame, the animation 232 of the current frame and use the process 233 (for example, the DoTraversal process) to process the layout of the current frame in a traversal manner. Processing the layout of the current frame includes measuring the layout 241, determining the overall layout 242 (that is, calculating the position of the layout) and rendering and drawing 243 of the overall layout.
[0035] In some embodiments, when processing the rendering and drawing 243 of the overall layout, the main thread 202 can also issue tasks to the rendering thread to switch to the rendering thread 204 to perform drawing. In the rendering thread 204, the electronic device 110 can execute the drawing frame 250 (for example, implemented using the drawFrame process) in response to the tasks issued by the main thread 202. Similar to the screen refresh of different frames processed in the main thread 202, the rendering thread 204 can also execute each drawing frame in response to each task. For example, the rendering thread 204 can execute the last drawing frame 250' in response to the task issued by executing the previous frame 210'. In the drawing frame 250, the frame state 261 can be synchronized and the rendering and drawing 262 can be performed. Specifically, the frame data that has been drawn can be moved out of the buffer queue 271 (dequeue), the frame data can be drawn 272, and the frame data to be drawn can be moved into the buffer queue (queue) 273.
[0036] In some embodiments, the above process may be continuously performed according to the resolution and refresh rate of the electronic device 110. However, when the workload of the electronic device 110 is heavy (e.g., the central processing unit (CPU) and / or the graphics processing unit (GPU)), the execution of the above process will be delayed, resulting in poor visual effects such as freezes on the display of the electronic device 110.
[0037] Example Process
[0038] Figure 3 1 is a flowchart of a process 300 for managing display properties of an electronic device according to some embodiments of the present disclosure. The process 300 may be implemented at the electronic device 110. For ease of discussion, reference will be made to Figure 1 The process 300 is described with reference to the environment 100 of FIG.
[0039] In block 310, the electronic device 110 obtains the workload of a computing unit in the electronic device. In some embodiments, the computing unit here may include a central processing unit and / or a graphics processing unit. It is understood that the computing unit here may also include any appropriate computing unit, which is not limited in the present disclosure.
[0040] The workload of a computing unit may, for example, indicate the amount of computation of the computing unit. It is understood that the greater the workload, the greater the amount of processing of the computing unit, and the greater the amount of resources consumed by the computing unit to perform the computation. In order to avoid the jamming phenomenon caused by excessive workload, the electronic device 110 may obtain the workload of the computing unit to adjust the amount of computation of the electronic device based on the workload. The electronic device 110 may obtain the workload of the computing unit in real time, or may obtain the workload of the computing unit periodically or, for example, when a delay is detected. The present disclosure does not limit the timing of when the electronic device 110 obtains the workload.
[0041] Regarding the specific way of obtaining the workload, in some embodiments, the electronic device 110 can determine multiple metrics of the workload and determine the workload based on the multiple metrics. Multiple metrics, for example, may include but are not limited to the utilization rate, idle rate, saturation, response time, etc. of the computing unit. The electronic device 110 can, for example, directly read the state parameters of the computing unit to obtain the utilization rate and idle rate of the computing unit. It can be understood that the sum of the utilization rate and the idle rate is 100%. Exemplarily, the electronic device 110 can directly read the computing unit to determine that the current utilization rate of the computing unit is 20% and the idle rate is 80%. The electronic device 110 can, for example, determine the saturation of the computing unit based on the queue length of the tasks actually waiting to be processed by the computing unit, or the ratio between the queue length of the tasks actually waiting to be processed by the computing unit and the queue length of the tasks waiting to be processed that the computing unit can accommodate at most. Exemplarily, if the computing unit can accommodate up to 10 waiting tasks and there are actually 5 waiting tasks, the saturation is 5 / 10=0.5. The electronic device 110 can also directly measure the response time of the computing unit, etc.
[0042] After the electronic device 110 obtains multiple measurement indicators, it can determine the workload of the computing unit based on the following formula, for example.
[0043]
[0044]
[0045]
[0046]
[0047]
[0048] In the above formula, workload represents workload, usage represents usage rate, saturability represents saturation, satFactor represents saturation factor, time represents response time, timeFactor represents response time factor, and w1 and w2 represent different weights. The two factors here (i.e., saturation factor and response factor) can be two values predetermined by relevant staff and input into the electronic device 110, or they can be two values determined by the electronic device 110 itself (for example, they can be two values determined by the electronic device 110 itself based on historical data). It can be understood that based on the above formula, the greater the usage rate, saturation and response time, the greater the workload. Similarly, the idle rate can be used to rewrite the above formula. At this time, the smaller the idle rate, the greater the workload.
[0049] By using the example implementation of the present disclosure, various indicators of the electronic device 110 can be mapped to a unified workload, so that it is easy to determine whether the display parameters of the electronic device 110 need to be modified.
[0050] In block 320, the electronic device 110 determines whether the workload meets a predetermined range. The predetermined range here may be a range predetermined by relevant staff and input into the electronic device 110, or a range determined by the electronic device 110 itself (for example, a range determined by the electronic device 110 itself based on historical data).
[0051] The predetermined range may indicate the maximum load value and the minimum load value under normal conditions of the workload. After the electronic device 110 obtains the workload of the computing unit, it may compare the value of the workload with the maximum load value and / or the minimum load value to determine whether the workload satisfies the predetermined range. Specifically, if the value of the workload is less than the minimum load value, or the value of the workload is greater than the maximum load value, the electronic device 110 may determine that the workload does not meet the predetermined range (i.e., is lower than the predetermined range or higher than the predetermined range). If the value of the workload is greater than or equal to the minimum load value and less than or equal to the maximum load value, the electronic device 110 may determine that the workload meets the predetermined range.
[0052] In block 330, the electronic device 110 adjusts the display attributes of the electronic device based on the workload in response to determining that the workload does not meet the predetermined range. The display attributes here may include, for example, the resolution and refresh rate of the electronic device 110. Similarly, it can be understood that the display attributes here may also include any appropriate display attributes, which is not limited in the present disclosure.
[0053] Regarding the specific manner in which the electronic device 110 adjusts the display attributes, in some embodiments, if it is determined that the workload is higher than a predetermined range, the electronic device 110 may reduce its own display attributes. Specifically, when the workload is higher than a predetermined range (i.e., the value of the workload is greater than the maximum load value), the electronic device 110 may further determine whether its own refresh frequency is higher than a predetermined condition. The predetermined condition here may, for example, indicate the maximum frequency of the refresh frequency under normal conditions.
[0054] The electronic device 110 can then reduce its own display properties when it is determined that the refresh frequency is higher than a predetermined condition (that is, the value of the refresh frequency is greater than the maximum frequency). In some embodiments, if it is determined that the refresh frequency is not higher than the predetermined condition, the electronic device 110 can also obtain the subsequent workload of the computing unit in itself. The electronic device 110 can determine whether the subsequent workload meets the predetermined range, and adjust the display properties of the computing unit based on the subsequent workload when it is determined that the subsequent workload does not meet the predetermined range. That is, if the refresh frequency is not higher than the predetermined condition, the electronic device 110 can determine that it is difficult to reduce the display jam of the computing unit by adjusting the display properties, and the electronic device 110 does not need to adjust the display properties. The electronic device 110 can re-execute the method described in boxes 310 to 330 for the workload obtained subsequently.
[0055] Similarly, in some embodiments, if it is determined that the workload is below a predetermined range, the electronic device 110 can improve its own display properties to provide better visual effects. In some embodiments, the electronic device 110 can, for example, also determine whether the value of its own refresh frequency is lower than the minimum frequency value under normal circumstances. The electronic device 110 can improve its own display properties when it is determined that the value of the refresh frequency is less than the minimum frequency value. If the value of the refresh frequency is higher than the minimum frequency value, the electronic device 110 can determine that there is no need to adjust the display properties. The electronic device 110 can re-execute the method described in boxes 310 to 330 for the workload obtained subsequently.
[0056] Regarding the specific manner of adjusting the display attribute, in some embodiments, the electronic device 110 can adjust the display attribute by adjusting the level of the display attribute. The level of the display attribute here can, for example, specify any one of the resolution, refresh rate, and combination of resolution and refresh rate of the electronic device 110. Tables 1 to 3 below respectively show examples of level-specified resolution, refresh rate, and combination of resolution and refresh rate:
[0057] Table 1 shows an example of the levels
[0058] grade Resolution 1 2240*1400 2 2048*1152 … … N 1280*960
[0059] Table 2 shows an example of the levels
[0060]
[0061]
[0062] Table 3 shows an example of the levels
[0063] grade Resolution Refresh rate (Hz) 1 2240*1400 144 2 2240*1400 120 3 2048*1152 144 4 2048*1152 120 … … … N 1280*960 60
[0064] In Tables 1 to 3, level 1 may represent the highest display level, and level N may represent the lowest display level. The electronic device 110 may, for example, determine the level to which the display attribute currently corresponds, and adjust the display attribute by raising / lowering the level corresponding to the display attribute. Specifically, if the workload is higher than a predetermined range, the electronic device 110 may adjust the display attribute by lowering the level of the display attribute, and if the workload is lower than a predetermined range, the electronic device 110 may adjust the display attribute by raising the level of the display attribute. Exemplarily, if the level of the display attribute specifies a combination of resolution and refresh rate, the electronic device 110 determines that its workload is higher than the predetermined range, and the level to which the display attribute currently corresponds is level 3 as shown in Table 3, the electronic device 110 may, for example, adjust the display attribute by adjusting the level of the display attribute to level 4 (i.e., lowering the level of the display attribute).
[0065] It can be understood that if the workload meets the predetermined range, the electronic device 110 can, for example, determine that the workload is normal and no adjustment is required. In some embodiments, if the currently acquired workload meets the predetermined range, the electronic device 110 can also acquire the subsequent workload of the computing unit and determine whether the subsequent workload meets the predetermined range. The electronic device 110 can adjust the display properties of the computing unit based on the subsequent workload when it is determined that the subsequent workload does not meet the predetermined range. That is, the electronic device 110 can continuously perform the above method for the workload acquired in real time, and adjust its own display properties so that the adjusted workload meets the predetermined range when the workload does not meet the predetermined range. Thus, the electronic device 110 can adjust its own display properties based on the result of determining whether the workload meets the predetermined range to adjust its own workload. It can be achieved that the workload is adjusted conveniently and quickly, thereby providing the user with better visual effects within the scope of the hardware capabilities of the electronic device 110.
[0066] The various steps of adjusting the display properties of an electronic device have been described separately. Figure 4 Describes the overall process of adjusting the display properties of electronic devices. Figure 4FIG. 4 is a schematic diagram of a process 400 for managing display properties of an electronic device according to some embodiments of the present disclosure. The process 400 may be implemented at the electronic device 110. For ease of discussion, reference will be made to FIG. Figure 1 The process 400 is described with reference to the environment 100 of FIG.
[0067] At block 410, the electronic device 110 may monitor the usage, saturation, and response time of a central processing unit (CPU). At block 420, the electronic device 110 may monitor the usage, saturation, and response time of a graphics processing unit (GPU).
[0068] In block 430, the electronic device 110 may determine the workload of the computing unit. The computing unit includes a CPU and a GPU. The electronic device 110 may determine the workload of the computing unit based on the acquired CPU and GPU usage, saturation, and task response time, for example.
[0069] In box 440, the electronic device 110 determines whether the current workload is within a predetermined range. The electronic device 110 may, for example, obtain the maximum load and the minimum load indicated by the predetermined range. The electronic device 110 may then compare the value of the current workload with the maximum load and / or the minimum load to determine whether the current workload is within a predetermined normal range. If the current workload exceeds the predetermined range, the electronic device 110 may execute box 450, and if the current workload is lower than the predetermined range, the electronic device 110 may execute box 460. If the current workload is within a predetermined normal range (that is, the current load meets the predetermined load), the electronic device 110 may continue to monitor the CPU and GPU usage, saturation, and response time of the task, and repeat the process shown in process 400.
[0070] In block 450, the electronic device 110 may determine whether there is a frequent UI refresh at present. That is, the electronic device 110 may determine whether the current refresh frequency is higher than a predetermined refresh frequency. The predetermined refresh frequency may be pre-entered by the user or determined by the electronic device 110 based on historical data.
[0071] If the current refresh frequency is not higher than the predetermined refresh frequency, the electronic device 110 can determine that there is no frequent UI refresh at present. The electronic device 110 can also continue to monitor the CPU and GPU usage, saturation and task response time, and repeat the process shown in process 400.
[0072] If the current refresh rate is higher than the predetermined refresh rate, the electronic device 110 may determine that there is frequent UI refresh at present, and the electronic device 110 may also execute box 460. In box 460, the electronic device 110 may adjust the frame rate and resolution level in combination with the workload of the computing unit and the current frame rate (i.e., refresh rate) and resolution level. Exemplarily, when the current workload exceeds the predetermined range and the current refresh rate is higher than the predetermined refresh rate, the electronic device 110 may reduce the workload of the computing unit by lowering the frame rate and resolution level.
[0073] In summary, according to the embodiments of the present disclosure, the display properties of an electronic device can be simply and conveniently adjusted based on the workload of the electronic device, which can effectively alleviate the occurrence of the lag phenomenon and help improve the user's visual experience.
[0074] Example devices and equipment
[0075] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 5 A schematic structural block diagram of an apparatus 500 for managing display properties of an electronic device according to some embodiments of the present disclosure is shown. The apparatus 500 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0076] like Figure 5 As shown, the apparatus 500 includes a load acquisition module 510 configured to acquire the workload of a computing unit in an electronic device. The apparatus 500 also includes a range determination module 520 configured to determine whether the workload meets a predetermined range. The apparatus 500 also includes a property adjustment module 530 configured to adjust the display properties of the electronic device based on the workload in response to determining that the workload does not meet the predetermined range.
[0077] In some embodiments, the load acquisition module 510 is further configured to: determine multiple metrics of the workload, the multiple metrics including at least any one of the following: utilization, idle rate, saturation, and response time of the computing unit; and determine the workload based on the multiple metrics.
[0078] In some embodiments, the display attribute includes at least any one of the following: a resolution and a refresh rate of the electronic device.
[0079] In some embodiments, the property adjustment module 530 is further configured to: in response to determining that the workload is above a predetermined range, reduce a display property of the electronic device.
[0080] In some embodiments, the property adjustment module 530 is further configured to: in response to determining that the refresh frequency of the electronic device is higher than a predetermined condition, reduce the display property of the electronic device.
[0081] In some embodiments, the device 500 further includes: a first load acquisition module, configured to acquire a subsequent workload of a computing unit in the electronic device in response to determining that a refresh frequency of the electronic device is not higher than a predetermined condition; a first range determination module, configured to determine whether the subsequent workload satisfies a predetermined range; and a first attribute adjustment module, configured to adjust the display attributes of the computing unit based on the subsequent workload in response to determining that the subsequent workload does not satisfy the predetermined range.
[0082] In some embodiments, the property adjustment module 530 is further configured to: in response to determining that the workload is below a predetermined range, increase a display property of the electronic device.
[0083] In some embodiments, the property adjustment module 530 is further configured to adjust a level of the display property, the level specifying any of the following: a resolution, a refresh rate, and a combination of a resolution and a refresh rate of the electronic device.
[0084] In some embodiments, the device 500 further includes: a second load acquisition module, configured to acquire a subsequent workload of a computing unit in the electronic device in response to determining that the workload satisfies a predetermined range; a second range determination module, configured to determine whether the subsequent workload satisfies a predetermined range; and a second attribute adjustment module, configured to adjust the display attributes of the computing unit based on the subsequent workload in response to determining that the subsequent workload does not satisfy the predetermined range.
[0085] In some embodiments, the computing unit includes at least any one of the following: a central processing unit, and a graphics processing unit.
[0086] The units and / or modules included in the device 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units and / or modules in the device 500 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0087] Figure 61 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 6 The electronic device 600 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 6 The electronic device 600 shown can be used to implement Figure 1 The electronic device 110 and / or the server 130, or Figure 5 Device 500.
[0088] like Figure 6 As shown, the electronic device 600 is in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of the electronic device 600.
[0089] The electronic device 600 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory) or some combination thereof. The storage device 630 can be a removable or non-removable medium, and can include a machine-readable medium, such as a flash drive, a disk, or any other medium, which can be used to store information and / or data and can be accessed within the electronic device 600.
[0090] The electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 6 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0091] The communication unit 640 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0092] The input device 650 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 660 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 600, or communicate with any device that allows the electronic device 600 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0093] According to an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an embodiment of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0094] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0095] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0096] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0097] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0098] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the implementations disclosed herein.
Claims
1. A method for managing display properties of an electronic device, include: Obtaining a workload of a computing unit in the electronic device; Determining whether the workload satisfies a predetermined range; as well as In response to determining that the workload does not satisfy the predetermined range, a display property of the electronic device is adjusted based on the workload.
2. The method according to claim 1, wherein the workload of the computing unit in the electronic device is obtained include: Determine a plurality of metric indicators of the workload, wherein the plurality of metric indicators include at least any one of the following: utilization rate, idle rate, saturation, and response time of the computing unit; as well as The workload is determined based on the plurality of metrics. 3 . The method according to claim 1 , wherein the display attribute comprises at least one of the following: a resolution and a refresh rate of the electronic device.
4. The method of claim 3, wherein the display attribute of the electronic device is adjusted based on the workload include: In response to determining that the workload is above the predetermined range, the display attribute of the electronic device is reduced.
5. The method according to claim 4, wherein the display attribute of the electronic device is reduced include: In response to determining that the refresh frequency of the electronic device is higher than a predetermined condition, the display attribute of the electronic device is reduced.
6. The method according to claim 5, further comprising: include: In response to determining that the refresh frequency of the electronic device is not higher than the predetermined condition, Obtaining a subsequent workload of the computing unit in the electronic device; determining whether the subsequent workload satisfies the predetermined range; and In response to determining that the subsequent workload does not satisfy the predetermined range, the display attribute of the computing unit is adjusted based on the subsequent workload.
7. The method of claim 3, wherein the display attribute of the computing unit is adjusted based on the workload include: In response to determining that the workload is below the predetermined range, the display attribute of the electronic device is increased.
8. The method of claim 1, wherein the display attribute of the electronic device is adjusted based on the workload include: A level of the display attribute is adjusted, the level specifying any one of: a resolution of the electronic device, a refresh rate, and a combination of the resolution and the refresh rate.
9. The method according to claim 1, further comprising: include: In response to determining that the workload satisfies the predetermined range, Obtaining a subsequent workload of the computing unit in the electronic device; determining whether the subsequent workload satisfies the predetermined range; and In response to determining that the subsequent workload does not satisfy the predetermined range, the display attribute of the computing unit is adjusted based on the subsequent workload.
10. The method according to claim 1, wherein the computing unit comprises at least any one of the following: a central processing unit, and a graphics processing unit.
11. A device for managing display properties of an electronic device, include: A load acquisition module, configured to acquire a workload of a computing unit in the electronic device; A range determination module, configured to determine whether the workload satisfies a predetermined range; as well as The property adjustment module is configured to adjust the display property of the electronic device based on the workload in response to determining that the workload does not meet the predetermined range.
12. An electronic device, include: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 10 when executed by the at least one processing unit.
13. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to implement the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Screen refresh rate adjusting method, terminal and computer readable storage medium
CN110377251A
Vehicle-mounted system load adjusting method and device, electronic equipment and storage medium
CN110704179A
Picture display method and device, electronic equipment and readable storage medium
CN111405347A