CN113791684A - Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium - Google Patents

Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium Download PDF

Info

Publication number
CN113791684A
CN113791684A CN202111081506.6A CN202111081506A CN113791684A CN 113791684 A CN113791684 A CN 113791684A CN 202111081506 A CN202111081506 A CN 202111081506A CN 113791684 A CN113791684 A CN 113791684A
Authority
CN
China
Prior art keywords
frame rate
application program
refreshing
screen
application
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
CN202111081506.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111081506.6A priority Critical patent/CN113791684A/en
Publication of CN113791684A publication Critical patent/CN113791684A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/329Power saving characterised by the action undertaken by task scheduling

Landscapes

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

Abstract

The embodiment of the application discloses a method for obtaining an application frame rate, a refreshing device, a mobile terminal and a storage medium, and is used for reducing the refreshing frame rate of an application program APP by the mobile terminal under a certain condition, so as to achieve the purposes of reducing system load and reducing power consumption. The method in the embodiment of the application comprises the following steps: acquiring a frame rate request, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program; when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate; and refreshing and displaying the interface of the first application program according to the first target frame rate.

Description

Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium
Technical Field
The present application relates to the field of display technologies, and in particular, to a method for obtaining an application frame rate, a refresh device, a mobile terminal, and a storage medium.
Background
Short video playback is now popular, for example: when short video playing is performed in an Application (APP), the video frame rate is generally 24 to 30Fps (Frames Per Second), and the layer composition Service (SF) composition frame rate is also 24 to 30Fps, which is a reasonable value. However, because the APP needs to make some special effect icons, such as animations of sharing, music jumping, etc., the animations may be 30Fps refresh, and the refresh frame rate of the APP using the system animation is 60Fps, the SF composite display frame rate reaches 60Fps, which causes the power consumption of the mobile terminal to increase and the user endurance to become short.
Disclosure of Invention
The embodiment of the application provides a method for obtaining an application frame rate, a refreshing device, a mobile terminal and a storage medium, and is used for reducing the refreshing frame rate of an application program APP by the mobile terminal under a certain condition, so as to achieve the purposes of reducing system load and reducing power consumption.
A first aspect of the present application provides a method for acquiring an application frame rate, where the method may include:
acquiring a frame rate request, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program;
when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate;
and refreshing and displaying the interface of the first application program according to the first target frame rate.
A second aspect of the present application provides a refresh apparatus, which may include:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a frame rate request, and the frame rate request comprises a minimum frame rate corresponding to a first application program;
the processing module is used for determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen under the condition that the frame rate request meets a refreshing condition and no screen input event exists, wherein the first target frame rate is less than or equal to the maximum frame rate;
and the display module is used for refreshing and displaying the interface of the first application program according to the first target frame rate.
A third aspect of the present application provides a refresh apparatus, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to cause the method of the first aspect of the application to be performed.
In another aspect, the present invention provides a mobile terminal, which may include the refresh apparatus of the second aspect or the third aspect.
Yet another aspect of the embodiments of the present application provides a computer-readable storage medium, comprising instructions, which when executed on a processor, cause the processor to perform the method of the first aspect of the present application.
In another aspect, an embodiment of the present invention discloses a computer program product, which, when running on a computer, causes the computer to execute the method of the first aspect of the present application.
In another aspect, an embodiment of the present invention discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, where when the computer program product runs on a computer, the computer is caused to execute the method according to the first aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, a frame rate request is obtained, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program; when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate; and refreshing and displaying the interface of the first application program according to the first target frame rate. Namely, the mobile terminal can determine the first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen under the condition of meeting a certain condition, so that the refresh frame rate of the application program APP can be reduced, and the purposes of reducing the system load and reducing the power consumption are achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the drawings.
Fig. 1A is a schematic diagram of an architecture displayed after an APP of a mobile terminal performs layer refreshing in an implementation manner;
FIG. 1B is a schematic diagram of 60Fps refresh after SF module synthesis in one implementation;
FIG. 2 is a diagram of an embodiment of a method for obtaining an application frame rate in an embodiment of the present application;
fig. 3A is a schematic structural diagram of an architecture displayed after an APP of a mobile terminal performs layer refreshing in an embodiment of the present application;
fig. 3B is a schematic diagram illustrating an architecture of a frame rate decision service module of a mobile terminal according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an embodiment of a refresh apparatus in an embodiment of the present application;
FIG. 5 is a schematic diagram of another embodiment of a refresh apparatus in an embodiment of the present application;
FIG. 6 is a diagram of an embodiment of a mobile terminal in an embodiment of the present application;
fig. 7 is a schematic diagram of another embodiment of the mobile terminal in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a method for obtaining an application frame rate, a refreshing device, a mobile terminal and a storage medium, and is used for reducing the refreshing frame rate of an application program APP by the mobile terminal under a certain condition, so as to achieve the purposes of reducing system load and reducing power consumption.
For a person skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. The embodiments in the present application shall fall within the protection scope of the present application.
As shown in fig. 1A, the structure diagram is a schematic diagram of an architecture displayed after an APP of a mobile terminal performs layer refreshing in an implementation manner. In fig. 1A, the mobile terminal may include an APP including a video layer and an animation layer, a layer composition Service (SF) module including a dispatch vertical synchronization signal (dispatch Vsync, DispVsync) module, and a screen output module. The margin Vsync module can receive the frame rate (L1 Fps) from the video layer and the frame rate (L2 Fps) from the animation layer, and can also obtain the maximum frame rate (Max Fps) supported by the screen of the mobile terminal; thereafter, the final output frame rate (End Fps) can be determined from L1 Fps, L2Fps, and Max Fps. The final output frame rate is usually the maximum frame rate supported by the screen (Max Fps).
When an image layer refreshing thread of an APP prepares to draw a picture, applying a Vertical synchronization signal (Vsync) to an SF module; after receiving the application, the SF module determines the final output frame rate (End Fps) according to L1 Fps, L2Fps and Max Fps; according to the frame rate (End Fps) of the final output, an APP Vsync signal is dispatched to the layer refreshing thread of the APP through a margin Vsync module; after the layer refreshing thread of the APP receives the distributed APP Vsync signal, drawing a graph in the Vsync signal period, sending the graph to a screen for displaying through an SF (sulfur hexafluoride) module after the graph is drawn, namely responding to Vsync requests of a plurality of layer threads by the SF module, and displaying on the screen after synthesis.
Fig. 1B is a schematic diagram of 60Fps refresh after SF module synthesis in one implementation. In the existing implementation mode, the screen refresh rate of the mobile terminal is high in a short video scene, and the power consumption is high.
The following is a brief description of the terms referred to in this application, as follows:
the Frame Rate, i.e., Frame Rate, unit fps, refers to the Rate of a Graphics Processing Unit (GPU) generating frames, e.g., 33fps and 60fps, and the higher the Frame Rate, the smoother and more vivid animation can be obtained.
The screen Refresh Rate, i.e., Refresh Rate or Scanning Frequency, in hertz/Hz, refers to the Frequency at which the device refreshes the screen, which is a constant value, e.g., 60Hz, for a particular device.
The refreshing process of the screen is from left to right (row refreshing, Horizontal refreshing), and from top to bottom (screen refreshing, Vertical refreshing) for each row. When the whole screen is refreshed, namely one vertical refreshing period is completed, a short blank period exists, and a VSync signal is sent out at the moment. Therefore, V in VSync refers to Vertical/Vertical in Vertical refresh.
For example, the Android system sends a VSync signal every 16ms to trigger rendering of a User Interface (UI), which is a technology widely used in the terminal for a long time and can be simply regarded as a timer interrupt. However, a VSync mechanism has been introduced into Android 4.1(JB) to synchronize rendering, so that App UI and surfaflinger can work according to VSync rhythm generated by hardware.
The embodiment of the application mainly relates to a mobile terminal which has a display function. The Mobile terminal may be a Mobile Phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) Mobile terminal, an Augmented Reality (AR) Mobile terminal, a wireless Mobile terminal in industrial control (industrial control), a wireless Mobile terminal in self driving (self driving), a wireless Mobile terminal in remote medical (remote medical), a wireless Mobile terminal in smart grid (smart grid), a wireless Mobile terminal in transportation safety (transportation safety), a wireless Mobile terminal in smart city (smart city), a wireless Mobile terminal in smart home (smart home), or the like. In the following embodiments, the mobile terminal may be exemplified by a mobile phone.
By way of example and not limitation, in the embodiments of the present application, the mobile terminal may also be a wearable device. Wearable equipment can also be called wearable intelligent equipment, is the general term of applying wearable technique to carry out intelligent design, develop the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
The following further describes the technical solution of the present application by way of an embodiment, and as shown in fig. 2, the method is a schematic diagram of an embodiment of a method for acquiring an application frame rate in the embodiment of the present application, where the method is applied to a mobile terminal or a refresh device in the mobile terminal, and the embodiment of the method may include:
201. the method comprises the steps of obtaining a frame rate request, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program.
Optionally, the obtaining, by the mobile terminal, the frame rate request may include: the mobile terminal acquires a frame rate request about a video layer or an animation layer.
Optionally, the obtaining, by the mobile terminal, the frame rate request may include: under the condition that the mobile terminal meets at least one of the following conditions, acquiring a frame rate request;
the current temperature of the mobile terminal is less than a temperature threshold value;
the current electric quantity of the mobile terminal is larger than an electric quantity threshold value;
the remaining memory space of the mobile terminal is greater than the memory space threshold.
202. And determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen under the condition that the frame rate request meets a refreshing condition and no screen input event exists, wherein the first target frame rate is less than or equal to the maximum frame rate.
Optionally, the frame rate request includes a window title name, the window title name includes a name of the first application program, and the determining, by the mobile terminal, the first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen when the frame rate request satisfies the refresh condition and no screen input event occurs may include: and under the condition that the name of the current focus window is the name of the first application program and no screen input event exists, determining a first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen.
It is to be understood that the current focus window may be understood as the first window in which the current user is focused on, or the first window currently receiving a user event. And under the condition that the name of the current focus window and the name of the window title comprise the same name of the first application program and no screen input event exists, determining a first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen.
Optionally, the determining, by the mobile terminal, a first target frame rate according to the minimum frame rate and the maximum frame rate may include: in case the minimum frame rate (Min Fps) is less than the maximum frame rate (Max Fps), regarding the minimum frame rate as the first target frame rate; and taking the maximum frame rate as the first target frame rate when the minimum frame rate is greater than the maximum frame rate.
Optionally, the minimum frame rate corresponding to the first application program may be determined according to a frame rate of a video layer and a frame rate of an animation layer of the first application program. It can also be understood that the APP can set the minimum frame rate (Min Fps) required by the APP according to the page display requirement through the frame rate adjustment API.
Exemplarily, as shown in fig. 3A, an architecture diagram is shown after an APP of a mobile terminal performs layer refreshing in this embodiment of the present application.
In fig. 3A, the mobile terminal may include an APP, an Application Programming Interface (API), a layer composition Service (SF) module, and a screen output module, where the APP includes a video layer and an animation layer, and the surface flag module includes a dispatch vertical synchronization signal (disparity) module and a frame rate decision service module.
The application program interface API can acquire a minimum frame rate (Min Fps) corresponding to the APP; the frame rate decision service module can obtain a minimum frame rate (Min Fps) from the API, a frame rate (L1 Fps) from the video animation and a frame rate (L2 Fps) from the layer animation, and can also obtain a maximum frame rate (Max Fps) supported by a screen from the mobile terminal; and determining a final output frame rate (End Fps), namely a first target frame rate, according to the Min Fps and the Max Fps. The minimum frame rate (Min Fps) may be set according to the frame rate of the video animation (L1 Fps) and the frame rate of the layer animation (L2 Fps), or may be set according to the user requirement.
It is appreciated that the APP frame rate adjustment API may be provided in the form of a Software Development Kit (sdk).
When an image layer refreshing thread of an APP prepares to draw a picture, applying a Vertical synchronization signal (Vsync) to an SF module; after receiving the application, the SF module determines a final output frame rate (End Fps) according to a minimum frame rate (Min Fps) corresponding to the APP and a maximum frame rate (Max Fps) supported by a screen; according to the frame rate (End Fps) of the final output, namely the first target frame rate, distributing a Vsync signal to the layer refreshing thread of the APP through a margin Vsync module; after receiving the assigned Vsync signal, the layer refresh thread of the APP performs graphic drawing in a Vsync signal period, sends the drawn graphic to a screen through an SF module for refresh display, namely, the SF module responds to Vsync requests of a plurality of layer threads, and performs refresh display on the screen after synthesis.
Exemplarily, as shown in fig. 3B, the frame rate decision service module of the mobile terminal in the embodiment of the present application is schematically illustrated in an architecture.
In fig. 3B, the frame rate decision service module may obtain a minimum frame rate (Min Fps) from the API, obtain a maximum frame rate (Max Fps) supported by a screen from the mobile terminal, and further obtain a window parameter (window Title) and an Input event (Input).
The screen input event is obtained by detecting a Touch State (Touch State), and the detected screen Touch event belongs to the screen input event.
The frame rate decision service module can judge whether a window Title name (name) included in the window parameter (window Title) is the name of the application program of the current display page, and whether the focus window is the application program of the current display page; after the window title name (name) is judged to be the name of the application program of the current display page, the focus window is the application program of the current display page, and no Input event (Input) exists, the final output frame rate (End Fps) can be determined according to the minimum frame rate (Min Fps) and the maximum frame rate (Max Fps).
It can be understood that the APP in the mobile terminal sets a frame rate, i.e., a minimum frame rate (Min Fps), required by the APP according to a page display requirement through a frame rate adjustment API, and simultaneously transmits a Window Title (Window Title) parameter. The frame rate decision service module decides a final output frame rate (End Fps) according to parameters such as Min Fps, window Title, Input event, frame rate supported by a screen (namely, maximum frame rate (Max Fps)), and the like. The SurfaceFlinger module inputs the End Fps to the DispVsync module, which assigns an APP Vysnc signal to the APP based on the End Fps. And the APP performs graph drawing according to the APP Vysnc signal. And sending the drawn graph to a screen for refreshing display through a SurfaceFlinger module.
Wherein, the frame rate decision service module comprises the following judgment algorithms: when each frame layer is synthesized, judging that the window Title name is a request frame limiting APP which is a focus window and has no Input event, responding to a frame rate request, and comparing Min Fps and Max Fps and outputting the minimum value serving as the final End Fps.
203. And refreshing and displaying the interface of the first application program according to the first target frame rate.
Optionally, the refreshing, by the mobile terminal, the interface of the first application program according to the first target frame rate may include: the mobile terminal dispatches the vertical distribution signal of the first application program according to the first target frame rate; the mobile terminal performs graph drawing according to the vertical distribution signal of the first application program; and displaying the drawn graph on the interface of the first application program.
204. And determining a second target frame rate according to the frame rate of the video layer, the frame rate of the animation layer and the maximum frame rate supported by the screen of the first application program under the condition that the frame rate request does not meet a refreshing condition and/or an input event exists.
That is, when the frame rate request does not satisfy the refresh condition, or when there is a screen input event, or when the frame rate request does not satisfy the refresh condition and there is a screen input event, the second target frame rate is determined according to the frame rate of the video layer, the frame rate of the animation layer, and the maximum frame rate supported by the screen of the first application.
205. And refreshing and displaying the interface of the first application program according to the second target frame rate.
Wherein, the frame rate decision service module comprises the following judgment algorithms: when each frame layer is synthesized, it is judged that the window Title name is not a request frame limiting APP, the APP is not a full-screen focus window, under the condition of at least one of the Input events, the frame limiting request is not responded, the existing logic is removed, and finally output End Fps, namely a second target frame rate, is given according to L1 Fps, L2Fps and Max Fps supported by a screen.
It can be understood that the method for obtaining the application frame rate described in the present application may be integrated in other systems such as an Android system (Android), a dammon system, and the like.
It should be noted that steps 204 and 205 are optional steps, and the timing sequence of steps 202 and 203 is not limited.
In the embodiment of the application, a frame rate request is obtained, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program; when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate; and refreshing and displaying the interface of the first application program according to the first target frame rate. Namely, the mobile terminal can determine the first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen under the condition of meeting a certain condition, so that the refresh frame rate of the application program APP can be reduced, and the purposes of reducing the system load and reducing the power consumption are achieved. The APP can input Fps of any requirements according to self page display requirements, the minimum frame rate corresponding to the APP can be considered, the mobile terminal judges the End Fps output finally according to the minimum frame rate and the maximum frame rate supported by a screen, and the App refresh frame rate is reduced under a proper condition, so that the purposes of reducing system load and reducing power consumption are achieved.
As shown in fig. 4, a schematic diagram of an embodiment of a refresh apparatus in an embodiment of the present application may include:
an obtaining module 401, configured to obtain a frame rate request, where the frame rate request includes a minimum frame rate corresponding to a first application;
a processing module 402, configured to determine a first target frame rate according to a minimum frame rate corresponding to the first application and a maximum frame rate supported by a screen under a condition that the frame rate request satisfies a refresh condition and no screen input event, where the first target frame rate is less than or equal to the maximum frame rate;
a display module 403, configured to perform a refresh display on the interface of the first application according to the first target frame rate.
Optionally, the frame rate request comprises a window title name, the window title name comprising a name of the first application,
the processing module 402 is specifically configured to determine a first target frame rate according to a minimum frame rate corresponding to the first application and a maximum frame rate supported by a screen when the name of the current focus window is the name of the first application and no screen input event exists.
Optionally, the processing module 402 is specifically configured to, when the minimum frame rate is smaller than the maximum frame rate, use the minimum frame rate as the first target frame rate; and taking the maximum frame rate as the first target frame rate when the minimum frame rate is greater than the maximum frame rate.
Optionally, the processing module 402 is further configured to assign a vertical distribution signal of the first application according to the first target frame rate; drawing a graph according to the vertical distribution signal of the first application program;
the display module 403 is specifically configured to display the drawn graph on the interface of the first application.
Optionally, the minimum frame rate corresponding to the first application program is determined according to a frame rate of a video layer and a frame rate of an animation layer of the first application program.
Optionally, the obtaining module 401 is specifically configured to obtain a frame rate request for a video layer or an animation layer.
Optionally, the processing module 402 is configured to determine a second target frame rate according to the frame rate of the video layer of the first application, the frame rate of the animation layer, and the maximum frame rate supported by the screen, when the frame rate request does not satisfy the refresh condition, or when there is a screen input event, or when the frame rate request does not satisfy the refresh condition and there is a screen input event;
the display module 403 is further configured to perform a refresh display on the interface of the first application according to the second target frame rate.
As shown in fig. 5, a schematic diagram of another embodiment of the refresh apparatus in the embodiment of the present application may include:
a memory 501 in which executable program code is stored;
a processor 502 and a display 503 coupled to the memory 501;
the processor 502 calls the executable program code stored in the memory 501, so as to obtain a frame rate request, where the frame rate request includes a minimum frame rate corresponding to a first application program; when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate;
the display 503 is configured to perform a refresh display on the interface of the first application according to the first target frame rate.
Optionally, the frame rate request comprises a window title name, the window title name comprising a name of the first application,
the processor 502 is specifically configured to determine a first target frame rate according to a minimum frame rate corresponding to the first application and a maximum frame rate supported by a screen when the name of the current focus window is the name of the first application and no screen input event exists.
Optionally, the processor 502 is specifically configured to, when the minimum frame rate is smaller than the maximum frame rate, use the minimum frame rate as the first target frame rate; and taking the maximum frame rate as the first target frame rate when the minimum frame rate is greater than the maximum frame rate.
Optionally, the processor 502 is further configured to dispatch a vertical distribution signal of the first application according to the first target frame rate; drawing a graph according to the vertical distribution signal of the first application program;
the display 503 is specifically configured to display the drawn graph on the interface of the first application.
Optionally, the minimum frame rate corresponding to the first application program is determined according to a frame rate of a video layer and a frame rate of an animation layer of the first application program.
Optionally, the processor 502 is specifically configured to obtain a frame rate request for a video layer or an animation layer.
Optionally, the processor 502 is configured to determine a second target frame rate according to the frame rate of the video layer of the first application, the frame rate of the animation layer, and the maximum frame rate supported by the screen, when the frame rate request does not satisfy the refresh condition, or when there is a screen input event, or when the frame rate request does not satisfy the refresh condition and there is a screen input event;
the display 503 is further configured to perform a refresh display on the interface of the first application according to the second target frame rate.
As shown in fig. 6, which is a schematic diagram of an embodiment of a mobile terminal in the embodiment of the present application, the mobile terminal may include a refresh apparatus as shown in fig. 4 or fig. 5.
As shown in fig. 7, which is a schematic view of another embodiment of the mobile terminal in the embodiment of the present application, the mobile terminal is described by taking a mobile phone as an example, and may include: radio Frequency (RF) circuitry 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (WiFi) module 770, processor 780, and power supply 790. Therein, the radio frequency circuit 710 includes a receiver 714 and a transmitter 712. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and 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 phone in detail with reference to fig. 7:
the RF circuit 710 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 780; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage 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 720 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 input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on or near the touch panel 731 by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions 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 it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting diode (OLED), or the like. Further, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although the touch panel 731 and the display panel 741 are two independent components in fig. 7 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 741 and/or a backlight when the mobile phone 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, and then processes the audio data output processor 780, and then transmits the audio data to, for example, another cellular phone through the RF circuit 710, or outputs the audio data to the memory 720 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 770, and provides wireless broadband Internet access for the user. Although fig. 7 shows the WiFi module 770, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Optionally, processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The handset also includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system, so that the power management system may be used to manage charging, discharging, and power consumption. Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present application, the processor 780 is configured to obtain a frame rate request, where the frame rate request includes a minimum frame rate corresponding to a first application; when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate;
the display unit 740 is configured to perform refresh display on the interface of the first application according to the first target frame rate.
Optionally, the frame rate request comprises a window title name, the window title name comprising a name of the first application,
the processor 780 is specifically configured to determine a first target frame rate according to a minimum frame rate corresponding to the first application and a maximum frame rate supported by a screen when the name of the current focus window is the name of the first application and no screen input event exists.
Optionally, the processor 780 is specifically configured to, when the minimum frame rate is smaller than the maximum frame rate, use the minimum frame rate as the first target frame rate; and taking the maximum frame rate as the first target frame rate when the minimum frame rate is greater than the maximum frame rate.
Optionally, the processor 780 is further configured to dispatch a vertical distribution signal of the first application according to the first target frame rate; drawing a graph according to the vertical distribution signal of the first application program;
the display unit 740 is specifically configured to display the drawn graph on the interface of the first application.
Optionally, the minimum frame rate corresponding to the first application program is determined according to a frame rate of a video layer and a frame rate of an animation layer of the first application program.
Optionally, the processor 780 is specifically configured to obtain a frame rate request for a video layer or an animation layer.
Optionally, the processor 780 is configured to determine a second target frame rate according to the frame rate of the video layer of the first application, the frame rate of the animation layer, and the maximum frame rate supported by the screen, when the frame rate request does not satisfy the refresh condition, or when there is a screen input event, or when the frame rate request does not satisfy the refresh condition and there is a screen input event;
the display unit 740 is further configured to refresh and display the interface of the first application according to the second target frame rate.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A method for obtaining an application frame rate, the method comprising:
acquiring a frame rate request, wherein the frame rate request comprises a minimum frame rate corresponding to a first application program;
when the frame rate request meets a refreshing condition and no screen input event exists, determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen, wherein the first target frame rate is less than or equal to the maximum frame rate;
and refreshing and displaying the interface of the first application program according to the first target frame rate.
2. The method of claim 1, wherein the frame rate request comprises a window title name, the window title name comprises a name of the first application program, and the determining the first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen in a case that the frame rate request satisfies a refresh condition and no screen input event comprises:
and under the condition that the name of the current focus window is the name of the first application program and no screen input event exists, determining a first target frame rate according to the minimum frame rate corresponding to the first application program and the maximum frame rate supported by the screen.
3. The method of claim 1 or 2, wherein determining a first target frame rate based on the minimum frame rate and the maximum frame rate comprises:
taking the minimum frame rate as the first target frame rate when the minimum frame rate is smaller than the maximum frame rate;
and taking the maximum frame rate as the first target frame rate when the minimum frame rate is greater than the maximum frame rate.
4. The method according to claim 1 or 2, wherein the refreshing the interface of the first application according to the first target frame rate comprises:
dispatching a vertical distribution signal of the first application program according to the first target frame rate;
drawing a graph according to the vertical distribution signal of the first application program;
and displaying the drawn graph on the interface of the first application program.
5. The method according to claim 1 or 2, wherein the minimum frame rate corresponding to the first application is determined according to a frame rate of a video layer and a frame rate of an animation layer of the first application.
6. The method of claim 1 or 2, wherein the obtaining a frame rate request comprises:
a frame rate request is obtained for a video layer or an animation layer.
7. The method according to claim 1 or 2, characterized in that the method further comprises:
determining a second target frame rate according to the frame rate of the video layer and the frame rate of the animation layer of the first application program and the maximum frame rate supported by a screen when the frame rate request does not meet a refreshing condition, or when a screen input event exists, or when the frame rate request does not meet the refreshing condition and the screen input event exists;
and refreshing and displaying the interface of the first application program according to the second target frame rate.
8. A refresh apparatus, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a frame rate request, and the frame rate request comprises a minimum frame rate corresponding to a first application program;
the processing module is used for determining a first target frame rate according to a minimum frame rate corresponding to the first application program and a maximum frame rate supported by a screen under the condition that the frame rate request meets a refreshing condition and no screen input event exists, wherein the first target frame rate is less than or equal to the maximum frame rate;
and the display module is used for refreshing and displaying the interface of the first application program according to the first target frame rate.
9. A refresh apparatus, comprising:
a memory storing executable program code;
a processor and a display coupled with the memory;
the processor calls the executable program code stored in the memory so that the processor and the display correspondingly execute the method according to any one of claims 1-7.
10. A mobile terminal characterized in that it comprises a refresh device according to claim 8 or 9.
11. A computer-readable storage medium comprising instructions that, when executed on a processor, cause the processor to perform the method of any of claims 1-7.
CN202111081506.6A 2021-09-15 2021-09-15 Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium Pending CN113791684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111081506.6A CN113791684A (en) 2021-09-15 2021-09-15 Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111081506.6A CN113791684A (en) 2021-09-15 2021-09-15 Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113791684A true CN113791684A (en) 2021-12-14

Family

ID=78878465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111081506.6A Pending CN113791684A (en) 2021-09-15 2021-09-15 Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113791684A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661136A (en) * 2022-03-29 2022-06-24 联想(北京)有限公司 Information processing method and system and electronic equipment
CN115273763A (en) * 2022-06-16 2022-11-01 北京小米移动软件有限公司 Method and device for adjusting frame rate of picture composition, display device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN106933526A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of method of dynamic regulation screen refresh rate, device and mobile terminal
CN106933328A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of mobile terminal frame per second, device and mobile terminal
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110377251A (en) * 2019-06-06 2019-10-25 努比亚技术有限公司 A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
CN111610848A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN111767013A (en) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 Control method, control device, electronic device, computer-readable storage medium
US20210065658A1 (en) * 2019-08-28 2021-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Method for controlling frame refresh rate of screen, apparatus and storage medium
CN112652263A (en) * 2020-12-25 2021-04-13 深圳传音控股股份有限公司 Refreshing method, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919402A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal
CN106933526A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of method of dynamic regulation screen refresh rate, device and mobile terminal
CN106933328A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of mobile terminal frame per second, device and mobile terminal
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110377251A (en) * 2019-06-06 2019-10-25 努比亚技术有限公司 A kind of screen refresh rate method of adjustment, terminal and computer readable storage medium
US20210065658A1 (en) * 2019-08-28 2021-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Method for controlling frame refresh rate of screen, apparatus and storage medium
CN111610848A (en) * 2020-05-29 2020-09-01 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN111767013A (en) * 2020-06-01 2020-10-13 Oppo(重庆)智能科技有限公司 Control method, control device, electronic device, computer-readable storage medium
CN112652263A (en) * 2020-12-25 2021-04-13 深圳传音控股股份有限公司 Refreshing method, terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661136A (en) * 2022-03-29 2022-06-24 联想(北京)有限公司 Information processing method and system and electronic equipment
CN115273763A (en) * 2022-06-16 2022-11-01 北京小米移动软件有限公司 Method and device for adjusting frame rate of picture composition, display device and storage medium
CN115273763B (en) * 2022-06-16 2024-02-06 北京小米移动软件有限公司 Picture composition frame rate adjustment method and device, display equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107102936B (en) Fluency evaluation method, mobile terminal and storage medium
CN109271121B (en) Application display method and mobile terminal
CN106993227B (en) Method and device for information display
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
US10805248B2 (en) Instant messaging method and apparatus for selecting motion for a target virtual role
CN114443269B (en) Frame rate adjusting method and related device
CN107203960B (en) Image rendering method and device
CN108429888B (en) Light supplementing method and mobile terminal
CN108762814B (en) Screen lightening method and related equipment
CN108322599B (en) Network access method and mobile terminal
CN107957843B (en) Control method and mobile terminal
CN106658064B (en) Virtual gift display method and device
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN110681155A (en) Game optimization method, game optimization device and mobile terminal
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
CN111045772A (en) Application sharing method, electronic equipment and computer readable storage medium
CN109189260B (en) Touch detection method and device
CN113791684A (en) Method for acquiring application frame rate, refreshing device, mobile terminal and storage medium
CN111726525A (en) Video recording method, video recording device, electronic equipment and storage medium
CN109548117A (en) A kind of network selecting method and mobile terminal
CN109101151B (en) Information display processing method and terminal equipment
CN115623257A (en) Screen projection display method, system, terminal device and storage medium
CN111078172A (en) Display fluency adjusting method and device, electronic equipment and storage medium
CN108270853B (en) Message processing method and mobile terminal

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