Refresh rate switching method and electronic device
By dynamically switching the screen refresh rate and frame rate matching mechanism in electronic devices, the power consumption problem caused by high refresh rates is solved, achieving a balance between power consumption and display effect in different scenarios, providing a smooth experience in high frame rate scenarios and energy-saving effects in standard scenarios.
Patent Information
- Application Number
- CN202210366082.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-06
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2040-03-06
AI Technical Summary
In existing technologies, electronic devices operating at a fixed high refresh rate lead to increased power consumption, and it is impossible to dynamically adjust the screen refresh rate in different scenarios to balance display frame rate and power consumption.
By dynamically switching the screen refresh rate in electronic devices, the display is refreshed using a non-maximum refresh rate according to the scene to which the display belongs, and adjusted to the optimal refresh rate through a frame rate matching mechanism. Combined with game scene and touch operation detection, power consumption and display effect are optimized.
It provides a smooth display experience in high frame rate scenarios, while saving power consumption in standard frame rate scenarios, achieving a balance between power consumption and display effect.
Smart Images

Figure CN114842816B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminals and display, and in particular to a refresh rate switching method and an electronic device. BACKGROUND
[0002] With the improvement of display technology, more and more manufacturers have launched electronic devices that can support higher screen refresh rates. Higher screen refresh rates can support higher display frame rates, and higher display frame rates can make dynamic pictures display more smoothly. For example, if the display frame rate is increased from 60 frames per second (FPS) to 90 FPS, the dynamic blur of the human eye can be significantly reduced, and a smoother experience can be brought.
[0003] More and more manufacturers fix the screen refresh rate at the highest screen refresh rate that the electronic device can support, so that the electronic device can maintain the highest display frame rate of the application program and improve the smoothness of the picture.
[0004] However, the increase of the display frame rate will cause the rendering and drawing power consumption of the graphics rendering system to rise exponentially, and maintaining a high screen refresh rate will also bring additional increase in power consumption, resulting in a large increase in the overall power consumption. SUMMARY
[0005] The present application provides a refresh rate switching method and an electronic device for dynamically switching the screen refresh rate according to the scene to which the display picture belongs, which can obtain the experience of high display frame rate and reduce power consumption.
[0006] In a first aspect, the present application provides a refresh rate switching method, which comprises: an electronic device refreshing a display screen using a first refresh rate, the first refresh rate being other than the highest screen refresh rate in a plurality of selectable screen refresh rates in the electronic device; when the electronic device determines that a display picture is a game scene, the electronic device determines a screen refresh rate from the plurality of selectable screen refresh rates as a second refresh rate using the following steps, and refreshes the display screen using the second refresh rate: the electronic device sets the second refresh rate as the highest screen refresh rate; when it is determined that the second refresh rate is not the first refresh rate, the electronic device determines whether a current display frame rate matches the second refresh rate, the current display frame rate being the display frame rate of the display picture detected after refreshing the display screen using the second refresh rate; when it is determined that the current display frame rate does not match the second refresh rate, the electronic device updates the second refresh rate to the next screen refresh rate in the plurality of selectable screen refresh rates in order from high to low; when it is determined that the current display frame rate matches the second refresh rate, or it is determined that the second refresh rate is the first refresh rate, the electronic device maintains the screen refresh rate as the second refresh rate.
[0007] It can be understood that the electronic device sets the second refresh rate to a certain refresh rate, or updates the second refresh rate, and then uses the second refresh rate to refresh the display screen. The current display frame rate is the display frame rate of the display screen detected after the second refresh rate is set or updated.
[0008] By implementing the method provided in the first aspect, when the electronic device uses the common interface or application, the electronic device uses the first refresh rate that is not the highest screen refresh rate to refresh the display screen. Since the screen refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is saved. After the game scenario is detected, the electronic device first sets the current screen refresh rate to the highest screen refresh rate, and then detects whether the current display frame rate matches the current screen refresh rate. If the current display frame rate matches the current screen refresh rate, the current screen refresh rate is maintained. If the current display frame rate does not match the current screen refresh rate, the screen refresh rate is updated to the next screen refresh rate in the order from high to low, and then the current display frame rate is detected. Until the detected current display frame rate matches the second refresh rate, or the screen refresh rate is reduced to the first refresh rate commonly used by the user. Finally, there are three possibilities: possibility 1: if the finally determined matching screen refresh rate is the highest screen refresh rate, the best high display frame rate experience can be provided. Possibility 2: if the finally determined matching screen refresh rate is not the highest screen refresh rate, and is also not the first refresh rate, it indicates that the output frame rate of the game scenario cannot reach the degree of matching the highest screen refresh rate. Using the finally determined second refresh rate can achieve the best display frame rate supported by the game scenario, thereby providing the best high display frame rate experience. At the same time, since the second refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is also saved. Possibility 3: if the finally determined screen refresh rate is the first refresh rate, it indicates that the output frame rate of the game scenario can at most reach the degree of matching the first refresh rate. Using the first refresh rate can achieve the highest display frame rate supported by the game scenario, thereby providing a better display frame rate experience. At the same time, since the first refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is also saved.
[0009] Optionally, there are many specific ways for the electronic device to determine whether the current display frame rate matches the second refresh rate.
[0010] In some embodiments of the first aspect, each of the plurality of selectable screen refresh rates corresponds to a frame rate range; and the electronic device determines whether the current display frame rate matches the second refresh rate by determining whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate.
[0011] Specifically, a frame rate range includes all frame rates from a minimum frame rate value to a maximum frame rate value of the frame rate range. If a display frame rate is greater than or equal to the minimum frame rate value and less than or equal to the maximum frame rate value, it can be determined that the display frame rate belongs to the frame rate range. If a display frame rate is less than the minimum frame rate value or greater than the maximum frame rate value, it can be determined that the display frame rate does not belong to the frame rate range.
[0012] For example, if a screen refresh rate of 90 Hz corresponds to a frame rate range of 80 FPS-90 FPS, if the current display frame rate is 80 FPS, it can be determined that the current display frame rate belongs to the frame rate range, if the current display frame rate is 85 FPS, it can also be determined that the current display frame rate belongs to the frame rate range, and if the current display frame rate is 90 FPS, it can also be determined that the current display frame rate belongs to the frame rate range. However, if the current display frame rate is 75 FPS, it can be determined that the current display frame rate does not belong to the frame rate range. It can be understood that since the current display frame rate can only reach the current screen refresh rate, there is no case where the current display frame rate does not belong to the frame rate range because the current display frame rate exceeds 90 FPS.
[0013] In the embodiments of the present application, each screen refresh rate corresponds to a frame rate range, and the electronic device only needs to determine whether the current display frame rate belongs to the frame rate range to determine whether the current display frame rate matches the second refresh rate. No additional steps are required, and the operability is strong.
[0014] In some embodiments of the first aspect, the electronic device determines whether the current display frame rate matches the second refresh rate by determining whether the difference between the value of the second refresh rate and the value of the current display frame rate is less than a preset difference value; when it is determined that the difference is less than the preset difference value, the electronic device determines that the current display frame rate matches the second refresh rate; and when it is determined that the difference is not less than the preset difference value, the electronic device determines that the current display frame rate does not match the second refresh rate.
[0015] In the embodiments of the present application, whether the current display frame rate matches the second refresh rate is determined by determining whether the difference between the value of the second refresh rate and the value of the current display frame rate is less than a preset difference value. Real-time calculation is performed, and excessive data does not need to be pre-stored, thereby saving the occupied storage space.
[0016] In combination with the first aspect, in some embodiments, the method further includes: determining, by the electronic device, whether the type of the application currently running in the foreground is a game type; determining, by the electronic device, whether the increase of the output frame rate of the application exceeds a preset threshold; and determining, by the electronic device, that the display picture is a game scene when it is determined that the type of the application currently running in the foreground is the game type and the increase of the output frame rate of the application exceeds the preset threshold.
[0017] In the embodiments of the present application, when it is determined that the type of the application is the game type, the electronic device does not directly determine that the display picture is the game scene. Instead, it is determined that the display picture is the game scene only after it is determined that the type of the application is the game type and the increase of the output frame rate of the application exceeds the preset threshold. This makes the identification of the high-frame-rate scene more accurate and saves power consumption better.
[0018] Optionally, according to different actual situations, the plurality of optional screen refresh rates can include different numbers of screen resolutions.
[0019] In combination with the first aspect, in some embodiments, the plurality of optional screen refresh rates includes two screen refresh rates, which are a lowest screen refresh rate and a highest screen refresh rate; and the first refresh rate is the lowest screen refresh rate.
[0020] In combination with the first aspect, in some embodiments, the plurality of optional screen refresh rates includes two or more screen refresh rates; the first refresh rate is the lowest screen refresh rate in the plurality of optional screen refresh rates; or the first refresh rate is one screen refresh rate in the plurality of optional screen refresh rates except the highest screen refresh rate and the lowest screen refresh rate.
[0021] In the second aspect, the present application provides a refresh rate switching method, which includes: refreshing, by an electronic device, a display screen using a third refresh rate, the third refresh rate being different from a highest screen refresh rate in a plurality of optional screen refresh rates in the electronic device; refreshing, by the electronic device, the display screen using the highest screen refresh rate when a touch operation input by a user is detected; and refreshing, by the electronic device, the display screen using the third refresh rate when picture static refreshing or no touch operation is detected for a preset time length after the touch operation input by the user is detected.
[0022] In the embodiments of the present application, the electronic device refreshes the display screen at a third refresh rate which is not the highest screen refresh rate in the case of screen stasis refresh or no touch operation being detected. Since the screen refresh rate adopted is lower than the highest screen refresh rate, the power consumption is saved compared with always adopting the highest screen refresh rate to refresh the display screen. When a touch operation is detected, the electronic device adjusts the screen refresh rate to the highest screen refresh rate, thereby providing the user with a good high frame rate experience in such a high frame rate scenario. Until the touch operation is removed and screen stasis refresh is detected, or the touch operation is removed and no touch operation is detected within a preset time length, the screen refresh rate is adjusted to the third refresh rate. The commonly used third refresh rate set by the factory or the user is continued to be used in such a standard frame rate scenario to save power consumption. In this way, the user is provided with a high display frame rate experience in a high frame rate scenario, and power consumption is not wasted in a standard frame rate scenario, thereby reducing the power consumption of the whole machine.
[0023] In combination with the second aspect, in some embodiments, the method further includes: when the electronic device determines that no foreground application sends layer data to be displayed within the stasis detection time length, the electronic device determines that screen stasis refresh is detected.
[0024] In the embodiments of the present application, whether screen stasis refresh is detected is determined by whether the layer data to be displayed sent by the application is received. The detection is performed from the data source of the screen, so that the detection result is more accurate.
[0025] Optionally, according to different actual situations, the plurality of optional screen refresh rates can contain different numbers of screen resolutions:
[0026] In combination with the second aspect, in some embodiments, the plurality of optional screen refresh rates includes two screen refresh rates, which are the lowest screen refresh rate and the highest screen refresh rate respectively; and the third refresh rate is the lowest screen refresh rate.
[0027] In combination with the second aspect, in some embodiments, the plurality of optional screen refresh rates includes two or more screen refresh rates; the third refresh rate is the lowest screen refresh rate in the plurality of optional screen refresh rates; or the third refresh rate is one screen refresh rate in the plurality of optional screen refresh rates except the highest screen refresh rate and the lowest screen refresh rate.
[0028] In a third aspect, the present application provides an electronic device, comprising: a display screen, one or more processors, a memory, a plurality of application programs, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and the one or more computer programs comprise instructions; when the instructions are executed by the electronic device, the electronic device performs the following steps: refreshing the display screen using a first refresh rate, the first refresh rate being a highest screen refresh rate in a plurality of selectable screen refresh rates in the electronic device; when it is determined that a display picture is a game scene, determining a screen refresh rate as a second refresh rate from the plurality of selectable screen refresh rates according to the following steps, and refreshing the display screen using the second refresh rate: setting the second refresh rate as the highest screen refresh rate; when it is determined that the second refresh rate is not the first refresh rate, determining whether a current display frame rate matches the second refresh rate, the current display frame rate being a display frame rate of the display picture detected after refreshing the display screen using the second refresh rate; when it is determined that the current display frame rate does not match the second refresh rate, updating the second refresh rate to a next screen refresh rate in the plurality of selectable screen refresh rates in order of screen refresh rate from high to low; when it is determined that the current display frame rate matches the second refresh rate, or it is determined that the second refresh rate is the first refresh rate, maintaining the screen refresh rate as the second refresh rate.
[0029] Optionally, there are many specific ways for the electronic device to determine whether the current display frame rate matches the second refresh rate:
[0030] In combination with the third aspect, in some embodiments, each screen refresh rate in the plurality of selectable screen refresh rates corresponds to a frame rate range; when the instructions are executed by the electronic device, the electronic device specifically performs the following steps: determining whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate; when it is determined that the current display frame rate belongs to the frame rate range corresponding to the second refresh rate, it is determined that the current display frame rate matches the second refresh rate; when it is determined that the current display frame rate does not belong to the frame rate range corresponding to the second refresh rate, it is determined that the current display frame rate does not match the second refresh rate.
[0031] In combination with the third aspect, in some embodiments, when the instructions are executed by the electronic device, the electronic device specifically performs the following steps: determining whether a difference between a value of the second refresh rate and a value of the current display frame rate is less than a preset difference value; when it is determined that the difference is less than the preset difference value, it is determined that the current display frame rate matches the second refresh rate; when it is determined that the difference is not less than the preset difference value, it is determined that the current display frame rate does not match the second refresh rate.
[0032] In some embodiments, when the instruction is executed by the electronic device, the electronic device further determines whether the type of the application currently running in the foreground is a game; determines whether the increase of the output frame rate of the application exceeds a preset threshold; and determines that the display screen is a game scene when it is determined that the type of the application currently running in the foreground is a game and the increase of the output frame rate of the application exceeds the preset threshold.
[0033] Optionally, the plurality of selectable screen refresh rates can include different numbers of screen resolutions according to different actual situations.
[0034] In some embodiments of the third aspect, the plurality of selectable screen refresh rates includes two screen refresh rates, which are a lowest screen refresh rate and a highest screen refresh rate, respectively; and the first refresh rate is the lowest screen refresh rate.
[0035] In some embodiments of the third aspect, the plurality of selectable screen refresh rates includes more than two screen refresh rates; the first refresh rate is the lowest screen refresh rate in the plurality of selectable screen refresh rates; or the first refresh rate is a screen refresh rate other than the highest screen refresh rate and the lowest screen refresh rate in the plurality of selectable screen refresh rates.
[0036] In some embodiments of the fourth aspect, when the instruction is executed by the electronic device, the electronic device further determines whether the type of the application currently running in the foreground is a game; determines whether the increase of the output frame rate of the application exceeds a preset threshold; and determines that the display screen is a game scene when it is determined that the type of the application currently running in the foreground is a game and the increase of the output frame rate of the application exceeds the preset threshold.
[0037] In some embodiments of the fourth aspect, when the instruction is executed by the electronic device, the electronic device further determines that the screen is in a static refresh when it is determined that the foreground application does not send layer data that needs to be displayed within a static detection time period.
[0038] In some embodiments of the fourth aspect, the plurality of selectable screen refresh rates includes two screen refresh rates, which are a lowest screen refresh rate and a highest screen refresh rate, respectively; and the third refresh rate is the lowest screen refresh rate.
[0039] In some embodiments of the fourth aspect, the plurality of selectable screen refresh rates includes more than two screen refresh rates; the third refresh rate is a lowest screen refresh rate among the plurality of selectable screen refresh rates; or the third refresh rate is a screen refresh rate other than the highest screen refresh rate and the lowest screen refresh rate among the plurality of selectable screen refresh rates.
[0040] In the fifth aspect, an embodiment of the present application provides a chip applied to an electronic device, the chip comprising one or more processors configured to invoke computer instructions to cause the electronic device to perform the method described in the first aspect and any possible implementation manner of the first aspect.
[0041] In the sixth aspect, an embodiment of the present application provides a chip applied to an electronic device, the chip comprising one or more processors configured to invoke computer instructions to cause the electronic device to perform the method described in the second aspect and any possible implementation manner of the second aspect.
[0042] In the seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible implementation manner of the first aspect.
[0043] In the eighth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, cause the electronic device to perform the method described in the second aspect and any possible implementation manner of the second aspect.
[0044] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect and any possible implementation manner of the first aspect.
[0045] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, cause the electronic device to perform the method described in the second aspect and any possible implementation manner of the second aspect.
[0046] Understandably, the electronic device provided in the third aspect, the chip provided in the fifth aspect, the computer program product provided in the seventh aspect, and the computer storage medium provided in the ninth aspect are all used to execute the method provided in the first aspect of the embodiments of this application. The electronic device provided in the fourth aspect, the chip provided in the sixth aspect, the computer program product provided in the eighth aspect, and the computer storage medium provided in the tenth aspect are all used to execute the method provided in the second aspect of the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to in the beneficial effects of the corresponding methods, and will not be repeated here. Attached Figure Description
[0047] Figure 1 This is a schematic diagram of a refresh rate state change in an embodiment of this application;
[0048] Figure 2 These are a set of interface diagrams illustrating the refresh rate switching method in the embodiments of this application;
[0049] Figure 3 This is another set of interface diagrams illustrating the refresh rate switching method in this application embodiment;
[0050] Figure 4 This is another set of interface diagrams illustrating the refresh rate switching method in this application embodiment;
[0051] Figure 5 This is another schematic diagram of refresh rate state change in the embodiments of this application;
[0052] Figure 6 This is another set of interface diagrams illustrating the refresh rate switching method in this application embodiment;
[0053] Figure 7 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0054] Figure 8 This is a schematic diagram of the software structure framework of the electronic device provided in the embodiments of this application. Detailed Implementation
[0055] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0056] Hereinafter, the terms "first", "second", "third", etc. are used only for the purpose of description, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified.
[0057] Since the embodiments of the present application relate to the application of display technology, in order to facilitate understanding, the related terms and concepts involved in the embodiments of the present application will be introduced first.
[0058] (1) Screen refresh rate
[0059] The screen refresh rate refers to the number of times the screen is refreshed per second, and its unit is Hz.
[0060] The higher the screen refresh rate, the higher the display frame rate it can support. For example, if the refresh rate of a display screen is 120Hz, it can support not only 60FPS display frame rate, but also 90FPS display frame rate, and its maximum can support 120FPS display frame rate.
[0061] But if the screen refresh rate is not enough, even if the output frame rate is high, the final display frame rate can at most reach the value of the screen refresh rate. For example, if the refresh rate of a display screen is 60Hz, even if the output frame rate of the application is 100FPS, the final display frame rate can at most reach 60FPS.
[0062] (2) Output frame rate
[0063] The output frame rate refers to the frame rate of the interface or application output to the display screen by the graphics card, and its unit is FPS, which refers to the number of frames displayed per second. Frame is the smallest unit of single image in video animation, and one frame is one frame of image, and continuous frames form animation.
[0064] In electronic devices, the output frame rate of most interfaces or applications changes accordingly with the change of the screen refresh rate in the system. For example, when the screen refresh rate is set to 60Hz, the output frame rate of this part of the interface or application will be adjusted to 60FPS; when the screen refresh rate is set to 90Hz, the output frame rate of this part of the interface or application will also be adjusted to 90FPS.
[0065] However, there are some applications whose output frame rate is relatively independent, such as game applications. These applications have their own independent timer and output frame rate, which is not controlled by the screen refresh rate set in the system. For example, in these applications, the output frame rate of one of the applications is set to 120 FPS. If the screen resolution is set to 60 Hz, the output frame rate of this application will not be adjusted to 60 FPS with the change of the screen resolution in the system, but will continue to maintain the output frame rate of 120 FPS. If the screen resolution is set to 144 Hz, the output frame rate of this application will also continue to maintain 120 FPS.
[0066] (3) Display frame rate
[0067] The display frame rate refers to the actual frame rate of the interface or application displayed on the display screen, and its unit is also FPS.
[0068] When the output frame rate is less than the screen refresh rate, the display frame rate is approximately equal to the output frame rate. For example, the output frame rate is 30 FPS, and the screen refresh rate is 60 Hz. In order to ensure the continuity of the picture display, 60 pictures displayed on the display screen in 1 second will be filled with repeated frames. Such repeated frames are not counted when calculating the display frame rate, so the actual display of the effective picture is still 30 frames, that is, the display frame rate is 30 FPS.
[0069] When the output frame rate is equal to the screen refresh rate, the display frame rate is approximately equal to the output frame rate. For example, the output frame rate is 90 FPS, and the screen refresh rate is 90 Hz. Then the application outputs 90 pictures per second, and the display screen refreshes 90 pictures per second, and the display frame rate is 90 FPS.
[0070] When the output frame rate is greater than the screen refresh rate, the display frame rate is approximately equal to the screen refresh rate. For example, the output frame rate is 120 FPS, and the screen refresh rate is 90 Hz. At this time, the application outputs 120 pictures per second, while the display screen can only refresh 90 pictures per second, and cannot display all 120 pictures output by the application per second, at most can display 90 pictures. Then the electronic device will discard part of the 120 pictures output by the application per second or merge part of the pictures, finally display 90 pictures per second, that is, the display frame rate is 90 FPS.
[0071] In addition, the reason why the display frame rate is approximately equal to the output frame rate or the screen refresh rate, rather than equal to, is that in actual applications, the timing of the display screen and the screen refresh cannot be guaranteed to be completely consistent. Therefore, it is not possible to make every output frame be displayed exactly at the time of screen refresh, and it is also possible that it will be lost, so that the display frame rate will fluctuate by a small amount. For example, even if the output frame rate is 90 FPS and the screen refresh rate is 90 Hz, the actual display frame rate may continue to fluctuate between 80 FPS and 90 FPS.
[0072] (4) High frame rate scenario
[0073] In the embodiments of the present application, the high frame rate scenario refers to a scenario in which the display frame rate is improved, and the picture display effect and user experience are also improved. For example, some pictures with fast motion speed may produce trailing or delay if the frame rate is not enough, which affects the visual experience of the user watching. Under the condition of a higher display frame rate, the picture display effect is more smooth and more real.
[0074] (5) Standard frame rate scenario
[0075] In the embodiments of the present application, the standard frame rate scenario refers to a scenario in which the improvement of the display frame rate does not significantly affect the picture display effect and user experience. For example, in the static picture scenario or some pictures with slow motion speed, the high and low of the display frame rate will not affect the presentation effect of the final display picture.
[0076] (6) Multiple selectable screen refresh rates
[0077] In the embodiments of the present application, the electronic device can support multiple selectable screen refresh rates, and the multiple selectable screen refresh rates can at least include a minimum screen refresh rate and a maximum screen refresh rate.
[0078] The multiple selectable screen refresh rates can have only two selectable screen refresh rates, one being the maximum screen refresh rate and the other being the minimum screen refresh rate.
[0079] For example, the two selectable screen refresh rates are 60 Hz and 90 Hz. Among them, 60 Hz is the minimum screen refresh rate in the multiple selectable screen refresh rates, and 90 Hz is the maximum screen refresh rate in the multiple selectable screen refresh rates.
[0080] In some embodiments of the present application, the multiple selectable screen refresh rates can further include more selectable screen refresh rates.
[0081] For example, the three selectable screen refresh rates include 60 Hz, 90 Hz, and 120 Hz. Among them, 60 Hz is the minimum screen refresh rate in the multiple selectable screen refresh rates, and 120 Hz is the maximum screen refresh rate in the multiple selectable screen refresh rates.
[0082] Exemplarily, the plurality of selectable screen refresh rates comprises 4 selectable screen refresh rates: 60Hz, 90Hz, 120Hz, and 144Hz. Among them, 60Hz is the lowest screen refresh rate in the plurality of selectable screen refresh rates, and 120Hz is the highest screen refresh rate in the plurality of selectable screen refresh rates.
[0083] Exemplarily, the plurality of selectable screen refresh rates comprises 5 selectable screen refresh rates: 45Hz, 60Hz, 90Hz, 120Hz, and 240Hz. Among them, 45Hz is the lowest screen refresh rate in the plurality of selectable screen refresh rates, and 240Hz is the highest screen refresh rate in the plurality of selectable screen refresh rates.
[0084] It can be understood that the plurality of selectable screen refresh rates can further comprise more screen refresh rates according to actual needs. The selectable screen refresh rates can also have more different choices, which are not limited here.
[0085] (7) Game scene detection
[0086] In the embodiment of the application, the electronic device can determine whether the type of the foreground application being run is a game type according to the information stored in the third-party feature library. Meanwhile, the electronic device can also monitor the output frame rate of the foreground application in real time. When the output frame rate of the foreground application is increased by more than a preset threshold, the electronic device determines that the game scene is entered.
[0087] For example, the user starts an application game 1, and the electronic device determines that the type of the currently running foreground application is a game type through the pre-stored application type information in the third-party feature library. At this time, the output frame rate of the game application is 45FPS, and the electronic device has not determined that the game scene is entered. When the user logs in to the application game 1 and enters the game operation interface, the output frame rate of the application game 1 is increased to 60FPS. The electronic device detects that the output frame rate is increased by more than a preset threshold of 10FPS, and determines that the current scene is a game scene.
[0088] (8) Touch detection
[0089] Exemplarily, when the sensor module of the electronic device detects a touch operation input by the user, for example, when a finger or a stylus contacts the screen, a down event will be generated. Through the down event, the electronic device can determine that the touch operation is detected.
[0090] When the sensor module detects the movement of the touch point of the user, for example, when a finger or a stylus slides on the screen, the finger or the stylus does not leave the screen, a move event will be generated. Through the move event, the electronic device can determine that the movement of the touch point of the user is detected.
[0091] When the sensor module detects a touch operation leaving, or off-screen, an up event is generated. Through the up event, the electronic device can determine that a touch operation leaving is detected.
[0092] It can be understood that in actual applications, there can be many other touch detection methods, which are not limited in the embodiments of the present application.
[0093] (9) Stale refresh detection of a picture
[0094] An application sends layer data to be displayed to a layer fusion system in the electronic device for fusion. The layer fusion system sends time information of the layer data to be displayed sent by the application to a graphics service in the electronic device. If the graphics service does not receive the time information sent by the layer fusion system for a period of time (which can be referred to as a stale detection duration, for example, 1 second), it indicates that the application has no graphics to draw a frame picture. Therefore, the graphics service can determine that the current picture is stale refresh.
[0095] In the prior art, the electronic device is maintained at a high screen refresh rate, so that when the highest output frame rate of an interface or an application is lower than or equal to the value of the screen refresh rate, the display frame rate of the display screen can reach the highest display frame rate of the interface or the application. For example, the screen refresh rate is fixed at 90 Hz, and the highest output frame rate of the interface or the application is 30 FPS, so the display frame rate can reach 30 FPS. For another example, the screen refresh rate is fixed at 90 Hz, and the highest output frame rate of the interface or the application is 90 FPS, so the display frame rate can reach 90 FPS. However, such a fixed screen refresh rate makes the electronic device need to continuously maintain a large power consumption.
[0096] In the embodiments of the present application, the scene to which the display picture belongs is determined, for example, whether it is a high frame rate scene or a standard frame rate scene. When the improvement of the display frame rate has an impact on the display effect of the picture, a higher screen refresh rate is used to support a higher display frame rate to provide a smooth experience. When the improvement of the display frame rate has no impact on the display effect of the picture, a lower screen refresh rate is used to save power consumption. When a high display frame rate is needed, the screen refresh rate is improved to provide an experience of high display frame rate. When only a lower display frame rate is needed, a lower screen refresh rate is used to reduce the overall power consumption of the electronic device.
[0097] The refresh rate switching method in the embodiments of the present application is described below:
[0098] In the embodiments of the present application, the electronic device has a plurality of screen refresh rates that can be switched. When the electronic device determines that the display picture is a high frame rate scene, a first refresh rate is used; when the electronic device determines that the display picture is a standard frame rate scene, a second refresh rate is used. The second refresh rate is lower than the first refresh rate.
[0099] The high frame rate scene can include at least a game scene or a touch scene.
[0100] (1) Game scene
[0101] Figure 1 A change diagram of a refresh rate state in an embodiment of the present application is shown in FIG. 1.
[0102] In S101, the electronic device refreshes the display screen using a first refresh rate, which is not the highest screen refresh rate in a plurality of selectable screen refresh rates of the electronic device.
[0103] The electronic device has a plurality of selectable screen refresh rates, and the electronic device currently uses a first refresh rate that is not the highest screen refresh rate to refresh the display screen.
[0104] In some embodiments, the first refresh rate can be the lowest screen refresh rate in the plurality of selectable screen refresh rates. For example, the plurality of selectable screen refresh rates are 60 Hz and 90 Hz, and the first refresh rate can be 60 Hz. For another example, the plurality of selectable screen refresh rates are 60 Hz, 90 Hz, and 120 Hz, and the first refresh rate can be 60 Hz.
[0105] In some embodiments, the first refresh rate can also not be the lowest screen refresh rate in the plurality of selectable screen refresh rates. For example, the plurality of selectable screen refresh rates are 60 Hz, 90 Hz, and 120 Hz, and the first refresh rate can be 90 Hz. For another example, the plurality of selectable screen refresh rates are 60 Hz, 90 Hz, 120 Hz, and 240 Hz, and the first refresh rate can be 90 Hz or 120 Hz.
[0106] It can be understood that the first refresh rate can be a default screen refresh rate of the electronic device out of the factory, or a daily use screen refresh rate selected by the user from the plurality of selectable screen refresh rates, which is not limited herein.
[0107] In S102, when the electronic device determines that the display picture is a game scene, the electronic device performs steps S103 to S107 to determine a screen refresh rate from the plurality of selectable screen refresh rates as a second refresh rate, and refreshes the display screen using the second refresh rate.
[0108] Since the game scene belongs to a high frame rate scene in which a higher display frame rate results in a better display effect. When the user opens a game application, the electronic device determines that the display picture is a game scene, and the electronic device starts to try to use a higher screen refresh rate to support a higher output frame rate, so as to achieve a higher display frame rate.
[0109] Since the output frame rate of the game application is independent of the screen refresh rate of the system, the output frame rate of the game application does not change accordingly with the change of the screen refresh rate of the system. Therefore, the electronic device determines a refresh rate from the plurality of selectable screen refresh rates as the second refresh rate, and after refreshing the display using the second refresh rate, determines whether the current display frame rate matches the second refresh rate. By means of hierarchical attempt detection, the best screen refresh rate that matches the output frame rate of the game application is determined. Such a way is more adaptive and will not be limited by the game application. The process of specifically determining the second refresh rate is steps S103 to S107.
[0110] S103, the electronic device sets the second refresh rate as the highest screen refresh rate;
[0111] The electronic device first sets the second refresh rate as the highest screen refresh rate, and uses the highest screen refresh rate to refresh the display screen.
[0112] S104, when it is determined that the second refresh rate is not the first refresh rate, the electronic device determines whether the current display frame rate matches the second refresh rate;
[0113] The current display frame rate is the display frame rate of the display screen detected by the electronic device after refreshing the display screen using the second refresh rate.
[0114] When S103 is executed, the second refresh rate is determined as the highest screen refresh rate, or when S106 is executed, the second refresh rate is determined to be updated to the next screen refresh rate in the plurality of selectable screen refresh rates, and it is determined that the second refresh rate is not the first refresh rate, it indicates that the electronic device increases the screen refresh rate to the second refresh rate. The second refresh rate can be the highest screen refresh rate in the plurality of selectable screen refresh rates, or any refresh rate higher than the first refresh rate in the plurality of selectable screen refresh rates.
[0115] The electronic device first detects the display frame rate of the display screen after refreshing the display screen using the second refresh rate to obtain the current display frame rate, and then determines whether the current display frame rate matches the second refresh rate. If not, S105 is executed; if yes, S107 is executed.
[0116] There are many ways to determine whether the current display frame rate matches the second refresh rate:
[0117] For example, if the plurality of selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, the frame rate range corresponding to 60Hz is 40FPS-60FPS, the frame rate range corresponding to 120Hz is 100FPS-120FPS, and the frame rate range corresponding to 240Hz is 200FPS-240FPS. If the current second refresh rate is 240Hz, and the screen is refreshed using the second refresh rate 240Hz, the current display frame rate is 210FPS. Since 210FPS belongs to the frame rate range 200FPS-240FPS corresponding to the second refresh rate 240Hz, it is considered that the display frame rate 210FPS matches the second refresh rate 240Hz. If the current second refresh rate is 240Hz, and the detected current display frame rate is 110FPS, 110FPS does not belong to the frame rate range 200FPS-240FPS corresponding to the second refresh rate 240Hz, it is considered that the display frame rate 110FPS does not match the second refresh rate 240Hz.
[0118] For example, if the plurality of selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, the frame rate range corresponding to 60Hz is 40FPS-60FPS, the frame rate range corresponding to 120Hz is 100FPS-120FPS, and the frame rate range corresponding to 240Hz is 200FPS-240FPS. If the current second refresh rate is 240Hz, and the screen is refreshed using the second refresh rate 240Hz, the current display frame rate is 210FPS. Since 210FPS belongs to the frame rate range 200FPS-240FPS corresponding to the second refresh rate 240Hz, it is considered that the display frame rate 210FPS matches the second refresh rate 240Hz. If the current second refresh rate is 240Hz, and the detected current display frame rate is 110FPS, 110FPS does not belong to the frame rate range 200FPS-240FPS corresponding to the second refresh rate 240Hz, it is considered that the display frame rate 110FPS does not match the second refresh rate 240Hz.
[0119] For example, it can be determined whether the difference between the value of the second refresh rate and the value of the current display frame rate is less than a preset difference value. If it is less than the preset difference value, it is considered to match; if it is not less than the preset difference value, it is considered to not match.
[0120] For example, if the multiple selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, and the predicted difference is 30. If the current second refresh rate is 240Hz, and the detected current display frame rate is 220FPS. The difference between the value of the second refresh rate 240 and the value of the current display frame rate 220 is 20, which is less than the preset difference 30, so it is considered that the current display frame rate 220FPS matches the second refresh rate 240Hz. If the current second refresh rate is 240Hz, and the detected current display frame rate is 110FPS, the difference between the value of the second refresh rate 240 and the value of the current display frame rate 110 is 130, which is not less than the preset difference 30, so it is considered that the current display frame rate 110FPS does not match the second refresh rate 240Hz.
[0121] For example, if the multiple selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, and the predicted difference is 20% of the second screen refresh rate. If the current second refresh rate is 240Hz, and the detected current display frame rate is 220FPS, the difference between the value of the second refresh rate 240 and the value of the current display frame rate 220 is 20, which is less than the preset difference 240*20% = 48, so it is considered that the current display frame rate 220FPS matches the second refresh rate 240Hz. If the current second refresh rate is 120Hz, and the detected current display frame rate is 80FPS, the difference between the value of the second refresh rate 120 and the value of the current display frame rate 80 is 40, which is not less than the preset difference 120*20% = 24, so it is considered that the current display frame rate 80FPS does not match the second refresh rate 120Hz.
[0122] It can be understood that there are many ways to determine whether the current display frame rate matches the second refresh rate, which are not limited here.
[0123] S105, when it is determined that it does not match, the electronic device updates the second refresh rate to the next screen refresh rate in the multiple selectable screen refresh rates in order of screen refresh rate from high to low;
[0124] When it is determined that the current display frame rate does not match the second refresh rate, it means that the second refresh rate as the current screen refresh rate is too high, and the output frame rate of the game application cannot reach the degree of the second refresh rate, so the screen refresh rate can be reduced to save power. Therefore, the electronic device can update the second refresh rate to the next screen refresh rate in the multiple selectable screen refresh rates in order of screen refresh rate from high to low.
[0125] For example, if the multiple selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, and 240Hz is selected as the second refresh rate, the detected display frame rate is 110FPS. It is determined that the display frame rate 110FPS does not match the second refresh rate 240Hz, and the electronic device can update the second refresh rate to 120Hz in the order of screen refresh rates from high to low.
[0126] In S106, the electronic device determines whether the second refresh rate is the first refresh rate.
[0127] After the electronic device updates the second refresh rate, it is determined whether the second refresh rate is the first refresh rate.
[0128] If the second refresh rate is the first refresh rate, it means that the screen refresh rate has been reduced to the lowest screen refresh rate or to the default screen refresh rate set by the manufacturer or the user. Even if the current display frame rate does not match the second refresh rate, the screen refresh rate cannot be reduced or does not need to be reduced, and therefore it is not necessary to detect whether the current display frame rate matches the second refresh rate. S107 can be directly executed to maintain the screen refresh rate at the second refresh rate.
[0129] If the second refresh rate is not the first refresh rate, it means that the screen refresh rate has not been reduced to the lowest screen refresh rate or to the default screen refresh rate set by the manufacturer or the user. If the current display frame rate does not match the second refresh rate, the screen refresh rate can be further reduced to save power. Therefore, S104 can be executed again to detect whether the updated second refresh rate matches the current display frame rate.
[0130] For example, if the multiple selectable screen refresh rates are 60Hz, 120Hz, and 240Hz, and the first refresh rate is 120Hz. After setting 240Hz as the second refresh rate, the detected current display frame rate is 110FPS, and it is determined that the current display frame rate 110FPS does not match the second refresh rate 240Hz. The electronic device updates the second refresh rate to 120Hz in the order of screen refresh rates from high to low. After the update, it is determined that the second refresh rate 120Hz is the first refresh rate 120Hz, and therefore S107 is directly executed to maintain the screen refresh rate at the default screen refresh rate 120Hz set by the manufacturer or the user.
[0131] For another example, if the multiple selectable screen refresh rates are 60 Hz, 120 Hz, and 240 Hz, and the first refresh rate is 60 Hz. After setting 240 Hz as the second refresh rate, the detected current display frame rate is 110 FPS, and it is determined that the current display frame rate 110 FPS does not match the second refresh rate 240 Hz. According to the order of screen refresh rates from high to low, the electronic device updates the second refresh rate to 120 Hz, and after the update, it is determined that the second refresh rate 120 Hz is not the first refresh rate 60 Hz. Therefore, S104 is executed again, and it is detected that the current display frame rate is 110 FPS, which matches the updated second refresh rate 120 Hz. S107 is executed, and the screen refresh rate is maintained as the updated second refresh rate 120 Hz.
[0132] It can be understood that the electronic device can determine whether the second refresh rate is the first refresh rate in different ways: there can be explicit determination. For example, directly comparing the second refresh rate with the first refresh rate. There can also be implicit determination. For example, when updating the second refresh rate to the next screen refresh rate in the multiple selectable screen refresh rates, it can be determined whether the updated next screen refresh rate is the first refresh rate according to the default refresh rate identifier, etc. without the need for a separate action to determine whether the updated second refresh rate is the first refresh rate. Therefore, in some embodiments, step S106 can not be executed as an action, but only as a state determination, which is not limited here.
[0133] S107, when it is determined that the second refresh rate matches or is the first refresh rate, the screen refresh rate is maintained as the second refresh rate.
[0134] When it is determined that the current display frame rate matches the second refresh rate, it means that the second refresh rate is the screen refresh rate in the multiple selectable screen refresh rates of the terminal that best matches the output frame rate of the game application in the game scene. Using the second refresh rate not only meets the display frame rate requirement of the game scene, but also does not waste power consumption.
[0135] When it is determined that the second refresh rate is the first refresh rate, it means that the updated second refresh rate has been reduced to the lowest screen refresh rate, and the refresh rate cannot be reduced any further, so the screen refresh rate can be directly maintained as the second refresh rate. Or it means that although the updated second refresh rate has not been reduced to the lowest screen refresh rate, the updated second refresh rate has been reduced to the default refresh rate set by the manufacturer or the user, which is also the screen refresh rate commonly used by the user. Whether the current display frame rate matches the second refresh rate or not, it is not suitable to reduce the screen refresh rate to violate the user's habit, so the screen refresh rate can also be directly maintained as the second refresh rate.
[0136] It can be understood that when the electronic device determines to leave the game scene, the electronic device can resume refreshing the display screen using the first refresh rate.
[0137] In the prior art, in order to support a high frame rate display effect, the electronic device is generally set to refresh the display screen using a fixed highest screen refresh rate. However, in the embodiment of the present application, when a common interface or application is used, the electronic device refreshes the display screen using a first refresh rate that is not the highest screen refresh rate. Since the screen refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is saved.
[0138] Further, after detecting the game scene, the electronic device first sets the current screen refresh rate to the highest screen refresh rate, and detects whether the current display frame rate matches the current screen refresh rate. If the match is maintained, the current screen refresh rate is maintained. If the match is not maintained, the screen refresh rate is updated to the next screen refresh rate in order from high to low, and then detection is performed. Until the detected current display frame rate matches the second refresh rate or the screen refresh rate is reduced to the first refresh rate commonly used by the user.
[0139] Finally, there are three possibilities:
[0140] Possibility 1: If the finally determined matching screen refresh rate is the highest screen refresh rate, the best high display frame rate experience can be provided.
[0141] Possibility 2: If the finally determined matching screen refresh rate is neither the highest screen refresh rate nor the first refresh rate, it indicates that the output frame rate of the game scene cannot reach the degree of matching the highest screen refresh rate. Using the finally determined second refresh rate can achieve the best display frame rate supported by the game scene, thereby providing the best high display frame rate experience. At the same time, since the second refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is also saved.
[0142] Possibility 3: If the finally determined screen refresh rate is the first refresh rate, it indicates that the output frame rate of the game scene can at most reach the degree of matching the first refresh rate. Using the first refresh rate can achieve the highest display frame rate that can be supported by the game scene, thereby providing a better display frame rate experience. At the same time, since the first refresh rate used is lower than the highest screen refresh rate, compared with always using the highest screen refresh rate to refresh the display screen, power consumption is also saved.
[0143] In combination Figure 1 The refresh rate switching method shown in the figure will be described below by way of example in different cases of the number of selectable screen refresh rates and the first refresh rate:
[0144] Case 1: There are two optional screen refresh rates, and the first refresh rate is the lowest screen refresh rate.
[0145] As shown in Figure 2 , it is a set of interface schematic diagrams of the refresh rate switching method in the embodiments of the present application.
[0146] Figure 2 (a) in is an electronic device main interface schematic diagram, in which a plurality of application programs are displayed, such as a mailbox application, a cloud sharing application, a memo application, a settings application, a gallery application, a game application 201, a camera application, etc.
[0147] The electronic device has two optional screen refresh rates: 60Hz and 120Hz. The frame rate range corresponding to 60Hz is 40-60FPS, and the frame rate range corresponding to 120Hz is 100-120FPS. The electronic device detects the user's operation, opens the screen refresh rate display function and the display frame rate display function, and both are displayed in the upper right corner of the screen. As shown in Figure 2 , the screen refresh rate display area 202 in (a) shows that when the main interface is displayed, the screen refresh rate of the electronic device is 60Hz, that is, the electronic device uses the first refresh rate 60Hz to refresh the display screen. As shown in Figure 2 , the display frame rate display area 203 in (a) shows that when the main interface is displayed, since the display frame rate of the main interface is generally followed by the screen refresh rate, the display frame rate of the electronic device is 60FPS at this time.
[0148] It can be understood that the electronic device does not determine whether the screen refresh rate matches the current display frame rate because the user's operation opens the screen refresh display function and the display frame rate function. Even if the user does not open the screen refresh display function and the display frame rate display function, the electronic device can also perform the refresh rate switching method shown in Figure 1 . The current display frame rate and the determined screen refresh rate can be internally detected, and they do not necessarily need to be displayed. Here, only an example is shown for ease of understanding. In subsequent examples, the screen refresh rate display function and the display frame rate display function will also be opened, which is also only an example, so it will not be described one by one.
[0149] Figure 2 (b) in is a game interface after the user opens the game application 201. As shown in Figure 2 (b), the user opens the game application 201, and the electronic device determines that it is currently a game scene, sets the current screen refresh rate to the highest screen refresh rate 120Hz, that is, sets the second refresh rate to the highest screen refresh rate. As shown in Figure 2 , the screen refresh rate display area 204 in (b) shows that the screen refresh rate is raised to 120Hz at this time, and the display frame rate is raised to 120FPS.Figure 2 As shown in (b) of the image, the frame rate display area 205 indicates that the current display frame rate detected by the electronic device is 110 FPS. The electronic device determines that the current display frame rate of 110 FPS falls within the frame rate range of 100-120 FPS corresponding to the second refresh rate of 120Hz, meaning that the current display frame rate matches the current second refresh rate. Therefore, the electronic device maintains the screen refresh rate at the second refresh rate of 120Hz.
[0150] When the electronic device leaves the game application and returns to the display Figure 2 When the main interface is shown in (a), the electronic device continues to refresh the display using the first refresh rate of 60Hz, and the detected current display frame rate also returns to 60FPS.
[0151] For example, such as Figure 3 The diagram shown is another set of interface schematics illustrating the refresh rate switching method in this embodiment. The electronic device has two selectable screen refresh rates: 60Hz and 120Hz. 60Hz corresponds to a frame rate range of 40-60 FPS, and 120Hz corresponds to a frame rate range of 100-120 FPS. Upon detecting the user's operation, the electronic device activates both the screen refresh rate display function and the frame rate display function, both displayed in the upper right corner of the screen. Figure 3 As shown in screen refresh rate display area 302 in (a) of the diagram, when displaying this main interface, the screen refresh rate of the electronic device is 60Hz, that is, the electronic device uses a first refresh rate of 60Hz to refresh the display screen. Figure 3 As shown in (a) of the image, the frame rate display area 303 is used to display the main interface. Since the display frame rate of the main interface generally follows the screen refresh rate, the display frame rate of the electronic device is 60 FPS.
[0152] Figure 2 (b) shows the game interface after the user opens the game application and encounters a 301 error, such as... Figure 3 As shown in (b), after the user opens the game application 201, the electronic device determines that the current scene is a game scene and sets the current screen refresh rate to the highest screen refresh rate of 120Hz, that is, sets the second refresh rate to the highest screen refresh rate. Figure 3 As shown in area 304 of (b) of the image, the screen refresh rate has been increased to 120Hz. Figure 3 As shown in (b) of the image, frame rate display area 305 indicates that the electronic device detects a current display frame rate of 50 FPS. The electronic device determines that the current display frame rate of 50 FPS does not fall within the frame rate range of 100-120 FPS corresponding to the second refresh rate of 120Hz. Figure 1 In step S105 of the method shown, the second refresh rate is updated to the next screen refresh rate among multiple selectable screen refresh rates, 60Hz. Since 60Hz is the first refresh rate, according to...Figure 1 In step S107 of the method, the electronic device directly maintains the screen refresh rate at the second refresh rate 60Hz. As shown in (c) of Figure 3 In (c) of (b), the screen refresh rate is 60Hz, as shown in the screen refresh rate display area 306, and the current display frame rate of the electronic device is 60FPS. Figure 3 In (c) of (b), the current display frame rate of the electronic device is still 50FPS, as shown in the display frame rate display area 307.
[0153] When the electronic device exits the game application and returns to the main interface shown in (a), the electronic device continues to refresh the display screen using the first refresh rate 60Hz, and the detected current display frame rate also returns to 60FPS. Figure 3
[0154] Case 2: There are more than two selectable screen refresh rates, and the first refresh rate is the lowest screen refresh rate.
[0155] For example, as shown in (a) of Figure 4 Another set of interface schematic diagrams of the refresh rate switching method in the embodiments of the present application.
[0156] The electronic device has four selectable screen refresh rates: 60Hz, 90Hz, 120Hz, and 240Hz. The frame rate range corresponding to 60Hz is 40-60FPS, the frame rate range corresponding to 90Hz is 75-90FPS, the frame rate range corresponding to 120Hz is 100-120FPS, and the frame rate range corresponding to 240Hz is 200-240FPS. The electronic device detects the user's operation and opens the screen refresh rate display function and the display frame rate display function, both of which are displayed in the upper right corner of the screen. As shown in (a) of Figure 4 In (a) of (b), the screen refresh rate of the electronic device is 60Hz, i.e., the electronic device refreshes the display screen using the first refresh rate 60Hz. As shown in (a) of Figure 4 In (a) of (b), the display frame rate of the electronic device is 60FPS, as shown in the display frame rate display area 403, because the display frame rate of the main interface generally follows the screen refresh rate.
[0157] Figure 4 (b) of (a) is a game interface after the user opens the game application 401, as shown in (b) of Figure 4 After the user opens the game application 401, the electronic device determines that the current scene is a game scene and sets the current screen refresh rate to the highest screen refresh rate 240Hz, i.e., determines the second refresh rate to be the highest screen refresh rate, as shown in (b) of Figure 4 As shown in the screen refresh rate display area 404 in (b) of (a), the screen refresh rate is increased to 240Hz, as shown in (b) of Figure 4 As shown in (b) of the image, display area 405 shows the current display frame rate detected by the electronic device is 70 FPS. The electronic device determines that the display frame rate of 70 FPS does not fall within the frame rate range of 200-240 FPS corresponding to the second refresh rate of 240Hz, and therefore determines a mismatch. Figure 1 In step S105 of the refresh rate switching method in the illustrated embodiment, the second refresh rate is updated to the next screen refresh rate of 120Hz among a plurality of selectable screen refresh rates. This second refresh rate of 120Hz is not the first refresh rate of 60Hz, and is then adjusted according to... Figure 1 In step S104 of the refresh rate switching method in the illustrated embodiment, it is determined whether the current display frame rate matches the second refresh rate.
[0158] like Figure 4 As shown in section (c) of the image, the screen refresh rate display area 406 indicates that the screen refresh rate has been updated to 120Hz. For example... Figure 4 As shown in (c) of the image, the frame rate display area 405 indicates that the current display frame rate detected by the electronic device is 75 FPS. The electronic device determines that the display frame rate of 75 FPS does not belong to the frame rate range of 100-120 FPS corresponding to the second refresh rate of 120Hz, and therefore determines a mismatch. Figure 1 In step S105 of the refresh rate switching method in the illustrated embodiment, the second refresh rate is updated to the next screen refresh rate of 90Hz among a plurality of selectable screen refresh rates. This second refresh rate of 90Hz is not the first refresh rate of 60Hz, and is further adjusted according to... Figure 1 In step S104 of the refresh rate switching method in the illustrated embodiment, it is determined whether the current display frame rate matches the second refresh rate.
[0159] like Figure 4 As shown in area 408 of (d) in the diagram, the screen refresh rate has been updated to 90Hz. Figure 4 As shown in (d) of the image, display area 409 shows the frame rate. The electronic device detects a current display frame rate of 80 FPS. The electronic device determines that the current display frame rate of 80 FPS belongs to the frame rate range of 75-90 FPS corresponding to the second refresh rate of 90Hz, and confirms a match. Figure 1 In step S107 of the refresh rate switching method in the illustrated embodiment, the electronic device maintains the screen refresh rate at the second refresh rate of 90Hz.
[0160] When the electronic device leaves the game application and returns to the display Figure 4 When the main interface is shown in (a), the electronic device continues to refresh the display using the first refresh rate of 60Hz, and the display frame rate also returns to 60FPS.
[0161] Scenario 3: There are more than two selectable screen refresh rates, and the first refresh rate is not the lowest screen refresh rate.
[0162] For example, the electronic device has four selectable screen refresh rates: 60Hz, 90Hz, 120Hz, and 240Hz. The frame rate range corresponding to 60Hz is 40-60FPS, the frame rate range corresponding to 90Hz is 75-90FPS, the frame rate range corresponding to 120Hz is 100-120FPS, and the frame rate range corresponding to 240Hz is 200-240FPS. The default screen refresh rate selected by the user is generally 90Hz in the interface or application of the electronic device, and the electronic device uses 90Hz as the first refresh rate to refresh the display screen.
[0163] When the user opens the game application and detects that the display screen is a game scene, the electronic device increases the screen refresh rate to the highest 240Hz as the second refresh rate, and refreshes the display screen. According to the second refresh rate, the display frame rate is 240FPS. Figure 1 In the refresh rate switching method of the embodiment shown in FIG. 10, step S103 detects that the current display frame rate is 80FPS, and determines that the detected current display frame rate does not belong to the frame rate range 200-240FPS corresponding to the second refresh rate 240Hz. The current display frame rate does not match the second refresh rate, and the electronic device updates the second refresh rate to the next screen refresh rate 120Hz in the plurality of selectable screen refresh rates according to the second refresh rate. Figure 1 In the refresh rate switching method of the embodiment shown in FIG. 10, step S105 updates the second refresh rate to the next screen refresh rate 120Hz in the plurality of selectable screen refresh rates.
[0164] The second refresh rate 120Hz is not the first refresh rate 90Hz, and the electronic device again updates the second refresh rate to the next screen refresh rate 90Hz in the plurality of selectable screen refresh rates according to the second refresh rate. Figure 1 In the refresh rate switching method of the embodiment shown in FIG. 10, step S104 determines that the current display frame rate is 82Hz, which does not belong to the frame rate range 100-120FPS corresponding to the second refresh rate 120Hz, and the current display frame rate does not match the second refresh rate. According to the second refresh rate, the electronic device updates the second refresh rate to the next screen refresh rate 90Hz in the plurality of selectable screen refresh rates. Figure 1 In the refresh rate switching method of the embodiment shown in FIG. 10, step S105 updates the second refresh rate to the next screen refresh rate 90Hz in the plurality of selectable screen refresh rates. According to the identification of the default refresh rate selected by the user, the electronic device can determine that although the second refresh rate 90Hz is not the lowest screen refresh rate, it is the first refresh rate used by the user by default. According to the second refresh rate, the electronic device maintains the screen refresh rate at the second refresh rate 90Hz. Figure 1 In the refresh rate switching method of the embodiment shown in FIG. 10, step S107, the electronic device maintains the screen refresh rate at the second refresh rate 90Hz.
[0165] When the electronic device exits the game application and returns to the home interface or other applications, the electronic device continues to refresh the display screen using the first refresh rate 90Hz, and the display frame rate also returns to 90FPS.
[0166] (2) Touch scene
[0167] Figure 5 Another refresh rate state change diagram in the embodiments of the present application is shown in FIG. 12.
[0168] S501, the electronic device refreshes the display screen using a third refresh rate, which is not the highest screen refresh rate among a plurality of selectable screen refresh rates in the electronic device;
[0169] In the case of a static picture refresh or no touch control detected, the electronic device refreshes the display screen using a third refresh rate. The electronic device has a plurality of selectable screen refresh rates, and the electronic device currently refreshes the display screen using a third refresh rate which is not the highest screen refresh rate among the plurality of selectable screen refresh rates.
[0170] In some embodiments, the third refresh rate can be the lowest screen refresh rate among the plurality of selectable screen refresh rates. For example, the plurality of selectable screen refresh rates are 60Hz, 90Hz, and the first refresh rate can be 60Hz. For another example, the plurality of selectable screen refresh rates are 60Hz, 90Hz, 120Hz, and the third refresh rate can be 60Hz.
[0171] In some embodiments, the third refresh rate can also not be the lowest screen refresh rate among the plurality of selectable screen refresh rates. For example, the plurality of selectable screen refresh rates are 60Hz, 90Hz, 120Hz, and the third refresh rate can be 90Hz. For another example, the plurality of selectable screen refresh rates are 60Hz, 90Hz, 120Hz, 240Hz, and the third refresh rate can be 90Hz or 120Hz.
[0172] It can be understood that the third refresh rate can be the default screen refresh rate of the electronic device out of the factory, or the daily use screen refresh rate selected by the user from the plurality of selectable screen refresh rates, which is not limited here.
[0173] S502, when detecting a touch operation input by a user, the electronic device refreshes the display screen using the highest screen refresh rate;
[0174] When detecting a touch operation input by a user, since the touch operation generally brings about refresh and dynamic changes of the display picture, for example, a sliding operation can make the picture slide, a clicking operation can open a new interface, etc. In order to make the picture with dynamic changes more smooth, the electronic device can refresh the display screen using the highest screen refresh rate among the plurality of selectable screen refresh rates. Since the output frame rate of a general interface or application program will be adjusted accordingly with the screen refresh rate used by the system, therefore, the display frame rate of the picture will also be increased to a relatively higher display frame rate accordingly with the use of the highest screen refresh rate, so as to be more smooth in the process of dynamic changes of the picture.
[0175] S503, after the electronic device detects that the touch operation is away, when detecting a static picture refresh or no touch operation detected for more than a preset time length, the electronic device refreshes the display screen using the third refresh rate.
[0176] After the electronic device detects that the touch operation is away, it does not immediately return to the low refresh rate, but continues to use the highest screen refresh rate to refresh the display screen. Because the touch operation is away, but the influence of the touch operation is not necessarily over, the picture may still be changing dynamically. For example, after a sliding operation, although the finger is away, the picture will continue to slide for a while; after a clicking operation, although the finger is away, the newly opened interface may continue to load, and so on.
[0177] When the picture is detected to be static refresh, it indicates that the picture does not need to continue to refresh, and the influence of the touch operation has ended. The electronic device uses a third lower refresh rate to refresh the display screen to save power consumption.
[0178] In some cases, the electronic device can detect that the picture has not been static refresh. This situation is likely that the electronic device is playing a video, but playing a video does not need to use the highest screen refresh rate and the highest display frame rate, and using the common screen refresh rate and display frame rate can achieve good results. Therefore, the electronic device is also provided with a preset time length, when the touch is away and the preset time length is exceeded without detecting a new touch operation, the electronic device will also adjust to use the third refresh rate to refresh the display screen to save power consumption.
[0179] There are many ways to determine the preset time length, for example, it can be directly set by the user, or the manufacturer can set an empirical data through experiments, which is not limited here.
[0180] Illustratively, the staff can simulate a large number of touch scenarios in the laboratory. For example, 10,000 sliding operations, 10,000 clicking operations, and then obtain the duration of the picture dynamic refresh caused by the operation. Draw the touch curve of the obtained data, and then obtain a maximum duration of the picture dynamic refresh caused by the touch operation through human factor analysis as an experimental value, and finally set the preset time length according to the experimental value. For example, if the experimental value obtained according to this method is 4.75 seconds, that is, through the analysis of the touch curve drawn from the obtained data, most of the picture dynamic refresh caused by the touch operation will end within 4.75 seconds. Therefore, when the electronic device is set out of the factory, the preset time length can be set to 5 seconds.
[0181] In this embodiment, when the screen refreshes stagnant or no touch operation is detected, the electronic device refreshes the display at a third refresh rate (not the highest screen refresh rate). Because the refresh rate used is lower than the highest screen refresh rate, power consumption is saved compared to always using the highest screen refresh rate. When a touch operation is detected, the electronic device adjusts the screen refresh rate to the highest screen refresh rate, providing a good high frame rate experience for the user in such high frame rate scenarios. The screen refresh rate is then adjusted to the third refresh rate only after the touch operation ends and the screen refresh stagnation is detected, or after the touch operation ends and no touch operation is detected within a preset time. The commonly used third refresh rate, either factory-set or user-set, continues to be used in such standard frame rate scenarios to save power. In this way, a high display frame rate experience is provided to the user in high frame rate scenarios, while power consumption is not wasted in standard frame rate scenarios, reducing the overall power consumption of the device.
[0182] Combination Figure 5 The method for switching refresh rates in the illustrated embodiment will be explained below using two different scenarios as examples: the moment when the screen refresh stops and the moment when no touch operation is detected after a preset time.
[0183] Scenario 1: After the touch operation is lifted, the screen stops refreshing within the preset time.
[0184] For example, such as Figure 6 The image shown is another set of interface diagrams for the refresh rate switching method in this application embodiment.
[0185] Figure 6 Image (a) shows an interface diagram of an electronic device displaying an article titled "Three Hundred Tang Poems". The electronic device has its screen refresh rate display function enabled, shown in the upper right corner of the screen. The electronic device has three selectable screen refresh rates: 60Hz, 120Hz, and 240Hz. The user sets 60Hz as the commonly used screen refresh rate, i.e., sets 60Hz as... Figure 5 The third refresh rate in step S501 of the refresh rate switching method in the illustrated embodiment. Factory setting. Figure 5 The preset duration in step S503 of the method for switching refresh rates in the illustrated embodiment is 5 seconds.
[0186] like Figure 6 As shown in screen refresh rate display area 601 in (a) of the image, the screen refresh rate of the electronic device is 60Hz at this time. Figure 5 As described in step S501 of the refresh rate switching method in the illustrated embodiment, the electronic device uses 60Hz as the third refresh rate to refresh the display screen.
[0187] like Figure 6 As shown in (b), the user touches the screen and swipes up.Figure 5 In step S501 of the refresh rate switching method shown in the embodiment, after the electronic device detects the touch operation, the display screen is refreshed at the highest screen refresh rate of 240 Hz. As shown in (b) of FIG. 6, at this time, the screen refresh rate of the electronic device is adjusted to the highest screen refresh rate of 240 Hz. Figure 6
[0188] At 1 second after the touch operation is removed, the effect of the sliding touch operation on the display screen has not disappeared. As shown in (c) of FIG. 6, the display screen continues to slide upwards. As shown in (b) of FIG. 6, at this time, the screen refresh rate of the electronic device remains the highest screen refresh rate of 240 Hz. Figure 6 Figure 5
[0189] At 3 seconds after the touch operation is removed, the sliding of the display screen stops. According to step S503 of the refresh rate switching method shown in the embodiment, after the electronic device detects that the screen is refreshed at a constant speed, the display screen is refreshed at the third screen refresh rate of 60 Hz. As shown in (d) of FIG. 6, at this time, the screen refresh rate of the electronic device is adjusted to the third screen refresh rate of 60 Hz. Figure 6 Figure 5
[0190] Case 2: After the touch operation is removed, the electronic device does not detect that the screen is refreshed at a constant speed within the preset time period, and does not detect the touch operation.
[0191] For example, the electronic device has four selectable screen refresh rates: 60 Hz, 90 Hz, 120 Hz, and 240 Hz. The factory setting is 90 Hz as the commonly used screen refresh rate, that is, 90 Hz is set as the third screen refresh rate in step S501 of the refresh rate switching method shown in the embodiment. The factory setting is 5 seconds as the preset time period in step S503 of the refresh rate switching method shown in the embodiment. Figure 5 Figure 5
[0192] In the display interface of an application, a video playback control and corresponding text introduction are displayed, and at this time, the electronic device refreshes the display screen at the third screen refresh rate of 90 Hz.
[0193] The user clicks the video playback control, and according to step S501 of the refresh rate switching method shown in the embodiment, after the electronic device detects the touch operation, the display screen is refreshed at the highest screen refresh rate of 240 Hz. Figure 5
[0194] The user's finger has left the screen, and the electronic device plays the video. Since the video is a dynamic picture display, the electronic device has not detected that the screen is refreshed at a constant speed.
[0195] After the user's finger leaves the screen for 5 seconds, according to Figure 7 In the refresh rate switching method shown in the embodiment, the electronic device determines that the touch operation has left the screen for a preset time length of 5 seconds, and no new touch operation of the user is detected within the 5 seconds, and the electronic device adjusts the display screen to be refreshed at a third refresh rate of 90 Hz.
[0196] An example electronic device 100 provided by an embodiment of the present application will be described below.
[0197] Figure 8 FIG. 1 is a structural schematic diagram of an electronic device 100 provided by an embodiment of the present application.
[0198] The embodiments will be described below with the electronic device 100 as an example. It should be understood that the electronic device 100 can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0199] The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0200] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown in the figure, or combine certain components, or split certain components, or different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0201] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0202] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0203] The memory in the processor 110 can also be configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. Avoiding repeated access reduces the waiting time of the processor 110, thus improving the efficiency of the system.
[0204] In some embodiments, the processor 110 can include one or more interfaces. The interface can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0205] An I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can contain multiple sets of I2C bus. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces respectively. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, and the touch function of the electronic device 100 is realized.
[0206] An I2S interface can be used for audio communication. In some embodiments, the processor 110 can contain multiple sets of I2S bus. The processor 110 can be coupled to the audio module 170 through the I2S bus, and communication between the processor 110 and the audio module 170 is realized. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface, and the function of answering a phone through a Bluetooth earphone is realized.
[0207] A PCM interface can also be used for audio communication, which samples, quantizes and encodes analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also deliver audio signals to the wireless communication module 160 through the PCM interface, and the function of answering a phone through a Bluetooth earphone is realized. Both the I2S interface and the PCM interface can be used for audio communication.
[0208] A UART interface is a universal serial data bus, which is used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface, and the Bluetooth function is realized. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the UART interface, and the function of playing music through a Bluetooth earphone is realized.
[0209] The MIPI interface can be used to connect the processor 110 and the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the photographing function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
[0210] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
[0211] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.
[0212] The USB interface 130 is an interface that meets the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices and the like.
[0213] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.
[0214] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger.
[0215] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, and the like.
[0216] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0217] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0218] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be arranged in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be arranged in the same device.
[0219] The modem processor can include a modulator and a demodulator. The modulator is used to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be an independent device. In some other embodiments, the modem processor can be independent of the processor 110, and arranged in the same device as the mobile communication module 150 or other functional modules.
[0220] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0221] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0222] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0223] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 supports multiple selectable screen refresh rates in the above-described embodiments.
[0224] The electronic device 100 can implement a photographing function through an ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor.
[0225] The ISP is configured to process data fed back by the camera 193. For example, when taking a photo, a shutter is opened, light is transmitted to a camera photosensitive element through a lens, and the light signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing, and converts the electrical signal into an image visible to the naked eye. The ISP can also perform algorithm optimization on noise, brightness, and skin color of the image. The ISP can also optimize exposure, color temperature, and other parameters of a shooting scene. In some embodiments, the ISP can be disposed in the camera 193.
[0226] The camera 193 is configured to capture a still image or a video. An object generates an optical image through a lens and projects the optical image onto a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.
[0227] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0228] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0229] The NPU is a neural-network (NN) calculation processor, which can quickly process input information by drawing on the structure of a biological neural network, such as drawing on the transmission mode between human brain neurons, and can also constantly self-learn. Through the NPU, the electronic device 100 can realize intelligent cognition applications such as image recognition, face recognition, voice recognition, text understanding, etc.
[0230] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.
[0231] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one application required by a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.). In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0232] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.
[0233] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functional modules of the audio module 170 can be disposed in the processor 110.
[0234] The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0235] The receiver 170B, also referred to as a "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the user can listen to the voice by holding the receiver 170B close to the ear.
[0236] The microphone 170C, also referred to as a "microphone", "sound collector", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can make a sound by holding the mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, in addition to collecting sound signals, noise reduction functions can also be realized. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, to realize the collection of sound signals, noise reduction, and also to identify the source of the sound, to realize the function of directional recording, etc.
[0237] The earphone interface 170D is configured to connect a wired earphone. The earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0238] The pressure sensor 180A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. The pressure sensor 180A can be of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. The capacitive pressure sensor can include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
[0239] The gyroscope sensor 180B can be configured to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake photography. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and lets the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and motion sensing game scenarios.
[0240] The barometric pressure sensor 180C is configured to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude, assists positioning and navigation by using the air pressure value measured by the barometric pressure sensor 180C.
[0241] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of a flip cover by using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the cover or the flip cover, the electronic device 100 can set a feature such as automatic unlocking of the flip cover.
[0242] The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the acceleration sensor 180E can detect the magnitude and direction of gravity. The acceleration sensor 180E can also be used to identify the attitude of the electronic device, and can be applied to landscape / portrait screen switching and pedometer applications.
[0243] Distance sensor 180F is configured to measure distance. Electronic device 100 can measure distance by infrared or laser. In some embodiments, electronic device 100 can utilize distance sensor 180F to measure distance for fast focusing when taking a picture.
[0244] Proximity light sensor 180G can include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. Electronic device 100 emits infrared light outwardly through the light emitting diode. Electronic device 100 detects infrared reflected light from nearby objects using the photodiode. When sufficient reflected light is detected, electronic device 100 can determine that there is an object near electronic device 100. When insufficient reflected light is detected, electronic device 100 can determine that there is no object near electronic device 100. Electronic device 100 can utilize proximity light sensor 180G to detect that a user is holding electronic device 100 close to the ear for a phone call, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used for automatic unlocking and locking of the screen in a holster mode or a pocket mode.
[0245] Ambient light sensor 180L is configured to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display 194 according to the sensed ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking a picture. Ambient light sensor 180L can also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touch.
[0246] Fingerprint sensor 180H is configured to collect a fingerprint. Electronic device 100 can utilize the collected fingerprint characteristics to implement fingerprint unlocking, access application lock, fingerprint picture taking, fingerprint call answering, and the like.
[0247] Temperature sensor 180J is configured to detect temperature. In some embodiments, electronic device 100 utilizes the temperature detected by temperature sensor 180J to implement temperature handling strategies. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 implements performance reduction of a processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, electronic device 100 heats battery 142 to avoid abnormal shutdown of electronic device 100 caused by low temperature. In other embodiments, when the temperature is lower than yet another threshold, electronic device 100 implements voltage boosting of the output voltage of battery 142 to avoid abnormal shutdown caused by low temperature.
[0248] Touch sensor 180K, also called "touch panel". Touch sensor 180K can be disposed on display screen 194, and touch screen, also called "touch panel", is composed of touch sensor 180K and display screen 194. Touch sensor 180K is used to detect touch operation applied on or near it. Touch sensor 180K can transmit detected touch operation to application processor to determine touch event type. Visual output related to touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K can also be disposed on the surface of electronic device 100, which is different from the position of display screen 194.
[0249] Keys 190 include power on key, volume key, etc. Keys 190 can be mechanical keys. They can also be touch keys. Electronic device 100 can receive key input and generate key signal input related to user settings and function control of electronic device 100.
[0250] Motor 191 can generate vibration prompt. Motor 191 can be used for incoming call vibration prompt, and also can be used for touch vibration feedback. For example, touch operation applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operation applied to different regions of display screen 194 can also correspond to different vibration feedback effects of motor 191. Different application scenarios (such as time reminder, receiving information, alarm, game, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effect can also support customization.
[0251] Indicator 192 can be an indicator light, which can be used to indicate charging state, power change, and also can be used to indicate messages, missed calls, notifications, etc.
[0252] SIM card interface 195 is used to connect SIM card. SIM card can be inserted into or pulled out of SIM card interface 195 to realize contact and separation with electronic device 100. Electronic device 100 can support one or N SIM card interfaces, N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. SIM card interface 195 can also be compatible with different types of SIM cards. SIM card interface 195 can also be compatible with external storage cards. Electronic device 100 interacts with network through SIM card to realize functions such as call and data communication.
[0253] Figure 8 is a software structure block diagram of electronic device 100 of embodiments of the present application.
[0254] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom, application layer, application framework layer, system library, and kernel layer.
[0255] The application layer can include a series of application packages.
[0256] As shown in Figure 8 , the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, game, settings, and other applications (also referred to as applications).
[0257] In the embodiments of the present application, the user can also set the screen resolution used in daily use through the settings application, and can also set whether to enable the high refresh rate switching function through the settings application. Only when the high refresh rate switching function is enabled, the electronic device will execute the refresh rate switching method in the above embodiments. When the high refresh rate switching function is not enabled, the electronic device can not execute the refresh rate switching method in the above embodiments, but use the fixed screen refresh rate set by the manufacturer or the user to refresh the screen.
[0258] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions.
[0259] As shown in , the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a scene recognition module, HwAGP, etc.
[0260] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and capture the screen, etc.
[0261] The content provider is used to store and obtain data, and make the data accessible to applications. The data can include videos, images, audio, dialed and received calls, browsing history and bookmarks, phonebook, etc.
[0262] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0263] The telephony manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including the connection, hang-up, etc.).
[0264] The resource manager provides various resources for the application program, such as the localized string, the icon, the picture, the layout file, the video file, etc.
[0265] The notification manager enables the application program to display the notification information in the status bar, which can be used to convey the notification type of message, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, the message reminder, etc. The notification manager can also be the notification in the form of the chart or the scroll bar text appearing in the top status bar of the system, for example, the notification of the application program running in the background, and can also be the notification in the form of the dialogue interface appearing on the screen. For example, the text information is prompted in the status bar, the prompt sound is emitted, the electronic device is vibrated, the indicator light is blinked, etc.
[0266] In the implementation of the present application, the scene recognition module can include a database, a third-party feature library and a scene recognition unit.
[0267] The database can store all the setting items in the setting application and the factory pre-set setting information. For example, the database can store the multiple selectable screen refresh rates supported by the electronic device, the default screen refresh rate pre-set by the manufacturer, or the daily use screen refresh rate set by the user through the setting application, and the information whether the user enables the high refresh rate switching function, etc. In this way, after the electronic device is restarted, the electronic device can be restored to the settings before the restart in time according to the data recorded in the database.
[0268] The third-party feature library records the types of common application programs and the information of the application program currently started entering or exiting the foreground or the background.
[0269] The scene recognition unit can determine the type to which the currently foreground running application program belongs according to the information in the database and the third-party feature library. For example, the currently foreground running application program is a game type, or the currently foreground running application program is a news type, etc.
[0270] The display service interface is used to deliver the scene information determined by the scene recognition module to the display service of the system library. For example, the display service interface can be an accelerate graphical port (AGP).
[0271] The system library can include multiple functional modules for providing the support of the local service. For example, the surface flinger, the input flinger, the AGP service, the display driver interface, the scheduling interface, etc.
[0272] The input subsystem is configured to detect user input, such as a user's click, swipe, and the like. For example, the input subsystem can send down, move, and up events in response to a user's touch screen operation, where a down event can be understood as a start of a touch screen, a move event indicates that the touch screen is not lifted, and an up event indicates that the touch screen is lifted.
[0273] The layer fusion system is configured to manage the display subsystem and provide fusion of 2-Dimensional (2D) and 3-Dimensional (3D) layers for multiple applications. Specifically, the layer fusion system can receive layer data to be displayed from the applications, and the layer fusion system can send time information of the layer data to be displayed from the applications to the graphics service.
[0274] The graphics service is configured to determine a current scene based on the received information and provide a corresponding graphics display strategy service. The graphics service can include an output frame rate detection module, a game logic detection module, a display frame rate detection module, and a dynamic refresh rate adjustment module.
[0275] The output frame rate detection module is configured to detect an output frame rate of a foreground application in real time.
[0276] The display frame rate detection module is configured to detect a display frame rate of a current display screen.
[0277] The game logic detection module is configured to determine that a current scene is a game scene when the scene recognition module determines that a type of a current foreground application sent by the display interface service is a game type and the output frame rate detection module detects that an output frame rate of the application has increased beyond a preset threshold.
[0278] The dynamic refresh rate adjustment module is configured to determine a corresponding current screen refresh rate according to information transmitted by the game logic detection module, the display frame rate detection module, or the input subsystem, according to the refresh rate switching method described in the above embodiments.
[0279] For example, if the graphics service receives data issued by the display service interface indicating that the current foreground is a game application, the output frame rate detection module in the graphics service detects that the output frame rate of the application has increased from 60 FPS to 90 FPS, which exceeds the preset threshold of 20 FPS, and the game logic detection module determines that the current scene is a game scene. The dynamic refresh rate adjustment module adjusts the current screen refresh rate to the highest screen refresh rate of 120 Hz, and the display frame rate detection module detects that the current display frame rate is 86 FPS. The dynamic refresh rate adjustment module determines that the current display frame rate does not match the current screen refresh rate, and adjusts the current screen refresh rate to the next screen refresh rate of 90 Hz in the plurality of selectable screen refresh rates as the current screen refresh rate. The display frame rate detection module detects that the current display frame rate is 87 FPS, and the dynamic refresh rate adjustment module determines that the current display frame rate matches the current screen refresh rate, and maintains the current screen refresh rate at 90 Hz.
[0280] For example, if the input subsystem detects that the user touches the screen and issues a down event to the graphics service, the dynamic refresh rate adjustment module in the graphics service receives the down event and determines that a touch operation is detected, and the current screen resolution is increased to the highest resolution. The input subsystem detects that the user is away from the screen and issues an up event to the graphics service. After receiving the up event, the dynamic refresh rate adjustment module determines that a touch operation is detected and starts a preset countdown timer of 5 seconds. Before the countdown ends, if no time information of the current foreground application is received from the layer fusion system for 1 second, the dynamic refresh rate adjustment module confirms that the screen refresh is stalled, and adjusts the current screen refresh rate to the default refresh rate set by the user in the database.
[0281] The scheduling interface can issue the current refresh rate determined by the graphics service to the scheduling module in the kernel layer.
[0282] The display driver interface can issue the current refresh rate determined by the graphics service to the display driver in the kernel layer.
[0283] The kernel layer is the layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, and scheduling module.
[0284] After receiving the current screen refresh rate issued by the scheduling interface of the system library, the scheduling module will adjust the corresponding scheduling strategy according to the current screen refresh rate, and schedule the CPU, GPU and other hardware accordingly.
[0285] After receiving the current screen refresh rate sent by the display driver interface, the display driver will drive the display screen to refresh the display screen according to the current screen refresh rate.
[0286] The above-described embodiments merely serve to illustrate the technical solutions of the present application, rather than limit the present application; even though the present application has been described in detail with reference to the foregoing embodiments, those ordinarily skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some of the technical features thereof; and these modifications or replacements do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application.
[0287] In the above-described embodiments, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting" according to the context. Similarly, the phrase "upon determining" or "if detecting (the stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)" according to the context.
[0288] In the above-described embodiments, all or some of the flowcharts or functional modules can be realized in the form of a software program. The software program is stored in a volatile or non-volatile storage medium (for example, a RAM, a floppy disk, a USB flash disk, a ROM, or a DVD), and contains a number of instructions capable of instructing a computer device (for example, a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the various embodiments of the present application. Specifically, the steps of the methods described in the embodiments of the present application can be directly embodied as a process running in a hardware processor (for example, a central processing unit CPU, a microprocessor, or a hardware processor built in some other component of a computer device), or embodied in a functional module, a hardware logic unit, or any device suitable for implementing the embodiments of the present application. When the steps of the methods described in the embodiments of the present application are embodied in a software program and sold in the market, the software program directly embodies the technical scheme or its part.
[0289] Those of ordinary skill in the art can understand that all or some of the flowcharts in the above-described embodiments can be implemented by a computer program instructing relevant hardware, and the program can be stored in a computer-readable storage medium and include the flowcharts of the above-described embodiments when executed. The aforementioned storage medium includes a ROM or a random access memory RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
Claims
1. A refresh rate switching method, characterized in that, include: The electronic device refreshes the display screen using a first refresh rate, which is not the highest screen refresh rate among a plurality of selectable screen refresh rates in the electronic device. If the electronic device determines that the displayed screen is a game scene, the electronic device determines a screen refresh rate from the plurality of selectable screen refresh rates as a second refresh rate according to the following steps, and refreshes the display screen using the second refresh rate: The electronic device sets the second refresh rate to the highest screen refresh rate; The electronic device determines whether the current display frame rate matches the second refresh rate, wherein the current display frame rate is the display frame rate of the displayed image detected after refreshing the display screen using the second refresh rate; If a mismatch is determined, the electronic device updates the second refresh rate to the next screen refresh rate among the plurality of selectable screen refresh rates, in descending order of screen refresh rate. If a match is found, the electronic device maintains the screen refresh rate at the second refresh rate.
2. The method according to claim 1, characterized in that, Each of the multiple selectable screen refresh rates corresponds to a frame rate range. The electronic device determines whether the current display frame rate matches the second refresh rate, specifically including: The electronic device determines whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate; If it is determined that the frame rate falls within the range corresponding to the second refresh rate, the electronic device determines that the current display frame rate matches the second refresh rate; If it is determined that the current display frame rate does not fall within the frame rate range corresponding to the second refresh rate, the electronic device determines that the current display frame rate does not match the second refresh rate.
3. The method according to claim 1, characterized in that, The electronic device determines whether the current display frame rate matches the second refresh rate, specifically including: The electronic device determines whether the difference between the value of the second refresh rate and the value of the current display frame rate is less than a preset difference; If the difference is determined to be less than the preset value, the electronic device determines that the current display frame rate matches the second refresh rate; If the difference is determined to be not less than the preset difference, the electronic device determines that the current display frame rate does not match the second refresh rate.
4. The method according to claim 1, characterized in that, The method further includes: The electronic device determines whether the application currently running in the foreground is a game. The electronic device determines whether the increase in the output frame rate of the application exceeds a preset threshold; If it is determined that the type of application currently running in the foreground is a game and the increase in the output frame rate of the application exceeds a preset threshold, the electronic device determines that the displayed screen is a game scene.
5. The method according to any one of claims 1 to 4, characterized in that, The plurality of selectable screen refresh rates includes two screen refresh rates, namely the minimum screen refresh rate and the maximum screen refresh rate; the first refresh rate is the minimum screen refresh rate.
6. The method according to any one of claims 1 to 4, characterized in that, The multiple selectable screen refresh rates include two or more screen refresh rates; The first refresh rate is the lowest screen refresh rate among the plurality of selectable screen refresh rates; Alternatively, the first refresh rate may be one of the plurality of selectable screen refresh rates, excluding the highest and lowest screen refresh rates.
7. An electronic device, characterized in that, The electronic device includes: a display screen, one or more processors, a memory, multiple applications, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the electronic device, the electronic device performs the following steps: The display screen is refreshed using a first refresh rate, which is not the highest screen refresh rate among a plurality of selectable screen refresh rates in the electronic device. If the displayed screen is determined to be a game scene, select one screen refresh rate from the plurality of selectable screen refresh rates as the second refresh rate, and refresh the display screen using the second refresh rate as follows: The second refresh rate is set to the highest screen refresh rate; Determine whether the current display frame rate matches the second refresh rate, wherein the current display frame rate is the display frame rate of the displayed image detected after refreshing the display screen using the second refresh rate; If a mismatch is determined, the electronic device updates the second refresh rate to the next screen refresh rate among the plurality of selectable screen refresh rates, in descending order of screen refresh rate. If a match is found, the electronic device maintains the screen refresh rate at the second refresh rate.
8. The electronic device according to claim 7, characterized in that, Each of the plurality of selectable screen refresh rates corresponds to a frame rate range; when the instruction is executed by the electronic device, the electronic device specifically performs the following steps: Determine whether the current display frame rate belongs to the frame rate range corresponding to the second refresh rate; If it is determined that the current display frame rate falls within the frame rate range corresponding to the second refresh rate, then the current display frame rate is determined to match the second refresh rate. If it is determined that the current display frame rate does not fall within the frame rate range corresponding to the second refresh rate, it is determined that the current display frame rate does not match the second refresh rate.
9. The electronic device according to claim 7, characterized in that, When the instruction is executed by the electronic device, the electronic device specifically performs the following steps: Determine whether the difference between the second refresh rate and the current display frame rate is less than a preset difference; If it is determined that the current display frame rate is less than the preset difference, it is determined that the current display frame rate matches the second refresh rate; If it is determined that the current display frame rate is not less than the preset difference, it is determined that the current display frame rate does not match the second refresh rate.
10. The electronic device according to claim 7, characterized in that, When the instruction is executed by the electronic device, the electronic device further performs the following steps: Determine if the application currently running in the foreground is a game. Determine whether the increase in the output frame rate of the application exceeds a preset threshold; If the type of application currently running in the foreground is determined to be a game and the increase in the output frame rate of the application exceeds a preset threshold, then the displayed screen is determined to be a game scene.
11. The electronic device according to any one of claims 7 to 10, characterized in that, The plurality of selectable screen refresh rates includes two screen refresh rates, namely the minimum screen refresh rate and the maximum screen refresh rate; the first refresh rate is the minimum screen refresh rate.
12. The electronic device according to any one of claims 7 to 10, characterized in that, The multiple selectable screen refresh rates include two or more screen refresh rates; The first refresh rate is the lowest screen refresh rate among the plurality of selectable screen refresh rates; Alternatively, the first refresh rate may be one of the plurality of selectable screen refresh rates, excluding the highest and lowest screen refresh rates.
13. A chip applied to an electronic device, the chip comprising one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-6.
14. A computer program product containing instructions, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-6.
15. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Screen refresh rate adjusting method, terminal and computer readable storage medium
CN110377251A