Terminal device control method, device, electronic device and storage medium
By dynamically selecting the game playback method and adjusting resource management according to the model and time period of the terminal device, the problem of optimizing the terminal performance and playback effect after the game software is solved, and better user experience and resource utilization are achieved.
Patent Information
- Application Number
- CN202111333748.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2041-11-11
AI Technical Summary
The prior art optimizes electronic game software to adapt to medium and low-end terminal devices, resulting in an increase in the software volume, affecting terminal performance and game playback effects.
According to the terminal device's model and information on the current time period, dynamically determine the game play method, select cloud games or local games, and adjust the rendering mode and resource management if necessary to improve fluency.
It achieves better game playback effects on medium and low-end terminal devices, improves user experience, and reduces the consumption of terminal resources.
Smart Images

Figure CN114082177B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a terminal device control method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of Internet technology, electronic games have gradually become a common form of entertainment, and there are more and more types of electronic games.
[0003] In the related art, users can download and install the relevant software of the intended electronic games to personal terminals (such as smart phones, computers, etc.) according to their own interests, and then run the games for gaming entertainment. However, since the software of electronic games will occupy the memory space of personal terminals, and some large-scale electronic games require personal terminals to have good configuration and performance to support operation. Therefore, in order to adapt to the user groups with mid- and low-end personal terminals, a large amount of development costs are generally invested to optimize the game software so that it can have the best experience on high-end models and be compatible with the most basic game running effects on mid- and low-end models.
[0004] However, the size of the game software itself is greatly increased by optimizing the game software, making the size of the game software range from hundreds of megabytes to several gigabytes. The game software is then downloaded and installed on a personal terminal, which affects the performance of the personal terminal itself. Especially for mid- and low-end terminals, it not only consumes a large amount of memory space, but also fails to achieve the best game playback effect. Summary of the invention
[0005] The present disclosure provides a terminal device control method, device, electronic device and storage medium to at least solve the problem in the related art that the performance of a personal terminal and the game playing effect are affected by optimizing the game software. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a terminal device control method, including:
[0007] Responding to a game triggering instruction of an account, wherein the game triggering instruction is initiated by the account through a terminal device;
[0008] Obtain information about the model of the terminal device and the current time period;
[0009] According to the model of the terminal device and the information of the current time period, the game playing mode currently matched by the terminal device is determined and the game is played.
[0010] In one embodiment, the determining the game play mode currently matched by the terminal device and playing the game according to the model of the terminal device and the information of the current time period includes: when the model of the terminal device is the first type of model and the current time period is a network idle period, determining that the game play mode currently matched by the terminal device is a cloud game mode, and obtaining the game screen from the cloud game server for game play; when the model of the terminal device is the first type of model and the current time period is a network busy period, determining that the game play mode currently matched by the terminal device is a local game mode, displaying at least two local game play modes, and playing the game according to the first target play mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network idle period, determining that the game play mode currently matched by the terminal device includes a cloud game mode and a local game mode, displaying the cloud game mode and the local game mode, and playing the game according to the second target play mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network busy period, determining that the game play mode currently matched by the terminal device is a preset local game mode, and playing the game in the preset local game mode.
[0011] In one of the embodiments, when the model of the terminal device is the first type of model and the current time period is a network busy period, it is determined that the game playback mode currently matched by the terminal device is a local game mode, at least two local game playback modes are displayed, and the game is played according to the first target playback mode selected by the account. The method also includes: detecting the quality of the game screen during the game playback process; when it is detected that the game screen is stuck, adjusting the smoothness of the game screen.
[0012] In one embodiment, the detecting of the quality of the game screen during the game playing process includes: detecting an average frame rate of the game screen displayed during the game playing process, and when the average frame rate is lower than a first threshold, it is determined that the game screen is detected to be stuck; or, detecting the similarity between two adjacent frames of the game screen during the game playing process, and when the similarity is higher than a second threshold, it is determined that the game screen is detected to be stuck.
[0013] In one embodiment, adjusting the smoothness of the game screen includes: obtaining a rendering mode corresponding to the current game play mode, determining a third target play mode whose rendering mode is lower than the current game play mode for game play; or; when there is a target element in the game screen to be played, filtering the target element when loading the screen to be played, and playing the game on the filtered screen to be played.
[0014] In one embodiment, the at least two local game playing modes are game playing modes using different rendering modes; the displaying of at least two local game playing modes includes: obtaining at least two game playing modes with different rendering modes preset locally, and displaying the at least two game playing modes with different rendering modes; or, obtaining at least two game playing modes with different rendering modes matching the model of the terminal device, and displaying the at least two game playing modes with different rendering modes.
[0015] In one of the embodiments, when the model of the terminal device is the first type of model, the method also includes: performing a timed scan of the system resources of the terminal device, the system resources including at least one of the system free memory and the file system cache of the terminal device; when it is scanned that the system free memory or the file system cache of the terminal device reaches a preset condition, clearing the file system cache or the system memory of the terminal device.
[0016] According to a second aspect of an embodiment of the present disclosure, there is provided a terminal device control apparatus, including:
[0017] An instruction response module, configured to execute a game trigger instruction in response to an account, wherein the game trigger instruction is initiated by the account through a terminal device;
[0018] An information acquisition module is configured to acquire information about the model of the terminal device and the current time period;
[0019] The game playing module is configured to determine the game playing mode currently matched by the terminal device and play the game according to the model of the terminal device and the information of the current time period.
[0020] In one embodiment, the game playing module is configured to execute: when the model of the terminal device is the first type of model and the current time period is a network idle period, determine that the game playing mode currently matched by the terminal device is a cloud game mode, and obtain the game screen from the cloud game server for game playing; when the model of the terminal device is the first type of model and the current time period is a network busy period, determine that the game playing mode currently matched by the terminal device is a local game mode, display at least two local game playing modes, and play the game according to the first target playing mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network idle period, determine that the game playing mode currently matched by the terminal device includes a cloud game mode and a local game mode, display the cloud game mode and the local game mode, and play the game according to the second target playing mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network busy period, determine that the game playing mode currently matched by the terminal device is a preset local game mode, and use the preset local game mode to play the game.
[0021] In one embodiment, the apparatus further includes: a game play quality detection module, configured to determine that the game play mode currently matched by the terminal device is a local game mode when the model of the terminal device is a first type of model and the current time period is a network busy period, display at least two local game play modes, and play the game according to the first target play mode selected by the account, and then detect the quality of the game screen during the game play; a fluency adjustment module, configured to adjust the fluency of the game screen when it is detected that the game screen is stuck.
[0022] In one embodiment, the game playback quality detection module is configured to perform: detecting an average frame rate of the game screen displayed during game playback, and when the average frame rate is lower than a first threshold, it is determined that the game screen is detected to be stuck; or detecting the similarity between two adjacent frames of the game screen during game playback, and when the similarity is higher than a second threshold, it is determined that the game screen is detected to be stuck.
[0023] In one embodiment, the fluency adjustment module is configured to perform: obtaining a rendering mode corresponding to a current game play mode, determining a third target play mode whose rendering mode is lower than the current game play mode for game play; or; when there is a target element in the game screen to be played, filtering the target element when loading the screen to be played, and playing the game on the filtered screen to be played.
[0024] In one embodiment, the at least two local game playing modes are game playing modes using different rendering modes; the game playing module is further configured to execute: obtaining at least two game playing modes with different rendering modes preset locally, and displaying the at least two game playing modes with different rendering modes; or, obtaining at least two game playing modes with different rendering modes matching the model of the terminal device, and displaying the at least two game playing modes with different rendering modes.
[0025] In one of the embodiments, the device also includes: a system cleaning module, which is configured to perform a timed scan of the system resources of the terminal device when the model of the terminal device is the first type of model, and the system resources include at least one of the system free memory and file system cache of the terminal device; when the system free memory or file system cache of the terminal device is scanned to meet a preset condition, the file system cache or system memory of the terminal device is cleared.
[0026] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the terminal device control method as described in the first aspect above.
[0027] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the terminal device control method as described in the first aspect above.
[0028] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the terminal device control method as described in the first aspect above.
[0029] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: by responding to the game trigger instruction of the account and obtaining the model of the terminal device that initiates the game trigger instruction and the information of the current time period, and then according to the model of the terminal device and the information of the current time period, determining the game playback mode currently matched by the terminal device and playing the game, thereby achieving a better playback effect and improving the user experience.
[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0032] Figure 1 The present invention is a flowchart of a terminal device control method according to an exemplary embodiment.
[0033] Figure 2 The figure is a flow chart of another terminal device control method according to an exemplary embodiment.
[0034] Figure 3 The flowchart of another terminal device control method is shown according to an exemplary embodiment.
[0035] Figure 4 The present invention is a block diagram of a terminal device control apparatus according to an exemplary embodiment.
[0036] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0037] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0039] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0040] In one embodiment, Figure 1As shown, a terminal device control method is provided. This embodiment takes the method applied to a client as an example for illustration, wherein the client is loaded in the terminal device. It can be understood that the method can also be applied to a server. It can also be applied to a system including a terminal device and a server, and is implemented through the interaction between the client and the server in the terminal device. Specifically, the terminal device can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server can be implemented with an independent server or a server cluster consisting of multiple servers. In this embodiment, the method includes the following steps:
[0041] In step S110, respond to the game trigger instruction of the account.
[0042] Among them, the game trigger instruction refers to an instruction or command that triggers the opening of the game. Specifically, the game trigger instruction is initiated by the account through the terminal device, for example, it can be a click on the game control of the client installed in the terminal device. It is understandable that the client includes but is not limited to a short video application client, a social media client, a shopping client, etc., and the client has corresponding game controls. In this embodiment, when the user wants to play an electronic game, the corresponding game control in the client can be triggered through the terminal device, thereby initiating the corresponding game trigger instruction.
[0043] In step S120, the model of the terminal device and information of the current time period are obtained.
[0044] Among them, the model can be a type divided based on the configuration of the terminal device such as the brand, model and / or device performance parameters, which can reflect the level of the terminal device configuration. Specifically, the device performance parameters can include fixed performance parameters and dynamic performance parameters. Among them, the fixed performance parameters can be parameters such as the hardware configuration of the terminal device, including but not limited to the system type, processor type, memory capacity, hard disk capacity, etc., and the dynamic performance parameters can be the hardware usage of the terminal device, such as memory usage, hard disk usage and other parameters. For example, the model can be divided based on different brands and models of the terminal device, such as several models under a certain brand can be divided into one model, and some models under different brands can be divided into one model, so as to obtain multiple models divided according to brands and models; the model can also be divided based on the device performance parameters of the terminal device, such as different models can be divided based on the level of the device performance parameters of the terminal device. It can be understood that when the game touch command is initiated through the terminal device, the configuration information of the terminal device can be carried, such as the brand, model and / or device performance parameters of the terminal device, so that the client can determine the model of the terminal device based on the configuration information of the terminal device carried in the game trigger instruction.
[0045] The information of the current time period may refer to the network usage corresponding to the current moment. Generally, the network usage at different times of the day can be divided into network idle time periods and network busy time periods. The network idle time period indicates that there are many users using the network in the current time period, so the network speed is good, and the network busy time period indicates that there are many users using the network in the current time period, and the network speed will be slow or may be unstable. Therefore, in this embodiment, based on the current moment of the game trigger instruction initiated by the account through the terminal device, the current time period information corresponding to the current moment can be determined, that is, the current moment can be determined as a network idle time period or a network busy time period.
[0046] In step S130, according to the model of the terminal device and the information of the current time period, the game playing mode currently matched by the terminal device is determined and the game is played.
[0047] Among them, the game playing methods include local game mode and cloud game mode. Specifically, the local game mode refers to the method of playing games by running game applications downloaded and installed locally on the terminal device. The cloud game method is based on cloud computing. The game application runs on the cloud server, and the rendered game screen is compressed and transmitted to the terminal device through the network for gaming. Therefore, in the cloud game mode, since the game application is running on the cloud server, the terminal device does not need any high-end processors and graphics cards, but only needs to have a good network speed. In the local game mode, since the game application needs to be downloaded and installed locally for operation, the terminal device needs to have a configuration that can download and run the game application.
[0048] Based on this, in this embodiment, in order to adapt to different models of terminal devices and enable them to achieve better playback effects, the game playback mode currently matched by the terminal device can be determined and the game can be played according to the model of the terminal device and the information of the current time period. For example, when the model of the terminal device is a higher-configuration model, the game can be played through the local game mode, and when the model of the terminal device is a lower-configuration model, the game can be played through the cloud game mode. Since the cloud game mode has higher requirements for network speed, the game playback mode currently matched by the terminal device can also be determined in combination with the information of the current time period and the game can be played, thereby achieving better playback effects.
[0049] In the above-mentioned terminal device control method, by responding to the game trigger instruction of the account and obtaining the model of the terminal device that initiates the game trigger instruction and the information of the current time period, the game playback mode currently matched by the terminal device is determined and the game is played according to the model of the terminal device and the information of the current time period, thereby achieving a better playback effect and improving the user experience.
[0050] In an exemplary embodiment, in step S130, based on the model of the terminal device and information of the current time period, the game playback mode currently matched by the terminal device is determined and the game is played. Specifically, it may include: when the model of the terminal device is a first type of model and the current time period is a network idle period, it is determined that the game playback mode currently matched by the terminal device is a cloud game mode, and the game screen is obtained from the cloud game server for game play.
[0051] Among them, the first type of model may refer to a terminal device with a lower configuration, for example, a terminal device of a certain brand and model with a low configuration, or a terminal device with a device performance parameter less than or equal to a preset threshold. In this embodiment, when it is determined that the model of the terminal device is the first type of model and the current time period is a network idle period, since the network is good at this time and the configuration of the terminal device is low, the cloud gaming mode that does not require running the game application locally on the terminal device can be determined as the game playback mode currently matched by the terminal device, and the game screen is obtained from the cloud gaming server for game playback. Thereby achieving a better playback effect, so that users with low-configuration terminal devices can also experience a high-configuration gaming experience.
[0052] In an exemplary embodiment, in step S130, based on the model of the terminal device and information about the current time period, the game play mode currently matched by the terminal device is determined and the game is played. Specifically, it may also include: when the model of the terminal device is a first type of model and the current time period is a network busy period, it is determined that the game play mode currently matched by the terminal device is a local game mode, at least two local game play modes are displayed, and the game is played according to the first target play mode selected by the account.
[0053] Among them, at least two local game playing modes can be game playing modes using different rendering modes. Specifically, since the system resources required to play games in different rendering modes are different, the effects are also different. Therefore, there may be multiple rendering modes of game playing modes to match different scenes or user needs. For example, at least two game playing modes with different rendering modes can be preset locally in advance, so that when the matching game playing mode is determined to be a local playing mode, at least two game playing modes preset locally are directly displayed. The game playing mode of the corresponding rendering mode can also be set based on different models of terminal devices. For example, for the same model, at least two game playing modes with different rendering modes can be preset in advance, and then the corresponding game playing mode can be matched and displayed according to the model of the terminal device. The first target playing mode is one selected by the user from the at least two local game playing modes displayed. In this embodiment, when it is determined that the model of the terminal device is the first type of model and the current time period is a busy network period, since the network is poor at this time, if the cloud game mode is adopted, the game screen may be transmitted in an untimely manner, resulting in jamming. Therefore, the local game mode can be determined as the game playing mode currently matched by the terminal device. Because the configuration of the terminal device is relatively low, at least two local game playing methods matching the model can be displayed based on the terminal device model, and the game can be played according to the first target playing method selected by the account, thereby achieving a better playing effect.
[0054] In an exemplary embodiment, in step S130, based on the model of the terminal device and information about the current time period, the game playback mode currently matched by the terminal device is determined and the game is played. Specifically, it may also include: when the model of the terminal device is a second type of model and the current time period is a network idle period, it is determined that the game playback mode currently matched by the terminal device includes a cloud game mode and a local game mode, the cloud game mode and the local game mode are displayed, and the game is played according to the second target playback mode selected by the account.
[0055] Among them, the second type of model may refer to a terminal device with a higher configuration, for example, it may be a terminal device of a certain brand and model under high configuration, or a terminal device with a device performance parameter greater than a preset threshold. The second target playback mode is one selected by the user from the displayed cloud gaming mode and local gaming mode. In this embodiment, when it is determined that the model of the terminal device is the second type of model and the current time period is a network idle period, since the network is better at this time and the configuration of the terminal device is also higher, both the local gaming mode and the cloud gaming mode are applicable to the terminal device, so that both the cloud gaming mode and the local gaming mode can be determined as the game playback mode currently matched by the terminal device, and the cloud gaming mode and the local gaming mode are displayed, and then the game is played according to the second target playback mode selected by the account, thereby achieving a better playback effect.
[0056] In an exemplary embodiment, in step S130, based on the model of the terminal device and information about the current time period, the game play mode currently matched by the terminal device is determined and the game is played. Specifically, it may also include: when the model of the terminal device is a second type of model and the current time period is a network busy period, determining that the game play mode currently matched by the terminal device is a preset local game mode, and using the preset local game mode to play the game.
[0057] In this embodiment, when it is determined that the model of the terminal device is the second type and the current time period is a busy network period, since the network is poor at this time, if the cloud gaming method is adopted, it may cause lag due to untimely transmission of the game screen. Since the configuration of the terminal device is relatively high, it can run the game application locally and obtain better results. Therefore, the preset local game mode can be used as the game playback mode currently matched by the terminal device, and the preset local game mode can be used for game playback, and better playback effects can be achieved.
[0058] In an exemplary embodiment, if Figure 2 As shown, when the model of the terminal device is the first type of model and the current time period is a network busy period, it is determined that the game play mode currently matched by the terminal device is a local game mode, at least two local game play modes are displayed, and the game is played according to the first target play mode selected by the account, the above method may also include:
[0059] In step S210, the quality of the game screen during the game playing process is detected.
[0060] Among them, the quality of the game screen during the game playing process is reflected in whether the game screen is stuck during the game playing process. For example, when the game screen is stuck, it means that the quality of the game screen is not good.
[0061] Specifically, in an exemplary embodiment, detecting the quality of the game screen during the game playback process may specifically include: detecting the average frame rate of the game screen display during the game playback process, and when the average frame rate is lower than the first threshold, it is determined that the game screen is detected to be stuck. Among them, the average frame rate refers to the frequency or rate at which a bitmap image in frames appears on the display on average per second, and the first threshold can be the minimum frequency or rate that makes the picture smooth. Since the video is an effect produced by the continuous execution of bitmap images in frames, when the speed of switching independent images frame by frame is fast enough, continuous action will be generated, and when the image switching speed is slow, a stuttering phenomenon will occur. Therefore, in this embodiment, the average frame rate of the game screen display during the game playback process can be detected. When the average frame rate is lower than the first threshold, it means that the image switching speed does not meet the expected requirements, thereby determining that the game screen is detected to be stuck.
[0062] In an exemplary embodiment, detecting the quality of the game screen during the game playback process may specifically include: detecting the similarity between two adjacent frames of the game screen during the game playback process, and when the similarity is higher than a second threshold, it is determined that a freeze in the game screen is detected. Wherein, similarity refers to the degree of similarity between two adjacent frames of the game screen. The second threshold is the minimum similarity for judging that two frames are the same frame. Since continuous action will only occur when the image switching speed is fast enough, if it is detected that the similarity between two adjacent frames of the game screen during the game playback process is higher than the second threshold, it means that the two adjacent frames of the game screen are the same frame, that is, the screen has not switched, and it is determined that a freeze in the game screen is detected. Thereby, rapid detection of the quality of the game screen during the game playback process is achieved.
[0063] In step S220, when a freeze in the game screen is detected, the smoothness of the game screen is adjusted.
[0064] Specifically, when a freeze in the game screen is detected, it indicates that the quality of the game screen is poor, and thus the quality of the game screen can be improved by adjusting the smoothness of the game screen.
[0065] In an exemplary embodiment, adjusting the smoothness of the game screen may specifically include: obtaining the rendering mode corresponding to the current game play mode, and determining a third target play mode whose rendering mode is lower than the current game play mode to play the game. Since the system resources required to play games in different rendering modes are different, the effects are also different. Therefore, when a freeze occurs when playing the game through the local game mode, it means that the current system resources may not be sufficient to support the current rendering mode, so based on the rendering mode corresponding to the current game play mode, the game can be played using a third target play mode whose rendering mode is lower than the current game play mode. Specifically, the third target play mode is a local game play mode that is lower than the current rendering mode, thereby improving the smoothness of the game play screen.
[0066] In an exemplary embodiment, adjusting the smoothness of the game screen may specifically include: when there is a target element in the game screen to be played, filtering the target element when loading the screen to be played, and playing the game on the filtered screen to be played. The target element refers to an element with an animation effect. Since the animation effect is obtained based on a large amount of calculation and processing, when the configuration of the terminal device is low, its calculation and processing speed is slow, which makes the screen prone to jamming. Based on this, in this embodiment, by filtering the target element when loading the screen to be played, the loading of elements with animation effects is turned off, and then the filtered screen to be played is played to improve the smoothness of the game playback screen.
[0067] In an exemplary embodiment, if Figure 3 As shown, when the model of the terminal device is the first type of model, the above method may also include:
[0068] In step S310, a periodic scan is performed on the system resources of the terminal device.
[0069] The system resources include at least one of the system free memory and file system cache of the terminal device. The scheduled scan can be performed periodically based on a set time period. Specifically, when it is determined that the model of the terminal device is the first type of model, the system resources of the terminal device can be scanned regularly.
[0070] In step S320, when it is scanned that the system free memory or file system cache of the terminal device reaches a preset condition, the file system cache or system memory of the terminal device is cleared.
[0071] The preset condition may be a pre-set condition threshold, and the threshold may be different based on different system resources. For example, when the system free memory of the terminal device is scanned to be less than the memory threshold, the system memory of the terminal device may be automatically cleaned up, thereby avoiding the inability to run the corresponding game application due to exhaustion of the system memory of the terminal device. Alternatively, when the file system cache of the terminal device is scanned to be greater than the cache threshold, the file system cache of the terminal device may be automatically cleaned up, thereby avoiding the operation of the game application being affected by excessive file system cache of the terminal device, thereby improving the game playback effect.
[0072] It should be understood that although Figure 1-Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 3 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0073] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
[0074] Figure 4 is a block diagram of a terminal device control device according to an exemplary embodiment. Figure 4 The device includes an instruction response module 402, an information acquisition module 404 and a game playing module 406.
[0075] The instruction response module 402 is configured to execute a game trigger instruction in response to an account, wherein the game trigger instruction is initiated by the account through a terminal device;
[0076] The information acquisition module 404 is configured to acquire information about the model of the terminal device and the current time period;
[0077] The game playing module 406 is configured to determine the game playing mode currently matched by the terminal device and play the game according to the model of the terminal device and the information of the current time period.
[0078] In an exemplary embodiment, the game playing module is configured to execute: when the model of the terminal device is the first type of model and the current time period is a network idle period, determine that the game playing mode currently matched by the terminal device is a cloud game mode, and obtain the game screen from the cloud game server for game playing; when the model of the terminal device is the first type of model and the current time period is a network busy period, determine that the game playing mode currently matched by the terminal device is a local game mode, display at least two local game playing modes, and play the game according to the first target playing mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network idle period, determine that the game playing mode currently matched by the terminal device includes a cloud game mode and a local game mode, display the cloud game mode and the local game mode, and play the game according to the second target playing mode selected by the account; when the model of the terminal device is the second type of model and the current time period is a network busy period, determine that the game playing mode currently matched by the terminal device is a preset local game mode, and use the preset local game mode to play the game.
[0079] In an exemplary embodiment, the apparatus further includes: a game play quality detection module, configured to determine that the game play mode currently matched by the terminal device is a local game mode when the model of the terminal device is a first type of model and the current time period is a network busy period, display at least two local game play modes, and play the game according to the first target play mode selected by the account, and then detect the quality of the game screen during the game play; and a fluency adjustment module, configured to adjust the fluency of the game screen when a freeze is detected in the game screen.
[0080] In an exemplary embodiment, the game playback quality detection module is configured to perform: detecting an average frame rate of the game screen displayed during game playback, and when the average frame rate is lower than a first threshold, it is determined that the game screen is detected to be stuck; or detecting the similarity between two adjacent frames of the game screen during game playback, and when the similarity is higher than a second threshold, it is determined that the game screen is detected to be stuck.
[0081] In an exemplary embodiment, the fluency adjustment module is configured to perform: obtaining a rendering mode corresponding to a current game play mode, determining a third target play mode whose rendering mode is lower than the current game play mode for game play; or; when there is a target element in the game screen to be played, filtering the target element when loading the screen to be played, and playing the game on the filtered screen to be played.
[0082] In an exemplary embodiment, the at least two local game playing modes are game playing modes using different rendering modes; the game playing module is further configured to execute: obtaining at least two game playing modes with different rendering modes preset locally, and displaying the at least two game playing modes with different rendering modes; or, obtaining at least two game playing modes with different rendering modes matching the model of the terminal device, and displaying the at least two game playing modes with different rendering modes.
[0083] In an exemplary embodiment, the device also includes: a system cleaning module, which is configured to perform a timed scan of the system resources of the terminal device when the model of the terminal device is the first type of model, and the system resources include at least one of the system free memory and file system cache of the terminal device; when it is scanned that the system free memory or file system cache of the terminal device reaches a preset condition, clear the file system cache or system memory of the terminal device.
[0084] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0085] Figure 5 1 is a block diagram of an electronic device Z00 for terminal device control according to an exemplary embodiment. For example, the electronic device Z00 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0086] Reference Figure 5 The electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power component Z06, a multimedia component Z08, an audio component Z10, an input / output (I / O) interface Z12, a sensor component Z14, and a communication component Z16.
[0087] The processing component Z02 generally controls the overall operation of the electronic device Z00, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component Z02 may include one or more processors Z20 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component Z02 may include one or more modules to facilitate interaction between the processing component Z02 and other components. For example, the processing component Z02 may include a multimedia module to facilitate interaction between the multimedia component Z08 and the processing component Z02.
[0088] The memory Z04 is configured to store various types of data to support operations on the electronic device Z00. Examples of such data include instructions for any application or method operating on the electronic device Z00, contact data, phone book data, messages, pictures, videos, etc. The memory Z04 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
[0089] The power supply assembly Z06 provides power to various components of the electronic device Z00. The power supply assembly Z06 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device Z00.
[0090] The multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component Z08 includes a front camera and / or a rear camera. When the electronic device Z00 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0091] The audio component Z10 is configured to output and / or input audio signals. For example, the audio component Z10 includes a microphone (MIC), and when the electronic device Z00 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory Z04 or sent via the communication component Z16. In some embodiments, the audio component Z10 also includes a speaker for outputting an audio signal.
[0092] I / O interface Z12 provides an interface between processing component Z02 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0093] The sensor assembly Z14 includes one or more sensors for providing various aspects of status assessment for the electronic device Z00. For example, the sensor assembly Z14 can detect the open / closed state of the electronic device Z00, the relative positioning of the components, such as the display and keypad of the electronic device Z00, and the sensor assembly Z14 can also detect the position change of the electronic device Z00 or the components of the electronic device Z00, the presence or absence of contact between the user and the electronic device Z00, the orientation or acceleration / deceleration of the device Z00 and the temperature change of the electronic device Z00. The sensor assembly Z14 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly Z14 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0094] The communication component Z16 is configured to facilitate wired or wireless communication between the electronic device Z00 and other devices. The electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component Z16 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component Z16 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0095] In an exemplary embodiment, the electronic device Z00 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0096] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory Z04 including instructions, and the above instructions can be executed by a processor Z20 of the electronic device Z00 to complete the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0097] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by the processor Z20 of the electronic device Z00 to implement the above method.
[0098] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.
[0099] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0100] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A terminal device control method, characterized in that: The method comprises: Responding to a game triggering instruction of an account, wherein the game triggering instruction is initiated by the account through a terminal device; Acquire the model of the terminal device and information of the current time period, where the information of the current time period is used to characterize the network usage corresponding to the current moment, including any one of a network idle period and a network busy period; According to the model of the terminal device and the information of the current time period, determine the game playing mode currently matched by the terminal device and play the game; The determining, based on the model of the terminal device and the information of the current time period, the game playing mode currently matched by the terminal device and playing the game includes: When the model of the terminal device is a first type of model and the current time period is a network busy period, it is determined that the game playback mode currently matched by the terminal device is a local game mode, at least two local game playback modes matching the model of the terminal device are displayed, and the game is played according to the first target playback mode selected by the account. The first type of model refers to a terminal device whose device performance parameters are less than or equal to a preset threshold, and the at least two local game playback modes are game playback modes using different rendering modes. The first target playback mode is one selected by the account from the at least two local game playback modes displayed.
2. The method according to claim 1, characterized in that The determining, based on the model of the terminal device and the information of the current time period, the game playing mode currently matched by the terminal device and playing the game includes: When the model of the terminal device is the first type and the current time period is a network idle period, determining that the game playing mode currently matched by the terminal device is a cloud game mode, and obtaining the game screen from the cloud game server for game playing; When the model of the terminal device is the second type of model and the current time period is a network idle period, determining that the game play mode currently matched by the terminal device includes a cloud game mode and a local game mode, displaying the cloud game mode and the local game mode, and playing the game according to the second target play mode selected by the account; When the model of the terminal device is the second type and the current time period is a network busy period, it is determined that the game playing mode currently matched by the terminal device is a preset local game mode, and the preset local game mode is used to play the game.
3. The method according to claim 2, characterized in that When the model of the terminal device is the first type of model and the current time period is a network busy period, determining that the game play mode currently matched by the terminal device is a local game mode, displaying at least two local game play modes, and playing the game according to the first target play mode selected by the account, the method further includes: Detect the quality of the game screen during game playback; When it is detected that the game screen is stuck, the smoothness of the game screen is adjusted.
4. The method according to claim 3, characterized in that The detecting of the quality of the game screen during the game playing process includes: Detecting an average frame rate of the game screen during game playback, and when the average frame rate is lower than a first threshold, determining that a freeze in the game screen is detected; or, The similarity between two adjacent frames of the game screen during the game playing process is detected, and when the similarity is higher than a second threshold, it is determined that a freeze in the game screen is detected.
5. The method according to claim 3, characterized in that: The adjusting the fluency of the game screen includes: Obtaining a rendering mode corresponding to the current game playing mode, and determining a third target playing mode whose rendering mode is lower than the current game playing mode to play the game; or; When there is a target element in the game screen to be played, the target element is filtered when the screen to be played is loaded, and the game is played on the filtered screen to be played.
6. The method according to claim 2, characterized in that The at least two local game playing modes are game playing modes using different rendering modes; The display includes at least two local game playing modes: Obtaining game playing modes of at least two different rendering modes preset locally, and displaying the game playing modes of the at least two different rendering modes; or, Obtain game play methods of at least two different rendering modes that match the model of the terminal device, and display the game play methods of the at least two different rendering modes.
7. The method according to any one of claims 2 to 6, characterized in that: When the model of the terminal device is a first type of model, the method further includes: Performing a periodic scan on the system resources of the terminal device, the system resources comprising at least one of a system free memory and a file system cache of the terminal device; When it is scanned that the system free memory or file system cache of the terminal device reaches a preset condition, the file system cache or system memory of the terminal device is cleared.
8. A terminal device control device, characterized in that: include: An instruction response module, configured to execute a game trigger instruction in response to an account, wherein the game trigger instruction is initiated by the account through a terminal device; An information acquisition module is configured to acquire information about the model of the terminal device and a current time period, wherein the information about the current time period is used to characterize the network usage corresponding to the current moment, including any one of a network idle time period and a network busy time period; A game playing module is configured to determine the game playing mode currently matched by the terminal device and play the game according to the model of the terminal device and the information of the current time period; The game playing module is configured to execute: when the model of the terminal device is a first type of model and the current time period is a network busy period, determine that the game playing mode currently matched by the terminal device is a local game mode, display at least two local game playing modes matching the model of the terminal device, and play the game according to the first target playing mode selected by the account, the first type of model refers to a terminal device whose device performance parameters are less than or equal to a preset threshold, the at least two local game playing modes are game playing modes using different rendering modes, and the first target playing mode is one selected by the account from the at least two local game playing modes displayed.
9. The device according to claim 8, characterized in that The game playing module is configured to execute: When the model of the terminal device is the first type and the current time period is a network idle period, determining that the game playing mode currently matched by the terminal device is a cloud game mode, and obtaining the game screen from the cloud game server for game playing; When the model of the terminal device is the second type of model and the current time period is a network idle period, determining that the game play mode currently matched by the terminal device includes a cloud game mode and a local game mode, displaying the cloud game mode and the local game mode, and playing the game according to the second target play mode selected by the account; When the model of the terminal device is the second type and the current time period is a network busy period, it is determined that the game playing mode currently matched by the terminal device is a preset local game mode, and the preset local game mode is used to play the game.
10. The device according to claim 9, characterized in that The device also includes: The game play quality detection module is configured to, when the model of the terminal device is the first type of model and the current time period is a network busy period, determine that the game play mode currently matched by the terminal device is a local game mode, display at least two local game play modes, and play the game according to the first target play mode selected by the account, and then detect the quality of the game screen during the game play; The fluency adjustment module is configured to adjust the fluency of the game screen when a freeze is detected in the game screen.
11. The device according to claim 10, characterized in that The game play quality detection module is configured to perform: Detecting an average frame rate of the game screen during game playback, and when the average frame rate is lower than a first threshold, determining that a freeze in the game screen has been detected; or, The similarity between two adjacent frames of the game screen during the game playing process is detected, and when the similarity is higher than a second threshold, it is determined that a freeze in the game screen is detected.
12. The device according to claim 10, characterized in that The fluency adjustment module is configured to execute: Obtaining a rendering mode corresponding to the current game playing mode, and determining a third target playing mode whose rendering mode is lower than the current game playing mode to play the game; or; When there is a target element in the game screen to be played, the target element is filtered when the screen to be played is loaded, and the game is played on the filtered screen to be played.
13. The device according to claim 9, characterized in that The at least two local game playing modes are game playing modes using different rendering modes; the game playing module is further configured to execute: Obtaining game playing modes of at least two different rendering modes preset locally, and displaying the game playing modes of the at least two different rendering modes; or, Obtain game play methods of at least two different rendering modes that match the model of the terminal device, and display the game play methods of the at least two different rendering modes.
14. The device according to any one of claims 8 to 13, characterized in that The device also includes: a system cleaning module configured to perform a timed scan of system resources of the terminal device when the model of the terminal device is the first type of model, the system resources comprising at least one of a system free memory and a file system cache of the terminal device; When it is scanned that the system free memory or file system cache of the terminal device reaches a preset condition, the file system cache or system memory of the terminal device is cleared.
15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the terminal device control method as described in any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the terminal device control method as claimed in any one of claims 1 to 7.
17. A computer program product, comprising instructions, characterized in that: When the instruction is executed by a processor of an electronic device, the electronic device is enabled to execute the terminal device control method as described in any one of claims 1 to 7.
