CN113126741B - Mobile terminal frame rate control method, device, computer equipment and storage medium - Google Patents

Mobile terminal frame rate control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113126741B
CN113126741B CN201911366921.9A CN201911366921A CN113126741B CN 113126741 B CN113126741 B CN 113126741B CN 201911366921 A CN201911366921 A CN 201911366921A CN 113126741 B CN113126741 B CN 113126741B
Authority
CN
China
Prior art keywords
frame rate
application program
display frame
scene
picture
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.)
Active
Application number
CN201911366921.9A
Other languages
Chinese (zh)
Other versions
CN113126741A (en
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201911366921.9A priority Critical patent/CN113126741B/en
Priority to PCT/CN2020/135714 priority patent/WO2021129416A1/en
Publication of CN113126741A publication Critical patent/CN113126741A/en
Application granted granted Critical
Publication of CN113126741B publication Critical patent/CN113126741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The present application relates to the field of mobile terminals, and in particular, to a method and apparatus for controlling a frame rate of a mobile terminal, a computer device, and a storage medium. The method in one embodiment comprises: receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate. Therefore, the display frame rate corresponds to the scene of the mobile terminal, namely, different display frame rates correspond to different scenes, but not all scenes correspond to the same higher display frame rate, and the power consumption of the terminal can be reduced.

Description

Mobile terminal frame rate control method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a method and apparatus for controlling a frame rate of a mobile terminal, a computer device, and a storage medium.
Background
With the development of mobile terminal technology, mobile terminals such as smart phones and tablets are widely applied to life and work of people. The mobile terminal is provided with an operating system, and a user can initiate screen switching to the mobile terminal through an interactive interface, such as switching from one application program to another application program. The mobile terminal responds to the input operation of the user and refreshes the display screen of the terminal.
In the process of refreshing the display picture of the terminal, the traditional method is that the mobile terminal refreshes the display picture of the terminal according to the default display frame rate of the system after the application program finishes picture drawing, and finally displays the picture on the screen. The display frame rate of the picture switching method is fixed, different display frame rates correspond to different power consumption, the display frame rates required in different scenes are different, a lower display frame rate can cause that a scene picture can not be displayed, and if all scenes correspond to the same higher display frame rate, the problem of higher power consumption is easily caused.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for controlling a display frame rate based on a scene, and a mobile terminal frame rate that reduces power consumption.
A method for controlling a frame rate of a mobile terminal, the method comprising:
receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program;
when the application program is detected to call a preset feature control, a scene corresponding to the application program and a display frame rate corresponding to the scene are obtained;
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate.
In one embodiment, when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene includes:
when the application program is detected to call a preset feature control, acquiring the display size of the feature control, the attribute of the feature control and a preset white list;
and obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list.
In one embodiment, the scenes include a first type of scene and a second type of scene, and display frame rates corresponding to the first type of scene and the second type of scene are different;
the obtaining the scene corresponding to the application program and the display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list comprises:
inquiring whether the display frame rate corresponding to the application program belongs to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene according to the white list to obtain an inquiring result;
and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result.
In one embodiment, displaying the to-be-switched picture corresponding to the application program according to the picture switching request and the display frame rate includes:
determining a target application program according to the picture switching request;
setting the display frame rate corresponding to the application program to be displayed as the display frame rate corresponding to the scene;
and when receiving the picture drawing completion message corresponding to the target application program, displaying a picture to be switched corresponding to the target application program according to the set display frame rate.
In one embodiment, after displaying the frame to be switched corresponding to the target application according to the set display frame rate, the method further includes:
and when receiving the feedback message which is not displayed by the picture to be switched, delaying the preset time, and switching the display frame rate corresponding to the application program to be displayed so that the mobile terminal displays the picture to be switched according to the display frame rate after switching.
In one embodiment, the mobile terminal user interaction interface is provided with a scene switching frame rate control, and before displaying the to-be-switched picture corresponding to the application program according to the picture switching request and the display frame rate, the method further includes:
acquiring a display frame rate obtained by the application program based on a system frame rate switching native mechanism;
responding to the activation operation of the scene switching frame rate control, and determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene;
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate comprises the following steps:
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the target display frame rate.
In one embodiment, the determining the target display frame rate according to the display frame rate obtained by the system frame rate-based native mechanism and the display frame rate corresponding to the scene includes:
acquiring a preset frame rate influence factor priority;
and determining a target display frame rate according to the frame rate influencing factor priority, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene.
A control apparatus for a frame rate of a mobile terminal, the apparatus comprising:
the request receiving module is used for receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
the request response module is used for calling a control corresponding to the application program according to the picture switching request, and the control is used for drawing a picture to be switched corresponding to the application program;
the feature control detection module is used for obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene when the application program is detected to call a preset feature control;
and the picture display module is used for displaying pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program;
when the application program is detected to call a preset feature control, a scene corresponding to the application program and a display frame rate corresponding to the scene are obtained;
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program;
When the application program is detected to call a preset feature control, a scene corresponding to the application program and a display frame rate corresponding to the scene are obtained;
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate.
The control method, the device, the computer equipment and the storage medium of the mobile terminal frame rate are characterized in that the picture switching request is used for requesting to switch pictures in the application program by receiving the picture switching request; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; according to the picture switching request and the display frame rate, the pictures to be switched corresponding to the application program are displayed, so that the display frame rate corresponds to the scenes of the mobile terminal, namely, different display frame rates are corresponding to different scenes, but not the same higher display frame rate is corresponding to all the scenes, and the power consumption of the mobile terminal can be reduced.
Drawings
FIG. 1 is an application environment diagram of a method for controlling a frame rate of a mobile terminal in one embodiment;
FIG. 2 is a flow chart of a method for controlling a frame rate of a mobile terminal according to an embodiment;
FIG. 3 is a flow chart showing a frame rate acquisition step in one embodiment;
fig. 4 is a flowchart of a method for controlling a frame rate of a mobile terminal according to another embodiment;
FIG. 5 is a block diagram of a mobile terminal frame rate control device in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for controlling the frame rate of the mobile terminal provided by the application can be applied to an application environment shown in fig. 1. The application scenario includes a mobile terminal 102 and a server 104, where the mobile terminal 102 is connected to the server 104 through a network. The mobile terminal 102 initiates a picture switching request, and the server 104 receives the picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate. The mobile terminal 102 may be at least one of a mobile phone, a tablet computer, a notebook computer, etc. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
It should be noted that, the method for controlling the frame rate of the mobile terminal in the embodiment of the present application may also be performed by the terminal, where the terminal receives an externally input screen switching request, where the screen switching request is used to request to switch the screen in the application program; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate. Specifically, the method for controlling the frame rate of the mobile terminal in the embodiment of the application can be executed by the processor, and the terminal can receive the input picture switching request from other external terminals to execute the operation, so as to complete the display of the switching picture.
In one embodiment, as shown in fig. 2, a method for controlling a frame rate of a mobile terminal is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step 202, receiving a screen switching request, where the screen switching request is used to request switching of a screen in an application program.
The screen switching request refers to a screen in an application program for requesting to switch the mobile terminal, and may be that a user triggers a corresponding control to initiate a screen switching request on an interaction page of the mobile terminal, and a processor of the mobile terminal receives the screen switching request; or triggering a corresponding control to initiate a picture switching request on an interaction page of the mobile terminal by the user, and sending the picture switching request to a server when the mobile terminal detects the picture switching request. The screen switch request may be based on an application requesting a switch from one scene screen to another, such as from a user login page to a video viewing page; it is also possible to request a switch from one application page to another application page, e.g. from a certain video application to a certain game application, based on different applications.
And 204, calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program.
When the application program displays different scene pictures, different controls are required to be called, for example, when the game application program displays the scene pictures, controls such as a SurfaceView control, a textureView control, a native Activity control and the like are required to be called.
And 206, when the application program is detected to call the preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene.
The feature control refers to a control which is needed to be used by an application program in a certain scene and is not needed to be used in other scenes, and different scenes can be identified through the calling of the feature control. The display frame rate refers to a time interval when a display screen of the mobile terminal changes one frame of picture, and a corresponding relation table of a scene and the display frame rate is stored in advance, for example, the display frame rate of a game scene corresponding to 60Hz, the display frame rate of a video scene corresponding to 60Hz, the display frame rate of a web browsing scene corresponding to 90Hz, and the like. The screen hardware of the mobile terminal supports various display frame rates, such as specifically supporting 60Hz and 90Hz display frame rates, so that a user can be more smoothly experienced when the screen works at 90Hz, and the screen power consumption can be saved when the screen works at 60 Hz. In particular, since the game scene and the video scene are limited by the picture content, the film recording is generally 24 frames per second, so the display frame rate of the two scenes does not exceed 60Hz, if the screen works at the display frame rate of 90Hz or higher at this time, the fluency cannot be improved, and the screen works at 60Hz, but the power consumption can be saved; for a sliding application list or browsing scenes such as microblogs, the screen is not limited by the content of the picture, and the screen works at 90Hz at the moment, so that smoother experience can be brought to a user.
And step 208, displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
In the case where the screen switching request includes a plurality of requests, the screen switching requests may be sequentially processed based on feature information, such as time attribute information, carried in the screen switching request, and time-sequentially ordered.
According to the control method of the mobile terminal frame rate, the picture switching request is received, and the picture switching request is used for requesting to switch pictures in the application program; calling a control corresponding to the application program according to the picture switching request to generate a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; according to the picture switching request and the display frame rate, the pictures to be switched corresponding to the application program are displayed, so that the display frame rate corresponds to the scenes of the mobile terminal, namely, different display frame rates are corresponding to different scenes, but not the same higher display frame rate is corresponding to all the scenes, and the power consumption of the mobile terminal can be reduced.
In one embodiment, as shown in fig. 3, when detecting that the application program invokes the preset feature control, obtaining the scene corresponding to the application program and the display frame rate corresponding to the scene includes: step 302, when detecting that an application program calls a preset feature control, acquiring the display size of the feature control, the attribute of the feature control and a preset white list; and step 304, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list. Specifically, the scenes comprise a first type of scene and a second type of scene, and the display frame rates corresponding to the first type of scene and the second type of scene are different; according to the display size of the feature control, the attribute of the feature control and the white list, obtaining the scene corresponding to the application program and the display frame rate corresponding to the scene comprises the following steps: obtaining a query result according to the display frame rate corresponding to the white list query application program belonging to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene; and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result. More specifically, when the display size of the feature control is a preset size value, the attribute of the feature control comprises a preset label attribute, and the display frame rate corresponding to the application program is obtained according to the white list inquiry as the display frame rate corresponding to the preset first type of scene, the scene corresponding to the application program is obtained as the first type of scene and the display frame rate corresponding to the first type of scene; and when the display size of the feature control is smaller than the preset size value, the attribute of the feature control does not comprise the preset label attribute, and the display frame rate corresponding to the application program is obtained according to the white list inquiry as the display frame rate corresponding to the preset second type of scene, and the display frame rate corresponding to the application program is obtained as the second type of scene and the display frame rate corresponding to the second type of scene. The preset size value may be a screen size value of the mobile terminal, the first type of scene refers to a scene with the content of the picture limited by the recording frame rate, such as a game scene or a video scene, the display frame rate corresponding to the first type of scene may be 60Hz, the second type of scene refers to a scene with the content of the picture not limited, such as a web browsing scene, and the display frame rate corresponding to the second type of scene may be 90Hz.
The display size of the feature control refers to the corresponding picture size when the feature control is called to display on the screen. For example, in a video scene, the display size corresponding to a feature control called by an application program should be full screen, if the display size of the feature control declared in the application program is acquired to be less than half of the screen size in actual situations, it is determined that the video scene corresponding to the actual situations is not video scene, that is, the scene does not belong to a scene where the display frame rate needs to be set to 60 Hz. The attribute of the feature control refers to a specific label carried by the feature control when the feature control is called under different scenes. Different feature controls correspond to different attributes, and certain attributes of the same feature control in different scenes can be different, so that different scenes can be identified through the specific attributes. Such as the subtlayer attribute of the surfmeview control, which typically carries a media tag when games and video applications call the control, while other applications do not carry the tag when the control is called. A white list may be preconfigured whose contents include a list of applications operating at 60Hz and a list of applications operating at 90 Hz. Optionally, the whitelist may support online configuration by the user, modified as needed. The scene is identified through the invocation of the feature control, the problem of inaccurate scene identification can occur, such as a small-class application program and a *** browser invoking a surface view control when running, but the application programs do not belong to a game video-class application program, and the user experience is smoother when working at 90 Hz. On the basis of calling the preset feature control by the application program, scene confirmation is carried out through the display size of the feature control, the attribute of the feature control and the white list, so that the scene recognition rate can be improved.
In one embodiment, displaying a frame to be switched corresponding to an application program according to a frame switching request and a display frame rate includes: determining a target application program according to the picture switching request, and setting the display frame rate corresponding to the target application program as the display frame rate corresponding to the scene; and when receiving a picture drawing completion message corresponding to the target application program, displaying a picture to be switched corresponding to the target application program according to the set display frame rate. Taking a mobile phone with an operating system as an android system as an example of a mobile terminal, a screen working mode client-side Screen ModeClient and an application program run in the same process, when a certain application program calls a feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene, and sending the application program and the display frame rate corresponding to the application program under the scene to a screen working mode service Screen ModeService. In the system service, a record is established for each application program, and the corresponding display frame rate of the application program under the scene is recorded. The android native service windowmanager service firstly judges that a certain application program is displayed on the foreground, then obtains the display frame rate corresponding to the application program under the scene from the screen work mode service ScreenModeService, and sets the display frame rate corresponding to the application program to be displayed as the display frame rate corresponding to the scene. There is a delay between clicking the screen by the user to switch the application and completing the switching of the display on the screen, which inevitably results in an insufficient switching of the display frame rate, for example, switching from 60Hz to 90Hz may cause the picture to be switched to run at 60Hz, resulting in a picture card problem. And when the system judges that a certain application program is about to be tuned to the foreground for display, firstly inquiring the display frame rate corresponding to the scene obtained based on the application program picture switching request, and setting the display frame rate corresponding to the application program to be displayed as the display frame rate corresponding to the scene in advance. This application is then actually displayed on the screen, thereby increasing the switching speed.
In one embodiment, after displaying the to-be-switched picture corresponding to the target application program according to the set display frame rate, the method further includes: and when receiving a feedback message which is not displayed by the picture to be switched, delaying a preset duration, and switching the display frame rate corresponding to the target application program so that the mobile terminal displays the picture to be switched according to the display frame rate after switching. When a user clicks a screen, the system judges that a certain application program is to be tuned to a foreground for display, firstly inquires the display frame rate corresponding to a scene obtained based on the application program picture switching request, sets the display frame rate corresponding to the application program to be displayed as the display frame rate corresponding to the scene in advance, and keeps a preset duration, for example, keeps for 1 second. After 1 second, if the picture to be switched is not displayed on the terminal, switching the display frame rate corresponding to the application program to be displayed, so that the mobile terminal displays the picture to be switched according to the display frame rate after switching. For example, when the display frame rate set in advance is 60Hz, the screen is not displayed at the terminal, and the display frame rate is automatically switched to 90Hz after 1 second to display the screen.
In one embodiment, the mobile terminal user interaction interface is provided with a scene switching frame rate control, as shown in fig. 4, before displaying the to-be-switched picture corresponding to the application program according to the picture switching request and the display frame rate, the method further includes: step 404, obtaining a display frame rate obtained by the application program based on a system frame rate switching native mechanism; step 405, in response to the activation operation of the scene switching frame rate control, determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene; according to the picture switching request and the display frame rate, displaying the picture to be switched corresponding to the application program comprises: and step 406, displaying the picture to be switched corresponding to the application program according to the picture switching request and the target display frame rate. Specifically, according to the display frame rate obtained by switching the native mechanism based on the system frame rate and the display frame rate corresponding to the scene, determining the target display frame rate includes: acquiring a preset frame rate influence factor priority; and determining a target display frame rate according to the priority of the frame rate influencing factors, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene. The scheme in the embodiment can be compatible with a native mechanism of the mobile terminal, such as an android native system provides an interface through which the display frame rate of the application program can be set. And comprehensively considering influence factors such as the android native interface, the user setting, the white list, the feature control and the like by the screen ModeService, and obtaining a proper display frame rate according to the priority of each influence factor.
It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided a control device for a mobile terminal frame rate, the control device for a mobile terminal frame rate including: a request receiving module 502, a request responding module 504, a feature control detecting module 506 and a picture displaying module 508. The request receiving module is used for receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program. And the request response module is used for calling a control corresponding to the application program according to the picture switching request, and the control is used for drawing a picture to be switched corresponding to the application program. And the feature control detection module is used for obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene when the application program is detected to call the preset feature control. And the picture display module is used for displaying pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
In one embodiment, the feature control detection module is further configured to obtain a display size of the feature control, an attribute of the feature control, and a preset whitelist when detecting that the application program invokes the preset feature control; and obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list.
In one embodiment, the scenes comprise a first type of scene and a second type of scene, and the display frame rates corresponding to the first type of scene and the second type of scene are different; the feature control detection module is also used for inquiring whether the display frame rate corresponding to the application program belongs to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene according to the white list, so as to obtain an inquiring result; and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result.
In one embodiment, the screen display module is further configured to determine a target application according to the screen switching request, and set a display frame rate corresponding to the target application as a display frame rate corresponding to the scene; and when receiving a picture drawing completion message corresponding to the target application program, displaying a picture to be switched according to the set display frame rate.
In one embodiment, the control device of the frame rate of the mobile terminal further includes a switching module, configured to delay a preset duration when receiving a feedback message that the frame to be switched is not displayed, and switch the display frame rate corresponding to the target application program, so that the mobile terminal displays the frame to be switched according to the display frame rate after switching.
In one embodiment, the mobile terminal user interactive interface is provided with a scene switching frame rate control, and the control device of the mobile terminal frame rate further comprises a frame rate determining module, which is used for obtaining a display frame rate obtained by an application program based on a system frame rate switching native mechanism; responding to the activation operation of the scene switching frame rate control, and determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene; the picture display module is also used for displaying pictures to be switched corresponding to the application program according to the picture switching request and the target display frame rate.
In one embodiment, the frame rate determining module is further configured to obtain a preset priority of the frame rate influencing factor; and determining a target display frame rate according to the priority of the frame rate influencing factors, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene.
For specific limitations of the control apparatus for the mobile terminal frame rate, reference may be made to the above limitations of the control method for the mobile terminal frame rate, and no further description is given here. The above-mentioned various modules in the control device for the frame rate of the mobile terminal may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device, which may be a mobile terminal, is provided and fig. 6 provides an internal structural diagram of the mobile terminal. The mobile terminal includes a processor, a memory, and a display screen connected by a system bus. Wherein the processor is configured to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The method executed by the mobile terminal may be specifically implemented by a processor of the mobile terminal, that is, the computer program when executed by the processor implements a method for controlling a frame rate of the mobile terminal.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 6 is merely a block diagram of some of the architecture associated with the present inventive arrangements and is not limiting of the terminal to which the present inventive arrangements are applied, and that a particular mobile terminal may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
In one embodiment, the processor when executing the computer program further performs the steps of: when the application program is detected to call a preset feature control, the display size of the feature control, the attribute of the feature control and a preset white list are obtained; and obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list.
In one embodiment, the processor when executing the computer program further performs the steps of: the scenes comprise a first type of scenes and a second type of scenes, and the display frame rates corresponding to the first type of scenes and the second type of scenes are different; obtaining a query result according to the display frame rate corresponding to the white list query application program belonging to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene; and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result.
In one embodiment, the processor when executing the computer program further performs the steps of: determining a target application program according to the picture switching request, and setting the display frame rate corresponding to the target application program as the display frame rate corresponding to the scene; and when receiving a picture drawing completion message corresponding to the target application program, displaying a picture to be switched corresponding to the target application program according to the set display frame rate.
In one embodiment, the processor when executing the computer program further performs the steps of: and when receiving a feedback message which is not displayed by the picture to be switched, delaying a preset duration, and switching the display frame rate corresponding to the target application program so that the mobile terminal displays the picture to be switched according to the display frame rate after switching.
In one embodiment, the processor when executing the computer program further performs the steps of: the mobile terminal user interaction interface is provided with a scene switching frame rate control, and the display frame rate obtained by the application program based on a system frame rate switching native mechanism is obtained; responding to the activation operation of the scene switching frame rate control, and determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the target display frame rate.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a preset frame rate influence factor priority; and determining a target display frame rate according to the priority of the frame rate influencing factors, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor further performs the steps of: receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program; calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program; when the application program is detected to call a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the application program is detected to call a preset feature control, the display size of the feature control, the attribute of the feature control and a preset white list are obtained; and obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list.
In one embodiment, the computer program when executed by the processor further performs the steps of: the scenes comprise a first type of scenes and a second type of scenes, and the display frame rates corresponding to the first type of scenes and the second type of scenes are different; obtaining a query result according to the display frame rate corresponding to the white list query application program belonging to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene; and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a target application program according to the picture switching request, and setting the display frame rate corresponding to the target application program as the display frame rate corresponding to the scene; and when receiving a picture drawing completion message corresponding to the target application program, displaying a picture to be switched corresponding to the target application program according to the set display frame rate.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when receiving a feedback message which is not displayed by the picture to be switched, delaying a preset duration, and switching the display frame rate corresponding to the target application program so that the mobile terminal displays the picture to be switched according to the display frame rate after switching.
In one embodiment, the computer program when executed by the processor further performs the steps of: the mobile terminal user interaction interface is provided with a scene switching frame rate control, and the display frame rate obtained by the application program based on a system frame rate switching native mechanism is obtained; responding to the activation operation of the scene switching frame rate control, and determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene; and displaying the pictures to be switched corresponding to the application program according to the picture switching request and the target display frame rate.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a preset frame rate influence factor priority; and determining a target display frame rate according to the priority of the frame rate influencing factors, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for controlling a frame rate of a mobile terminal, the method comprising:
receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
calling a control corresponding to the application program according to the picture switching request, wherein the control is used for drawing a picture to be switched corresponding to the application program;
when detecting that the application program calls a preset feature control, obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene, wherein the method comprises the following steps: when the application program is detected to call a preset feature control, acquiring the display size of the feature control, the attribute of the feature control and a preset white list; obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list;
And displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate.
2. The method of claim 1, wherein the scenes comprise a first type of scene and a second type of scene, and wherein the first type of scene and the second type of scene have different display frame rates;
the obtaining the scene corresponding to the application program and the display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list comprises:
inquiring whether the display frame rate corresponding to the application program belongs to the display frame rate corresponding to the first type of scene or the display frame rate corresponding to the second type of scene according to the white list to obtain an inquiring result;
and determining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the query result.
3. The method according to claim 1, wherein displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate comprises:
when the picture switching request comprises a plurality of requests, the picture switching requests are ordered according to time sequence based on the characteristic information carried in the picture switching requests, and the picture switching requests are processed sequentially.
4. The method of claim 1, wherein displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate comprises:
determining a target application program according to the picture switching request;
setting the display frame rate corresponding to the target application program as the display frame rate corresponding to the scene;
and when receiving the picture drawing completion message corresponding to the target application program, displaying a picture to be switched corresponding to the target application program according to the set display frame rate.
5. The method of claim 4, wherein after displaying the frame to be switched corresponding to the target application according to the set display frame rate, further comprises:
and when receiving the feedback message which is not displayed by the picture to be switched, delaying the preset time, and switching the display frame rate corresponding to the target application program so that the mobile terminal displays the picture to be switched according to the display frame rate after switching.
6. The method according to claim 1, wherein the mobile terminal user interaction interface is provided with a scene switching frame rate control, and before displaying the to-be-switched picture corresponding to the application program according to the picture switching request and the display frame rate, the method further comprises:
Acquiring a display frame rate obtained by the application program based on a system frame rate switching native mechanism;
responding to the activation operation of the scene switching frame rate control, and determining a target display frame rate according to the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene;
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the display frame rate comprises the following steps:
and displaying the picture to be switched corresponding to the application program according to the picture switching request and the target display frame rate.
7. The method of claim 6, wherein determining the target display frame rate according to the display frame rate obtained by the system frame rate based native mechanism and the display frame rate corresponding to the scene comprises:
acquiring a preset frame rate influence factor priority;
and determining a target display frame rate according to the frame rate influencing factor priority, the display frame rate obtained based on the system frame rate switching native mechanism and the display frame rate corresponding to the scene.
8. A control apparatus for a frame rate of a mobile terminal, the apparatus comprising:
The request receiving module is used for receiving a picture switching request, wherein the picture switching request is used for requesting to switch pictures in an application program;
the request response module is used for calling a control corresponding to the application program according to the picture switching request, and the control is used for drawing a picture to be switched corresponding to the application program;
the feature control detection module is used for obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene when the application program is detected to call a preset feature control, and comprises the following steps: when the application program is detected to call a preset feature control, acquiring the display size of the feature control, the attribute of the feature control and a preset white list; obtaining a scene corresponding to the application program and a display frame rate corresponding to the scene according to the display size of the feature control, the attribute of the feature control and the white list;
and the picture display module is used for displaying pictures to be switched corresponding to the application program according to the picture switching request and the display frame rate.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
CN201911366921.9A 2019-12-26 2019-12-26 Mobile terminal frame rate control method, device, computer equipment and storage medium Active CN113126741B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911366921.9A CN113126741B (en) 2019-12-26 2019-12-26 Mobile terminal frame rate control method, device, computer equipment and storage medium
PCT/CN2020/135714 WO2021129416A1 (en) 2019-12-26 2020-12-11 Method and apparatus for controlling frame rate of mobile terminal, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911366921.9A CN113126741B (en) 2019-12-26 2019-12-26 Mobile terminal frame rate control method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113126741A CN113126741A (en) 2021-07-16
CN113126741B true CN113126741B (en) 2023-12-05

Family

ID=76573722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911366921.9A Active CN113126741B (en) 2019-12-26 2019-12-26 Mobile terminal frame rate control method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113126741B (en)
WO (1) WO2021129416A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655880A (en) * 2021-08-03 2021-11-16 Oppo广东移动通信有限公司 Interface rendering method and device, terminal equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102592555A (en) * 2012-02-03 2012-07-18 福州瑞芯微电子有限公司 Regulating circuit and regulating method capable of reducing power consumption of screen
CN105760094A (en) * 2014-12-18 2016-07-13 华为终端(东莞)有限公司 Frame rate controlling method and device and terminal
CN106816134A (en) * 2017-01-24 2017-06-09 广东欧珀移动通信有限公司 Display frame rate method of adjustment, device and terminal device
CN106919358A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display control method of mobile terminal, 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
CN109189543A (en) * 2018-10-16 2019-01-11 Oppo广东移动通信有限公司 terminal control method, device, storage medium and intelligent terminal
CN109413480A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Picture processing method, device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5030261B2 (en) * 2005-11-16 2012-09-19 キヤノン株式会社 VIDEO DISTRIBUTION DEVICE, VIEWER DEVICE, VIDEO DISTRIBUTION DEVICE CONTROL METHOD, VIEWER DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
CN108243349A (en) * 2016-12-26 2018-07-03 中科创达软件股份有限公司 A kind of information processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102592555A (en) * 2012-02-03 2012-07-18 福州瑞芯微电子有限公司 Regulating circuit and regulating method capable of reducing power consumption of screen
CN105760094A (en) * 2014-12-18 2016-07-13 华为终端(东莞)有限公司 Frame rate controlling method and device and terminal
CN106816134A (en) * 2017-01-24 2017-06-09 广东欧珀移动通信有限公司 Display frame rate method of adjustment, device and terminal device
CN106919358A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display control method of mobile terminal, 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
CN109413480A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Picture processing method, device, terminal and storage medium
CN109189543A (en) * 2018-10-16 2019-01-11 Oppo广东移动通信有限公司 terminal control method, device, storage medium and intelligent terminal

Also Published As

Publication number Publication date
WO2021129416A1 (en) 2021-07-01
CN113126741A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN106874328B (en) Data processing method and equipment
US11615443B2 (en) System and method to selectively update supplemental content rendered in placement regions of a rendered page
CN110659092B (en) Webpage screenshot method and device, computer equipment and storage medium
US10860280B2 (en) Display method and device
CN112579948B (en) Webpage screenshot method and device, storage medium and electronic equipment
CN113452579B (en) H5 page loading method and device, computer equipment and storage medium
CN112532896A (en) Video production method, video production device, electronic device and storage medium
CN106775983A (en) A kind of application scenarios changing method, system and mobile terminal
CN113126741B (en) Mobile terminal frame rate control method, device, computer equipment and storage medium
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
CN114501126B (en) Video playing method, system and storage medium
CN111309411B (en) Schedule display method and device
CN113992784B (en) Audio and video call method, device, computer equipment and storage medium
CN110941464A (en) Light exposure method, device, system and storage medium
CN107621903B (en) Double-touch-screen equipment and response control method thereof
CN110865857A (en) Screenshot method and device
CN110930496B (en) View drawing method and device, electronic equipment and storage medium
CN115361589B (en) Page display method and device, electronic equipment and storage medium
CN112203156B (en) Content ecological preloading method, system, equipment and medium
CN113268279B (en) Data processing method and device
CN104780188A (en) Information sharing method, information sharing device and information sharing system
CN112463280B (en) Image generation method, device, electronic equipment and computer readable storage medium
CN114911563B (en) Data processing method, device, equipment and medium of interface exposure content
CN113946392A (en) Object description information processing method and device, electronic equipment and storage medium
CN115766822A (en) Screen capture method and device, screen capture system, user equipment and cloud server

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