CN115934012A - Screen refresh rate adjusting method and device, mobile terminal and storage medium - Google Patents

Screen refresh rate adjusting method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN115934012A
CN115934012A CN202110912914.5A CN202110912914A CN115934012A CN 115934012 A CN115934012 A CN 115934012A CN 202110912914 A CN202110912914 A CN 202110912914A CN 115934012 A CN115934012 A CN 115934012A
Authority
CN
China
Prior art keywords
refresh rate
determining
foreground application
application program
rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110912914.5A
Other languages
Chinese (zh)
Inventor
郭楚谋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110912914.5A priority Critical patent/CN115934012A/en
Publication of CN115934012A publication Critical patent/CN115934012A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure relates to a method and a device for adjusting a screen refresh rate, a mobile terminal and a storage medium, comprising: determining the operating parameters of a foreground application program; determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate; if the foreground application program is in a refresh abnormal state, determining a target screen refresh rate; and adjusting the refresh rate of the screen to the target screen refresh rate. Therefore, the power consumption and the visual experience of the mobile terminal are considered.

Description

Screen refresh rate adjusting method and device, mobile terminal and storage medium
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method and an apparatus for adjusting a screen refresh rate, a mobile terminal, and a computer-readable storage medium.
Background
With the development of mobile terminals, the performance of the mobile terminals is better and better, and more mobile terminals support high refresh rates in order to better provide good audio-visual services for users. However, since some applications cannot support a high refresh rate, if the high refresh rate of the mobile terminal is still used while the applications are running, it is obvious that the problem of power consumption waste is caused to the mobile terminal, and if the applications which do not support a high refresh rate are adapted and a low refresh rate is uniformly adopted, it is obvious that a poor visual experience is caused to the user. Therefore, the technical problem which needs to be solved urgently is how to consider the power consumption and the visual experience of the mobile terminal.
Disclosure of Invention
According to a first aspect of the embodiments of the present disclosure, there is provided a method for adjusting a screen refresh rate, which is applied to a mobile terminal, and includes:
determining the operating parameters of a foreground application program;
determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate;
if the foreground application program is in a refresh abnormal state, determining a target screen refresh rate;
and adjusting the refresh rate of the screen to the target screen refresh rate.
In the foregoing scheme, the determining the operation parameter of the foreground application includes:
monitoring an image rendering process of the foreground application program, and determining the waiting time of queue calling in the image rendering process within a first unit time;
determining whether the foreground application program is in an abnormal refresh state according to the operating parameters of the foreground application program and the current screen refresh rate, including:
and if the waiting time is longer than a time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
In the foregoing solution, the method further includes:
and determining the time length threshold value according to the current screen refresh rate and the system operation condition.
In the foregoing solution, the determining a target screen refresh rate includes:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting duration.
In the foregoing scheme, the determining the operation parameter of the foreground application includes:
monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
determining whether the foreground application program is in an abnormal refresh state according to the operating parameters of the foreground application program and the current screen refresh rate, including:
and if the synthesis times are less than a time threshold value, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold value is determined according to the current screen refreshing rate.
In the foregoing solution, the determining the target screen refresh rate includes:
and determining the target screen refresh rate according to the synthesis times.
In the above scheme, the method further comprises:
and if the foreground application program is not in the abnormal refreshing state, maintaining the current screen refreshing rate.
In the foregoing solution, the method further includes:
and when the foreground application program exits, adjusting the refresh rate of the screen to a preset refresh rate.
According to a second aspect of the present disclosure, there is provided a screen refresh rate adjusting apparatus applied in a mobile terminal, including:
the first determining module is used for determining the operating parameters of the foreground application program;
the second determining module is used for determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate;
a third determining module, configured to determine a target screen refresh rate if the foreground application is in a refresh abnormal state;
and the first adjusting module is used for adjusting the refresh rate of the screen to the target screen refresh rate.
In the foregoing solution, the first determining module is further configured to:
monitoring an image rendering process of the foreground application program, and determining the waiting time called by a queue in the image rendering process within a first unit time;
the second determining module is further configured to:
and if the waiting time is longer than a time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
In the above scheme, the apparatus further comprises:
and the fourth determining module is used for determining the time length threshold value according to the current screen refresh rate and the system operation condition.
In the foregoing solution, the third determining module is further configured to:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting duration.
In the foregoing solution, the first determining module is further configured to:
monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
the second determining module is further configured to:
and if the synthesis times are less than a time threshold value, determining that the foreground application program is in a refresh abnormal state, wherein the time threshold value is determined according to the current screen refresh rate.
In the foregoing solution, the third determining module is further configured to:
and determining the target screen refresh rate according to the synthesis times.
In the above solution, the apparatus further includes:
and the maintaining module is used for maintaining the current screen refresh rate if the foreground application program is not in a refresh abnormal state.
In the above solution, the apparatus further includes:
and the second adjusting module is used for adjusting the refresh rate of the screen to a preset refresh rate when the foreground application program exits.
According to a third aspect of the present disclosure, there is provided a mobile terminal comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instruction is run, the method for adjusting the screen refresh rate is realized.
According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, where the computer-readable storage medium has an executable program, where the executable program, when executed by a processor, implements the screen refresh rate adjustment method according to the embodiment.
In the embodiment of the disclosure, the operating parameters of the foreground application program are determined; determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate; if the foreground application program is in a refresh abnormal state, determining a target screen refresh rate; and adjusting the refresh rate of the screen to the target screen refresh rate. Therefore, the adjusted screen refresh rate can be consistent with the target screen refresh rate, so that the current screen refresh rate of the mobile terminal cannot be high due to the target screen refresh rate corresponding to the application program running in the foreground, the power consumption of the mobile terminal is wasted, and the visual experience of a user on the mobile terminal cannot be influenced due to the target screen refresh rate corresponding to the application program running in the foreground. Therefore, the method for adjusting the screen refresh rate provided by the embodiment of the disclosure can give consideration to both the power consumption and the visual experience of the mobile terminal.
In addition, the embodiment of the present disclosure determines whether the foreground application is in the abnormal refresh rate state by determining the operating parameters of the foreground application and based on the operating parameters of the foreground application and the current screen refresh rate, that is, the embodiment of the present disclosure determines whether the foreground application is in the abnormal refresh rate state by determining the operating parameters of the foreground application and the current screen refresh rate, so as to more flexibly obtain the result of whether the foreground application is in the abnormal refresh rate state, thereby reducing the phenomenon of misadjustment of the screen refresh rate caused by the preset adjustment of the screen refresh rate. Therefore, the power consumption and the visual experience of the mobile terminal are further considered, and the overall performance of the mobile terminal is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method for screen refresh rate adjustment according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a scenario of a method for adjusting a screen refresh rate according to an exemplary embodiment;
FIG. 3 is yet another flow chart illustrating a method of screen refresh rate adjustment according to an exemplary embodiment;
FIG. 4 is a diagram illustrating a queue call scenario in accordance with an exemplary embodiment;
FIG. 5 is a diagram illustrating another queue invocation scenario in accordance with an illustrative embodiment;
FIG. 6 is yet another flow chart illustrating a method for screen refresh rate adjustment according to an exemplary embodiment;
FIG. 7 is a flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment;
FIG. 8 is a block diagram illustrating a screen refresh rate adjustment apparatus according to an exemplary embodiment;
fig. 9 is a block diagram illustrating a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The refresh rate refers to the number of times that the electron beam repeatedly scans an image on the screen, and the higher the refresh rate is, the better the stability of the displayed image is, and for the currently popular liquid crystal display or LED display, the refresh rate can be understood as the number of times that the screen is refreshed per second, and the refresh rate can be generally divided into a vertical refresh rate and a horizontal refresh rate, and the currently common refresh rate generally refers to the vertical refresh rate. The vertical refresh rate identifies the number of redraws of an image of a screen per second, i.e., the number of screen refreshes per second, in Hz. The higher the refresh rate, the better, the more stable the image, the more natural and clear the image display, the less impact on the eyes, but the higher the power consumption. The lower the refresh rate, the more flickering and jittering the image, the faster the eye is tired, but the less power is consumed.
With the increasing requirements of people on mobile terminals, the mobile terminals are required to have better audio-visual experience. Therefore, most of the existing mobile terminals have a screen that can support a high refresh rate, where the high refresh rate refers to any one of 90Hz, 120Hz, or 144 Hz. However, there are applications whose frame rates do not match these high refresh rates, which can result in wasted power consumption by the mobile terminal if the high refresh rate is still used while the mobile terminal is running the applications.
In the related art, the application programs with the frame rates which cannot be matched with the high refresh rate are placed in the blacklist, when the system runs the application programs in the blacklist, the power consumption of the mobile terminal is saved by reducing the screen refresh rate, and when the system does not run the application programs in the blacklist, the visual experience of a user is improved by adopting the high refresh rate. However, if the frame rate of the application program in the blacklist can already match the high refresh rate, if the blacklist is not updated timely, the application program that can already match the high refresh rate can continue to be operated at the low refresh rate, which is obviously not favorable for the visual experience of the user. Therefore, the adjustment of the screen refresh rate by using the blacklist is obviously not flexible enough, and the maintenance cost of the blacklist is high.
Therefore, what way to better consider the power consumption and the visual experience of the mobile terminal becomes a technical problem which needs to be solved urgently.
The embodiment of the disclosure aims to provide a new mode, which can better give consideration to the power consumption and the visual experience of the mobile terminal.
Fig. 1 is a flowchart illustrating a screen refresh rate adjustment method according to an exemplary embodiment, where the method is applied to a mobile terminal, as shown in fig. 1, and the method includes the following steps:
step 11: determining the operating parameters of a foreground application program;
step 12: determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate;
step 13: if the foreground application program is in a refresh abnormal state, determining a target screen refresh rate;
step 13: and adjusting the refresh rate of the screen to the target screen refresh rate.
Here, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or a wearable device; wherein, wearable equipment can be intelligent wrist-watch or intelligent bracelet etc.. It is understood that the mobile terminal may include all mobile terminals having a display function.
Here, a foreground application is understood to be an application that is running in the foreground. The operation parameters of the foreground application include, but are not limited to, application process parameters and/or system process parameters that can be read by the foreground application in the operation process. The application process parameters include, but are not limited to: the application process identifier may be used to characterize the corresponding application process, for example, an identifier of an image rendering process in the application program is different from an identifier of a start process of the application program. System process parameters including, but not limited to: the identifier of the system process, the running time length of the system process, or the running times of the system process, and the like, where the identifier of the system process may be used to characterize the corresponding system process, for example, the identifier of the system process is displayed to be different from the identifier of the operating system process.
Here, the target screen refresh rate may be understood as a refresh rate matching the frame rate of the foreground application.
Here, the frame rate refers to the frequency rate at which pictures appear on the screen, and the higher the frame rate is, the more pictures are captured by human eyes, and the pictures look smoother. For example, if the frame rate of the application program running in the foreground is 60 frames per second, the corresponding target screen refresh rate is 60Hz; if the frame rate of the application program running in the foreground is 90 frames per second, the corresponding target screen refresh rate is 90Hz. It can be understood that if the frame rate of the application program running on the foreground is matched with the screen refresh rate, the foreground application program is not in a refresh abnormal state; and when the frame rate of the application program operated in the foreground is not matched with the screen refresh rate, the foreground application program is considered to be in an abnormal refresh state. That is, under the condition that the application program operated by the current station is displayed at the target refresh rate, the problem of overhigh power consumption caused by the fact that the screen refresh rate is higher than the frame rate can be solved, and the problem of poor visual experience caused by the fact that the screen refresh rate is lower than the frame rate can also be solved.
It should be noted that, for some game applications, some game applications do not have a high frame rate due to considerations such as development cost of the game applications, and therefore do not support a high screen refresh rate, and if these application programs are run on a mobile terminal set to the high refresh rate, power consumption of the mobile terminal is inevitably wasted. However, if the refresh rate of the screen of the mobile terminal is set to a low refresh rate in order to reduce power consumption, for applications with a high frame rate that can support a high screen refresh rate, the visual experience of the user is not good if the applications are run on the mobile terminal set to a low refresh rate.
Based on this, firstly, compared with the related art in which the screen refresh rate is adjusted by means of blacklist recording, in the embodiment of the present disclosure, since the operating parameter of the foreground application is determined, and whether the foreground application program is in the refresh abnormal state is determined according to the operating parameter of the foreground application, the adjustment is more flexible, and the phenomenon of misadjustment caused by untimely updating of the blacklist is reduced. Secondly, the embodiment of the disclosure can obtain the judgment result of whether the foreground application program is in abnormal refresh in real time based on the operation parameters of the foreground; then based on the judgment result, when the foreground application program is in the abnormal refreshing state, the refreshing rate of the screen is adjusted to the target screen refreshing rate, so that the current screen refreshing rate of the mobile terminal cannot be higher than the target screen refreshing rate corresponding to the foreground running application program, the power consumption of the mobile terminal is wasted, the visual experience of a user on the mobile terminal is not influenced due to the lower target screen refreshing rate corresponding to the foreground running application program, and the consideration of the power consumption and the visual experience is realized. The performance of the mobile terminal is improved.
In summary, compared with the related art, the embodiment of the disclosure has higher adjustment flexibility and less mis-adjustment phenomenon, and can better realize the consideration of power consumption and visual experience of the mobile terminal, thereby further improving the performance of the mobile terminal.
It should be added that, for some applications, the same application is given different frame rates in different use states or different display pages, and therefore, the application has different target screen refresh rates in different use states or different display pages. Based on this, in some embodiments, the determining the operation parameter of the foreground application may include:
and when the application program is operated, determining the operation parameters of the foreground application program according to a preset period.
Thus, the present embodiment can timely update the determination result of whether the foreground application is in the refresh abnormal state according to the predetermined period. Based on the judgment result, the refresh rate of the screen is adjusted in time, and the timeliness of adjustment is improved.
In other embodiments, the determining the operating parameter of the foreground application may include:
and determining the running parameters of the foreground application program in response to the page change of the foreground application program.
Therefore, the method and the device for judging whether the foreground application program is in the abnormal refreshing state can be updated in time when the page of the foreground application program changes. And based on the judgment result, the refresh rate of the screen is adjusted in time, so that the adjustment timeliness is improved.
In the above embodiment, the refresh rate of the screen can be adjusted in time for the foreground application under different use states or different display pages, so that the refresh rate of the screen can be adapted to the current display state of the foreground application in time, the timeliness of screen adjustment is further improved, the power consumption and the visual experience of the mobile terminal are further considered, and the performance of the mobile terminal is improved.
It should be noted that, referring to fig. 2, fig. 2 is a scene diagram illustrating a method for adjusting a screen refresh rate according to an exemplary embodiment, as shown in fig. 2, a source data end of an application program will put a generated image data frame into a queue buffer, and a display system in system service of a mobile terminal will request to display the image data frame from the queue buffer and perform display processing on the image data frame. The image data frame is subjected to display processing, which includes but is not limited to: the image data frame is subjected to image synthesis processing. The display system in the android system is SurfaceFlinger. The role of the surfaceflag here is to receive graphical display data from multiple sources, synthesize it, and then send it to a display device.
The queue buffer here may be: the image rendering process of the application is used to store a temporary buffer of frames of image data.
It can be understood that the source data side of the application performs the generation of the image data frames according to the current frame rate of the application. Taking the current frame rate of the application program as 90 frames/second as an example, the source data end of the application program stores data to the queue buffer at the speed of 90 frames per second, and the display system requests an image data frame from the queue buffer according to the current refresh rate of the mobile terminal, for example, the current refresh rate of the mobile terminal is 60Hz, and the image data frame obtained from the queue buffer per second is 60 frames; as another example, if the current refresh rate of the mobile terminal is 120Hz, the frames of image data obtained from the queue buffer per second would be 120 frames. Obviously, if the rate of the image data frames generated by the source data side of the application program is not consistent with the rate of the image data frames acquired by the display system, the above phenomenon that the power consumption of the mobile terminal is wasted or the display effect is poor will occur.
In some exemplary embodiments, the operating parameters of the foreground application include, but are not limited to: waiting time for queue calling in an image rendering process in a first unit time length; referring to fig. 3, fig. 3 is another flowchart illustrating a method for adjusting a screen refresh rate according to an exemplary embodiment, as shown in fig. 3, in step 11, the determining an operation parameter of a foreground application may include:
step 111: monitoring an image rendering process of the foreground application program, and determining the waiting time of queue calling in the image rendering process within a first unit time;
in step 12, the determining whether the foreground application is in an abnormal refresh state according to the operating parameters of the foreground application and the current screen refresh rate may include:
step 121: and if the waiting time is greater than the time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
Here, the image rendering process is configured to receive image data of an application program and render and display a corresponding image based on the image data. That is, the image rendering process is a process of displaying image data of an application on a screen in the form of an image. Here, the image rendering process stores frames of image data in a queue. The image rendering process renders the display image by calling the frame of image data in the queue.
Here, the first unit time length may be a default unit time length, for example, a unit time length in seconds.
It is added that, under the condition that the frame rate of the foreground application program is consistent with the current screen refresh rate, the queue call in the image rendering process of the foreground application program hardly needs to wait. That is, the application program generates a frame of image data, and the image rendering process calls the frame of image data. If the frame rate of the foreground application is not consistent with the current screen refresh rate, for example, the frame rate of the current application is higher than the current screen refresh rate, the application generates a frame of image data, and the image rendering process may not have time to call away the frame of image data.
For example, referring to fig. 4, as shown in fig. 4, when the frame rate of the current application program is consistent with the current screen refresh rate, only one frame of image data is to be called, and at this time, the set duration threshold may be set according to the current screen refresh rate, for example, the set duration threshold is the duration for calling one frame of image data. For example, the duration threshold may be set to 153us, which is the duration for calling one frame of image data.
For example, referring to fig. 5, as shown in fig. 5, when the frame rate of the foreground application is not consistent with the current screen refresh rate, there are a plurality of frame image data waiting to be called, and the waiting time at this time is greater than the time threshold. Illustratively, when the waiting duration is 5.978ms, the waiting duration is greater than the duration threshold 153us, so in the scenario shown in fig. 5, it may be determined that the frame rate of the foreground application is inconsistent with the current screen refresh rate, that is, the foreground application is in a refresh abnormal state.
For example, if the waiting duration is greater than the duration threshold, it indicates that the frame rate of the application is faster than the current screen refresh rate, that is, the current screen refresh rate cannot keep up with the frame rate of the application, which affects the visual experience of the user, and then the screen refresh rate needs to be increased.
In the embodiment of the disclosure, the waiting time for queue calling in the image rendering process in the first unit time length is determined by monitoring the image rendering process of the foreground application, and then if the waiting time is judged to be greater than the time length threshold, the foreground application is determined to be in the refresh abnormal state, so that whether the foreground application is in the refresh abnormal state can be conveniently and quickly judged, and the adjustment efficiency is improved.
It should be added that the waiting time of the image data frame in the queue of the image rendering process not only depends on the current screen refresh rate, but also needs to take into account the system operating conditions of the mobile terminal and other factors.
In some embodiments, the method further comprises:
and determining the time length threshold according to the current screen refresh rate and the system operation condition.
The system operation conditions include: at least one of the memory remaining status of the system, the CPU performance status or the network signal status. It can be understood that the less the system memory remains, the longer the duration threshold can be set; the longer the CPU performance condition is, the longer the time length threshold value can be set; the duration threshold may also be set longer the worse the network signal condition.
For example, referring to fig. 4 again, if 153us in fig. 4 only considers the time length required for calling one frame under the current screen refresh rate, when the call time length of the system is increased due to the phenomenon of memory retention, the system may mistakenly determine that the foreground application is in a refresh abnormal state, thereby causing a false adjustment phenomenon.
In the embodiment of the disclosure, the duration threshold is determined according to the current screen refresh rate and the system operation condition, so that the phenomenon that the duration threshold set only by considering the current screen refresh rate and neglecting the system operation condition is taken as a judgment factor, the obtained judgment result is inaccurate, and the phenomenon of misadjustment is reduced.
In other embodiments, the determining the target screen refresh rate may include:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting duration.
Here, the waiting time period may be obtained by calling a corresponding timer through the read queue. Illustratively, the waiting duration is determined by reading the end time and the start time of the corresponding buffer of the queue call. Here, the buffer corresponding to the queue call is the queue buffer described in the above embodiment.
In some embodiments, taking the first unit duration as 1000ms, that is, 1 second as an example, the determining the target screen refresh rate according to the current screen refresh rate and the waiting duration may be performed according to the following calculation formula (1).
(1000-wait duration)/current screen refresh rate (1)
Illustratively, if the current screen refresh rate is 60Hz, the first unit time length is 1s, and the waiting time length is 333ms, that is, within the time length of subtracting 333ms from 1000ms, that is, within the time length of 667ms, 60 frames are called, 90 frames are calculated per second, and thus, the target screen refresh rate is then determined by the calculated frame rate of the application. Here, if the calculated frame rate of the application is 90 frames/sec, the corresponding target screen refresh rate is 90Hz.
For example, in the case that the current screen refresh rate is 60Hz, if the frame rate of the application program is 90 frames and seconds, the waiting time length is 333ms; if the frame rate of the application is 120 frames/second, the waiting time is 500ms.
Illustratively, in the case where the current screen refresh rate is 90Hz, if the frame rate of the application is 120 frames/second, the waiting time period corresponds to 253ms.
Therefore, the target screen refresh rate can be accurately obtained through calculation, and the refresh rate of the screen is adjusted based on the target screen refresh rate.
In other embodiments, the determining the target screen refresh rate according to the current screen refresh rate and the wait duration may further include:
and determining the target screen refresh rate corresponding to the waiting time length and the current screen refresh rate according to the corresponding relation among the current screen refresh rate, the waiting time length and the target screen refresh rate.
Therefore, according to the embodiment of the disclosure, the corresponding relation between the waiting duration, the current screen refresh rate and the target screen refresh rate is stored in the local or cloud server in advance, so that the system can directly obtain the target screen refresh rate corresponding to the waiting duration, the system does not need to calculate, the calculation resources are reduced, and the processing efficiency is improved.
The cloud server obtains the target screen refresh rate, the storage resources in the mobile terminal do not need to be wasted, and the performance of the mobile terminal can be further improved.
In some embodiments, referring to fig. 6, fig. 6 is a flowchart illustrating a method for adjusting a screen refresh rate according to an exemplary embodiment, where, as shown in fig. 6, the determining the operating parameter of the foreground application in step 11 may include:
step 112: monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
in step 12, the determining whether the foreground application is in an abnormal refresh state according to the operating parameters of the foreground application and the current screen refresh rate includes:
step 122: and if the synthesis times are less than a time threshold value, determining that the foreground application program is in a refresh abnormal state, wherein the time threshold value is determined according to the current screen refresh rate.
Referring to fig. 2, as mentioned above, if the rate of the image data frame generated by the source data end of the application is not consistent with the rate of the image data frame acquired by the display system, the above-mentioned phenomenon of wasting the power consumption of the mobile terminal or having poor display effect may occur.
The display system process here is a process generated by the display system executing the service.
The second time unit length may be different from or the same as the first time unit length. For example, the first unit time length may be 1 second, the second unit time length may be 2 seconds, and the like, and the second unit time length is not limited in any way.
The number threshold may be the number of requests for the image data frame by the display system, or the number of image combinations based on the image data frame by the display system. In general, the threshold number of times corresponds to the current screen refresh rate. It is understood that, taking the second unit duration as 1 second as an example, if the current screen refresh rate is 60Hz, the corresponding number threshold may be 60 times. Of course, the unit duration here can also be set to 2s, and if the current screen refresh rate is 60Hz, the corresponding threshold of times can be 120 times, and so on.
For example, if the number of composition times is less than the number threshold, it indicates that the frame rate of the application is slower than the current screen refresh rate, that is, the current screen refresh rate is too fast, which may cause power consumption loss, and then the refresh rate of the screen needs to be increased.
Therefore, in the embodiment of the present disclosure, the synthesis frequency for the image data frame in the display system process in the second unit duration is determined by monitoring the display system process, and then if it is determined that the synthesis frequency is smaller than the frequency threshold, it is determined that the foreground application is in the refresh abnormal state, so that it can be conveniently and quickly determined whether the frame rate of the application is matched with the current screen refresh rate, and the adjustment efficiency is improved.
In other embodiments, the determining the target screen refresh rate may include:
and determining the target screen refresh rate according to the synthesis times.
Therefore, the frame rate of the foreground application program can be accurately obtained by calculating the synthesis times, so that the target screen refresh rate can be calculated, and the screen refresh rate can be adjusted to the target screen refresh rate. The calculation mode is simple and quick.
In other embodiments, the method further comprises:
and if the foreground application program is not in the abnormal refreshing state, maintaining the current screen refreshing rate.
Therefore, the current screen refresh rate is intelligently maintained by judging that the foreground application program is not in the refresh abnormal state, and the power consumption and the visual experience of the mobile terminal can be further ensured.
In other embodiments, the method further comprises:
and when the foreground application program exits, adjusting the refresh rate of the screen to a preset refresh rate.
Here, the preset refresh rate may be used for a preset screen refresh rate, and may be a fixed refresh rate.
In other embodiments, the preset refresh rate may also be a refresh rate corresponding to a frame rate of an application program commonly used by a user. For example, the application program commonly used by the user is a chat-type application program, and the application program can support a high refresh rate, and the preset refresh rate is 90Hz or one of 120Hz and 144 Hz. Of course, the preset refresh rate can be changed according to the change of the application program commonly used by the user.
In some embodiments, the preset refresh rate is set to the maximum refresh rate of the mobile terminal in order to preferentially satisfy the visual experience of the mobile terminal. Illustratively, the refresh rate of the screen is adjusted to a maximum refresh rate when the foreground application exits.
In the embodiment of the disclosure, when the foreground application exits, the refresh rate of the screen is restored to the preset refresh rate, so that when the user starts another application program again, the user can better match the other application program started next time, the frequent adjustment phenomenon of the screen refresh rate is reduced, and the performance of the mobile terminal is improved.
Further, the present disclosure provides a specific embodiment to further understand the method for adjusting the screen refresh rate provided by the embodiment of the present disclosure.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for adjusting a screen refresh rate according to an embodiment, where as shown in fig. 7, the method includes:
step 71: starting an application;
here, the newly launched application may be considered a foreground application. The application here can be understood as a foreground application described in the above embodiments.
Step 72: application operation;
here, the application runtime may generate some operation parameters, i.e. the determination of the operation parameters at which the application starts to be executed. This step may be understood as "determining the operating parameters of the foreground application" in the above embodiments. Illustratively, the step may further include: an image rendering process of the application is monitored, and/or a display system process is monitored.
Step 73: the waiting time called by the queue in the image rendering process exceeds a time threshold;
in this step 73, it may be understood that "determining whether the foreground application is in the refresh abnormal state according to the operating parameter of the foreground application and the current screen refresh rate" in the above embodiment, "and determining that the foreground application is in the refresh abnormal state if the waiting duration is greater than the duration threshold.
Step 74: and increasing the screen refresh rate to operate at the maximum refresh rate of the screen.
Here, if the waiting duration exceeds the duration threshold, it indicates that the frame rate of the application is slower than the current screen refresh rate, and therefore, the application can be operated by adjusting the screen refresh rate to the maximum refresh rate, so that the adjusted screen refresh rate can quickly match the frame rate of the application.
Step 75: the times of synthesis for the image data frames in the process of the display system are smaller than a time threshold value;
this step 74 may be understood as "determining whether the foreground application is in the abnormal refresh state according to the operating parameters of the foreground application" and "determining that the foreground application is in the abnormal refresh state if the synthesis frequency is less than the frequency threshold" in the foregoing embodiment.
Step 76: reducing the screen refresh rate;
here, if the number of times of composition is less than the number threshold, it indicates that the frame rate of the application is faster than the current screen refresh rate, and therefore, the screen refresh rate may be decreased so that the adjusted screen refresh rate can match the frame rate of the application.
In some embodiments, the reducing the screen refresh rate may include:
the screen refresh rate is reduced at predetermined reduction levels, for example, at 30Hz per level.
Step 77: the application exits;
this step 77 corresponds to "foreground application exit" as described in the above embodiment.
Step 78: the screen refresh rate is restored to the maximum refresh rate.
This step 78 is equivalent to "adjust the refresh rate of the screen to the preset refresh rate when the foreground application exits" in the above embodiment.
The method and the device for improving the screen refresh rate improve the screen refresh rate by detecting that the waiting time for queue calling in the image rendering process exceeds a time threshold, or reduce the screen refresh rate by detecting that the synthesis times for the image data frames in the display system process is less than a time threshold. Therefore, the refresh rate of the screen can be adjusted more flexibly, so that the power consumption and the visual experience of the mobile terminal are better considered, and the performance of the mobile terminal is improved.
Fig. 8 is a diagram illustrating a screen refresh rate adjustment apparatus according to an exemplary embodiment, and referring to fig. 8, the apparatus includes:
a first determining module 81, configured to determine an operating parameter of a foreground application;
a second determining module 82, configured to determine whether the foreground application is in an abnormal refresh state according to the operating parameter of the foreground application and the current screen refresh rate;
a third determining module 83, configured to determine a target screen refresh rate if the foreground application is in a refresh abnormal state;
and a first adjusting module 84, configured to adjust the refresh rate of the screen to the target screen refresh rate.
In some optional embodiments, the first determining module 81 is further configured to:
monitoring an image rendering process of the foreground application program, and determining the waiting time called by a queue in the image rendering process within a first unit time;
the second determining module 82 is further configured to:
and if the waiting time is greater than a time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
In some optional embodiments, the apparatus further comprises:
and the fourth determining module is used for determining the time length threshold according to the current screen refresh rate and the system running condition.
In some optional embodiments, the third determining module 83 is further configured to:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting time length.
In some optional embodiments, the first determining module 81 is further configured to:
monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
the second determining module 82 is further configured to:
and if the synthesis times are less than a time threshold value, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold value is determined according to the current screen refreshing rate.
In some optional embodiments, the third determining module 83 is further configured to:
and determining the target screen refresh rate according to the synthesis times.
In some optional embodiments, the apparatus further comprises:
and the maintaining module is used for maintaining the current screen refresh rate if the foreground application program is not in a refresh abnormal state.
In some optional embodiments, the apparatus further comprises:
and the second adjusting module is used for adjusting the refresh rate of the screen to a preset refresh rate when the foreground application program exits.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a mobile terminal 900 according to an example embodiment. For example, the mobile terminal 900 may be a mobile phone, computer, digital broadcast mobile terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
Referring to fig. 9, mobile terminal 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
Processing component 902 generally controls the overall operation of mobile terminal 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
Memory 904 is configured to store various types of data to support operation at mobile terminal 900. Examples of such data include instructions for any application or method operating on mobile terminal 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 906 provides power to the various components of mobile terminal 900. Power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for mobile terminal 900.
The multimedia components 908 include a screen providing an output interface between the mobile terminal 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the mobile terminal 900 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when mobile terminal 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which may be a keyboard, click wheel, button, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing various aspects of state assessment for the mobile terminal 900. For example, sensor assembly 914 may detect an open/closed state of mobile terminal 900, a relative positioning of components, such as a display and keypad of mobile terminal 900, a change in position of mobile terminal 900 or a component of mobile terminal 900, a presence or absence of user contact with mobile terminal 900, an orientation or acceleration/deceleration of mobile terminal 900, and a change in temperature of mobile terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the mobile terminal 900 and other devices in a wired or wireless manner. The mobile terminal 900 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as memory 904 including instructions, executable by processor 920 of mobile terminal 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the screen refresh rate adjustment method according to the above embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A method for adjusting a screen refresh rate is applied to a mobile terminal, and comprises the following steps:
determining the operating parameters of a foreground application program;
determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate;
if the foreground application program is in a refresh abnormal state, determining a target screen refresh rate;
and adjusting the refresh rate of the screen to the target screen refresh rate.
2. The method of claim 1, wherein determining the operating parameters of the foreground application comprises:
monitoring an image rendering process of the foreground application program, and determining the waiting time called by a queue in the image rendering process within a first unit time;
determining whether the foreground application program is in an abnormal refresh state according to the operating parameters of the foreground application program and the current screen refresh rate, including:
and if the waiting time is greater than a time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
3. The method of claim 2, further comprising:
and determining the time length threshold according to the current screen refresh rate and the system operation condition.
4. The method of any of claims 2 or 3, wherein determining a target screen refresh rate comprises:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting duration.
5. The method of claim 1, wherein determining the operating parameters of the foreground application comprises:
monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
determining whether the foreground application program is in an abnormal refresh state according to the operating parameters of the foreground application program and the current screen refresh rate, including:
and if the synthesis times are less than a time threshold value, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold value is determined according to the current screen refreshing rate.
6. The method of claim 5, wherein determining the target screen refresh rate comprises:
and determining the target screen refresh rate according to the synthesis times.
7. The method of claim 1, further comprising:
and if the foreground application program is not in the abnormal refreshing state, maintaining the current screen refreshing rate.
8. The method of claim 1, further comprising:
and when the foreground application program exits, adjusting the refresh rate of the screen to a preset refresh rate.
9. A screen refresh rate adjusting device is applied to a mobile terminal and comprises:
the first determining module is used for determining the operating parameters of the foreground application program;
the second determining module is used for determining whether the foreground application program is in an abnormal refreshing state or not according to the running parameters of the foreground application program and the current screen refreshing rate;
a third determining module, configured to determine a target screen refresh rate if the foreground application is in a refresh abnormal state;
and the first adjusting module is used for adjusting the refresh rate of the screen to the target screen refresh rate.
10. The apparatus of claim 9, wherein the first determining module is further configured to:
monitoring an image rendering process of the foreground application program, and determining the waiting time called by a queue in the image rendering process within a first unit time;
the second determining module is further configured to:
and if the waiting time is greater than a time threshold, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold is determined according to the current screen refreshing rate.
11. The apparatus of claim 10, further comprising:
and the fourth determining module is used for determining the time length threshold according to the current screen refresh rate and the system running condition.
12. The apparatus of claim 10 or 11, wherein the third determining module is further configured to:
and determining the target screen refresh rate according to the current screen refresh rate and the waiting duration.
13. The apparatus of claim 9, wherein the first determining module is further configured to:
monitoring a display system process, and determining the synthesis times of the image data frames in the display system process in a second unit time length;
the second determining module is further configured to:
and if the synthesis times are less than a time threshold value, determining that the foreground application program is in an abnormal refreshing state, wherein the time threshold value is determined according to the current screen refreshing rate.
14. The apparatus of claim 13, wherein the third determining module is further configured to:
and determining the target screen refresh rate according to the synthesis times.
15. The apparatus of claim 9, further comprising:
and the maintaining module is used for maintaining the current screen refresh rate if the foreground application program is not in a refresh abnormal state.
16. The apparatus of claim 9, further comprising:
and the second adjusting module is used for adjusting the refresh rate of the screen to a preset refresh rate when the foreground application program exits.
17. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instruction is executed, the method for adjusting the screen refresh rate according to any one of claims 1 to 8 is realized.
18. A computer-readable storage medium having an executable program, wherein the executable program when executed by a processor implements the screen refresh rate adjustment method of any one of claims 1 to 8.
CN202110912914.5A 2021-08-10 2021-08-10 Screen refresh rate adjusting method and device, mobile terminal and storage medium Pending CN115934012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110912914.5A CN115934012A (en) 2021-08-10 2021-08-10 Screen refresh rate adjusting method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110912914.5A CN115934012A (en) 2021-08-10 2021-08-10 Screen refresh rate adjusting method and device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115934012A true CN115934012A (en) 2023-04-07

Family

ID=86554425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110912914.5A Pending CN115934012A (en) 2021-08-10 2021-08-10 Screen refresh rate adjusting method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115934012A (en)

Similar Documents

Publication Publication Date Title
CN106710540B (en) Liquid crystal display method and device
CN106710539B (en) Liquid crystal display method and device
CN113760080B (en) Display method, device and storage medium
CN108200279B (en) Backlight adjusting method, device and equipment
CN106775235B (en) Screen wallpaper display method and device
CN112130940A (en) Terminal control method and device, storage medium and electronic equipment
CN115719586A (en) Screen refresh rate adjusting method and device, electronic equipment and storage medium
US20190012299A1 (en) Displaying page
US11221734B2 (en) Punch-hole screen display method and apparatus
CN112256219A (en) Display method and device, terminal and storage medium
CN105786561B (en) Method and device for calling process
CN106775541B (en) Electronic device and screen display method
CN114442792A (en) Method and device for adjusting operating frequency of processor and storage medium
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN115934012A (en) Screen refresh rate adjusting method and device, mobile terminal and storage medium
CN115134516A (en) Shooting method and device
CN108874482B (en) Image processing method and device
CN114186154A (en) Page processing method and device, electronic equipment and storage medium
CN114253385A (en) Power consumption management method and device of mobile terminal and computer readable storage medium
CN114968143A (en) Display processing method and device, electronic equipment and storage medium
CN112019680A (en) Screen brightness adjusting method and device
CN115273763B (en) Picture composition frame rate adjustment method and device, display equipment and storage medium
CN114078458B (en) Brightness adjusting method, brightness adjusting device and computer readable storage medium
CN108153506B (en) Image processing method and device and terminal equipment
CN106910472B (en) Control method and device for adjusting backlight

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination