CN109189543A - terminal control method, device, storage medium and intelligent terminal - Google Patents
terminal control method, device, storage medium and intelligent terminal Download PDFInfo
- Publication number
- CN109189543A CN109189543A CN201811201760.3A CN201811201760A CN109189543A CN 109189543 A CN109189543 A CN 109189543A CN 201811201760 A CN201811201760 A CN 201811201760A CN 109189543 A CN109189543 A CN 109189543A
- Authority
- CN
- China
- Prior art keywords
- frame rate
- target
- target frame
- valid interval
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72427—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
Abstract
The embodiment of the present application discloses a kind of terminal control method, device, storage medium and intelligent terminal.This method includes obtaining target frame rate valid interval, determines target frame rate based on the target frame rate valid interval, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;According to the historical system resource configuration information in previous sampling period, adjusting information corresponding with the target frame rate is determined;According to the system resource configuration in the adjusting information adjustment current sample period, realization is drawn based on frame picture of the target frame rate to target application.By adopting the above technical scheme, by setting target frame rate valid interval to and the consistent mode of frame per second pattern information, realize that the target frame rate under same mode can immobilize, the situation that frame per second is unstable when target application being avoided to run occurs, and improves the fluency of target application at runtime.
Description
Technical field
The invention relates to field of terminal technology more particularly to a kind of terminal control method, device, storage mediums
And intelligent terminal.
Background technique
With the development of technology, intelligent terminal is all greatly improved in processing capacity and function, becomes people
The necessity of life, work and amusement.In the intelligent terminal for being equipped with operating system, intelligent terminal is by constantly refreshing
Picture is shown the various display pictures under different moments are presented.
It mainly include pattern drafting operation, picture synthetic operation in the display refresh flow in the intelligent terminals such as mobile phone
And display operation.By taking the application such as game or video as an example, based on synchronous (Vsync) flush mechanism, system executes drawing
(Render) it operates, to draw respective image respectively;After Render operation is completed in all applications, system executes synthesis
(Compose) it operates, the drawn image of each application is synthesized into a display frame;Then, display frame is output to screen
It is upper finally to be shown.However, that there are frame rate of game is unstable, causes picture is slack to lack for the control program of the relevant technologies
It falls into.
Summary of the invention
The embodiment of the present application provides a kind of terminal control method, device, storage medium and intelligent terminal, can optimize end
Control program is held, the fluency of target application at runtime is improved.
In a first aspect, the embodiment of the present application provides a kind of terminal control method, comprising:
Target frame rate valid interval is obtained, target frame rate is determined based on the target frame rate valid interval, wherein described
Target frame rate valid interval is consistent with the frame per second pattern information of target application;
According to the historical system resource configuration information in previous sampling period, adjusting corresponding with the target frame rate is determined
Information;
According to the system resource configuration in the adjusting information adjustment current sample period, realizes and be based on the target frame
Rate draws the frame picture of target application.
Second aspect, the embodiment of the present application also provides a kind of terminal control mechanism, which includes:
Frame per second determining module determines mesh based on the target frame rate valid interval for obtaining target frame rate valid interval
Mark frame per second, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;
Information determination module is adjusted, for the historical system resource configuration information according to the previous sampling period, determining and institute
State the corresponding adjusting information of target frame rate;
Configuration adjustment module, it is real for being configured according to the system resource in the adjusting information adjustment current sample period
Now drawn based on frame picture of the target frame rate to target application.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the terminal control method as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of intelligent terminal, including memory, processor and are stored in
On reservoir and such as this Shen can be realized when the computer program of processor operation, the processor execute the computer program
It please terminal control method described in embodiment.
The embodiment of the present application provides a kind of terminal control scheme, obtains target frame rate valid interval, is based on the target frame rate
Valid interval determines target frame rate, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;Root
According to the historical system resource configuration information in a preceding sampling period, adjusting information corresponding with the target frame rate is determined;According to this
The system resource configuration in information adjustment current sample period is adjusted, realizes and is drawn based on frame of the target frame rate to target application
It is drawn in face.By adopting the above technical scheme, by setting consistent with frame per second pattern information for target frame rate valid interval
Mode realizes that the target frame rate under same mode can immobilize, frame per second unstable situation when target application being avoided to run
Occur, improves the fluency of target application at runtime.
Detailed description of the invention
Fig. 1 is the structural block diagram for chasing after frame model for being used for mobile terminal in the related technology;
Fig. 2 is a kind of flow chart of terminal control method provided by the embodiments of the present application;
Fig. 3 is a kind of structural block diagram for chasing after frame model provided by the embodiments of the present application;
Fig. 4 a is a kind of display process schematic provided in an embodiment of the present invention;
Fig. 4 b is the schematic diagram that Vsync provided in an embodiment of the present invention shows flush mechanism;
Fig. 5 is the flow chart of another terminal control method provided by the embodiments of the present application;
Fig. 6 is a kind of structural block diagram of terminal control mechanism provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of intelligent terminal provided by the embodiments of the present application;
Fig. 8 is a kind of structural block diagram of smart phone provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the application, rather than the restriction to the application.It also should be noted that in order to
Convenient for description, part relevant to the application is illustrated only rather than entire infrastructure in attached drawing.
It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
At the processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, therein to be permitted
Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.As its behaviour
The processing can be terminated when completing, it is also possible to have the additional step being not included in attached drawing.The processing can
To correspond to method, function, regulation, subroutine, subprogram etc..
It should be noted that handling FPS (display frame number per second) drawing by chasing after frame model in android system
Efficiency, realize user experience and scene of game in provide stablizes reachable highest frame per second.This chases after frame model and can wrap
Include frame rate stable device and frame budget adjuster.
In order to make it easy to understand, chasing after the workflow of frame model below based on frame rate stable device and frame budget adjuster introduction.
Fig. 1 is the structural block diagram for chasing after frame model for being used for mobile terminal in the related technology.In the related technology, frame rate stable device obtains
The relevant important information of frame per second --- the output frame rate in the previous sampling period of such as analysis of CPU, GPU ability and record,
Target frame rate is determined with reference to above-mentioned important information, and the target frame rate is transmitted to frame budget adjuster.The frame budget adjuster is received
The target frame rate transmitted to frame rate stable device, system energy needed for estimating target frame rate using historical system resource configuration information
The corresponding adjusting information of power, output are adjusted to CPU and/or GPU.As shown in Figure 1, frame rate stable device 110 receives a series of system
System prompt (output frame rate and target frame rate including the previous sampling period, and, the energy such as CPU, the GPU in previous sampling period
Power) target frame rate determined based on above-mentioned parameter, and target frame rate is transmitted to frame budget adjuster 120.Frame budget adjuster 120
Target frame rate is received, system capability needed for estimating processing present frame using historical system resource configuration information generates and adjusts letter
Breath will adjust information and export to CPU and/or GPU.
It should be noted that the CPU ability of above-mentioned record, GPU ability or system capability can refer to frequency, that is, chasing after frame
System capability refers exclusively to frequency in scene.If CPU ability refers to cpu frequency, GPU ability refers to GPU frequency.Also, it is above-mentioned
Target frame rate belongs to valid interval.One is adjusted out in the valid interval that frame rate stable device i.e. in the related technology is defaulted at one
A target frame rate, the valid interval be it is fixed, cannot regulate and control.By taking game application as an example, due to the actual frame of every kind of game
Rate mode is different, for example, stimulation battlefield have " low ", " in " and "high" etc. several " frame number settings ".In order to adapt to different frame per second
Mode, frame rate stable device are often write wider valid interval, and such as 26~60.Although setting is adapted to big portion in this way
The scene of game divided, but since the range of valid interval is wider, may cause frame rate of game and fluctuate in a certain range,
Frame rate of game cannot be fixed, is jumped so as to cause picture, influences to show quality.
Terminal control method provided by the embodiments of the present application can effectively improve frame rate stable device in the related technology,
Realize the controllable frame rate stable device scheme of target frame rate valid interval, frame per second unstable situation when target application being avoided to run
Occur, improves the fluency of target application at runtime.
Fig. 2 is a kind of flow chart of terminal control method provided by the embodiments of the present application, and this method can be by terminal control
Device executes, wherein the device can be implemented by software and/or hardware, can generally integrate in the terminal.As shown in Fig. 2, should
Method includes:
Step 210 obtains target frame rate valid interval, determines target frame rate based on the target frame rate valid interval.
It should be noted that the terminal in the embodiment of the present application may include mobile phone, tablet computer, laptop, calculating
The equipment that the settings such as machine, handheld device and intelligent appliance are equipped with operating system.To operating system in the embodiment of the present application
Type without limitation, such as may include Android (Android) operating system, window (Windows) operating system and apple
(ios) operating system etc..
In the embodiment of the present application, target frame rate valid interval is consistent with the frame per second pattern information of target application.Target frame rate
Valid interval can be determined based on the frame per second pattern information of frame per second mode.Wherein, frame per second mode is the target application of user setting
Frame per second situation.It is selected as target application provides three gear frame per second for user, highest one grade of frame per second is the first frame per second mode, frame
Rate minimum one grade is third frame per second mode, and remaining one grade is the second frame per second mode.Can respectively by the first frame per second mode,
Second frame per second mode and the corresponding frame number of third frame per second mode are as frame per second pattern information.
Illustratively, determine that target frame rate valid interval can be according to the frame per second mode based on frame per second pattern information
The upper limit value and lower limit value of target frame rate valid interval is arranged in information, and the upper limit value and lower limit value is made to be equal to the frame per second
The corresponding frame number of pattern information, to obtain and the consistent target frame rate valid interval of frame per second mode, i.e. target frame rate effective district
Between be not fixed and invariable, but the corresponding change with the difference of the frame per second mode of game can satisfy different game
Individual demand.
Determine that target frame rate can be the upper limit based on target frame rate valid interval based on the target frame rate valid interval
Value or lower limit value determine target frame rate, thus, it is fixed the value of target frame rate, avoids target application operation time frame
The unstable situation of rate occurs.By taking game as an example, different game may provide different frame per second modes, for any game
Arbitrary frame-rate mode, the upper limit value of target frame rate valid interval are equal to lower limit value, then by the upper limit of target frame rate valid interval
Value or lower limit value are as target frame rate, it can be ensured that for the same frame per second mode of same game, target frame rate is to fix not
Become.
Step 220, the historical system resource configuration information according to the previous sampling period, the determining and target frame rate pair
The adjusting information answered.
Illustratively, frame rate stable device periodically determines target frame rate and exports to frame budget adjuster.Frame budget tune
System capability needed for section device determination reaches target frame rate.Frame budget adjuster is provided according to the legacy system in previous sampling period
Source configuration information estimates system resource configuring condition corresponding with the target frame rate of current sample period, believes as adjusting
Breath.
Fig. 3 is a kind of structural block diagram for chasing after frame model provided by the embodiments of the present application.As shown in figure 3, being opened in every innings of game
Before beginning, third party's game application 310 can issue frame per second mode set by user to background service 320.Background service 320 is based on
The frame per second mode determines target frame rate valid interval, and exports target frame rate valid interval to frame rate stable device 330.Frame per second is steady
Determine device 330 and receives target frame rate valid interval to reset the valid interval of itself storage.Then, frame rate stable device 330 is according to mesh
Mark frame per second valid interval determines target frame rate, and target frame rate is exported to frame budget adjuster 340.Frame budget adjuster 340
The target frame rate of the frame stabilizer 330 of previous stage is obtained, and obtains the historical system resource configuration information in previous sampling period.
Frame budget adjuster 340 includes that interframe accelerates to accelerate mould group in mould group and frame, respectively to realize the demand about frame length
And the limitation of system capability.Interframe accelerates in mould group, by the floor and day of following three different phases decision systems ability
The parameters such as card.Firstly, the system capability that interframe accelerates the load of mould group record former frame and uses.It is assumed that present frame with
Former frame has similar load, the load of prediction is obtained preliminary floor divided by the frame length obtained by target frame rate, this is preliminarily
Plate is the minimum system capability in interframe acceleration mould group.The load of frame herein is meant that the corresponding frame data of the frame.Target frame
The frame length of rate can be the size of the frame data of target frame rate.It is understood that the data between frame and frame can't be complete
Identical, then there is no stablize constant load.Therefore, it is necessary to accelerate to increase between a set of processing frame and frame in mould group in interframe
The mechanism of variation obtains final floor to the difference for increasing additional acceleration to make up between frame and frame.The processing frame with
The mechanism to make a variation between frame can be recorded the variation between frame and frame with load difference ratio between each frame.Once this is negative
Carrying difference ratio is more than given threshold, then marking the frame is the frame of mutation.It can be examined using continuous 20 frame as sample space
Examine the variation frame in continuous 20 frame with the presence or absence of load difference ratio more than above-mentioned preset threshold.Make a variation frame if it does not exist, then will
Preliminary floor is determined as final floor.Make a variation frame if it exists, then carries out ascending order arrangement to the load difference ratio of continuous 20 frame,
The record of 20 sort ascendings is obtained, further takes out nth record as floor variation value.Wherein, n is any in 0 to 20
Value can be system default setting, can also be by user's self-setting.Calculate preliminary floor and floor variation value and, obtain
Final floor.It is understood that final floor represents the minimum system capability that interframe accelerates mould group to obtain.Ceiling represents
The highest system capability that interframe accelerates mould group to obtain, can obtain in such a way that final floor is multiplied by preset space proportion.
In addition, acceleration model can provide additional acceleration with chasing after frame floor and chasing after frame ceiling in frame.It is understood that can adopt
It is determined with method in the related technology and chases after frame floor and chase after frame ceiling, the application is simultaneously not especially limited.
Illustratively, frame budget adjuster is determined final based on the historical system resource configuration information in previous sampling period
Floor and ceiling, and the corresponding adjusting information of target frame rate is generated based on final floor and ceiling.Wherein, final floor
And ceiling can determine system capability needed for realizing target frame rate, such as the CPU frequency or GPU frequency that need.
Step 230 is configured according to the system resource in the adjusting information adjustment current sample period, is realized and is based on institute
Target frame rate is stated to draw the frame picture of target application.
It should be noted that system resource configuration can be system capability needed for drawing a width frame picture, including but not
It is limited to cpu frequency and GPU frequency.
Target frame rate is referred to as the frame per second of Surface Flinger (figure layer synthesis module).
Illustratively, adjusting information adjustment processor and/or figure that background server is exported according to frame budget adjuster
Frequency of the processor in current sample period, to be drawn based on frame picture of the target frame rate to target application.
In order to make it easy to understand, below by taking android system as an example, it is aobvious from being generated to picture is shown in android system
The process shown carries out simple illustration.Fig. 4 a is a kind of display process schematic provided in an embodiment of the present invention.
Firstly, applying (Application) layer, each application program (hereinafter referred to as apply or APP) comprising 1 or
Multiple figure layers, each application APP1, APP2 ... APPN is according to the application design conditions of oneself (generally by corresponding installation kit APK
Determine) figure layer drafting (Render) operation (image i.e. in drafting figure layer) is respectively individually performed, and it is complete drawing operation processing
The All Layers drawn are sent to the figure layer synthesis module (Surface for executing figure layer synthetic operation by Cheng Hou, each application
Flinger)。
Then, in application framework (Framework) layer, All Layers (including visible layer and invisible figure layer) composition
One the layers list, is defined as ListAll.Figure layer synthesis module picks out visible layer composition visible layer from ListAll
List is defined as DisplayList.Then, figure layer synthesis module three frame buffers that can be recycled from system
In (Frame Buffer, abbreviation BF or buffer), an idle FB is found out, and on the FB of the free time, is matched according to application
Confidence breath, such as which figure layer should bottom set, which figure layer should top set, which region is visual field and which region is
Clear area etc. is operated by synthesis (Compose), together by the map overlay for including in DisplayList, is obtained most
Whole picture to be shown.
Finally, in kernel (Kernel) layer, picture transmission to be shown can be given to viewing hardware (including display controller
And display screen, it is eventually displayed in picture to be shown on display screen.It here without limitation to the type of display screen, such as can be with
It is liquid crystal display (Liquid Crystal Display, LCD).
In addition, android system introduces synchronous (Vsync) flush mechanism during showing refreshing.Fig. 4 b is this
The Vsync that inventive embodiments provide shows the schematic diagram of flush mechanism.Specifically, Vsync flush mechanism is exactly entire in fact
In flow for displaying, synchronous (Vsync) signal of insertion " heartbeat " i.e. system is sent to CPU by display controller, for generating
Vsync is interrupted, and requires to complete according to heartbeat to control each figure layer drafting operation and figure layer synthetic operation, thus by whole
Committed step during a display all brings the unified management mechanism of Vsync into.The frequency of Vsync signal is common at present to be
60Hz.Assuming that the Vsync signal period is T, the transmission delay of signal is not considered, and first Vsync signal Vsync1 reaches CPU
Afterwards, CPU forwards first Vsync signal Vsync1 to each application, the touch sliding of each application response user on a display screen
Deng operation, starts to execute and draw operation;After each application is completed to draw operation, each multiple figure layers applied and drawn are obtained.The
After two Vsync signal Vsync2 reach CPU, CPU forwards second Vsync signal Vsync2 to figure layer synthesis module, figure
Layer synthesis module starts to execute figure layer synthetic operation, applies the multiple figure layers drawn to synthesize for each, generates picture to be shown
Face.After third Vsync signal Vsync3 reaches CPU, system starts to execute display refreshing, and the picture to be shown is final
Display is on a display screen.Seen from the above description, the Vsync letter that application program, figure layer synthesis module and display screen receive
Number frequency be consistent, and be the fixed value pre-set.
The technical solution of the present embodiment, it is true based on the target frame rate valid interval by obtaining target frame rate valid interval
Set the goal frame per second, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;It is once adopted according to preceding
The historical system resource configuration information in sample period determines adjusting information corresponding with the target frame rate;According to the adjusting information tune
System resource configuration in whole current sample period, realization are drawn based on frame picture of the target frame rate to target application.
By adopting the above technical scheme, it by setting consistent with frame per second pattern information for target frame rate valid interval, realizes in same mould
Target frame rate is fixed under formula, and the situation that frame per second is unstable when target application being avoided to run occurs, and is improved target application and is being transported
Fluency when row.
In some instances, before obtaining target frame rate valid interval, further includes: obtain the corresponding field of target application
Scape mark;When the scene identity is preset opening identification, the frame per second pattern information of the target application is obtained, wherein
Frame per second pattern information includes frame number;Target frame rate valid interval is adjusted according to the frame per second pattern information.The benefit designed in this way
It is that can realize that target frame rate valid interval is controllable according to frame per second mode adjustment target frame rate valid interval, meet different target
The individual demand of application, can to avoid because valid interval write it is dead due to cause target application to run when frame per second it is unstable, in turn
The problem of influencing picture fluency, occurs.
It should be noted that target application is opened or terminate can be to the background service (after being referred to as of operating system
Platform performance power consumption services) send corresponding scene identity.Target application can be the application journey that terminal is currently up and runs
Sequence.It is understood that the target application can be mounted to any application in the terminal.For example, target application can be
The third party's game application installed in terminal, third party's game access background service after, game start or at the end of, can
Issue corresponding scene ID.Wherein, scene ID is intended to indicate that game starts or the unique identification of game over, can be number
Word is also possible to the characters such as the combination of letter and number.Game application, which is turned on, is moved to end corresponding different field with game application
Scape ID corresponds to different characters.
Background service can be manufacturer terminal and be preset in for optimizing performance/power consumption backstage finger daemon in terminal, can
To be Daemon program etc..Daemon () program is the serve end program run always, also known as finger daemon.Usually it is being
System running background is not interacted without controlling terminal with foreground, and Daemon program is used generally as system service.
In other examples, after being drawn based on frame picture of the target frame rate to target application, also wrap
Include: if detecting, the corresponding scene identity of the target application is preset end of identification, by the valid interval of target frame rate
It is adjusted to default valid interval, wherein the valid interval includes target frame rate valid interval and default valid interval, and mesh
Mark frame per second valid interval is the subset for defaulting valid interval.If default valid interval is [26,60] under normal conditions, for frame
The high frame per second mode that number is 50, target frame rate valid interval can be [50,50], it is known that, target frame rate valid interval is default
The subset of valid interval.Designing in this way is advantageous in that during target application operation, according to target frame rate valid interval
It determines target frame rate, after target application, target frame rate is determined based on default valid interval, it can be other to avoid running
Using when occur frame per second mismatch and influence display quality the case where, make display it is more smooth.
Fig. 5 is the flow chart of another terminal control method provided by the embodiments of the present application, as shown in figure 5, this method packet
It includes:
Step 510 obtains the corresponding scene identity of target application.
It should be noted that scene identity, i.e. scene ID, for indicating that game starts or the unique identification of game over.
Target application can be the application program of system default, and such as certain game applications (can be by dividing history using data
Analysis determines), it can also be the application program that user voluntarily selects according to actual needs.Such as, user is in installation third-party application
When, it is target application by the application program mark, target application can be stored by white list.
Illustratively, when detecting target application operation, background server (such as finger daemon) obtains the target application
The scene identity issued.
Step 520, when the scene identity is preset opening identification, obtain the frame per second mode of the target application
Information.
By taking game application as an example, it is understood that there may be different frame per second modes.Such as to high frame per second mode, middle frame per second mode,
The game application of low frame per second mode, under high frame per second mode, the game application operational efficiency highest, picture shows most smooth.Low frame
Under rate mode, the game application operational efficiency is minimum, and picture shows that least smoothness, Caton are obvious.
Wherein, frame per second pattern information includes frame number, can refer to the frame number using operation per second.
Step 530 adjusts target frame rate valid interval according to the frame per second pattern information.
Illustratively, the upper limit value and lower limit value of target frame rate valid interval are set according to the frame per second pattern information, make this
Upper limit value and lower limit value are equal to the corresponding frame number of frame per second pattern information.
Assuming that the frame per second mode of the game application of user setting is high frame per second mode, frame number 50, then target frame rate has
The upper limit value and lower limit value for imitating section are 50, can be denoted as [50,50].
Step 540 determines target frame rate based on the target frame rate valid interval.
Illustratively, frame rate stable device obtains the upper limit or lower limit of target frame rate valid interval, by the upper limit value or
Lower limit value is exported as target frame rate, and by the target frame rate to frame budget adjuster.
Step 550, the historical system resource configuration information for obtaining the previous sampling period.
Illustratively, frame budget adjuster obtained the historical system resource configuration information in an adjacent upper sampling period,
The historical system resource configuration information is corresponding with the adjacent output frame rate in a upper sampling period.
Step 560, according to the historical system resource configuration information, predict the target frame rate in current sample period
Corresponding system resource configuration needs, using the system resource configuration needs as adjusting information.
Step 570 adjusts processor and/or graphics processor in current sample period according to the adjusting information
Frequency, to be drawn based on frame picture of the target frame rate to target application.
If step 580 detects that the corresponding scene identity of the target application is preset end of identification, by target
The valid interval of frame per second is adjusted to default valid interval.
It should be noted that the valid interval of target frame rate includes target frame rate valid interval and defaults valid interval, and
Target frame rate valid interval is the subset for defaulting valid interval.
The technical solution of the present embodiment, it is real by the frame per second mode adjustment target frame rate valid interval based on target application
Now the target frame rate valid interval is controllable, and is consistent with frame per second mode, can be when target application is run according to frame per second mould
System frame per second is fixed on different expectation frame per second by formula, and the unstable situation of frame per second can be effectively avoided and occur.
Fig. 6 be a kind of structural block diagram of terminal control mechanism provided by the embodiments of the present application, the device can by software and/
Or hardware realization, be typically integrated in intelligent terminal, can by execute terminal control method be different target applications provide and
The corresponding expectation frame per second of its frame per second mode.As shown in fig. 6, the device includes:
Frame per second determining module 610, it is true based on the target frame rate valid interval for obtaining target frame rate valid interval
Set the goal frame per second, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;
Information determination module 620 is adjusted, for the historical system resource configuration information according to the previous sampling period, is determined
Adjusting information corresponding with the target frame rate;
Configuration adjustment module 630, for being matched according to the system resource in the adjusting information adjustment current sample period
It sets, realization is drawn based on frame picture of the target frame rate to target application.
The embodiment of the present application provides a kind of terminal control mechanism, by obtaining target frame rate valid interval, is based on the target
Frame per second valid interval determines target frame rate, wherein the frame per second pattern information one of the target frame rate valid interval and target application
It causes;According to the historical system resource configuration information in a preceding sampling period, adjusting information corresponding with the target frame rate is determined;
The system resource configuration in current sample period is adjusted according to the adjusting information, is realized based on the target frame rate to target application
Frame picture drawn.By adopting the above technical scheme, by setting target frame rate valid interval to and frame per second pattern information
Consistent mode realizes that the target frame rate under same mode can immobilize, and frame per second is unstable when target application being avoided to run
The case where occur, improve target application fluency at runtime.
Optionally, further includes:
Identifier acquisition module, for before obtaining target frame rate valid interval, obtaining the corresponding scene mark of target application
Know;
When pattern information obtains module, for the scene identity is preset opening identification, obtains the target and answer
Frame per second pattern information, wherein frame per second pattern information includes frame number;
Section adjusts module, for adjusting target frame rate valid interval according to the frame per second pattern information.
Optionally, adjustment module in section is specifically used for:
The upper limit value and lower limit value of target frame rate valid interval are set according to the frame per second pattern information, make the upper limit
Value and lower limit value are equal to the corresponding frame number of the frame per second pattern information.
Optionally, frame per second determining module 610 is specifically used for:
The upper limit or lower limit for obtaining target frame rate valid interval, using the upper limit or lower limit as target frame
Rate.
Optionally, information determination module 620 is adjusted to be specifically used for:
Obtain the historical system resource configuration information in previous sampling period;
According to the historical system resource configuration information, the corresponding system of the target frame rate in current sample period is predicted
System resource distribution demand, using the system resource configuration needs as adjusting information.
Optionally, configuration adjustment module 630 is specifically used for:
According to the frequency of adjusting information the adjustment processor and/or graphics processor in current sample period, with base
It is drawn in frame picture of the target frame rate to target application.
Optionally, further includes:
Section switching module, for after being drawn based on frame picture of the target frame rate to target application, if
It detects that the corresponding scene identity of the target application is preset end of identification, then adjusts the valid interval of target frame rate
To default valid interval, wherein the valid interval includes target frame rate valid interval and default valid interval, and target frame
Rate valid interval is the subset for defaulting valid interval.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction is used to execute terminal control method when being executed by computer processor, this method comprises:
Target frame rate valid interval is obtained, target frame rate is determined based on the target frame rate valid interval, wherein described
Target frame rate valid interval is consistent with the frame per second pattern information of target application;
According to the historical system resource configuration information in previous sampling period, adjusting corresponding with the target frame rate is determined
Information;
According to the system resource configuration in the adjusting information adjustment current sample period, realizes and be based on the target frame
Rate draws the frame picture of target application.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to
It include: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, it is all
Such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic are situated between
Matter (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include it
The memory or combinations thereof of its type.In addition, storage medium can be located at program in the first computer system being wherein performed
In, or can be located in different second computer systems, second computer system is connected by network (such as internet)
It is connected to first computer system.Second computer system can provide program instruction to the first computer for executing.Term
" storage medium " may include that may reside in different location (such as in the different computer systems by network connection)
Two or more storage mediums.Storage medium can store can be performed by one or more processors program instruction (such as
It is implemented as computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
The terminal control operation that executable instruction is not limited to the described above, can also be performed provided by the application any embodiment eventually
Hold the relevant operation in control method.
The embodiment of the present application provides a kind of intelligent terminal, has operating system in the intelligent terminal, in the intelligent terminal
Terminal control mechanism provided by the embodiments of the present application can be integrated.Wherein, intelligent terminal can be smart phone, PAD (plate electricity
Brain), handheld device and smart television etc..Fig. 7 is a kind of structural schematic diagram of intelligent terminal provided by the embodiments of the present application.
As shown in fig. 7, the intelligent terminal includes memory 710 and processor 720.The memory 710, for storing computer journey
Sequence;The processor 720 reads and executes the computer program stored in the memory 710.The processor 720 is being held
It is performed the steps of when the row computer program and obtains target frame rate valid interval, be based on the target frame rate valid interval
Determine target frame rate, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;According to previous
The historical system resource configuration information in sampling period determines adjusting information corresponding with the target frame rate;According to the adjusting
Information adjusts the system resource configuration in current sample period, realizes based on the target frame rate to the frame picture of target application
It is drawn.
The memory and processor enumerated in above-mentioned example are some components of intelligent terminal, the intelligent terminal
It can also include other components.By taking smart phone as an example, illustrate the possible structure of above-mentioned intelligent terminal.Fig. 8 is that the application is real
A kind of structural block diagram of smart phone of example offer is provided.As shown in figure 8, the smart phone may include: memory 801, center
Processor (Central Processing Unit, CPU) 802 (also known as processor, hereinafter referred to as CPU), Peripheral Interface 803,
RF (Radio Frequency, radio frequency) circuit 805, voicefrequency circuit 806, loudspeaker 811, touch screen 812, power management chip
808, input/output (I/O) subsystem 809, other input/control devicess 810 and outside port 804, these components pass through
One or more communication bus or signal wire 807 communicate.
It should be understood that illustrating the example that smart phone 800 is only intelligent terminal, and smart phone 800
It can have than shown in the drawings more or less component, can combine two or more components, or can be with
It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated
It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the smart phone provided in this embodiment for being integrated with terminal control mechanism is described in detail below.
Memory 801, the memory 801 can be accessed by CPU802, Peripheral Interface 803 etc., the memory 801
It may include high-speed random access memory, can also include nonvolatile memory, such as one or more magnetic disk storages
Part, flush memory device or other volatile solid-state parts.
Peripheral Interface 803, the Peripheral Interface 803 can by equipment output and input peripheral hardware be connected to CPU802 and
Memory 801.
I/O subsystem 809, the I/O subsystem 809 can be by the input/output peripherals in equipment, such as touch screen
812 and other input/control devicess 810, it is connected to Peripheral Interface 803.I/O subsystem 809 may include display controller
8091 and one or more input controllers 8092 for controlling other input/control devicess 810.Wherein, one or more
Input controller 8092 receives electric signal from other input/control devicess 810 or sends to other input/control devicess 810
Electric signal, other input/control devicess 810 may include physical button (push button, rocker buttons etc.), dial, sliding
Switch, clicks idler wheel at control stick.It is worth noting that input controller 8092 can with it is following any one connect: it is keyboard, red
The indicating equipment of external port, USB interface and such as mouse.
Touch screen 812, the touch screen 812 are the input interface and output interface between user terminal and user, can
It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 8091 in I/O subsystem 809 receives electric signal from touch screen 812 or sends out to touch screen 812
Electric signals.Touch screen 812 detects the contact on touch screen, and the contact that display controller 8091 will test is converted to and is shown
Show the interaction of the user interface object on touch screen 812, i.e. realization human-computer interaction, user circle being shown on touch screen 812
In face of icon, the icon for being networked to corresponding network etc. as can be running game.It is worth noting that equipment can also wrap
Include light mouse, light mouse is the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen
Extend.
RF circuit 805 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 805 receives and sends RF
Signal, RF signal are also referred to as electromagnetic signal, and RF circuit 805 converts electrical signals to electromagnetic signal or is converted to electromagnetic signal
Electric signal, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 805 may include using
In the known circuit for executing these functions comprising but be not limited to antenna system, RF transceiver, one or more amplifiers, adjust
Humorous device, one or more oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, use
Family mark module (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 806 is mainly used for receiving audio data from Peripheral Interface 803, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 811.
Loudspeaker 811 is reduced to sound for mobile phone to be passed through RF circuit 805 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 808, the hardware for being connected by CPU802, I/O subsystem and Peripheral Interface are powered
And power management.
Intelligent terminal provided by the embodiments of the present application, by the way that target frame rate valid interval to be set as believing with frame per second mode
It ceases consistent mode, realizes that the target frame rate under same mode can immobilize, frame per second is not when target application being avoided to run
Stable situation occurs, and improves the fluency of target application at runtime.
It is arbitrarily real that the application can be performed in terminal control mechanism, storage medium and the intelligent terminal provided in above-described embodiment
Terminal control method provided by example is applied, has and executes the corresponding functional module of this method and beneficial effect.Not in above-mentioned implementation
The technical detail of detailed description in example, reference can be made to terminal control method provided by the application any embodiment.
Note that above are only the preferred embodiment and institute's application technology principle of the application.Those skilled in the art can manage
Solution, the application are not limited to specific embodiment described here, are able to carry out various apparent changes for a person skilled in the art
The protection scope changed, readjust and substituted without departing from the application.Therefore, although by above embodiments to the application
It is described in further detail, but the application is not limited only to above embodiments, the case where not departing from the application design
Under, it can also include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.
Claims (10)
1. a kind of terminal control method characterized by comprising
Target frame rate valid interval is obtained, target frame rate is determined based on the target frame rate valid interval, wherein the target frame
Rate valid interval is consistent with the frame per second pattern information of target application;
According to the historical system resource configuration information in previous sampling period, adjusting information corresponding with the target frame rate is determined;
According to the system resource configuration in the adjusting information adjustment current sample period, realize based on the target frame rate to mesh
The frame picture of mark application is drawn.
2. the method according to claim 1, wherein before obtaining target frame rate valid interval, further includes:
Obtain the corresponding scene identity of target application;
When the scene identity is preset opening identification, the frame per second pattern information of the target application is obtained;
Target frame rate valid interval is adjusted according to the frame per second pattern information.
3. according to the method described in claim 2, it is characterized in that, effective according to frame per second pattern information adjustment target frame rate
Section, comprising:
According to the frame per second pattern information be arranged target frame rate valid interval upper limit value and lower limit value, make the upper limit value and under
Limit value is equal to the corresponding frame number of the frame per second pattern information.
4. according to the method described in claim 3, it is characterized in that, target frame rate valid interval is obtained, based on the target frame
Rate valid interval determines target frame rate, comprising:
The upper limit or lower limit for obtaining target frame rate valid interval, using the upper limit or lower limit as target frame rate.
5. the method according to claim 1, wherein matching confidence according to the historical system resource in previous sampling period
Breath determines adjusting information corresponding with the target frame rate, comprising:
Obtain the historical system resource configuration information in previous sampling period;
According to the historical system resource configuration information, the corresponding system resource of the target frame rate in current sample period is predicted
Configuration needs, using the system resource configuration needs as adjusting information.
6. the method according to claim 1, wherein being adjusted in current sample period according to the adjusting information
System resource configuration, realization are drawn based on frame picture of the target frame rate to target application, comprising:
According to the frequency of adjusting information the adjustment processor and/or graphics processor in current sample period, to be based on institute
Target frame rate is stated to draw the frame picture of target application.
7. method according to any one of claim 1 to 6, which is characterized in that be based on the target frame rate to target
After the frame picture of application is drawn, further includes:
If detecting, the corresponding scene identity of the target application is preset end of identification, by the valid interval of target frame rate
It is adjusted to default valid interval, wherein the valid interval includes target frame rate valid interval and default valid interval, and target
Frame per second valid interval is the subset for defaulting valid interval.
8. a kind of terminal control mechanism characterized by comprising
Frame per second determining module determines target frame based on the target frame rate valid interval for obtaining target frame rate valid interval
Rate, wherein the target frame rate valid interval is consistent with the frame per second pattern information of target application;
Information determination module is adjusted, for the historical system resource configuration information according to the previous sampling period, the determining and mesh
Mark the corresponding adjusting information of frame per second;
Configuration adjustment module realizes base for configuring according to the system resource in the adjusting information adjustment current sample period
It is drawn in frame picture of the target frame rate to target application.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The terminal control method as described in any in claim 1-7 is realized when row.
10. a kind of intelligent terminal, which is characterized in that including memory, processor and storage are on a memory and can be in processor
The computer program of operation, the processor realize end as claimed in claim 1 when executing the computer program
Hold control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811201760.3A CN109189543A (en) | 2018-10-16 | 2018-10-16 | terminal control method, device, storage medium and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811201760.3A CN109189543A (en) | 2018-10-16 | 2018-10-16 | terminal control method, device, storage medium and intelligent terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189543A true CN109189543A (en) | 2019-01-11 |
Family
ID=64945361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811201760.3A Pending CN109189543A (en) | 2018-10-16 | 2018-10-16 | terminal control method, device, storage medium and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189543A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110339567A (en) * | 2019-07-17 | 2019-10-18 | 三星电子(中国)研发中心 | System resource configuration, scene prediction model training method and device |
CN110618801A (en) * | 2019-10-08 | 2019-12-27 | Oppo(重庆)智能科技有限公司 | Smooth picture frame rate expression method and device, terminal device and storage medium |
CN110633003A (en) * | 2019-09-19 | 2019-12-31 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for reducing power consumption |
CN110659136A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for limiting frame rate |
CN110658904A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method and device for controlling terminal current, terminal and storage medium |
CN111405362A (en) * | 2020-04-23 | 2020-07-10 | 成都极米科技股份有限公司 | Video output method, video output device, video equipment and computer readable storage medium |
WO2020156132A1 (en) * | 2019-01-28 | 2020-08-06 | Oppo广东移动通信有限公司 | Gpu performance bottleneck determining method and device, terminal, and storage medium |
CN113126741A (en) * | 2019-12-26 | 2021-07-16 | 深圳市万普拉斯科技有限公司 | Method and device for controlling frame rate of mobile terminal, computer equipment and storage medium |
CN115665482A (en) * | 2022-11-09 | 2023-01-31 | 腾讯科技(深圳)有限公司 | Video rendering method and device, computer equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647088A (en) * | 2018-03-13 | 2018-10-12 | 广东欧珀移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
-
2018
- 2018-10-16 CN CN201811201760.3A patent/CN109189543A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647088A (en) * | 2018-03-13 | 2018-10-12 | 广东欧珀移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020156132A1 (en) * | 2019-01-28 | 2020-08-06 | Oppo广东移动通信有限公司 | Gpu performance bottleneck determining method and device, terminal, and storage medium |
CN110339567A (en) * | 2019-07-17 | 2019-10-18 | 三星电子(中国)研发中心 | System resource configuration, scene prediction model training method and device |
CN110633003A (en) * | 2019-09-19 | 2019-12-31 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for reducing power consumption |
CN110659136A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for limiting frame rate |
CN110658904A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method and device for controlling terminal current, terminal and storage medium |
CN110633003B (en) * | 2019-09-19 | 2022-02-11 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for reducing power consumption |
CN110659136B (en) * | 2019-09-19 | 2022-07-15 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for limiting frame rate |
CN110618801A (en) * | 2019-10-08 | 2019-12-27 | Oppo(重庆)智能科技有限公司 | Smooth picture frame rate expression method and device, terminal device and storage medium |
CN113126741A (en) * | 2019-12-26 | 2021-07-16 | 深圳市万普拉斯科技有限公司 | Method and device for controlling frame rate of mobile terminal, computer equipment and storage medium |
CN113126741B (en) * | 2019-12-26 | 2023-12-05 | 深圳市万普拉斯科技有限公司 | Mobile terminal frame rate control method, device, computer equipment and storage medium |
CN111405362A (en) * | 2020-04-23 | 2020-07-10 | 成都极米科技股份有限公司 | Video output method, video output device, video equipment and computer readable storage medium |
CN115665482A (en) * | 2022-11-09 | 2023-01-31 | 腾讯科技(深圳)有限公司 | Video rendering method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109189543A (en) | terminal control method, device, storage medium and intelligent terminal | |
CN106791212B (en) | A kind of control method, device and the mobile terminal of mobile terminal refresh rate | |
US10952146B2 (en) | Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal | |
CN106919401B (en) | Method and device for dynamically adjusting resolution and mobile terminal | |
US11513820B2 (en) | Method for resource allocation, terminal, and computer-readable storage medium | |
CN106941563B (en) | control method and device for refresh rate of mobile terminal and mobile terminal | |
US10475413B2 (en) | Method and apparatus for adjusting backlight brightness of screen, and mobile terminal | |
CN106657681B (en) | A kind of control method, device and the mobile terminal of mobile terminal refresh rate | |
CN106936995B (en) | A kind of control method, device and the mobile terminal of mobile terminal frame per second | |
US10902772B2 (en) | Display driving method, display driver integrated circuit, and electronic device comprising the same | |
CN109157839A (en) | Frame per second regulates and controls method, apparatus, storage medium and terminal | |
US11314309B2 (en) | Electronic device control method and apparatus, and electronic device | |
EP4199523A1 (en) | Multi-window screen projection method and electronic device | |
CN106951054B (en) | Application control method and device and mobile terminal | |
US10810927B2 (en) | Electronic device and method for controlling display in electronic device | |
CN106658691B (en) | Display control method and device and mobile terminal | |
CN106657680A (en) | Mobile terminal frame rate control method and device and mobile terminal | |
US11782756B2 (en) | Method and apparatus for scheduling processor core, and storage medium | |
CN113117326B (en) | Frame rate control method and device | |
US20170228849A1 (en) | Apparatuses and methods for activity-based resource management, and storage medium thereof | |
CN109710330B (en) | Method and device for determining running parameters of application program, terminal and storage medium | |
WO2020206688A1 (en) | Video playback method and apparatus, storage medium and electronic device | |
CN113918002A (en) | Frequency modulation method, frequency modulation device, storage medium and electronic equipment | |
CN106851017B (en) | Method and device for adjusting energy-saving level of terminal and mobile terminal | |
CN117666755A (en) | Task scheduling method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |