CN112667339A - Method for setting screen refresh rate, terminal and computer readable medium - Google Patents
Method for setting screen refresh rate, terminal and computer readable medium Download PDFInfo
- Publication number
- CN112667339A CN112667339A CN202011633312.8A CN202011633312A CN112667339A CN 112667339 A CN112667339 A CN 112667339A CN 202011633312 A CN202011633312 A CN 202011633312A CN 112667339 A CN112667339 A CN 112667339A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen refresh
- refresh rate
- game
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000012545 processing Methods 0.000 claims description 18
- 238000004519 manufacturing process Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000001174 ascending effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a method for setting a screen refresh rate, a terminal and a computer readable medium, wherein the method comprises the following steps: when a game starting instruction is received, adjusting the screen refresh rate of the mobile terminal to be the lowest or highest gear; judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not; if not, adjusting the screen refresh rate of the mobile terminal to the next gear, and judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not. According to the technical scheme, the upper frame rate of the game application installed in the mobile terminal is identified through the system side, and the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game application, so that the smoothness of the game is effectively improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for setting a screen refresh rate, a terminal, and a computer-readable medium.
Background
At present, more and more mobile terminals have screens with high refresh rates, can simultaneously support a plurality of refresh rates, and can switch at any time, and meanwhile, most games on the market are provided with a plurality of upper frame rates controlled by game applications, and can be set.
Therefore, the screen refresh rate of the mobile terminal and the upper frame rate of the game application can be matched to be a problem for manufacturers to try to overcome, and the situation that the screen refresh rate and the upper frame rate of the game are not matched can cause various problems, such as shaking of the game, unsmooth game, high power consumption of a mobile phone system and the like. The matching of the screen refresh rate and the frame rate on the game can be optimized in terms of game fluency and system power consumption.
Disclosure of Invention
The invention mainly aims to provide a method for setting a screen refresh rate, a terminal and a computer readable medium, aiming at realizing effective matching of the screen refresh rate of a mobile terminal and a frame rate on a game.
In order to achieve the above object, the method for setting a screen refresh rate according to the present invention is applied to a mobile terminal having a plurality of screen refresh rates in different levels from low to high, and comprises the following steps:
when a game starting instruction is received, adjusting the screen refresh rate of the mobile terminal to be the lowest or highest gear;
judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not;
if not, adjusting the screen refresh rate of the mobile terminal to the next gear, and judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not.
Optionally, when a game starting instruction is received and the screen refresh rate of the mobile terminal is adjusted to the lowest gear, the method includes:
judging whether the upper frame rate of the game is greater than the screen refreshing rate of the mobile terminal;
if so, the screen refresh rate of the mobile terminal is adjusted up by one gear, and whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal or not is judged.
Optionally, the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal includes:
adjusting the numerical value of a display data processing buffer queue of the mobile terminal from an initial value to a preset value, wherein the preset value is larger than the initial value;
judging whether the buffer queue is filled with the data of the game production within a preset time range;
if so, judging that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal, and adjusting the numerical value of a display data processing buffer queue of the mobile terminal from a preset value to an initial value;
if not, judging that the upper frame rate of the game is not greater than the screen refresh rate of the mobile terminal, and adjusting the numerical value of the display data processing buffer queue of the mobile terminal from a preset value to an initial value.
Optionally, after the step of determining that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal, the method further includes:
judging whether the screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear;
if yes, acquiring the real-time frame-up rate of the game within a preset time period, and adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game;
and if not, the screen refresh rate of the mobile terminal is adjusted up by one gear.
Optionally, the step of adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game includes:
judging whether the real-time frame uploading rate of the game is smaller than the screen refreshing rate of the mobile terminal;
if so, the screen refresh rate of the mobile terminal is adjusted down by one gear, and whether the real-time frame-up rate of the game is smaller than the screen refresh rate of the mobile terminal or not is judged.
Optionally, when a game starting instruction is received and the screen refresh rate of the mobile terminal is adjusted to the highest gear, the method includes:
judging whether the upper frame rate of the game is smaller than the screen refresh rate of the mobile terminal;
if so, adjusting the screen refresh rate of the mobile terminal down by one gear, and judging whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal.
Optionally, the step of determining whether the upper frame rate of the game is less than the screen refresh rate of the mobile terminal includes:
adjusting the numerical value of a display data processing buffer queue of the mobile terminal from an initial value to a preset value, wherein the preset value is larger than the initial value;
judging whether the buffer queue is filled with the data of the game production within a preset time range;
if so, judging that the upper frame rate of the game is not less than the screen refresh rate of the mobile terminal;
if not, the upper frame rate of the game is judged to be smaller than the screen refreshing rate of the mobile terminal.
Optionally, after the step of determining that the upper frame rate of the game is not less than the screen refresh rate of the mobile terminal, the method further includes:
and the screen refresh rate of the mobile terminal is adjusted up by one gear.
In addition, the present invention further provides a terminal, including a memory, a processor, and an implementation program of a method for setting a screen refresh rate, stored in the memory and operable on the processor, wherein the implementation program of the method for setting the screen refresh rate is executed by the processor, and includes the following steps:
when a game starting instruction is received, adjusting the screen refresh rate of the mobile terminal to be the lowest or highest gear;
judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not;
if not, adjusting the screen refresh rate of the mobile terminal to the next gear, and judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not.
Furthermore, the present invention also provides a computer-readable medium, on which an implementation program of a setting method of a screen refresh rate is stored, the implementation program of the setting method of the screen refresh rate implementing the following steps when executed:
when a game starting instruction is received, adjusting the screen refresh rate of the mobile terminal to be the lowest or highest gear;
judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not;
if not, adjusting the screen refresh rate of the mobile terminal to the next gear, and judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not.
According to the technical scheme, the upper frame rate of the game application installed in the mobile terminal is identified through the system side, and the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game application, so that the smoothness of the game is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for setting a screen refresh rate according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a first exemplary embodiment of a method for setting a screen refresh rate shown in FIG. 3;
FIG. 5 is a flowchart of one embodiment of the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal in FIG. 4;
FIG. 6 is a flowchart illustrating a second embodiment of a method for setting a screen refresh rate shown in FIG. 3;
FIG. 7 is a flowchart illustrating a third exemplary embodiment of a method for setting a screen refresh rate shown in FIG. 3;
FIG. 8 is a flowchart of one embodiment of the step of adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game in FIG. 7;
FIG. 9 is a flowchart illustrating a fourth exemplary embodiment of a method for setting a screen refresh rate shown in FIG. 3.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a flowchart illustrating a method for setting a screen refresh rate according to an embodiment of the present invention.
In this embodiment, the mobile terminal has a screen refresh rate with a plurality of gears from low to high, and the method for setting the screen refresh rate includes the following steps:
in step S310, a game start instruction is received.
And step S320, adjusting the screen refresh rate of the mobile terminal to the lowest or highest gear.
Step S330, judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game; if so, the process ends. If not, step S340 is performed.
And step S340, adjusting the screen refresh rate of the mobile terminal to the next gear. Then, step S330 is performed. And circulating the steps until the screen refreshing rate of the mobile terminal is matched with the upper frame rate of the game.
The technical scheme of the embodiment is mainly that the upper frame rate identification of the game application installed in the mobile terminal is realized through the system side, and the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game application, so that the smoothness of the game is effectively improved.
As shown in fig. 4, fig. 4 is a flowchart of a first specific embodiment of the method for setting the screen refresh rate shown in fig. 3.
Based on the foregoing embodiments, in this embodiment, the method for setting the screen refresh rate includes the following steps:
step S410, receiving a game start instruction.
Step S420, adjusting the screen refresh rate of the mobile terminal to the lowest gear.
Step S430, determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal. If yes, go to step S440; if not, ending the process, and setting the current screen refresh rate as the screen refresh rate of the mobile terminal corresponding to the game.
Step S440, the screen refresh rate of the mobile terminal is adjusted up by one gear. And then returns to perform step S430.
As shown in fig. 5, fig. 5 is a flowchart of an embodiment of the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal in fig. 4. In this embodiment, the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal includes:
step S431, adjusting the numerical value of the display data processing buffer queue of the mobile terminal from an initial value to a preset value, wherein the preset value is greater than the initial value;
step S432, judging whether the buffer queue is filled with the data of the game production within a preset time range; if so, go to step S433; if not, step S434 is performed.
Step S433, determining that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal, and adjusting the value of the display data processing buffer queue of the mobile terminal from a preset value to an initial value.
Step S434, determining that the upper frame rate of the game is not greater than the screen refresh rate of the mobile terminal, and adjusting the value of the display data processing buffer queue of the mobile terminal from a preset value to an initial value.
In order to more clearly illustrate the present invention, in this embodiment, the screen refresh rate of the mobile terminal is divided into four gears, which are a first gear, a second gear, a third gear and a fourth gear from low to high. Then, the specific operation mode of this embodiment is: and when a game starting instruction is received, setting the screen refresh rate of the mobile terminal to be a first gear. Meanwhile, the value of the display data processing buffer queue (BufferQueue) of the mobile terminal is adjusted from an initial value (default initial value of the system is 3) to a preset value (may be any natural number greater than 3, for example, 5). It is then determined whether the buffer queue is filled with data from the game production for a preset period of time (e.g., 100 ms). If the buffer queue is filled, the production speed of the game data is larger than the display data processing speed of the mobile terminal, and the screen refresh rate of the first gear of the mobile terminal is smaller than the upper frame rate of the game. At this time, the screen refresh rate of the mobile terminal is adjusted to a second gear. And then judging whether the screen refresh rate of the second gear is less than the upper frame rate of the game or not by the method. When the screen refresh rate of the second gear is not less than the upper frame rate of the game, the production speed of the game data is less than or equal to the display data processing speed of the mobile terminal, and the screen refresh rate of the mobile terminal can effectively ensure the fluency of effective operation.
It should be noted that, in order to improve the accuracy of the determination, the steps S431 to S434 may be repeatedly executed several times in one determination process. For example, steps S431 to S434 are performed once every 5 seconds, and the above determination is performed three times in the determination of whether the screen refresh rate for each gear is less than the upper frame rate of the game, and the same result is taken at least twice as the final determination result. For example, if the result of two times of the three determinations is "yes", the "yes" is taken as the final result.
Further, as shown in fig. 6, fig. 6 is a flowchart of a second embodiment of the method for setting the screen refresh rate shown in fig. 3.
In this embodiment, the method for setting the screen refresh rate includes:
step S510, receiving a game starting instruction.
And step S520, adjusting the screen refresh rate of the mobile terminal to the lowest gear.
Step S530, determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal. If yes, go to step S540; if not, ending the process, and setting the current screen refresh rate as the screen refresh rate of the mobile terminal corresponding to the game.
Step S540, judging whether the screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear; if so, the flow ends. If not, step S550 is performed.
And step S550, the screen refresh rate of the mobile terminal is adjusted up by one gear. Then, step S530 is performed.
In this embodiment, after each step of determining that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal, it is further required to determine whether the current screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear. And when the current screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear, keeping the screen refresh rate of the mobile terminal at the highest gear. And when the current screen refresh rate of the mobile terminal is not the screen refresh rate of the highest gear, the screen refresh rate of the mobile terminal is adjusted up by one gear. And then continuously judging whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal.
Further, as shown in fig. 7, fig. 7 is a flowchart of a third specific embodiment of the method for setting the screen refresh rate shown in fig. 3.
In this embodiment, the method for setting the screen refresh rate includes:
step S610, receiving a game start instruction.
And step S620, adjusting the screen refresh rate of the mobile terminal to the lowest gear.
Step S630, determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal. If so, go to step S640; if not, ending the process, and setting the current screen refresh rate as the screen refresh rate of the mobile terminal corresponding to the game.
Step S640, judging whether the screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear; if so, step S650 is performed. If not, step S670 is performed.
And step S650, acquiring the real-time frame playing rate of the game in a preset time period.
And step S660, adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game.
And step S670, the screen refresh rate of the mobile terminal is adjusted up by one gear. Then, step S630 is performed.
As shown in fig. 8, fig. 8 is a flowchart of an embodiment of the step of adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game in fig. 7. In this embodiment, the step of adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time upper frame rate of the game includes:
step S661, judging whether the real-time frame-up rate of the game is smaller than the screen refresh rate of the mobile terminal; if so, go to step S662; if not, the flow ends.
In step S662, the screen refresh rate of the mobile terminal is adjusted downward by one gear. And then returns to perform step S661.
Specifically, in this embodiment, when the upper frame rate of the game is greater than the screen refresh rate of the highest gear of the mobile terminal, the real-time upper frame rate of the game in a preset time period (for example, the first 3 seconds of effective start of operation) is obtained. And then judging whether the real-time frame playing rate of the game is smaller than the screen refreshing rate of the mobile terminal. And when the real-time frame-up rate of the game is smaller than the screen refresh rate of the mobile terminal, the screen refresh rate of the mobile terminal is adjusted down by one gear. And then, repeatedly judging until the real-time frame ascending rate of the game is not less than the screen refreshing rate of the mobile terminal. And when the real-time frame ascending rate of the game is not less than the screen refreshing rate of the mobile terminal, setting the screen refreshing rate of the gear or the previous gear as the screen refreshing rate of the mobile terminal.
Further, as shown in fig. 9, fig. 9 is a flowchart of a fourth specific embodiment of the method for setting the screen refresh rate shown in fig. 3.
In this embodiment, the method for setting the screen refresh rate includes:
step S710, receiving a game start instruction.
And step S720, adjusting the screen refresh rate of the mobile terminal to the highest gear.
Step S730, judging whether the upper frame rate of the game is less than the screen refresh rate of the mobile terminal; if yes, go to step S740; if not, the flow ends.
And step S740, adjusting the screen refresh rate of the mobile terminal down by one gear. And then returns to perform step S730. Until the upper frame rate of the game is not less than the screen refreshing rate of the mobile terminal. And when the upper frame rate of the game is not less than the screen refresh rate of the mobile terminal, setting the screen refresh rate of the gear or the previous gear as the screen refresh rate of the mobile terminal.
Specifically, in this embodiment, the step of determining whether the upper frame rate of the game is less than the screen refresh rate of the mobile terminal may refer to the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal in the first embodiment, and the principle is the same, and details are not repeated here.
The invention also provides a terminal, which comprises a memory, a processor and an implementation program of the setting method of the screen refresh rate, wherein the implementation program of the setting method of the screen refresh rate is stored on the memory and can be operated on the processor, and the implementation program of the setting method of the screen refresh rate realizes all the steps in the embodiment of the setting method of the screen refresh rate when being executed by the processor. Since the terminal can execute all the steps in any of the above embodiments, the mobile terminal at least has all the beneficial effects brought by the technical solutions of the above method embodiments, and details are not repeated here.
The present invention further provides a computer readable medium, on which an implementation program of a method for setting a screen refresh rate is stored, and when executed, the implementation program of the method for setting a screen refresh rate can implement all the steps in any of the above embodiments. Since the computer-readable medium can execute all the steps in any of the above embodiments, the computer-readable medium at least has all the advantages brought by the technical solutions of the above method embodiments, and details are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A method for setting a screen refresh rate is applied to a mobile terminal, and the mobile terminal has a plurality of screen refresh rates of gears from low to high, and is characterized by comprising the following steps:
when a game starting instruction is received, adjusting the screen refresh rate of the mobile terminal to be the lowest or highest gear;
judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not;
if not, adjusting the screen refresh rate of the mobile terminal to the next gear, and judging whether the screen refresh rate of the mobile terminal is matched with the upper frame rate of the game or not.
2. The method for setting the screen refresh rate according to claim 1, wherein when a game start instruction is received and the screen refresh rate of the mobile terminal is adjusted to the lowest gear, the method comprises:
judging whether the upper frame rate of the game is greater than the screen refreshing rate of the mobile terminal;
if so, the screen refresh rate of the mobile terminal is adjusted up by one gear, and whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal or not is judged.
3. The method for setting a screen refresh rate according to claim 2, wherein the step of determining whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal comprises:
adjusting the numerical value of a display data processing buffer queue of the mobile terminal from an initial value to a preset value, wherein the preset value is larger than the initial value;
judging whether the buffer queue is filled with the data of the game production within a preset time range;
if so, judging that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal, and adjusting the numerical value of a display data processing buffer queue of the mobile terminal from a preset value to an initial value;
if not, judging that the upper frame rate of the game is not greater than the screen refresh rate of the mobile terminal, and adjusting the numerical value of the display data processing buffer queue of the mobile terminal from a preset value to an initial value.
4. The method for setting a screen refresh rate according to claim 3, further comprising, after the step of determining that the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal:
judging whether the screen refresh rate of the mobile terminal is the screen refresh rate of the highest gear;
if yes, acquiring the real-time frame-up rate of the game within a preset time period, and adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time frame-up rate of the game;
and if not, the screen refresh rate of the mobile terminal is adjusted up by one gear.
5. The method for setting the screen refresh rate according to claim 4, wherein the step of adjusting the screen refresh rate of the mobile terminal to a corresponding gear according to the real-time up frame rate of the game comprises:
judging whether the real-time frame uploading rate of the game is smaller than the screen refreshing rate of the mobile terminal;
if so, the screen refresh rate of the mobile terminal is adjusted down by one gear, and whether the real-time frame-up rate of the game is smaller than the screen refresh rate of the mobile terminal or not is judged.
6. The method for setting the screen refresh rate according to claim 1, wherein when a game start instruction is received and the screen refresh rate of the mobile terminal is adjusted to the highest gear, the method comprises:
judging whether the upper frame rate of the game is smaller than the screen refresh rate of the mobile terminal;
if so, adjusting the screen refresh rate of the mobile terminal down by one gear, and judging whether the upper frame rate of the game is greater than the screen refresh rate of the mobile terminal.
7. The method for setting a screen refresh rate according to claim 6, wherein the step of determining whether the upper frame rate of the game is less than the screen refresh rate of the mobile terminal comprises:
adjusting the numerical value of a display data processing buffer queue of the mobile terminal from an initial value to a preset value, wherein the preset value is larger than the initial value;
judging whether the buffer queue is filled with the data of the game production within a preset time range;
if so, judging that the upper frame rate of the game is not less than the screen refresh rate of the mobile terminal;
if not, the upper frame rate of the game is judged to be smaller than the screen refreshing rate of the mobile terminal.
8. The method for setting a screen refresh rate according to claim 7, further comprising, after the step of determining that the upper frame rate of the game is not less than the screen refresh rate of the mobile terminal:
and the screen refresh rate of the mobile terminal is adjusted up by one gear.
9. A terminal characterized by comprising a memory, a processor and a program for implementing a method for setting a screen refresh rate stored on said memory and executable on said processor, said program for implementing a method for setting a screen refresh rate implementing the steps of a method for setting a screen refresh rate as claimed in any one of claims 1 to 8 when executed by said processor.
10. A computer-readable medium, characterized in that a program for implementing a method for setting a screen refresh rate is stored thereon, which when executed implements the steps of the method for setting a screen refresh rate as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011633312.8A CN112667339B (en) | 2020-12-31 | 2020-12-31 | Screen refresh rate setting method, terminal and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011633312.8A CN112667339B (en) | 2020-12-31 | 2020-12-31 | Screen refresh rate setting method, terminal and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112667339A true CN112667339A (en) | 2021-04-16 |
CN112667339B CN112667339B (en) | 2023-12-08 |
Family
ID=75413257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011633312.8A Active CN112667339B (en) | 2020-12-31 | 2020-12-31 | Screen refresh rate setting method, terminal and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667339B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114632329A (en) * | 2022-05-16 | 2022-06-17 | 荣耀终端有限公司 | Terminal equipment performance adjusting method and related device |
CN117687585A (en) * | 2023-07-10 | 2024-03-12 | 荣耀终端有限公司 | Refresh rate control method, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140198093A1 (en) * | 2013-01-14 | 2014-07-17 | Apple Inc. | Low power display device with variable refresh rates |
CN110377251A (en) * | 2019-06-06 | 2019-10-25 | 努比亚技术有限公司 | A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium |
CN110619860A (en) * | 2019-10-15 | 2019-12-27 | Oppo广东移动通信有限公司 | Screen refresh rate adjusting method and device, storage medium and electronic equipment |
CN110955397A (en) * | 2019-10-30 | 2020-04-03 | 努比亚技术有限公司 | Method for setting frame rate of game terminal, game terminal and storage medium |
-
2020
- 2020-12-31 CN CN202011633312.8A patent/CN112667339B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140198093A1 (en) * | 2013-01-14 | 2014-07-17 | Apple Inc. | Low power display device with variable refresh rates |
CN110377251A (en) * | 2019-06-06 | 2019-10-25 | 努比亚技术有限公司 | A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium |
CN110619860A (en) * | 2019-10-15 | 2019-12-27 | Oppo广东移动通信有限公司 | Screen refresh rate adjusting method and device, storage medium and electronic equipment |
CN110955397A (en) * | 2019-10-30 | 2020-04-03 | 努比亚技术有限公司 | Method for setting frame rate of game terminal, game terminal and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114632329A (en) * | 2022-05-16 | 2022-06-17 | 荣耀终端有限公司 | Terminal equipment performance adjusting method and related device |
CN117687585A (en) * | 2023-07-10 | 2024-03-12 | 荣耀终端有限公司 | Refresh rate control method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112667339B (en) | 2023-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110175062B (en) | Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium | |
CN108494964B (en) | Mobile terminal status bar display method, terminal and computer readable storage medium | |
CN112667181A (en) | Screen projection method, screen projection equipment, screen projection control system and storage medium | |
CN107635070B (en) | Message reminding method, terminal and storage medium | |
CN109144441B (en) | Screen adjusting method, terminal and computer readable storage medium | |
CN112102780B (en) | Display frame rate regulation and control method, device and computer readable storage medium | |
CN110064192A (en) | Interface control method, mobile terminal and computer readable storage medium | |
CN112399215A (en) | Screen projection parameter regulation and control method and device and computer readable storage medium | |
CN108563388B (en) | Screen operation method, mobile terminal and computer-readable storage medium | |
CN112114767A (en) | Screen projection frame rate control method and device and computer readable storage medium | |
CN112494932A (en) | Game frame supplementing method and device, terminal and computer readable storage medium | |
CN112667339B (en) | Screen refresh rate setting method, terminal and computer readable medium | |
CN112437472B (en) | Network switching method, equipment and computer readable storage medium | |
CN107688497B (en) | Memory regulation and control method, equipment and computer readable storage medium | |
CN112712815A (en) | Software-based pop sound suppression method, terminal and computer readable medium | |
CN112612372A (en) | Touch event regulation and control method and device and computer readable storage medium | |
CN111970738A (en) | Network switching control method, equipment and computer readable storage medium | |
CN109683796B (en) | Interaction control method, equipment and computer readable storage medium | |
CN111443818A (en) | Screen brightness regulation and control method and device and computer readable storage medium | |
CN110955397A (en) | Method for setting frame rate of game terminal, game terminal and storage medium | |
CN107404568B (en) | Control switch management method and mobile terminal | |
CN112333326B (en) | Screen projection display control method and device and computer readable storage medium | |
CN114356146A (en) | Method and device for dynamically regulating and controlling game frame rate and computer readable storage medium | |
CN109885275B (en) | Audio regulation and control method, equipment and computer readable storage medium | |
CN109327604B (en) | Status bar information display method and equipment and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |