[go: up one dir, main page]

CN112587920B - Equipment control method, device, electronic equipment and storage medium - Google Patents

Equipment control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112587920B
CN112587920B CN202011398849.0A CN202011398849A CN112587920B CN 112587920 B CN112587920 B CN 112587920B CN 202011398849 A CN202011398849 A CN 202011398849A CN 112587920 B CN112587920 B CN 112587920B
Authority
CN
China
Prior art keywords
frame rate
temperature
game
equipment
display frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011398849.0A
Other languages
Chinese (zh)
Other versions
CN112587920A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202011398849.0A priority Critical patent/CN112587920B/en
Publication of CN112587920A publication Critical patent/CN112587920A/en
Application granted granted Critical
Publication of CN112587920B publication Critical patent/CN112587920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a device control method, a device, an electronic device and a storage medium, wherein the device control method is applied to the electronic device and comprises the following steps: acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game; inputting the current equipment temperature and the running time length into a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time length output by the temperature prediction model; determining a frame rate to be displayed based on the predicted device temperature; and adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed. The method can realize the prediction of the temperature of the electronic equipment during the game running, and control the display frame rate according to the prediction, thereby realizing the control of the temperature of the electronic equipment.

Description

Equipment control method, device, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of electronic devices, and in particular, to a device control method, an apparatus, an electronic device, and a storage medium.
Background
With the rapid development of the technological level and the living standard, more and more people begin to play games by using electronic devices such as computers or mobile phones, so as to save leisure time. And the configuration level of the electronic equipment is higher and higher, and the performance level of the electronic equipment is better and better when the game runs, but the heating problem of the electronic equipment is also caused.
Disclosure of Invention
In view of the above, the present application provides a device control method, apparatus, electronic device, and storage medium.
In a first aspect, an embodiment of the present application provides a device control method, applied to an electronic device, where the method includes: acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game; inputting the current equipment temperature and the running time length into a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time length output by the temperature prediction model; determining a frame rate to be displayed based on the predicted device temperature; and adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed.
In a second aspect, an embodiment of the present application provides an apparatus control device, applied to an electronic apparatus, where the apparatus includes: the system comprises a temperature acquisition module, a temperature prediction module, a frame rate determination module and a frame rate adjustment module, wherein the temperature acquisition module is used for acquiring the current equipment temperature of the electronic equipment when the game is operated and the operation time of the game; the temperature prediction module is used for inputting the current equipment temperature and the operation time length into a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time length output by the temperature prediction model; the frame rate determining module is used for determining a frame rate to be displayed based on the predicted equipment temperature; the frame rate adjustment module is used for adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the device control method provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored therein program code that is callable by a processor to perform the device control method provided in the first aspect described above.
According to the scheme provided by the application, the current equipment temperature and the running time of the game are obtained when the electronic equipment runs, the current equipment temperature and the running time are input into the pre-trained temperature prediction model, the predicted equipment temperature of the specified time output by the temperature prediction model is obtained, the frame rate to be displayed is determined based on the predicted equipment temperature, and the display frame rate of the electronic equipment is adjusted based on the frame rate to be displayed, so that the problem that the electronic equipment is seriously heated can be solved by adjusting the display frame rate in advance according to the predicted future temperature and the predicted future temperature when the game runs according to the predicted future temperature.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flow chart of a device control method according to an embodiment of the application.
Fig. 2 shows a flow chart of a device control method according to another embodiment of the application.
Fig. 3 shows a flow chart of a device control method according to a further embodiment of the application.
Fig. 4 shows a schematic diagram of a temperature conversion model according to another embodiment of the present application.
Fig. 5 shows another schematic diagram of a temperature conversion model according to still another embodiment of the present application.
Fig. 6 shows a flow chart of a device control method according to still another embodiment of the present application.
Fig. 7 is a schematic diagram of a device control method according to an embodiment of the present application.
Fig. 8 shows a block diagram of a device control apparatus according to an embodiment of the application.
Fig. 9 is a block diagram of an electronic device for performing a device control method according to an embodiment of the present application.
Fig. 10 is a storage unit for storing or carrying program code for implementing a device control method according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
With the rapid development of the technological level and the living standard, more and more people begin to play games by using electronic devices such as computers or mobile phones, so as to save leisure time. The configuration level of the electronic equipment is higher and higher, the performance level of the electronic equipment is better and better when the game is run, but the electronic equipment generates more heat when the game is run.
In general, when an electronic device runs a high-load game, a processor continuously running at a high frequency is likely to burn out due to poor heat dissipation caused by excessive temperature, so manufacturers generally use a reduced frequency to reduce the temperature, and meanwhile, damage to human skin caused by excessive temperature is reduced. In such a manner, although the frequency reduction can effectively reduce the temperature of the terminal and prolong the endurance of the terminal, the frequency reduction can cause large frame dropping and serious frame rate jitter in the game.
In order to solve the problems, the inventor provides the device control method, the device, the electronic device and the storage medium, which are provided by the embodiment of the application, so that the temperature after the appointed time period is reached when the device runs the game is predicted, and then the device control method, the device control device, the electronic device and the storage medium are used for controlling the device according to the temperature. The specific device control method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a device control method according to an embodiment of the application. In a specific embodiment, the device control method is applied to a device control apparatus 400 as shown in fig. 8 and an electronic device 100 (fig. 9) provided with the device control apparatus 400. In the following, the specific flow of the present embodiment will be described by taking an electronic device as an example, and it will be understood that the electronic device applied in the present embodiment may be a smart phone, a tablet computer, a smart watch, smart glasses, a notebook computer, etc., which is not limited herein. The following will describe the flow chart shown in fig. 1 in detail, and the device control method specifically may include the following steps:
Step S110: and acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game.
In the embodiment of the application, when the electronic equipment runs the game, the current equipment temperature and the running time of the current running game can be obtained periodically or aperiodically, so that the equipment temperature after the appointed time is predicted based on the current equipment temperature and the running time. The current equipment temperature is the acquired equipment temperature at the moment when the electronic equipment acquires the equipment temperature every time; the running time of the current running game is the running time in the running process of the current game when the equipment temperature is obtained every time.
In some embodiments, the electronic device may periodically obtain the current device temperature and the current operation duration according to a preset duration interval, so as to predict the device temperature after the specified duration, that is, the electronic device may execute steps S110 to S140 at each preset duration interval, so that the future temperature may be continuously predicted and the display frame rate may be adjusted during the game running process, so as to ensure that the temperature of the electronic device is not too high. Specific values of the specified duration are not limited, and may be, for example, 1 second, 2 seconds, 4 seconds, 1 minute, etc., and may be selected according to actual requirements. The specific value of the duration interval may not be limited, and the duration interval may be smaller than the specified duration, or may be greater than or equal to the specified duration, for example, the current device temperature and the current operation duration may be obtained every 5 seconds.
In some embodiments, the electronic device may be provided with a plurality of temperature sensors, where the temperature sensors may be disposed at different locations within the electronic device, for example, may include a temperature sensor in a central processing unit (Central Processing Unit, CPU) and a temperature sensor in an image processor (Graphics Processing Unit, GPU), may also include a temperature sensor disposed near a battery, a temperature sensor disposed near a speaker, etc., and the number and the disposed location of the temperature sensors may not be limited. The electronic equipment can acquire the temperature through the plurality of temperature sensors, and then the current temperature of the electronic equipment is determined according to the temperature data acquired by the plurality of temperature sensors. As one way, the electronic device may average the temperature data collected by the plurality of temperature sensors and take the average as the current device temperature; alternatively, the electronic device may acquire a maximum value among the temperature data acquired by the plurality of temperature sensors, and take the maximum value as the current device temperature. Of course, the specific embodiment of the electronic device for obtaining the current device temperature may not be limited.
Step S120: and inputting the current equipment temperature and the running time to a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time outputted by the temperature prediction model.
In the embodiment of the application, after the current equipment temperature and the running time length are acquired, the electronic equipment can input the current equipment temperature and the running time length into a pre-trained temperature prediction model so as to acquire the predicted equipment temperature output by the temperature prediction model, wherein the predicted equipment temperature is the predicted equipment temperature after the appointed time length at the current moment.
The event prediction model is trained in advance, so that the event prediction model can output an activity event in a preset time period according to a preset time period which needs to be predicted, and the activity event output by the event prediction model is the activity event of a predicted target user in the preset time period after the current moment. It is understood that, the target user may refer to a user corresponding to the wearable device, the wearable device may monitor activity events performed by the target user, such as running, riding, sleeping, etc., in real time, and the target user may generally have a certain regularity when wearing the wearable device daily to perform these events, so that the event prediction model trained above may predict activity events that the target user may perform in a preset time period in the future.
In some implementations, the temperature prediction model may be stored locally on the electronically-enabled device, and the electronic device may read the temperature prediction model directly from the local device; the temperature prediction model may also be stored in a server, and when the electronic device needs to predict the temperature after the specified duration at the current time, a request may be sent to the server to call the temperature prediction model.
In embodiments of the present application, the temperature prediction model may be trained from a large number of training samples. The training sample can be determined according to the historical equipment temperatures recorded by the electronic equipment and used for running different time periods in the process of running the game through the history of the electronic equipment. It can be understood that the device temperature at a certain moment and the corresponding operation time length thereof can be used as input data, the device temperature after the appointed time length at the moment can be determined according to the records above the electronic device, and the device temperature after the appointed time length at the moment is used as output data to form a sample pair, wherein the output data is a label corresponding to the input data. Because the electronic equipment generates more stable heat when running a certain game, and the temperature change process of the electronic equipment is generally the same in the process of running the certain game each time, and larger change cannot occur in the process of running each time, the initial model is trained based on the training sample, so that the model can learn the temperature change of the electronic equipment when running the game, a temperature prediction model is obtained, and the obtained temperature prediction model can output the predicted temperature according to the obtained current equipment temperature and the current running time.
In some embodiments, the initial model may include a neural network, a Long Short-Term Memory (LSTM) network, a threshold loop unit, a simple loop unit, an auto encoder, a decision tree, a random forest, a classification regression tree, a support vector machine, a logistic regression model, and the like. Of course, the particular initial model may not be limiting.
The following describes training an initial model based on a training data set using a neural network as an example.
The device temperature x1 and the operation duration x2 in one group of data in the training data set are taken as input samples of the neural network, and the device temperature y after the specified duration is marked in one group of data is taken as output samples of the neural network. The neurons in the input layer are fully connected with the neurons in the hidden layer, and the neurons in the hidden layer are fully connected with the neurons in the output layer, so that potential characteristics with different granularities can be effectively extracted. And the number of the hidden layers can be multiple, so that the nonlinear relation can be fitted better, and the temperature prediction model obtained by training is more accurate.
It will be appreciated that the training process for the temperature prediction model may or may not be performed by the electronic device. When the training process is not completed by the electronic device, the electronic device may be used only as a direct user or may be an indirect user, that is, the electronic device may send a preset period of time after the current time to the server storing the temperature prediction model, and obtain the predicted device temperature from the server.
In addition, when the training process of the temperature prediction model is completed by the server, the electronic device can report the data recorded by the historical running of the game to the server, and then the server processes the data, generates a training data set and trains the model.
In some embodiments, the temperature prediction model obtained by training may be stored locally in the electronic device, and the temperature prediction model obtained by training may also be stored in a server communicatively connected to the electronic device, so that the storage space occupied by the electronic device may be reduced, and the operation efficiency of the electronic device may be improved.
In some embodiments, the temperature prediction model may be trained according to new training data of a preset update frequency; or new training data is obtained irregularly, and the temperature prediction model is trained to update the temperature prediction model. The preset update frequency can be one week, two weeks and the like, and specific numerical values of the preset update frequency can be not limited; the new training data may be training data that is newly generated by the electronic device and is not used to train the temperature prediction model, where the training data includes device temperatures recorded during different operation durations during the operation of the game, the operation durations, and the device temperatures after the specified duration. Through constantly training the temperature prediction model, the change rule of the equipment temperature of the electronic equipment when the electronic equipment runs the game can be learned more accurately, and the temperature prediction model can learn a new change rule timely, so that the accuracy of the temperature prediction model is improved.
Step S130: and determining a frame rate to be displayed based on the predicted device temperature.
In the embodiment of the application, after the electronic equipment acquires the predicted equipment temperature after the specified time length, the frame rate to be displayed can be determined according to the predicted future predicted equipment temperature so as to adjust the display frame rate in advance, and the temperature of the electronic equipment is ensured not to be too high. The display frame rate refers to a frame rate at which the electronic device actually displays the game screen, that is, a frame number of the game screen content displayed by the electronic device per second, for example, a display frame rate of 60 frames per second, and a frame rate of 60 frames per second of the game screen content displayed by the electronic device. It will be appreciated that the processing amount of the electronic device when displaying the game screen is positively correlated with the display frame rate, and the higher the display frame rate is, the larger the processing amount of the electronic device when displaying the game screen is, and the lower the display frame rate is, the smaller the processing amount of the electronic device when displaying the game screen is.
In some embodiments, the electronic device may obtain, as the frame rate to be displayed, a display frame rate corresponding to the predicted device temperature according to a preset correspondence between the device temperature and the display frame rate. The corresponding relation can be obtained in advance according to a large number of experiments, and under the corresponding relation, the electronic equipment displays at the display frame rate corresponding to each temperature, so that the display effect of a game picture can be ensured, and meanwhile, the temperature cannot be excessively high in the subsequent time. For example, when the predicted device temperature is low (e.g., less than a set threshold), the corresponding display frame rate is high in the corresponding relationship, so that the electronic device can ensure the display effect of the game, and display the game screen at the display frame rate, which does not cause the device temperature to be high; for another example, when the predicted device temperature is high (e.g., greater than the set threshold), the corresponding display frame rate is low in the correspondence relationship, so that the electronic device reduces the processing amount when displaying the game screen, so that the subsequent device temperature is not excessively high. Of course, the above is merely an example, and does not represent a limitation on the actual correspondence relationship above.
Step S140: and adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed.
In the embodiment of the application, after the electronic equipment determines the frame rate to be displayed, the display frame rate of the electronic equipment can be adjusted based on the frame rate to be displayed. As a way, the electronic device may adjust the current display frame rate to the frame rate to be displayed when the current display frame rate is different from the frame rate to be displayed, and may keep the current display frame rate unchanged when the current display frame rate is different from the frame rate to be displayed; as another way, the electronic device may determine, when the current display frame rate is different from the frame rate to be displayed, a difference between the current display frame rate and the frame rate to be displayed, and if the difference is greater than a preset difference, adjust the current display frame rate to be the frame rate to be displayed, and if the difference is less than or equal to the preset difference, keep the current display frame rate unchanged, where the preset difference may be1 frame/second, 2 frames/second, and so on, and is not limited herein.
According to the equipment control method provided by the embodiment of the application, the current equipment temperature and the running time of the game are obtained when the electronic equipment runs, the current equipment temperature and the running time are input into the pre-trained temperature prediction model, the predicted equipment temperature of the specified time output by the temperature prediction model is obtained, the frame rate to be displayed is determined based on the predicted equipment temperature, and the display frame rate of the electronic equipment is adjusted based on the frame rate to be displayed, so that the display frame rate can be adjusted in advance according to the predicted future temperature and the predicted future temperature when the electronic equipment runs the game, the problem of serious heating of the electronic equipment is avoided, and meanwhile, the display effect of a game picture can be ensured.
Referring to fig. 2, fig. 2 is a flow chart illustrating a device control method according to another embodiment of the application. The device control method is applied to the electronic device, and will be described in detail with respect to the flow shown in fig. 2, and the device control method specifically includes the following steps:
Step S210: and acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game.
Step S220: and inputting the current equipment temperature and the running time to a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time outputted by the temperature prediction model.
In the embodiment of the present application, the step S210 and the step S220 may refer to the content of the foregoing embodiment, and are not described herein.
Step S230: and acquiring the current processor temperature of the electronic equipment.
In the embodiment of the application, when the electronic equipment determines the frame rate to be displayed according to the predicted equipment temperature obtained by prediction, the current processor temperature of the processor of the electronic equipment can also be obtained so as to determine the frame rate to be displayed by referring to the predicted equipment temperature of the electronic equipment after the specified time length and the current processing temperature. Wherein, the processor is generally provided with a temperature sensor, and the processor can read the temperature acquired by the temperature sensor inside the processor.
In some implementations, the processor may include both a CPU and a GPU. After the CPU temperature and the GPU temperature are obtained, the processor temperature may be determined based on the CPU temperature and the GPU temperature. The weights corresponding to the CPU temperature and the weights corresponding to the GPU temperature can be obtained, the obtained CPU temperature and GPU temperature are weighted and summed, and the obtained result is used as the processor temperature. For example, if the weight corresponding to the CPU temperature is Δ1 and the weight corresponding to the gpu temperature is Δ2, the processor temperature=cpu temperature Δ1+gpu temperature Δ2.
In this embodiment, the weight corresponding to the CPU temperature and the weight corresponding to the GPU temperature may be less than 1. The weights corresponding to the CPU temperature and the weights corresponding to the GPU temperature may be determined according to the type of the current game, specifically, if the current game is a game type that consumes CPU resources more than GPU resources, the weights corresponding to the CPU temperature may be more than the weights corresponding to the GPU temperature, for example, may be 0.6 and 0.4 respectively; if the CPU resource is smaller than the game type consuming the GPU resource, the weight corresponding to the CPU temperature may be smaller than the weight corresponding to the GPU temperature, for example, may be 0.4 and 0.6, respectively; if the CPU resource is equal to the type of game consuming the GPU resource, the weight corresponding to the CPU temperature may be equal to the weight corresponding to the GPU temperature, e.g., 0.5 and 0.5, respectively. It will be appreciated that the processor temperature is determined with reference to the type of game being played, so that the reference standard used to determine the frame rate to be displayed can be determined more accurately, and the frame rate to be displayed subsequently determined can be more accurate.
It should be noted that, in the embodiment of the present application, the execution sequence between the step S220 and the step S230 is not limited, the step S220 may precede the step S230, the step S230 may precede the step S220, and the step S220 and the step S230 may be executed simultaneously.
Step S240: and determining a frame rate to be displayed based on the predicted device temperature and the processor temperature.
In the embodiment of the application, after the electronic device obtains the predicted device temperature and the current processor temperature after the predicted specified duration, the frame rate to be displayed can be determined based on the predicted device temperature and the processor temperature.
In some embodiments, the electronic device may obtain a difference between the predicted device temperature and the processor temperature, if the difference is greater than the set threshold, it indicates that the predicted temperature of the electronic device after the specified duration is greater than the temperature of the current processor, that is, the device temperature after the specified duration is predicted to change greatly, where the electronic device may determine the frame rate to be displayed based on the predicted device temperature, for example, obtain the display frame rate corresponding to the predicted device temperature according to the correspondence in the foregoing embodiment; if the difference is not greater than the set threshold, it indicates that the difference between the predicted temperature of the electronic device after the specified duration and the temperature of the current processor is smaller, that is, the temperature of the device after the specified duration is expected to change less, in which case, the electronic device may determine the frame rate to be displayed based on the temperature of the processor, for example, if the current temperature of the processor is higher (greater than a first preset temperature, for example, greater than 45 ℃), the frame rate may be reduced, and if the current temperature of the processor is lower (less than a second preset temperature, for example, greater than a second preset temperature, for example, less than 25 ℃), the frame rate may be increased. The threshold value may be set at 1℃or 2℃and the like, and is not limited thereto.
In other embodiments, the electronic device may also compare the predicted device temperature with the processor temperature, and if the predicted device temperature is greater than the processor temperature, the temperature of the subsequent electronic device may be reduced, so that a frame rate greater than the current display frame rate may be determined as the frame rate to be displayed, so as to increase the display frame rate; if the predicted device temperature is less than the processor temperature, the temperature of the subsequent electronic device is increased, so that a frame rate less than the current display frame rate can be determined as the frame rate to be displayed, and the display frame rate is reduced; if the predicted device temperature is equal to the processor temperature, it may be determined whether it is too high based on the actual processor temperature, so as to determine whether to adjust the display frame rate, and further determine the frame rate to be displayed, for example, if the processor temperature is greater than a first preset temperature, for example, greater than 45 ℃, the display frame rate may be reduced, and if the current processor temperature is less than a second preset temperature, for example, the first preset temperature is greater than the second preset temperature, for example, less than 25 ℃, the display frame rate may be increased.
Step S250: and adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed.
According to the equipment control method provided by the embodiment of the application, the current equipment temperature and the running time of the game are obtained when the electronic equipment runs, the current equipment temperature and the running time are input into the pre-trained temperature prediction model, the predicted equipment temperature of the appointed time output by the temperature prediction model is obtained, the current processor temperature of the processor of the electronic equipment is obtained, and the frame rate to be displayed is determined together based on the current processor temperature and the predicted equipment temperature, so that the determined frame rate to be displayed is more accurate, after the frame rate to be displayed is adjusted, the frame rate to be displayed can be adjusted in advance, the problem of serious heating of the electronic equipment is avoided, and meanwhile, the display effect of a game picture can be ensured.
Referring to fig. 3, fig. 3 is a flow chart illustrating a device control method according to another embodiment of the application. The device control method is applied to the electronic device, and will be described in detail below with respect to the flowchart shown in fig. 3, where the device control method specifically includes the following steps:
Step S310: and acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game.
Step S320: and inputting the current equipment temperature and the running time to a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time outputted by the temperature prediction model.
Step S330: and acquiring the current processor temperature of the electronic equipment.
In the embodiment of the present application, the steps S310 to S330 can refer to the content of the foregoing embodiment, and are not described herein.
Step S340: and acquiring a first display frame rate corresponding to the temperature of the processor based on the set temperature conversion model.
In the embodiment of the present application, after the electronic device acquires the current processor temperature, the electronic device may acquire the first display frame rate corresponding to the processor temperature based on the set temperature conversion model, that is, determine the display frame rate required by the electronic device at the current processor temperature based on the current processor temperature.
In some embodiments, the temperature transformation model may be pre-established and stored in the electronic device. The temperature conversion model may include a correspondence between the processor temperature and the display frame rate, and the correspondence may include a frame rate corresponding to each processor temperature value. The corresponding relation can be obtained in advance according to a large number of experiments, and under the corresponding relation, the electronic equipment displays the corresponding display frame rate of the temperature of each processor, so that the display effect of a game picture can be ensured, and meanwhile, the temperature can not be excessively high in the subsequent time. For example, if the current processor temperature is lower (for example, less than the set threshold), the corresponding display frame rate is higher in the corresponding relation, so that the electronic device can ensure the display effect of the game, and the display frame rate is used for displaying the game picture, so that the device temperature is not higher; for another example, if the current processor temperature is higher (e.g., greater than the set threshold), the corresponding display frame rate is lower in the corresponding relationship, so that the electronic device reduces the processing amount when displaying the game screen, and the subsequent device temperature is not excessively high. Of course, the above is merely an example, and does not represent a limitation on the actual correspondence relationship above.
As one way, in the temperature conversion model, if the processor temperature is smaller than the first temperature value, the corresponding display frame rate is the highest frame rate; if the processor temperature is greater than or equal to the first temperature value and less than the second temperature value, the display frame rate is inversely related to the processor temperature; if the processor temperature is greater than or equal to the second temperature value, the corresponding display frame rate is the lowest frame rate. The highest frame rate is the highest frame rate corresponding to the game, and the lowest frame rate is the lowest frame rate corresponding to the game.
It will be appreciated that if the current processor temperature is less than the first temperature value, it is indicative of the processor temperature being lower and therefore, may be displayed at the highest frame rate; if the current processor temperature is greater than or equal to the first temperature value and less than the second temperature value, the processor temperature is relatively high, so that the display cannot be performed at the highest frame rate, and the display frame rate is inversely related to the processor temperature, when the process of the device control method provided by the embodiment of the application is executed each time, if the processor temperature continues to rise relatively last time, the display frame rate is reduced relatively last time, and because the display frame rate is reduced, the processing capacity of the electronic device is reduced, the heating value is also reduced, and the temperature of the electronic device is reduced; if the current processor temperature is greater than the second temperature value, the processor temperature is very high, and the display frame rate is reduced to a certain extent, and if the display frame rate is reduced again, the running of the game cannot be guaranteed, so that the display frame rate is the lowest frame rate corresponding to the game.
In some approaches, the required frame rate of the game frames differs due to the different games, while the temperature conversion model requires a reference to the required frame rate of the games. Thus, the temperature conversion model may be determined according to the highest frame rate corresponding to the game. For example, referring to fig. 4, fig. 4 shows a schematic diagram of a temperature conversion model corresponding to a highest frame rate of 60 frames, in which the highest display frame rate is 60 frames and the lowest display frame rate is 40 frames; for another example, referring to fig. 5, fig. 5 shows a schematic diagram of a temperature conversion model corresponding to a maximum frame rate of 60 frames, in which the maximum display frame rate is 90 frames and the minimum display frame rate is 60 frames.
Of course, the above temperature conversion model is merely an example, and the temperature conversion model may be a neural network model obtained by training or the like, and is not limited herein.
Step S350: and comparing the predicted equipment temperature with the processor temperature to obtain a comparison result.
In the embodiment of the application, the electronic equipment can compare the predicted equipment temperature with the processor temperature, and if the predicted equipment temperature is greater than the processor temperature, the temperature of the subsequent electronic equipment is reduced; if the predicted equipment temperature is smaller than the processor temperature, the temperature of the subsequent electronic equipment is increased; if the predicted device temperature is equal to the processor temperature, the predicted device temperature indicates that the temperature of the subsequent electronic device will not change.
Step S360: and based on the comparison result, adjusting the first display frame rate to obtain a second display frame rate serving as the frame rate to be displayed.
In the embodiment of the application, since the change of the device temperature of the electronic device relative to the processor temperature can be predicted, the change can be referred to when determining the frame rate to be displayed. Therefore, the electronic device may adjust the first display frame rate based on the above comparison result, and obtain the second display frame rate as the frame rate to be displayed.
In some embodiments, the electronic device adjusts the first display frame rate based on the comparison result to obtain a second display frame rate, which may include:
If the temperature of the prediction equipment is smaller than the temperature of the processor, the first display frame rate is increased, and a second display frame rate is obtained; and if the temperature of the prediction equipment is higher than the temperature of the processor, reducing the first display frame rate to obtain a second display frame rate.
It can be understood that if the predicted device temperature is greater than the processor temperature, the temperature of the subsequent electronic device will be reduced, so that the obtained first display frame rate can be improved, so that the display effect of the game picture is better; if the predicted device temperature is less than the processor temperature, the temperature of the subsequent electronic device is increased, so that the acquired first display frame rate can be reduced to further solve the heating problem; if the predicted device temperature is less than the processor temperature, the predicted device temperature indicates that the temperature of the subsequent electronic device will not change, and the obtained first display frame rate can be used as the frame rate to be displayed.
In this embodiment, when the predicted device temperature is less than the processor temperature, the electronic device may increase the first display frame rate to obtain a second display frame rate, and may include: obtaining the product of the first display frame rate and a first coefficient to obtain a first target frame rate, wherein the first coefficient is larger than 1; if the first target frame rate is smaller than the maximum frame rate corresponding to the game, the first target frame rate is used as a second display frame rate; and if the first target frame rate is greater than or equal to the maximum frame rate corresponding to the game, taking the maximum frame rate as a second display frame rate.
As can be appreciated, after the electronic device obtains the product of the first display frame rate and the first coefficient according to the preset first coefficient, the first coefficient is greater than 1, so that the first display frame rate is improved; and then, comparing the first target frame rate with the highest frame rate corresponding to the game, taking the first target frame rate as the second display frame rate when the first target frame rate is smaller than the highest frame rate corresponding to the game, taking the highest frame rate as the second display frame rate when the first target frame rate is larger than or equal to the highest frame rate corresponding to the game, and avoiding that the determined frame rate to be displayed exceeds the highest frame rate corresponding to the game while improving the first display frame rate so as to avoid resource waste.
In this embodiment, when the predicted device temperature is greater than the processor temperature, the electronic device may decrease the first display frame rate to obtain a second display frame rate, which may include: obtaining a product of the first display frame rate and a second coefficient to obtain a second target frame rate, wherein the second coefficient is smaller than 1; if the second target frame rate is greater than the minimum frame rate corresponding to the game, the second target frame rate is used as a second display frame rate; and if the second target frame rate is smaller than or equal to the minimum frame rate corresponding to the game, taking the minimum frame rate as a second display frame rate.
As can be appreciated, after the electronic device obtains the product of the first display frame rate and the first coefficient according to the second coefficient set in advance, the first coefficient is smaller than 1, so that the first display frame rate is reduced; and then, comparing the second target frame rate with the highest frame rate corresponding to the game, taking the second target frame rate as a second display frame rate when the second target frame rate is larger than the lowest frame rate corresponding to the game, taking the lowest frame rate as a second display frame rate when the second target frame rate is smaller than or equal to the lowest frame rate corresponding to the game, and avoiding that the determined frame rate to be displayed is lower than the lowest frame rate corresponding to the game while reducing the first display frame rate so as to avoid problems when the game is running.
Step S370: and adjusting the display frame rate of the electronic equipment based on the frame rate to be displayed.
According to the equipment control method provided by the embodiment of the application, the current equipment temperature and the running time of the game are obtained when the electronic equipment runs, the current equipment temperature and the running time are input into the pre-trained temperature prediction model, the predicted equipment temperature of the appointed time output by the temperature prediction model is obtained, the current processor temperature of the processor of the electronic equipment is obtained, the initial display frame rate is determined based on the current processor temperature, and then the display frame rate is adjusted according to the comparison result of the predicted equipment temperature and the processor temperature, so that the final frame rate to be displayed is obtained, and the frame rate to be displayed is determined to refer to the predicted future temperature and the current processor temperature, so that the accuracy of the determined frame rate to be displayed is higher. After the display frame rate of the electronic equipment is adjusted based on the frame rate to be displayed, the adjustment of the display frame rate in advance can be realized, the problem of serious heating of the electronic equipment is avoided, and meanwhile, the display effect of the game picture can be ensured.
Referring to fig. 6, fig. 6 is a schematic flow chart of a device control method according to still another embodiment of the present application. The device control method is applied to the electronic device, and will be described in detail below with respect to the flowchart shown in fig. 6, where the device control method specifically includes the following steps:
Step S410: and acquiring the current equipment temperature when the electronic equipment runs the game and the running time of the current running game.
Step S420: and inputting the current equipment temperature and the running time to a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time outputted by the temperature prediction model.
Step S430: and determining a frame rate to be displayed based on the predicted device temperature.
In the embodiment of the present application, the steps S410 to S430 can refer to the content of the foregoing embodiment, and are not described herein.
Step S440: and obtaining a frame rate statistical record when the electronic equipment runs the game.
In the embodiment of the application, after the frame rate to be displayed is determined, the electronic equipment can also refer to the frame rate performance of the electronic equipment when the game is operated to correct the determined frame rate to be displayed, so that the determined frame rate to be displayed can correspond to the actual performance of the electronic equipment, and the final adjustment effect of the display frame rate is improved. The electronic device can acquire the frame rate statistics record when the electronic device runs the game. The frame rate statistics record can be the frame rate of all the displayed game pictures recorded in the process of running the game, the frame rate of all the displayed game pictures recorded in the process of running the game in the past, and the frame rate of all the recorded game pictures in the preset duration recorded in the process of running the game.
Step S450: and correcting the frame rate to be displayed based on the frame rate statistical record.
In the embodiment of the application, the electronic equipment can correct the frame rate to be displayed after acquiring the frame rate statistical record.
As one way, the electronic device correcting the frame rate to be displayed based on the frame rate statistics record may include: acquiring a frame rate median value in a preset duration based on the frame rate statistical record; and carrying out weighted summation on the frame rate median value and the frame rate to be displayed based on the weights corresponding to the frame rate median value and the frame rate to be displayed, and obtaining the corrected frame rate to be displayed. In this manner, the weight corresponding to the median value of the frame rate and the weight corresponding to the frame rate to be displayed may be preset, and specific values may not be limited, for example, the weight corresponding to the median value of the frame rate is 0.5, and the weight corresponding to the frame rate to be displayed is 0.5; the frame rate to be displayed after the final correction is: median frame rate Δ3+frame rate to be displayed Δ4, where Δ3 is the weight corresponding to the median frame rate and Δ4 is the weight corresponding to the frame rate to be displayed.
Step S460: and adjusting the display frame rate of the electronic equipment based on the corrected frame rate to be displayed.
According to the equipment control method provided by the embodiment of the application, after the frame rate to be displayed is determined according to the current processor temperature and the predicted equipment temperature after the predicted specified time length, the determined frame rate to be displayed is corrected by referring to the frame rate performance of the electronic equipment in the game running process, so that the determined frame rate to be displayed can correspond to the actual performance of the electronic equipment, and the final adjustment effect of the display frame rate is improved.
In some embodiments, the above embodiments may also be combined, refer to fig. 7, and fig. 7 is a schematic diagram illustrating a device control method according to an embodiment of the present application. The electronic equipment can determine the current equipment temperature according to the temperature data acquired by the sensor, and predict the predicted equipment temperature after the specified time length through the temperature prediction module based on the current equipment temperature and the current operation time length; in addition, the temperature of the processor can be determined according to the CPU temperature and the GPU temperature; the frame rate calculation module determines the frame rate to be displayed according to the temperature of the processor and the temperature of the prediction equipment; then, the frame rate correction module can correct the frame rate to be displayed according to the frame rate information counted by the operation time frame rate counting module; and finally, the display module adjusts the current display frame rate according to the corrected frame rate to be displayed. Therefore, the display frame rate can be adjusted according to the predicted equipment temperature, the current processor temperature and the frame rate expressed in the running process of the electronic equipment, the overhigh temperature of the electronic equipment is avoided, and the display effect of a game picture is ensured.
Referring to fig. 8, a block diagram of a device control apparatus 400 according to an embodiment of the application is shown. The device control apparatus 400 is applied to the above-described electronic device, and the device control apparatus 400 includes: a temperature acquisition module 410, a temperature prediction module 420, a frame rate determination module 430, and a frame rate adjustment module 440. The temperature obtaining module 410 is configured to obtain a current device temperature when the electronic device runs a game, and a running time for running the game; the temperature prediction module 420 is configured to input the current device temperature and the operation duration to a pre-trained temperature prediction model, and obtain a predicted device temperature after a specified duration output by the temperature prediction model; the frame rate determining module 430 is configured to determine a frame rate to be displayed based on the predicted device temperature; the frame rate adjustment module 440 is configured to adjust a display frame rate of the electronic device based on the frame rate to be displayed.
In some embodiments, the device control apparatus 400 may further include: a processor temperature acquisition module. The processor temperature acquisition module is used for acquiring the current processor temperature of the electronic equipment; the frame rate determination module 430 may be specifically configured to: and determining a frame rate to be displayed based on the predicted device temperature and the processor temperature.
In this embodiment, the frame rate determination module 430 may include: a first frame rate acquisition unit, a temperature comparison unit, and a second frame rate acquisition unit. The first frame rate acquisition unit is used for acquiring a first display frame rate corresponding to the temperature of the processor based on a set temperature conversion model; the temperature comparison unit is used for comparing the predicted equipment temperature with the processor temperature to obtain a comparison result; the second frame rate obtaining unit is configured to adjust the first display frame rate based on the comparison result, and obtain a second display frame rate as the frame rate to be displayed.
In this manner, the second frame rate acquisition unit may be specifically configured to: if the temperature of the prediction equipment is smaller than the temperature of the processor, the first display frame rate is increased, and a second display frame rate is obtained; and if the temperature of the prediction equipment is higher than the temperature of the processor, reducing the first display frame rate to obtain a second display frame rate.
As one way, the second frame rate obtaining unit may increase the first display frame rate, and may include: obtaining the product of the first display frame rate and a first coefficient to obtain a first target frame rate, wherein the first coefficient is larger than 1; if the first target frame rate is smaller than the maximum frame rate corresponding to the game, the first target frame rate is used as a second display frame rate; and if the first target frame rate is greater than or equal to the maximum frame rate corresponding to the game, taking the maximum frame rate as a second display frame rate.
As one way, the second frame rate obtaining unit may reduce the first display frame rate, and may include: obtaining a product of the first display frame rate and a second coefficient to obtain a second target frame rate, wherein the second coefficient is smaller than 1; if the second target frame rate is greater than the minimum frame rate corresponding to the game, the second target frame rate is used as a second display frame rate; and if the second target frame rate is smaller than or equal to the minimum frame rate corresponding to the game, taking the minimum frame rate as a second display frame rate.
In some embodiments, the device control apparatus 400 may further include a frame rate statistics module and a frame rate correction module. The frame rate statistics module is used for acquiring a frame rate statistics record of the electronic equipment when the game is run before the display frame rate of the electronic equipment is adjusted based on the frame rate to be displayed; and the frame rate correction module is used for correcting the frame rate to be displayed based on the frame rate statistical record. The frame rate adjustment module 440 may be specifically configured to: and adjusting the display frame rate of the electronic equipment based on the corrected frame rate to be displayed.
In this embodiment, the frame rate correction module may be specifically configured to: acquiring a frame rate median value in a preset duration based on the frame rate statistical record; and carrying out weighted summation on the frame rate median value and the frame rate to be displayed based on the weights corresponding to the frame rate median value and the frame rate to be displayed, and obtaining the corrected frame rate to be displayed.
In some embodiments, the device control apparatus 400 may further include a sample acquisition module and a model training module. The sample acquisition module is used for acquiring historical equipment temperatures when running different time durations in the process of running the game through the electronic equipment in a historical mode; the model training module is used for training the initial model based on the historical equipment temperature and the corresponding operation time length to obtain the temperature prediction model.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
In summary, according to the scheme provided by the application, the current equipment temperature and the running time of the game are obtained when the electronic equipment runs, the current equipment temperature and the running time are input into the pre-trained temperature prediction model, the predicted equipment temperature of the specified time output by the temperature prediction model is obtained, the frame rate to be displayed is determined based on the predicted equipment temperature, and the display frame rate of the electronic equipment is adjusted based on the frame rate to be displayed, so that the display frame rate can be adjusted in advance according to the predicted future temperature when the electronic equipment runs the game, and the problem of serious heating of the electronic equipment is avoided.
Referring to fig. 9, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, a smart watch, smart glasses, a notebook computer, etc. The electronic device 100 of the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the electronic device 100 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
Referring to fig. 10, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 800 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A device control method, characterized by being applied to an electronic device, the method comprising:
acquiring the current equipment temperature of the electronic equipment when the game is operated and the operation time length of the current operation of the game, wherein the operation time length is the time length of the operation of the game in the current game operation process when the current equipment temperature is acquired;
inputting the current equipment temperature and the running time length into a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time length output by the temperature prediction model;
acquiring the current processor temperature of the electronic equipment;
Acquiring a first display frame rate corresponding to the temperature of the processor based on a set temperature conversion model;
Comparing the predicted equipment temperature with the processor temperature to obtain a comparison result;
Based on the comparison result, adjusting the first display frame rate to obtain a second display frame rate serving as a frame rate to be displayed;
acquiring a frame rate statistics record of the electronic equipment when the electronic equipment runs the game;
Correcting the frame rate to be displayed based on the frame rate statistical record;
and adjusting the display frame rate of the electronic equipment based on the corrected frame rate to be displayed.
2. The method of claim 1, wherein adjusting the first display frame rate to obtain a second display frame rate based on the comparison result comprises:
if the temperature of the prediction equipment is smaller than the temperature of the processor, the first display frame rate is increased, and a second display frame rate is obtained;
And if the temperature of the prediction equipment is higher than the temperature of the processor, reducing the first display frame rate to obtain a second display frame rate.
3. The method of claim 2, wherein the increasing the first display frame rate comprises:
obtaining the product of the first display frame rate and a first coefficient to obtain a first target frame rate, wherein the first coefficient is larger than 1;
If the first target frame rate is smaller than the maximum frame rate corresponding to the game, the first target frame rate is used as a second display frame rate;
And if the first target frame rate is greater than or equal to the maximum frame rate corresponding to the game, taking the maximum frame rate as a second display frame rate.
4. The method of claim 2, wherein the reducing the first display frame rate comprises:
Obtaining a product of the first display frame rate and a second coefficient to obtain a second target frame rate, wherein the second coefficient is smaller than 1;
If the second target frame rate is greater than the minimum frame rate corresponding to the game, the second target frame rate is used as a second display frame rate;
And if the second target frame rate is smaller than or equal to the minimum frame rate corresponding to the game, taking the minimum frame rate as a second display frame rate.
5. The method of claim 1, wherein correcting the frame rate to be displayed based on the frame rate statistics comprises:
Acquiring a frame rate median value in a preset duration based on the frame rate statistical record;
and carrying out weighted summation on the frame rate median value and the frame rate to be displayed based on the weights corresponding to the frame rate median value and the frame rate to be displayed, and obtaining the corrected frame rate to be displayed.
6. The method of any of claims 1-5, wherein prior to said inputting said current device temperature and said run length into a pre-trained temperature prediction model to obtain a predicted device temperature after a specified length of time output by said temperature prediction model, said method further comprises:
acquiring historical equipment temperatures of running different time periods in the process of running the game by the electronic equipment in a historical way;
and training an initial model based on the historical equipment temperature and the corresponding operation time length thereof to obtain the temperature prediction model.
7. A device control apparatus, characterized by being applied to an electronic device, comprising: a temperature acquisition module, a temperature prediction module, a processor temperature acquisition module, a frame rate determination module, a frame rate statistics module, a frame rate correction module, and a frame rate adjustment module, wherein,
The temperature acquisition module is used for acquiring the current equipment temperature of the electronic equipment when the game is operated and the operation time of the game, wherein the operation time is the time of the game operated in the current game operation process when the current equipment temperature is acquired;
the temperature prediction module is used for inputting the current equipment temperature and the operation time length into a pre-trained temperature prediction model to obtain the predicted equipment temperature after the specified time length output by the temperature prediction model;
The processor temperature acquisition module is used for acquiring the current processor temperature of the electronic equipment;
The frame rate determining module is used for acquiring a first display frame rate corresponding to the temperature of the processor based on a set temperature conversion model; comparing the predicted equipment temperature with the processor temperature to obtain a comparison result; based on the comparison result, adjusting the first display frame rate to obtain a second display frame rate serving as a frame rate to be displayed;
The frame rate statistics module is used for acquiring a frame rate statistics record of the electronic equipment when the game is operated;
the frame rate correction module is used for correcting the frame rate to be displayed based on the frame rate statistical record;
The frame rate adjustment module is used for adjusting the display frame rate of the electronic equipment based on the corrected frame rate to be displayed.
8. An electronic device, comprising:
One or more processors;
A memory;
One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-6.
CN202011398849.0A 2020-12-01 2020-12-01 Equipment control method, device, electronic equipment and storage medium Active CN112587920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011398849.0A CN112587920B (en) 2020-12-01 2020-12-01 Equipment control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011398849.0A CN112587920B (en) 2020-12-01 2020-12-01 Equipment control method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112587920A CN112587920A (en) 2021-04-02
CN112587920B true CN112587920B (en) 2024-09-24

Family

ID=75187863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011398849.0A Active CN112587920B (en) 2020-12-01 2020-12-01 Equipment control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112587920B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515556A (en) * 2021-04-15 2021-10-19 阿里巴巴新加坡控股有限公司 Data processing method, client and electronic device
CN113873074B (en) * 2021-09-17 2023-09-29 杭州逗酷软件科技有限公司 Control method, electronic equipment and computer storage medium
CN116157186A (en) 2021-09-23 2023-05-23 谷歌有限责任公司 Automatic frame pacing based on game interaction state
GB2611817A (en) 2021-10-18 2023-04-19 Samsung Electronics Co Ltd Mobile device and method
CN114461051B (en) * 2021-12-29 2023-01-17 荣耀终端有限公司 Frame rate switching method, device and storage medium
CN116013221B (en) * 2022-12-13 2025-06-10 Oppo广东移动通信有限公司 Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN116520910A (en) * 2023-05-05 2023-08-01 歌尔股份有限公司 Equipment temperature control method, head-mounted equipment and storage medium
CN117714788B (en) * 2023-05-09 2024-10-11 荣耀终端有限公司 Stable frame scheduling method, device, terminal equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105388931A (en) * 2014-08-29 2016-03-09 三星电子株式会社 Device for controlling performance of the device based on fluctuations in internal temperature and method thereof
CN106095640A (en) * 2016-05-31 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN107132861A (en) * 2016-02-29 2017-09-05 通用汽车环球科技运作有限责任公司 Configurable temperature controlled method and system for controller processor
CN110881136A (en) * 2019-11-14 2020-03-13 腾讯科技(深圳)有限公司 Video frame rate control method and device, computer equipment and storage medium
CN114384945A (en) * 2020-10-21 2022-04-22 Oppo广东移动通信有限公司 Processor temperature control method, device, storage medium and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003230660A (en) * 2002-02-06 2003-08-19 Shinnichi Electronics Kk Image-display of slot machine or pachinko-slot machine, image-displaying method and image-displaying program for image-display of slot machine or pachinko-slot machine
JP2009111681A (en) * 2007-10-30 2009-05-21 Olympus Corp Temperature detection control device and imaging device provided with the same
US10133323B2 (en) * 2013-03-14 2018-11-20 Arizona Board Of Regents For And On Behalf Of Arizona State University Processor control system
US10671131B2 (en) * 2015-06-05 2020-06-02 Apple Inc. Predictive control systems and methods
KR102474460B1 (en) * 2017-08-23 2022-12-07 삼성전자 주식회사 electronic device and method for controlling of operation the same
KR102123178B1 (en) * 2018-01-24 2020-06-16 고려대학교 산학협력단 Machine learning based CPU temperature prediction method and apparatus
CN109960395B (en) * 2018-10-15 2021-06-08 华为技术有限公司 Resource scheduling method and computer equipment
CN109684173A (en) * 2018-12-25 2019-04-26 上海创功通讯技术有限公司 A kind of temperature adjusting method of mobile device, electronic equipment and storage medium
US10600388B1 (en) * 2019-02-28 2020-03-24 Motorola Mobility Llc Managing display brightness of a mobile device
KR102755085B1 (en) * 2019-05-15 2025-01-17 삼성전자주식회사 Method for controlling overheat of electronic device, the electronic device and storage medium therefor
CN110266886B (en) * 2019-06-21 2021-04-16 Oppo广东移动通信有限公司 Battery management method and related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105388931A (en) * 2014-08-29 2016-03-09 三星电子株式会社 Device for controlling performance of the device based on fluctuations in internal temperature and method thereof
CN107132861A (en) * 2016-02-29 2017-09-05 通用汽车环球科技运作有限责任公司 Configurable temperature controlled method and system for controller processor
CN106095640A (en) * 2016-05-31 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN110881136A (en) * 2019-11-14 2020-03-13 腾讯科技(深圳)有限公司 Video frame rate control method and device, computer equipment and storage medium
CN114384945A (en) * 2020-10-21 2022-04-22 Oppo广东移动通信有限公司 Processor temperature control method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112587920A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN112587920B (en) Equipment control method, device, electronic equipment and storage medium
US11765754B2 (en) Resource scheduling method and terminal device
CN109960395B (en) Resource scheduling method and computer equipment
CN112363842B (en) Frequency adjusting method and device for graphic processor, electronic equipment and storage medium
CN112631415B (en) CPU frequency adjusting method, device, electronic equipment and storage medium
CN108319974B (en) Data processing method, data processing device, storage medium and electronic device
TW201814512A (en) Scenario-based method and apparatus for performance and power management in electronic apparatus
CN109710330B (en) Method and device for determining running parameters of application program, terminal and storage medium
CN114706433B (en) Equipment control method and device and electronic equipment
EP3819744A1 (en) Frequency adjustment method, device, and computer readable storage medium
CN114367104B (en) Rendering distance adaptation method and device, game processing device and readable storage medium
WO2021081768A1 (en) Interface switching method and apparatus, wearable electronic device and storage medium
CN114741192B (en) Method and device for predicting card, terminal equipment and computer readable storage medium
CN114518797B (en) Information pushing method and device, wearable device and storage medium
CN113064660B (en) Device control method, device, electronic device and storage medium
CN113050783B (en) Terminal control method, device, mobile terminal and storage medium
CN112035324A (en) Batch job execution condition monitoring method and device
CN111050388B (en) Doze mode control method, device, mobile terminal and storage medium
CN114612830B (en) A method, device, equipment and storage medium for identifying a flower screen image
CN113259699B (en) Service detection method and device
US12413662B2 (en) Mobile device and method for providing personalized management system
CN112565510B (en) Physical exercise intelligent control method and related device
CN111814840A (en) Method, system, equipment and medium for evaluating quality of face image
US20230088429A1 (en) Processing device, processing method, and program
CN120393400B (en) A method, device and electronic device for controlling and switching the frame rate of a game display screen

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