CN110377359A - Game performance optimization method, mobile terminal and computer readable storage medium - Google Patents

Game performance optimization method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110377359A
CN110377359A CN201910623580.2A CN201910623580A CN110377359A CN 110377359 A CN110377359 A CN 110377359A CN 201910623580 A CN201910623580 A CN 201910623580A CN 110377359 A CN110377359 A CN 110377359A
Authority
CN
China
Prior art keywords
game
scene
mobile terminal
default
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910623580.2A
Other languages
Chinese (zh)
Other versions
CN110377359B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910623580.2A priority Critical patent/CN110377359B/en
Publication of CN110377359A publication Critical patent/CN110377359A/en
Application granted granted Critical
Publication of CN110377359B publication Critical patent/CN110377359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application provides a kind of game performance optimization methods, comprising: establishes default scene of game mapping relations corresponding with default capabilities optimisation strategy;When a game application client is in the running of mobile terminal, the scene of game of the game application client is obtained;The mapping relations are inquired based on the scene of game, and are called and Performance Strategy for Optimizing corresponding to the scene of game;And the corresponding performance optimization operation of the mobile terminal execution is controlled according to the Performance Strategy for Optimizing.Present invention also provides a kind of mobile terminal and computer readable storage mediums.Such mode can be by establishing default scene of game mapping relations corresponding with default capabilities optimisation strategy, and it calls and Performance Strategy for Optimizing corresponding to scene of game, the corresponding performance optimization operation of the mobile terminal execution is controlled according to the Performance Strategy for Optimizing to realize, improves the usage experience of user.

Description

Game performance optimization method, mobile terminal and computer readable storage medium
Technical field
This application involves mobile terminal control field more particularly to a kind of game performance optimization methods, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the development of science and technology, mobile terminal (for example, mobile phone, computer etc.) has become in people's daily life most One of common electronic product, therefore, user is higher and higher to the configuration requirement of mobile terminal.Also, more and more users It can be by playing game on mobile terminals come the time of diverting oneself.
However, the mobile terminal of some high configurations at present causes game application to exist due to being limited by hardware and software Run time behaviour is undesirable, can not play the performance advantage of the mobile terminal of high configuration, seriously affect the usage experience of user.
Summary of the invention
The main purpose of the application is to propose a kind of game performance optimization method, mobile terminal and computer-readable storage Medium, it is intended to by establishing default scene of game mapping relations corresponding with default capabilities optimisation strategy, and calling and sports ground Performance Strategy for Optimizing corresponding to scape, to realize corresponding according to the Performance Strategy for Optimizing control mobile terminal execution Performance optimization operation improves the usage experience of user to improve game running effect.
To achieve the above object, this application provides a kind of game performance optimization method, the game performance optimization methods Applied to mobile terminal, the game performance optimization method includes: to establish default scene of game and default capabilities optimisation strategy pair The mapping relations answered;When a game application client is in the running of mobile terminal, the game application client is obtained Scene of game;The mapping relations are inquired based on the scene of game, and are called excellent with performance corresponding to the scene of game Change strategy;And the corresponding performance optimization operation of the mobile terminal execution is controlled according to the Performance Strategy for Optimizing.
Optionally, the default scene of game is the scene of game for needing to carry out game performance optimization, the default game Scene includes at least game starting scene, exits scene of game, personage's death scene.
Optionally, the default capabilities optimisation strategy includes at least the frequency of adjustment CPU/GPU, the default capabilities optimization Strategy is defined as configuration item, and is written into XML configuration file.
Optionally, described to control the corresponding performance optimization operation of the mobile terminal execution according to the Performance Strategy for Optimizing The step of, comprising: a game performance service is registered in system service process;And according to described in game performance service reading Configuration item in XML configuration file, to pass through the corresponding performance optimization operation of the game performance service execution.
Optionally, it described the step of establishing default scene of game corresponding with default capabilities optimisation strategy mapping relations, wraps It includes: according to the default scene of game determination and the default matched default capabilities optimisation strategy of scene of game, to establish State default scene of game mapping relations corresponding with default capabilities optimisation strategy;Wherein, when the default scene of game is game When starting scene, default capabilities optimisation strategy corresponding with game starting scene is to improve the frequency of CPU/GPU;When described Default scene of game is when exiting scene of game or personage's death scene, and default capabilities corresponding with game starting scene are excellent Change strategy as the frequency of reduction CPU/GPU.
Optionally, it is described when a game application client is in the running of mobile terminal the step of before, further includes: A persist application Game Pi is defined in the mobile terminal;It and is Game Pi setting and the game application visitor Family end has the local interface of identical address, so that the Game Pi can carry out striding course with the game application client Communication.
Optionally, the step of scene of game for obtaining the game application client, comprising: pass through the Game Pi obtains the scene of game of the game application client.
Optionally, described that the mapping relations are inquired based on the scene of game, and calling and the scene of game institute are right The step of Performance Strategy for Optimizing answered includes: the Game when acquiring the scene of game of the game application client Pi is based on the scene of game and inquires the mapping relations, and called by reflection calling method with corresponding to the scene of game Performance Strategy for Optimizing.
The application also provides a kind of mobile terminal, and the mobile terminal includes: touch screen;Processor;Memory, and it is described Processor connection, the memory include control instruction, when the processor reads the control instruction, control the movement Terminal realizes above-mentioned game performance optimization method.
The application also provides a kind of computer readable storage medium, and the computer readable storage medium has one or more Program, one or more of programs are executed by one or more processors, to realize above-mentioned game performance optimization method.
Game performance optimization method, mobile terminal and computer readable storage medium provided by the present application, initially set up pre- If scene of game mapping relations corresponding with default capabilities optimisation strategy;Secondly when a game application client is described mobile whole When the operation of end, the scene of game of the game application client is obtained;Furthermore it inquires the mapping based on the scene of game to close System, and call and Performance Strategy for Optimizing corresponding to the scene of game;Finally according to described in Performance Strategy for Optimizing control The corresponding performance optimization operation of mobile terminal execution, to control the mobile terminal execution phase by the Performance Strategy for Optimizing The performance optimization operation answered improves the usage experience of user to improve game running effect.Further, the default capabilities Optimisation strategy includes at least the frequency of adjustment CPU/GPU, can reach sports ground by increasing or decreasing the frequency of CPU/GPU Scape acceleration, energy-saving cool-down and other effects, to reduce the power consumption of the mobile terminal 100 and reach better game experiencing effect.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the game performance optimization method that one embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the mobile terminal that one embodiment of the application provides.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal 100:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is the flow chart of the embodiment of game performance optimization method provided by the present application.The method one of the embodiment Denier is triggered by user, then the process in the embodiment passes through 100 automatic running of mobile terminal, wherein each step is in operation When can be and successively carried out according to the sequence in such as flow chart, be also possible to multiple steps according to the actual situation while carrying out, Herein and without limitation.Game performance optimization method provided by the present application includes the following steps:
Step S310 establishes default scene of game mapping relations corresponding with default capabilities optimisation strategy;
Step S330 obtains the game application visitor when a game application client is when the mobile terminal 100 is run The scene of game at family end;
Step S350 inquires the mapping relations based on the scene of game, and corresponding to calling and the scene of game Performance Strategy for Optimizing;
Step S370 controls the mobile terminal 100 according to the Performance Strategy for Optimizing and executes corresponding performance optimization behaviour Make.
By above embodiment, closed by establishing the mapping corresponding with default capabilities optimisation strategy of default scene of game System, and calling and Performance Strategy for Optimizing corresponding to scene of game, to realize according to described in Performance Strategy for Optimizing control Mobile terminal 100 executes corresponding performance optimization operation, improves the usage experience of user.
Above-mentioned steps are specifically described below in conjunction with specific embodiment.
In step s310, default scene of game mapping relations corresponding with default capabilities optimisation strategy are established.
Specifically, the mobile terminal 100 can preset with a game application client and may need to carry out performance The scene of game of optimization, that is, set the default scene of game, and the mobile terminal 100 can also preset the default property Energy optimisation strategy, to establish default scene of game mapping relations corresponding with default capabilities optimisation strategy subsequent.It can manage Solution, the available default scene of game of mobile terminal 100 and the default capabilities optimisation strategy, and establish described pre- If scene of game mapping relations corresponding with the default capabilities optimisation strategy.
In the present embodiment, the mobile terminal 100 can be pre-stored described default for each game application client The mapping relations of scene of game and the default capabilities optimisation strategy.The default scene of game and the default capabilities optimize plan Slightly corresponding mapping relations can be one-to-one or one-to-many relationship.In practical applications, the mobile terminal 100 can be with Above-mentioned mapping relations are pre-established, alternatively, receiving above-mentioned mapping relations from other equipment, can specifically be determined according to actual needs, The embodiment of the present invention is not construed as limiting this.
In the present embodiment, the default scene of game may include, but be not limited to, and game starting scene exits trip Scene of playing and personage's death scene.The default capabilities optimisation strategy includes at least the frequency of adjustment CPU/GPU.That is, The default capabilities optimisation strategy may include the frequency for reducing CPU, the frequency for improving CPU, the frequency and raising for reducing GPU One of frequency of GPU.The default capabilities optimisation strategy is defined as configuration item, and is written into XML (eXended Mark Language, extensible markup language) in configuration file.That is, the default capabilities optimisation strategy with it is described Configuration item in XML configuration file has a corresponding relationship.
In the present embodiment, described establish presets scene of game mapping relations corresponding with default capabilities optimisation strategy Step, comprising:
Step S3101, it is excellent with the default matched default capabilities of scene of game according to the default scene of game determination Change strategy, to establish default scene of game mapping relations corresponding with default capabilities optimisation strategy;Wherein, when described default When scene of game is that game starts scene, default capabilities optimisation strategy corresponding with game starting scene is to improve CPU/ The frequency of GPU;When the default scene of game is to exit scene of game or personage's death scene, start scene with the game Corresponding default capabilities optimisation strategy is to reduce the frequency of CPU/GPU.
It specifically, can be first according to the default scene of game determination and the default matched default capabilities of scene of game Optimisation strategy, to establish default scene of game mapping relations corresponding with default capabilities optimisation strategy.
In step S330, when game application client is when the mobile terminal 100 is run, the game application is obtained The scene of game of client.
Specifically, when game application client is when the mobile terminal 100 is run, the mobile terminal 100 can be obtained Take the scene of game of the game application client.
It is in the present embodiment, described before the step of game application client is when the mobile terminal 100 is run, Further include:
Step S3301 defines a persist application Game Pi in the mobile terminal 100;
Step S3302 with the game application client there is the local of identical address to connect for Game Pi setting Mouthful, so that the Game Pi can carry out striding course communication with the game application client.
Specifically, a persist application Game Pi can be first defined in the mobile terminal 100 to answer as game With server-side, then there is the local interface of identical address for Game Pi setting with the game application client, so that Striding course communication can be carried out with the game application client by obtaining the Game Pi.
In the present embodiment, the game application client can take with the game application in the mobile terminal 100 Business end Game Pi striding course communication, is sent to the mobile terminal 100 for the scene of game of the game application client, So that it is guaranteed that when game application client is when the mobile terminal 100 is run, the available trip of mobile terminal 100 The scene of game for applications client of playing, to inquire the mapping relations based on the scene of game subsequent, and call with it is described Performance Strategy for Optimizing corresponding to scene of game, and then control the mobile terminal 100 according to the Performance Strategy for Optimizing and execute Corresponding performance optimization operation.
In the present embodiment, the step of scene of game for obtaining the game application client, comprising:
Step S3303 obtains the scene of game of the game application client by the Game Pi.
Specifically, when the game application client is when the mobile terminal 100 is run, the Game Pi can be real When obtain the scene of game of the game application client.
In step S350, the mapping relations are inquired based on the scene of game, and call and the scene of game institute Corresponding Performance Strategy for Optimizing.
Specifically, the scene of game may belong to the default scene of game, can also be not belonging to the default game Scene.When the scene of game is not belonging to the default scene of game, it is excellent to show that the scene of game does not need progress performance The scene of game of change can then not have to carry out subsequent step.When the scene of game belongs to the default scene of game, show The scene of game needs to carry out the scene of game of performance optimization, can after acquisition needs to carry out the scene of game of performance optimization To inquire the mapping relations based on the scene of game, and call and Performance Strategy for Optimizing corresponding to the scene of game. It is appreciated that can first determine whether the scene of game belongs to after the scene of game for obtaining the game application client The default scene of game, and S350 is entered step when determining that the scene of game belongs to the default scene of game.
In the present embodiment, described that the mapping relations are inquired based on the scene of game, and call and the game The step of Performance Strategy for Optimizing corresponding to scene includes:
Step S3501, when acquiring the scene of game of the game application client, the Game Pi is based on institute It states scene of game and inquires the mapping relations, and is excellent with performance corresponding to the scene of game to call by reflection calling method Change strategy.
Specifically, the reflection calling method, which can be, inquires matching in the XML configuration file based on the scene of game Item is set, configuration item determination and Performance Strategy for Optimizing corresponding to the scene of game are then passed through.That is, when obtaining When obtaining the scene of game of the game application client, the Game Pi can be based on reflecting described in scene of game inquiry Relationship is penetrated, it is then true by the configuration item with the configuration item inquired in the corresponding XML configuration file of the scene of game Performance Strategy for Optimizing corresponding to the fixed and scene of game, and then call the Performance Strategy for Optimizing.
In step S370, it is excellent that corresponding performance is executed according to the Performance Strategy for Optimizing control mobile terminal 100 Change operation.
Specifically, the Game Pi call with after Performance Strategy for Optimizing corresponding to the scene of game, can be according to institute It states the Performance Strategy for Optimizing control mobile terminal 100 and executes corresponding performance optimization operation, to improve game running effect, mention Rise the usage experience of user.
In the present embodiment, for example, when obtain the scene of game of the game application client opens for game When dynamic scene, the Game Pi is based on mapping relations described in game starting scenario queries, and is adjusted by reflection calling method Start Performance Strategy for Optimizing corresponding to scene, property corresponding to last foundation and game starting scene with the game Energy optimisation strategy controls the operation that the mobile terminal execution improves the frequency of CPU/GPU, to reach the effect of scene of game acceleration Fruit.When obtain the game application client scene of game be exit scene of game or personage's death scene when, it is described Game Pi be based on it is described exit mapping relations described in scene of game or personage's death scenario queries, and by reflection calling method come It calls and exits Performance Strategy for Optimizing corresponding to scene of game or personage's death scene with described, last foundation exits trip with described Performance Strategy for Optimizing corresponding to play scene or personage's death scene, which controls the mobile terminal execution, reduces the frequency of CPU/GPU Operation, to reach energy-saving cool-down and other effects, while the power consumption of the mobile terminal 100 can also be reduced.
In the present embodiment, described to be executed accordingly according to the Performance Strategy for Optimizing control mobile terminal 100 The step of performance optimization operation, comprising:
Step S3701 registers a game performance service in system service process;
Step S3702 reads the configuration item in the XML configuration file according to game performance service, to pass through State the corresponding performance optimization operation of game performance service execution.
Specifically, the performance optimization operation corresponds to the Performance Strategy for Optimizing.The performance optimization operation can wrap It includes, but is not limited to, the frequency for reducing CPU, the frequency for improving CPU, the frequency for reducing GPU, the frequency for improving GPU.
In the present embodiment, the game performance service is registered in system service (System Server) process One of the service of (Game Performance Service) as system service, then call the game performance service with AMS (application management system) finally reads the XML configuration text according to game performance service Configuration item in part, to reach sports ground to realize by the corresponding performance optimization operation of the game performance service execution Scape acceleration, energy-saving cool-down and other effects, reduce the power consumption of the mobile terminal 100, further reach better game experiencing effect Fruit.
In the present embodiment, when the game application client is after the mobile terminal 100 exits, it can be restored The adjustment carried out in preceding optimization game play to system setting can return to convenient for user and optimize it to game running Preceding state.
By above embodiment, initially sets up the mapping corresponding with default capabilities optimisation strategy of default scene of game and close System;Secondly when a game application client is when the mobile terminal 100 is run, the game of the game application client is obtained Scene;Furthermore the mapping relations are inquired based on the scene of game, and are called excellent with performance corresponding to the scene of game Change strategy;The mobile terminal 100 finally, which is controlled, according to the Performance Strategy for Optimizing executes corresponding performance optimization operation, thus The mobile terminal 100, which is controlled, by the Performance Strategy for Optimizing executes corresponding performance optimization operation to improve game running effect Fruit improves the usage experience of user.Further, the default capabilities optimisation strategy includes at least the frequency of adjustment CPU/GPU Rate can reach scene of game acceleration, energy-saving cool-down and other effects, to reduce by increasing or decreasing the frequency of CPU/GPU The power consumption of the mobile terminal 100 simultaneously reaches better game experiencing effect.
Fig. 4 is the structure composition schematic diagram of mobile terminal 100 provided by the embodiments of the present application, and mobile terminal 100 includes: touching Control panel 1071;Processor 110;Memory 109 is connect with the processor 110, and the memory 109 includes control instruction, When the processor 110 reads the control instruction, controls the mobile terminal 100 and realizes following steps:
Establish default scene of game mapping relations corresponding with default capabilities optimisation strategy;When a game application client exists When the mobile terminal 100 is run, the scene of game of the game application client is obtained;Institute is inquired based on the scene of game Mapping relations are stated, and are called and Performance Strategy for Optimizing corresponding to the scene of game;And according to the Performance Strategy for Optimizing control It makes the mobile terminal 100 and executes corresponding performance optimization operation.
Optionally, the default scene of game is the scene of game for needing to carry out game performance optimization, the default game Scene includes at least game starting scene, exits scene of game, personage's death scene.
Optionally, the default capabilities optimisation strategy includes at least the frequency of adjustment CPU/GPU, the default capabilities optimization Strategy is defined as configuration item, and is written into XML configuration file.
Optionally, described to execute corresponding performance optimization according to the Performance Strategy for Optimizing control mobile terminal 100 The step of operation, comprising: a game performance service is registered in system service process;And it services and reads according to the game performance Configuration item in the XML configuration file, to pass through the corresponding performance optimization operation of the game performance service execution.
Optionally, it described the step of establishing default scene of game corresponding with default capabilities optimisation strategy mapping relations, wraps It includes: according to the default scene of game determination and the default matched default capabilities optimisation strategy of scene of game, to establish State default scene of game mapping relations corresponding with default capabilities optimisation strategy;Wherein, when the default scene of game is game When starting scene, default capabilities optimisation strategy corresponding with game starting scene is to improve the frequency of CPU/GPU;When described Default scene of game is when exiting scene of game or personage's death scene, and default capabilities corresponding with game starting scene are excellent Change strategy as the frequency of reduction CPU/GPU.
Optionally, described before a step of game application client is when the mobile terminal 100 is run, also wrap It includes: defining a persist application Game Pi in the mobile terminal 100;It and is Game Pi setting and the trip Play applications client have identical address local interface so that the Game Pi can with the game application client into The communication of row striding course.
Optionally, the step of scene of game for obtaining the game application client, comprising: pass through the Game Pi obtains the scene of game of the game application client.
Optionally, described that the mapping relations are inquired based on the scene of game, and calling and the scene of game institute are right The step of Performance Strategy for Optimizing answered includes: the Game when acquiring the scene of game of the game application client Pi is based on the scene of game and inquires the mapping relations, and called by reflection calling method with corresponding to the scene of game Performance Strategy for Optimizing.
By above-mentioned mobile terminal 100, the mapping corresponding with default capabilities optimisation strategy of default scene of game is initially set up Relationship;Secondly when a game application client is when the mobile terminal 100 is run, the trip of the game application client is obtained Play scene;Furthermore the mapping relations are inquired based on the scene of game, and are called and performance corresponding to the scene of game Optimisation strategy;The mobile terminal 100 finally, which is controlled, according to the Performance Strategy for Optimizing executes corresponding performance optimization operation, from And the mobile terminal 100 is controlled by the Performance Strategy for Optimizing and executes corresponding performance optimization operation to improve game running Effect improves the usage experience of user.Further, the default capabilities optimisation strategy includes at least adjustment CPU/GPU's Frequency can reach scene of game acceleration, energy-saving cool-down and other effects, to drop by increasing or decreasing the frequency of CPU/GPU The power consumption of the low mobile terminal 100 simultaneously reaches better game experiencing effect.
The embodiment of the present application also provides a kind of computer readable storage medium, and computer readable storage medium has one or more A program, one or more programs are executed by one or more processors, to realize following steps:
Establish default scene of game mapping relations corresponding with default capabilities optimisation strategy;When a game application client exists When the running of mobile terminal, the scene of game of the game application client is obtained;Based on described in scene of game inquiry Mapping relations, and call and Performance Strategy for Optimizing corresponding to the scene of game;And it is controlled according to the Performance Strategy for Optimizing The corresponding performance optimization operation of mobile terminal execution.
Optionally, the default scene of game is the scene of game for needing to carry out game performance optimization, the default game Scene includes at least game starting scene, exits scene of game, personage's death scene.
Optionally, the default capabilities optimisation strategy includes at least the frequency of adjustment CPU/GPU, the default capabilities optimization Strategy is defined as configuration item, and is written into XML configuration file.
Optionally, described to control the corresponding performance optimization operation of the mobile terminal execution according to the Performance Strategy for Optimizing The step of, comprising: a game performance service is registered in system service process;And according to described in game performance service reading Configuration item in XML configuration file, to pass through the corresponding performance optimization operation of the game performance service execution.
Optionally, it described the step of establishing default scene of game corresponding with default capabilities optimisation strategy mapping relations, wraps It includes: according to the default scene of game determination and the default matched default capabilities optimisation strategy of scene of game, to establish State default scene of game mapping relations corresponding with default capabilities optimisation strategy;Wherein, when the default scene of game is game When starting scene, default capabilities optimisation strategy corresponding with game starting scene is to improve the frequency of CPU/GPU;When described Default scene of game is when exiting scene of game or personage's death scene, and default capabilities corresponding with game starting scene are excellent Change strategy as the frequency of reduction CPU/GPU.
Optionally, it is described when a game application client is in the running of mobile terminal the step of before, further includes: A persist application Game Pi is defined in the mobile terminal;It and is Game Pi setting and the game application visitor Family end has the local interface of identical address, so that the Game Pi can carry out striding course with the game application client Communication.
Optionally, the step of scene of game for obtaining the game application client, comprising: pass through the Game Pi obtains the scene of game of the game application client.
Optionally, described that the mapping relations are inquired based on the scene of game, and calling and the scene of game institute are right The step of Performance Strategy for Optimizing answered includes: the Game when acquiring the scene of game of the game application client Pi is based on the scene of game and inquires the mapping relations, and called by reflection calling method with corresponding to the scene of game Performance Strategy for Optimizing.
By above-mentioned computer readable storage medium, it is corresponding with default capabilities optimisation strategy to initially set up default scene of game Mapping relations;Secondly when a game application client is in the running of mobile terminal, the game application client is obtained Scene of game;Furthermore the mapping relations are inquired based on the scene of game, and corresponding to calling and the scene of game Performance Strategy for Optimizing;The corresponding performance optimization operation of the mobile terminal execution finally is controlled according to the Performance Strategy for Optimizing, To control the corresponding performance optimization operation of the mobile terminal execution by the Performance Strategy for Optimizing to improve game running Effect improves the usage experience of user.Further, the default capabilities optimisation strategy includes at least adjustment CPU/GPU's Frequency can reach scene of game acceleration, energy-saving cool-down and other effects, to drop by increasing or decreasing the frequency of CPU/GPU The power consumption of the low mobile terminal 100 simultaneously reaches better game experiencing effect.
The embodiment of the present application also provides a kind of computer readable storage mediums.Here computer readable storage medium is deposited Contain one or more program.Wherein, computer readable storage medium may include volatile memory, such as arbitrary access Memory;Memory also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid-state are hard Disk;Memory can also include the combination of the memory of mentioned kind.
Corresponding technical characteristic in the respective embodiments described above do not cause scheme contradiction or it is not implementable under the premise of, can Mutually to use.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of game performance optimization method, which is characterized in that the game performance optimization method is applied to mobile terminal, described Game performance optimization method includes:
Establish default scene of game mapping relations corresponding with default capabilities optimisation strategy;
When a game application client is in the running of mobile terminal, the scene of game of the game application client is obtained;
The mapping relations are inquired based on the scene of game, and calls and optimizes plan with performance corresponding to the scene of game Slightly;And
The corresponding performance optimization operation of the mobile terminal execution is controlled according to the Performance Strategy for Optimizing.
2. game performance optimization method as described in claim 1, which is characterized in that the default scene of game is to need to carry out The scene of game of game performance optimization, the default scene of game include at least game starting scene, exit scene of game, personage Dead scene.
3. game performance optimization method as claimed in claim 2, which is characterized in that the default capabilities optimisation strategy is at least wrapped The frequency of adjustment CPU/GPU is included, the default capabilities optimisation strategy is defined as configuration item, and is written into XML configuration file In.
4. game performance optimization method as claimed in claim 3, which is characterized in that described according to the Performance Strategy for Optimizing control Make the step of corresponding performance optimization of the mobile terminal execution operates, comprising:
A game performance service is registered in system service process;And
The configuration item in the XML configuration file is read according to game performance service, to service by the game performance Execute corresponding performance optimization operation.
5. game performance optimization method as claimed in claim 3, which is characterized in that described to establish default scene of game and preset The step of Performance Strategy for Optimizing corresponding mapping relations, comprising:
According to the default scene of game determination and the default matched default capabilities optimisation strategy of scene of game, to establish State default scene of game mapping relations corresponding with default capabilities optimisation strategy;Wherein, when the default scene of game is game When starting scene, default capabilities optimisation strategy corresponding with game starting scene is to improve the frequency of CPU/GPU;When described Default scene of game is when exiting scene of game or personage's death scene, and default capabilities corresponding with game starting scene are excellent Change strategy as the frequency of reduction CPU/GPU.
6. game performance optimization method as described in claim 1, which is characterized in that described when a game application client is in institute Before the step of when stating running of mobile terminal, further includes:
A persist application Game Pi is defined in the mobile terminal;And
There is the local interface of identical address for Game Pi setting with the game application client, so that described Game Pi can carry out striding course communication with the game application client.
7. game performance optimization method as claimed in claim 6, which is characterized in that described to obtain the game application client Scene of game the step of, comprising:
The scene of game of the game application client is obtained by the Game Pi.
8. game performance optimization method as claimed in claim 7, which is characterized in that described to inquire institute based on the scene of game Mapping relations are stated, and calls with the step of Performance Strategy for Optimizing corresponding to the scene of game and includes:
When acquiring the scene of game of the game application client, the Game Pi is inquired based on the scene of game The mapping relations, and called and Performance Strategy for Optimizing corresponding to the scene of game by reflection calling method.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Touch screen;
Processor;And
Memory is connected to the processor, and the memory includes control instruction, is referred to when the processor reads the control When enabling, controls the mobile terminal and realize the described in any item game performance optimization methods of claim 1-8.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium has one or more journeys Sequence, one or more of programs are executed by one or more processors, to realize the described in any item game of claim 1-8 Performance optimization method.
CN201910623580.2A 2019-07-11 2019-07-11 Game performance optimization method, mobile terminal and computer readable storage medium Active CN110377359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910623580.2A CN110377359B (en) 2019-07-11 2019-07-11 Game performance optimization method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910623580.2A CN110377359B (en) 2019-07-11 2019-07-11 Game performance optimization method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110377359A true CN110377359A (en) 2019-10-25
CN110377359B CN110377359B (en) 2024-06-21

Family

ID=68252690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910623580.2A Active CN110377359B (en) 2019-07-11 2019-07-11 Game performance optimization method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110377359B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641488A (en) * 2021-07-07 2021-11-12 荣耀终端有限公司 Method and device for optimizing resources based on user use scene

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055403A (en) * 2016-05-13 2016-10-26 深圳市青葡萄科技有限公司 Method and system for rapid terminal configuration based on USB storage equipment
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN109213611A (en) * 2018-08-01 2019-01-15 天津字节跳动科技有限公司 The striding course means of communication, device, terminal and storage medium
CN109582463A (en) * 2018-11-30 2019-04-05 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
US20190129753A1 (en) * 2017-10-31 2019-05-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Resource Allocation and Terminal Device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055403A (en) * 2016-05-13 2016-10-26 深圳市青葡萄科技有限公司 Method and system for rapid terminal configuration based on USB storage equipment
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
US20190129753A1 (en) * 2017-10-31 2019-05-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Resource Allocation and Terminal Device
CN109213611A (en) * 2018-08-01 2019-01-15 天津字节跳动科技有限公司 The striding course means of communication, device, terminal and storage medium
CN109582463A (en) * 2018-11-30 2019-04-05 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641488A (en) * 2021-07-07 2021-11-12 荣耀终端有限公司 Method and device for optimizing resources based on user use scene

Also Published As

Publication number Publication date
CN110377359B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN108391025A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN109725866A (en) Application interface display methods, terminal and computer readable storage medium
CN108768775A (en) Information processing method, electronic equipment and computer storage media
CN110177177A (en) Message back method, mobile terminal and computer readable storage medium
CN109982402A (en) Terminal voice call method, mobile terminal and computer readable storage medium
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN109299039A (en) A kind of file management method, equipment and computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN107678625A (en) Information Sharing menu display method, mobile terminal and computer-readable recording medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN110290269A (en) Display control method, mobile terminal and computer readable storage medium
CN110278481A (en) Picture-in-picture implementing method, terminal and computer readable storage medium
CN110069182A (en) Wallpaper control method, mobile terminal and computer readable storage medium
CN110052024A (en) Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN109445660A (en) A kind of wearable device control method, mobile terminal and wearable device
CN108900503A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN108449736A (en) A kind of data transmission method, terminal and computer readable storage medium
CN110324488A (en) A kind of contact information display methods, terminal and computer readable storage medium
CN109561221A (en) A kind of call control method, equipment and computer readable storage medium
CN110377359A (en) Game performance optimization method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant