CN111782458A - Screen refresh rate adjusting method and device, storage medium and electronic equipment - Google Patents

Screen refresh rate adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111782458A
CN111782458A CN202010485465.6A CN202010485465A CN111782458A CN 111782458 A CN111782458 A CN 111782458A CN 202010485465 A CN202010485465 A CN 202010485465A CN 111782458 A CN111782458 A CN 111782458A
Authority
CN
China
Prior art keywords
preset input
refresh rate
input event
threshold
screen refresh
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
CN202010485465.6A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010485465.6A priority Critical patent/CN111782458A/en
Publication of CN111782458A publication Critical patent/CN111782458A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure provides a screen refresh rate adjusting method, a screen refresh rate adjusting device, a computer readable storage medium and an electronic device, and relates to the technical field of man-machine interaction. The method comprises the following steps: receiving a preset input event; starting timing from the end of the preset input event to record the interval time to the next preset input event; and adjusting the screen refresh rate according to the timed duration. On the premise of meeting the interaction requirement, unnecessary refreshing of a screen is reduced, the resource utilization efficiency is improved, and the problems of power consumption increase, serious heating and the like caused by a high refreshing rate are solved; and the method has higher flexibility and stronger universality on various different apps.

Description

Screen refresh rate adjusting method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a method and an apparatus for adjusting a screen refresh rate, a computer-readable storage medium, and an electronic device.
Background
With the development of electronic devices, the screen refresh rate of devices such as mobile phones and tablet computers has also been improved, and the screen refresh rate has been improved from 60fps (Frames Per Second) to 90fps and 120 fps. However, the screen refresh rate is increased, and adverse effects such as an increase in power consumption and a serious heat generation are also caused.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a screen refresh rate adjustment method, a screen refresh rate adjustment device, a computer-readable storage medium, and an electronic apparatus, thereby solving, to a certain extent, problems of increased power consumption, severe heat generation, and the like caused by an increase in screen refresh rate in the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a screen refresh rate adjustment method, including: receiving a preset input event; starting timing from the end of the preset input event to record the interval time to the next preset input event; and adjusting the screen refresh rate according to the timed duration.
According to a second aspect of the present disclosure, there is provided a screen refresh rate adjustment apparatus comprising: the receiving module is used for receiving a preset input event; the timing module is used for starting timing from the end of the preset input event so as to record the interval time from the next preset input event; and the adjusting module is used for adjusting the screen refresh rate according to the timed duration.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the screen refresh rate adjustment method of the first aspect described above and its possible implementations.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; a memory for storing executable instructions of the processor; and a display; wherein the processor is configured to execute the screen refresh rate adjustment method of the first aspect and possible implementations thereof described above via execution of the executable instructions to adjust the screen refresh rate of the display.
The technical scheme of the disclosure has the following beneficial effects:
and starting timing from the end of the preset input event, and adjusting the screen refresh rate according to the timing duration. On one hand, the timing duration represents how long the next preset event is not performed from the time when the user performs the preset input event, the current human-computer interaction state is reflected, the screen refresh rate is adjusted according to the timing duration, generally, the screen refresh rate is reduced, the current interaction requirement can be met, and meanwhile, unnecessary refreshing of the screen is reduced, so that the resource utilization efficiency is improved, and the problems of power consumption increase, serious heating and the like caused by high refresh rate are solved. On the other hand, no matter which App runs, the screen refresh rate can be dynamically adjusted according to the time length of the timing, and the screen refresh rate is prevented from being unchanged when the App runs, so that the scheme has higher flexibility compared with the related technology and has stronger universality for various different apps.
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. It is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained from those drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a system architecture diagram of an environment in which the present exemplary embodiment operates;
fig. 2 is a block diagram showing a mobile terminal in the present exemplary embodiment;
FIG. 3 is a flowchart illustrating a screen refresh rate adjustment method in the present exemplary embodiment;
FIG. 4 illustrates a flow chart for determining a first threshold in the present exemplary embodiment;
FIG. 5 illustrates a flow chart for updating the first threshold in the exemplary embodiment;
FIG. 6 shows a flow chart of one timing in the present exemplary embodiment;
fig. 7 is a block diagram illustrating a screen refresh rate adjustment apparatus in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In one scheme of the related art, different screen refresh rates may be set according to different apps (applications). Referring to fig. 1, it is determined in advance whether an App needs a high refresh rate to determine whether a high screen refresh rate or a low screen refresh rate is used, and then the screen refresh rate is set correspondingly to meet the requirements of different apps. However, the scheme has a rigid setting for the screen refresh rate, the screen refresh rate is kept fixed in the use process of one App, and when the App with a high refresh rate is operated, the problems of increased power consumption, serious heating and the like still occur; for some apps, it is impossible to determine what refresh rate it needs in advance, and this scheme cannot be adopted.
In view of one or more of the above problems, exemplary embodiments of the present disclosure provide a screen refresh rate adjustment method, which may be applied to electronic devices such as mobile phones, tablet computers, game machines, PDAs (Personal Digital assistants), smart wearable devices, and the like. The electronic device generally includes a processor, memory, and a display. Wherein the memory is used for storing executable instructions of the processor; the display includes at least one screen for displaying a graphical user interface; the processor implements various software programs, such as implementing the screen refresh rate adjustment method of the present exemplary embodiment, by executing executable instructions to adjust the screen refresh rate of the display.
The following takes the mobile terminal 200 in fig. 2 as an example, and exemplifies the configuration of the electronic device. It will be appreciated by those skilled in the art that the configuration of figure 2 can also be applied to fixed type devices, in addition to components specifically intended for mobile purposes. In other embodiments, mobile terminal 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. The interfacing relationship between the components is only schematically illustrated and does not constitute a structural limitation of the mobile terminal 200. In other embodiments, the mobile terminal 200 may also interface differently than shown in fig. 2, or a combination of multiple interfaces.
As shown in fig. 2, the mobile terminal 200 may specifically include: the mobile terminal includes a processor 210, an internal memory 221, an external memory interface 222, a USB interface 230, a charging management Module 240, a power management Module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication Module 250, a wireless communication Module 260, an audio Module 270, a speaker 271, a microphone 272, a microphone 273, an earphone interface 274, a sensor Module 280, a display screen 290, a camera Module 291, a pointer 292, a motor 293, a button 294, a Subscriber Identity Module (SIM) card interface 295, and the like.
Processor 210 may include one or more processing units, such as: the Processor 210 may include an Application Processor (AP), a modem Processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, an encoder, a decoder, a Digital Signal Processor (DSP), a baseband Processor, and/or a Neural Network Processor (NPU), and the like. The different processing units may be separate devices or may be integrated into one or more processors. The encoder may encode (i.e., compress) the image or video data to form code stream data; the decoder may decode (i.e., decompress) the codestream data of the image or video to restore the image or video data.
In some implementations, the processor 210 may include one or more interfaces. The Interface may include an Integrated Circuit (I2C) Interface, an Inter-Integrated Circuit built-in audio (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. Connections are made with other components of mobile terminal 200 through different interfaces.
The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a MiniUSB interface, a microsusb interface, a USB type c interface, or the like. The USB interface 230 may be used to connect a charger to charge the mobile terminal 200, may also be connected to an earphone to play audio through the earphone, and may also be used to connect the mobile terminal 200 to other electronic devices, such as a computer and a peripheral device.
The charge management module 240 is configured to receive a charging input from a charger. The charging management module 240 may also supply power to the device through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240, supplies power to various portions of the mobile terminal 200, and may also be used to monitor the status of the battery.
The wireless communication function of the mobile terminal 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in mobile terminal 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. The mobile communication module 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the mobile terminal 200.
The Wireless Communication module 260 may provide Wireless Communication solutions including a Wireless Local Area Network (WLAN) (e.g., a Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), a Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like, which are applied to the mobile terminal 200. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of the mobile terminal 200 is coupled to the mobile communication module 250 and antenna 2 is coupled to the wireless communication module 260, such that the mobile terminal 200 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division-Code Division Multiple Access (TD-SCDMA), Long Term Evolution (Long Term Evolution, LTE), New air interface (New Radio, NR), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
The mobile terminal 200 implements a display function through the GPU, the display screen 290, the application processor, and the like. The GPU is used to perform mathematical and geometric calculations to achieve graphics rendering and to connect the display screen 290 with the application processor. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information. Mobile terminal 200 may include one or more display screens 290 for displaying images, videos, and the like.
The mobile terminal 200 may implement a photographing function through the ISP, the camera module 291, the encoder, the decoder, the GPU, the display screen 290, the application processor, and the like.
The camera module 291 is used to capture still images or videos, collect optical signals through the photosensitive element, and convert the optical signals into electrical signals. The ISP is used to process the data fed back by the camera module 291 and convert the electrical signal into a digital image signal.
The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the mobile terminal 200.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 221 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., images, videos) created during use of the mobile terminal 200, and the like. The processor 210 executes various functional applications of the mobile terminal 200 and data processing by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
The mobile terminal 200 may implement an audio function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the earphone interface 274, the application processor, and the like. Such as music playing, recording, etc. Audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. Audio module 270 may also be used to encode and decode audio signals. The speaker 271 is used for converting the audio electric signal into a sound signal. The receiver 272 is used to convert the audio electrical signal into a sound signal. A microphone 273 for converting a sound signal into an electric signal. The earphone interface 274 is used to connect wired earphones.
The sensor module 280 may include a touch sensor 2801, a pressure sensor 2802, a gyro sensor 2803, a barometric pressure sensor 2804, and the like. The touch sensor 2801 is used for sensing a touch event of an external input, and may be disposed below the display screen 290 to make the display screen 290 a touch screen, or disposed at another location, for example, a touch pad independent of the display screen 290, or disposed in an external device of the mobile terminal 200, for example, an external touch pad, a touch remote controller, etc., so that a user can implement a touch interaction through the external device. The pressure sensor 2802 is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal to implement functions such as pressure touch control. The gyro sensor 2803 may be used to determine a motion posture of the mobile terminal 200, and may be used to photograph scenes such as anti-shake, navigation, and motion sensing games. Barometric pressure sensor 2804 is used to measure barometric pressure, which may aid in positioning and navigation by calculating altitude. In addition, sensors with other functions, such as a depth sensor, an acceleration sensor, a distance sensor, etc., may be disposed in the sensor module 280 according to actual needs.
Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc.
The motor 293 may generate vibration prompts, such as incoming calls, alarm clocks, receiving messages, etc., and may also be used for touch vibration feedback, etc.
The keys 294 include a power-on key, a volume key, and the like. The keys 294 may be mechanical keys. Or may be touch keys. The mobile terminal 200 may receive a key input, and generate a key signal input related to user setting and function control of the mobile terminal 200.
The mobile terminal 200 may support one or more SIM card interfaces 295 for connecting to a SIM card, so that the mobile terminal 200 interacts with a network through the SIM card to implement functions such as communication and data communication.
The method for adjusting the screen refresh rate according to the exemplary embodiment of the present disclosure is specifically described below with reference to fig. 3. As shown in fig. 3, the screen refresh rate adjustment method may include the following steps S310 to S330:
in step S310, a preset input event is received.
The preset input event refers to an operation of a user inputting a preset type, and is generally an input event interacting with a graphical user interface displayed on a screen, for example, a user selects content, inputs content, moves a page, jumps to other pages, and the like in the graphical user interface through input devices such as a mouse, a keyboard, keys, and the like. If the electronic device is a touch terminal, the preset input event may include a touch event, for example, when a user clicks a touch screen or performs a touch operation such as sliding or pressing on the touch screen, it may be determined that the preset input event is received.
In an alternative embodiment, the screen refresh rate may be set to a first preset value when a preset input event is received. The receiving of the preset input event indicates that the device is currently in an interactive state, and a higher screen refresh rate is required, so the first preset value may be a higher value, for example, the highest refresh rate supported by the device screen (e.g., 90fps and 120fps), or the highest refresh rate required by the currently running App, or other empirical values, which is not specifically limited by the present disclosure.
In step S320, timing is started from the end of the preset input event to record the interval time to the next preset input event.
In the exemplary embodiment, the system may maintain a timer that starts from 0 when a preset input event ends until the next preset input event occurs. The timer records the time interval from the preset input event which is currently ended to the next preset event. Generally, in the timing process, whether the next preset input event occurs needs to be monitored in real time, and the system can perform monitoring through a specific process. For example, in an Android system, input events received by a driver layer all enter a dev/input directory and scan information in dev/input through an input reader process, so that all input events at each moment can be monitored, and whether preset input events exist is detected.
And step S330, adjusting the screen refresh rate according to the timed duration.
The timed duration indicates how long the current system has not received any preset input event, meaning how long the user has not actively initiated the interaction, and therefore the screen refresh rate can be adjusted. The screen refresh rate can be reduced as often as appropriate.
In an alternative embodiment, in the process of timing accumulation, the screen refresh rate may be adjusted downward in a step manner according to a predetermined correspondence relationship between the time length and the screen refresh rate, for example, when the time length of timing reaches 50ms, the screen refresh rate is adjusted downward from 120fps to 90fps, when the time length reaches 100ms, the screen refresh rate is adjusted downward to 60fps, when the time length reaches 300ms, the screen refresh rate is adjusted downward to 30fps, and so on. Therefore, the down-regulation process of the screen refresh rate is smooth, and a user does not feel the down-regulation process.
In an alternative embodiment, when the timed duration reaches the first threshold, the screen refresh rate may be adjusted to a second preset value. The first threshold is a time threshold for judging whether the duration of the next preset input event which is not input by the user is too long, and can be set according to experience or actual requirements. For example, the first threshold may be determined according to the response time of the currently running App, and if the page refresh response time of App xyz is 50ms, the first threshold is set to 50 ms; or according to historical operation data of a user in the App, counting the interval time of two continuous preset input events (if conditions can be set, the two continuous preset input events within 5s are regarded as continuous, otherwise, the two continuous preset input events are regarded as discontinuous), and taking the maximum value or the average value plus four times of standard deviation as the first threshold. The second preset value is smaller than the first preset value, which indicates a screen refresh rate required by the App when user interaction is inactive, and may be set according to experience and actual requirements in combination with hardware parameters of the screen, for example, for a screen that supports a refresh rate of 120fps at maximum, the second preset value may be set to 60fps, or in some App scenes with a low page refresh requirement, such as an App with text content as a main, e.g., an electronic book, news, etc., a lower second preset value may be set.
From the above, in the process of timing, once the set condition is reached, such as the time length reaches the first threshold value, the adjustment of the screen refresh rate can be implemented, and the adjustment does not need to be performed after the timing is finished.
In an alternative embodiment, referring to fig. 4, the first threshold may be determined by the following steps S410 and S420:
in step S410, when the application program starts to run, a first threshold is set according to the response time of the application program.
In step S420, during the running of the application program, when a preset input event is received, the first threshold is adjusted according to the last preset input interval time.
When the application program starts to run, the first threshold value may be set as the response time of the application program as the initial value of the first threshold value.
The previous preset input interval time is an interval time from the end of the previous preset input event to the start of the current preset input event, and is also a time length counted by a timer after the end of the previous preset input event. That is, during the running of the application program, each time a new preset input event is received, a last preset input interval time may be determined, where the last preset input interval time represents a current operation frequency of the user, and the first threshold may be adaptively adjusted according to the last preset input interval time.
Generally, the first threshold may be appropriately increased when the last preset input interval is longer, and the first threshold may be appropriately decreased when the last preset input interval is shorter, but the disclosure is not limited thereto. Several embodiments are further provided below:
referring to fig. 5, step S420 may specifically include the following steps S510 to S530:
in step S510, during the running of the application program, when a preset input event is received, a last preset input interval time is obtained.
In step S520, if the previous preset input interval is greater than the second threshold, the first threshold is updated by the sum of the previous preset input interval and the preset step size.
Step S530, if the last preset input interval time is less than the second threshold, the first threshold is updated by subtracting the preset step length from the first threshold;
the preset step size is a step value of time increase or decrease determined according to experience or actual demand, and a smaller value, such as 10ms, 20ms, etc., can be generally adopted. The second threshold is larger than the first threshold and is another empirical value or a calculated value for measuring time, for example, the second threshold may be the sum of the first threshold and a preset step length, and the second threshold is changed during the dynamic update of the first threshold.
The first threshold is denoted by T1, the second threshold is denoted by T2, s denotes a preset step size, and B denotes a last preset input interval time. The T1 update procedure is as follows:
if B > T2, then T1 ═ B + s;
if B < T2, T1 ═ T1-s.
In this way, the updating process of the first threshold is smoother, and can better adapt to the interaction state of the user.
The (second) T1 update procedure may also be as follows:
if B > T1+ s, then T1 ═ B + s;
if B is T1+ s, T1 is T1-s.
The (third) T1 update procedure may also be as follows:
if B > T1+ s, T1 ═ T1+ s;
if T1-s < B < T1+ s, then T1 remains unchanged.
If B < T1-s, then T1 ═ T1-s.
The (tetra) T1 update procedure may also be as follows:
if B > T1+ s, then T1 ═ B + s;
if T1-s < B < T1, then T1 ═ T1-s;
if B < T1-s, then T1 is T0 and T0 is the response time of the application.
In addition, in any of the above manners, when the first threshold is updated, the response time of the application program may be taken as the minimum value of the first threshold, for example, the response time is 50ms, and when the first threshold is reduced to 50ms, the reduction is not continued, so as to ensure that the first threshold is not lower than the response time, thereby maintaining the basic screen refresh requirement of the application program.
Based on the above, in the present exemplary embodiment, the time is counted from the end of the preset input event, and the screen refresh rate is adjusted according to the length of the time. On one hand, the timing duration represents how long the next preset event is not performed from the time when the user performs the preset input event, the current human-computer interaction state is reflected, the screen refresh rate is adjusted according to the timing duration, generally, the screen refresh rate is reduced, the current interaction requirement can be met, and meanwhile, unnecessary refreshing of the screen is reduced, so that the resource utilization efficiency is improved, and the problems of power consumption increase, serious heating and the like caused by high refresh rate are solved. On the other hand, no matter which App runs, the screen refresh rate can be dynamically adjusted according to the time length of the timing, and the screen refresh rate is prevented from being unchanged when the App runs, so that the scheme has higher flexibility compared with the related technology and has stronger universality for various different apps.
In an alternative embodiment, during the time counting process, as shown in fig. 6, the following steps S610 and S620 may also be performed:
in step S610, when the next preset input event is received, timing is stopped.
In step S620, the timing is restarted from the end of the next preset input event.
As can be seen from the steps in fig. 4, when each preset input event is ended, timing is started from 0, and when the timing reaches a set condition, the screen refresh rate is triggered and adjusted, and App continues to run; when the next preset input event is received, timing is stopped, timing can be cleared, and a higher screen refresh rate can be recovered; when the next preset input event ends, timing is restarted from 0 and the adjustment of the screen refresh rate is again triggered when the condition is reached. That is to say, in the App running period, the interval time of the user for presetting the input event can be recorded in real time in the whole course, and the screen refresh rate is continuously and dynamically adjusted according to the interval time, so that the robustness of the scheme is improved.
Exemplary embodiments of the present disclosure also provide a screen refresh rate adjustment apparatus. As shown in fig. 7, the screen refresh rate adjustment apparatus 700 may include:
a receiving module 710, configured to receive a preset input event;
a timing module 720, configured to start timing from the end of a preset input event to record an interval time to a next preset input event;
and the adjusting module 730 is configured to adjust the screen refresh rate according to the timed duration.
In an alternative embodiment, the timing module 720 is configured to:
stopping timing when the next preset input event is received;
and restarting timing from the end of the next preset input event.
In an alternative embodiment, the adjusting module 730 is further configured to set the screen refresh rate to a first preset value when the receiving module 710 receives a preset input event.
In an alternative embodiment, the adjusting module 730 is configured to:
when the timed duration reaches a first threshold value, adjusting the screen refresh rate to a second preset value; the second predetermined value is less than the first predetermined value.
In an alternative embodiment, the adjusting module 730 is configured to determine the first threshold by:
when the application program starts to run, setting a first threshold value according to the response time of the application program;
during the running of the application program, when a preset input event is received, adjusting a first threshold value according to the last preset input interval time; the previous preset input interval time is the interval time from the end of the previous preset input event to the start of the current preset input event.
In an alternative embodiment, the adjusting module 730 is configured to:
during the running of the application program, when a preset input event is received, acquiring the last preset input interval time;
if the last preset input interval time is larger than the second threshold, updating the first threshold by the sum of the last preset input interval time and the preset step length;
if the last preset input interval time is smaller than a second threshold, subtracting a preset step length from the first threshold to update the first threshold;
wherein the second threshold is greater than the first threshold.
In an optional implementation, the preset input event includes a touch event.
The specific details of each part in the above device have been described in detail in the method part embodiments, and details that are not disclosed may be referred to in the method part embodiments, and thus are not described again.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device, for example, any one or more of the steps in fig. 3 to 6 may be performed. The program product may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure 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 to be limited only by the terms of the appended claims.

Claims (10)

1. A method for adjusting a screen refresh rate, comprising:
receiving a preset input event;
starting timing from the end of the preset input event to record the interval time to the next preset input event;
and adjusting the screen refresh rate according to the timed duration.
2. The method of claim 1, wherein, in performing timing, the method further comprises:
stopping timing when the next preset input event is received;
and restarting timing from the end of the next preset input event.
3. The method of claim 1, further comprising:
and when a preset input event is received, setting the screen refresh rate to be a first preset numerical value.
4. The method of claim 3, wherein adjusting the screen refresh rate based on the timed length comprises:
when the timed duration reaches a first threshold value, adjusting the screen refresh rate to a second preset value; the second preset value is smaller than the first preset value.
5. The method of claim 4, wherein the first threshold is determined by:
when an application program starts to run, setting the first threshold according to the response time of the application program;
during the running of the application program, when a preset input event is received, adjusting the first threshold according to the last preset input interval time; the last preset input interval time is the interval time from the end of the last preset input event to the start of the current preset input event.
6. The method of claim 5, wherein adjusting the first threshold value according to a last preset input interval time when a preset input event is received during the running of the application program comprises:
during the running period of the application program, when a preset input event is received, acquiring the last preset input interval time;
if the last preset input interval time is larger than a second threshold, updating the first threshold by the sum of the last preset input interval time and a preset step length;
if the last preset input interval time is smaller than the second threshold, the first threshold is updated by subtracting the preset step length from the first threshold;
wherein the second threshold is greater than the first threshold.
7. The method of any one of claims 1 to 6, wherein the preset input event comprises a touch event.
8. A screen refresh rate adjustment apparatus, comprising:
the receiving module is used for receiving a preset input event;
the timing module is used for starting timing from the end of the preset input event so as to record the interval time from the next preset input event;
and the adjusting module is used for adjusting the screen refresh rate according to the timed duration.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor; and
a display;
wherein the processor is configured to perform the method of any one of claims 1 to 7 via execution of the executable instructions to adjust a screen refresh rate of the display.
CN202010485465.6A 2020-06-01 2020-06-01 Screen refresh rate adjusting method and device, storage medium and electronic equipment Pending CN111782458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010485465.6A CN111782458A (en) 2020-06-01 2020-06-01 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010485465.6A CN111782458A (en) 2020-06-01 2020-06-01 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111782458A true CN111782458A (en) 2020-10-16

Family

ID=72754066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010485465.6A Pending CN111782458A (en) 2020-06-01 2020-06-01 Screen refresh rate adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782458A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722030A (en) * 2021-06-10 2021-11-30 荣耀终端有限公司 Display method, electronic equipment and computer storage medium
WO2022242213A1 (en) * 2021-05-19 2022-11-24 荣耀终端有限公司 Refresh rate adjustment method and electronic device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242213A1 (en) * 2021-05-19 2022-11-24 荣耀终端有限公司 Refresh rate adjustment method and electronic device
CN115552916A (en) * 2021-05-19 2022-12-30 荣耀终端有限公司 Refresh rate adjusting method and electronic equipment
CN115552916B (en) * 2021-05-19 2023-11-07 荣耀终端有限公司 Refresh rate adjusting method and electronic equipment
CN113722030A (en) * 2021-06-10 2021-11-30 荣耀终端有限公司 Display method, electronic equipment and computer storage medium
WO2022257451A1 (en) * 2021-06-10 2022-12-15 荣耀终端有限公司 Display method, electronic device and computer storage medium
US12020620B2 (en) 2021-06-10 2024-06-25 Honor Device Co., Ltd. Display method, electronic device, and computer storage medium

Similar Documents

Publication Publication Date Title
CN109660842B (en) Method for playing multimedia data and electronic equipment
US11683850B2 (en) Bluetooth reconnection method and related apparatus
WO2020191685A1 (en) Frequency adjustment method and apparatus applied to terminal, and electronic device
CN112394895B (en) Picture cross-device display method and device and electronic device
CN111371949A (en) Application program switching method and device, storage medium and touch terminal
US12001758B2 (en) Voice information processing method and electronic device
CN115552916B (en) Refresh rate adjusting method and electronic equipment
WO2021000817A1 (en) Ambient sound processing method and related device
US20220353819A1 (en) Method for Reducing Power Consumption of Mobile Terminal and Mobile Terminal
CN111953899B (en) Image generation method, image generation device, storage medium, and electronic apparatus
CN111784335A (en) Analog card management method, analog card management device, storage medium, and electronic apparatus
CN118051111A (en) High-energy-efficiency display processing method and equipment
CN111782458A (en) Screen refresh rate adjusting method and device, storage medium and electronic equipment
CN116847039A (en) Image processing method based on vertical synchronous signal and electronic equipment
CN112351326A (en) Image processing method based on vertical synchronization signal and electronic equipment
CN115065767B (en) Antenna power adjusting method and electronic equipment thereof
CN114879894B (en) Function starting method, user interface and electronic equipment
CN111711472A (en) NFC device output signal control method, terminal device, medium and electronic device
CN111800581B (en) Image generation method, image generation device, storage medium, and electronic apparatus
CN113391743A (en) Display method and electronic equipment
CN114666433A (en) Howling processing method and device in terminal equipment and terminal
CN116017388B (en) Popup window display method based on audio service and electronic equipment
CN117873367A (en) Split screen display method and related device
CN116780683A (en) Power supply control method and electronic equipment
CN115086888A (en) Message notification method and device and electronic equipment

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