Frame rate adjustment method, device, equipment and computer readable storage medium

By identifying operating scenarios and dynamically adjusting the frame rate, smart terminals solve the problems of power consumption and heat generation under high frame rates, ensure user experience and terminal performance, and achieve real-time adjustment of the frame rate and reduction of power consumption.

CN117331427BActive Publication Date: 2024-10-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311499852.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-10-22
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

After long-term operation, smart terminals cannot maintain high frame rates due to high temperatures, resulting in reduced performance, inability to support high frame rate display and touch experience, and increased power consumption and heat generation.

Method used

By obtaining the running data of the application client, it identifies the running scenario and dynamically adjusts the frame rate. It supports high frame rate output in high frame rate scenarios and reduces the frame rate in low frame rate scenarios to reduce power consumption and ensure user experience and terminal performance.

Benefits of technology

It is possible to reduce terminal power consumption while ensuring user experience, extend terminal usage time, and avoid performance degradation and frame rate reduction caused by excessive temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117331427B_ABST
    Figure CN117331427B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a frame rate adjustment method, device, equipment and computer-readable storage medium, wherein the method includes: when the application client in the terminal supports dynamic frame rate switching, obtaining the operation data of the application client when it is running in the foreground; determining the operation scenario of the application client based on the operation data; determining the target operation frame rate of the application client based on the operation scenario; the application client outputs images according to the target operation frame rate to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen. Through the present application, the operation frame rate of the application client and / or the refresh frame rate of the screen can be dynamically adjusted based on the operation scenario of the application client.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a Chinese patent with an application date of November 9, 2020, application number 202011242460.7, and invention name “Frame rate adjustment method, device, equipment and computer-readable storage medium”. Technical Field

[0002] The embodiments of the present application relate to the field of image processing technology, and relate to but are not limited to a frame rate adjustment method, device, equipment and computer-readable storage medium. Background Art

[0003] With the development of terminal technology, the frame rates supported by smart terminals are getting higher and higher, and 120 or even 144 frames are becoming more and more common. High frame rates bring users smooth screen display and faster touch response experience, but also bring higher power consumption and heat. Currently, due to the limitation of heat dissipation capacity, smart terminals cannot maintain high frame rates for a long time. After running for a period of time, the high temperature protection mechanism will be activated due to excessive temperature, thereby reducing performance and making it impossible to support high frame rates. Summary of the invention

[0004] The embodiments of the present application provide a frame rate adjustment method, apparatus, device and computer-readable storage medium, which can enable.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a frame rate adjustment method, including:

[0007] When the application client in the terminal supports dynamic frame rate switching, the running data of the application client when running in the foreground is obtained;

[0008] Determine an operation scenario of the application client based on the operation data;

[0009] Determine a target running frame rate of the application client based on the running scenario;

[0010] The application client outputs images according to the target operating frame rate to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen.

[0011] The present application provides a frame rate adjustment device, including:

[0012] A first acquisition module is used to acquire the running data of the application client when the application client in the terminal supports dynamic frame rate switching when the application client is running in the foreground;

[0013] A first determination module, configured to determine an operation scenario of the application client based on the operation data;

[0014] A second determination module is used to determine a target running frame rate of the application client based on the running scenario;

[0015] The first output module is used to control the application client to output images according to the target running frame rate, so as to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen.

[0016] The present application provides a frame rate adjustment device, including:

[0017] The memory is used to store executable instructions; the processor is used to execute the executable instructions stored in the memory, so that the frame rate adjustment device implements the above method.

[0018] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute instructions so that a frame rate adjustment device implements the above method.

[0019] The embodiments of the present application have the following beneficial effects:

[0020] When the application client in the terminal supports dynamic frame rate switching, the running data of the application client when it is running in the foreground is obtained, and then the application client determines the running scenario based on the running data. Different running scenarios can correspond to different target running frame rates. Therefore, after determining the running scenario, the target running frame rate of the application client is determined based on the running scenario. After that, the application client outputs images according to the target running frame rate to dynamically adjust the frame rate of the application client, thereby realizing real-time dynamic adjustment of the frame rate by the application client based on the running scenario, and the dynamic adjustment is also used to trigger the terminal to adjust the refresh frame rate of the screen, which can effectively reduce power consumption while ensuring user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of a network architecture of a frame rate adjustment system 10 provided in an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of the structure of the terminal 300 provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of an implementation flow of a frame rate adjustment method provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of another implementation flow of the frame rate adjustment method provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of another implementation flow of the frame rate adjustment method provided in an embodiment of the present application;

[0026] Figure 6 A schematic diagram of the implementation process of scene division provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of the interaction process between a terminal and a game client provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0029] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the technical field of the embodiments of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0030] 1) Smart terminal: refers to a type of device that has rich human-computer interaction methods, has the ability to access the Internet, is usually equipped with various operating systems, and has strong processing capabilities. Smart terminals can be divided into mobile smart terminals and inconvenient mobile smart terminals. Mobile smart terminals include smart phones, tablet computers, car terminals, handheld game consoles, etc. Inconvenient mobile smart terminals include desktop computers, desktop computers, etc.

[0031] 2) Frame rate (Frame Per Second, FPS): It is the frequency (rate) at which bitmap images in frames appear continuously on the display.

[0032] 3) Running frame rate: the number of frames that the application client can render and output per second during runtime.

[0033] 4) Refresh frame rate, also known as refresh frequency, refers to the number of times the screen can be refreshed per second.

[0034] In order to better understand the frame rate adjustment method provided in the embodiment of the present application, the frame rate adjustment method in the related art is first described:

[0035] In the related technology, the terminal prioritizes high frame rate, and is forced to reduce the frame rate when the temperature is too high and can no longer provide sufficient performance support. In the existing solution, users will clearly feel that the terminal temperature is too high, and they can also clearly feel the reduction in frame rate, which has a significant impact on the application experience.

[0036] Based on this, the embodiment of the present application provides a frame rate adjustment method, which identifies game scenes for apps such as games, dynamically supports high frame rates for scenes where users have operations, thereby giving users the best display and touch experience; for static images or scenes that do not require user operations, the frame rate is dynamically reduced in real time, thereby reducing the power consumption and heat generation of the terminal. Through accurate scene recognition, it is ensured that low frame rate scenes have no significant impact on the user's game interaction and experience, while achieving a significant reduction in overall power consumption and terminal operating temperature.

[0037] The following describes an exemplary application of the frame rate adjustment device provided in the embodiment of the present application. The frame rate adjustment device provided in the embodiment of the present application can be implemented as any terminal with a screen display function, such as a laptop computer, a tablet computer, a desktop computer, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device), an intelligent robot, etc. The following describes an exemplary application when the frame rate adjustment device is implemented as a terminal.

[0038] See also Figure 1 , Figure 1 A schematic diagram of a network architecture of the frame rate adjustment system 10 provided in an embodiment of the present application. Figure 1 As shown, the frame rate adjustment system 10 includes a server 100, a network 200 and a terminal 300. The terminal 300 is connected to the server 100 via the network 200, and the network 200 can be a wide area network or a local area network, or a combination of the two. Among them, various applications are installed on the terminal 300, such as game applications, shopping applications, video viewing applications, etc. When implementing the frame rate adjustment method of the embodiment of the present application, the terminal 300 displays the content displayed by the currently running application on the current display interface. In the embodiment of the present application, the game application running in the terminal 300 is used as an example for explanation. The game client obtains the game running data from the server 100 through the network 200, and determines the current scene in real time based on the game running data, and then adjusts the running frame rate of the game client based on the determined scene. After the adjustment, the game client notifies the operating system of the terminal 300 to trigger the operating system of the terminal 300 to adjust the refresh frame rate of the screen, which can not only realize the real-time adjustment of the frame rate based on the scene, but also effectively reduce the power consumption of the terminal, thereby ensuring the performance of the terminal.

[0039] See also Figure 2 , Figure 2is a schematic diagram of the structure of the terminal 300 provided in an embodiment of the present application, Figure 2 The terminal 300 shown includes: at least one processor 310, a memory 350, at least one network interface 320 and a user interface 330. The various components in the terminal 300 are coupled together via a bus system 340. It is understood that the bus system 340 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 340 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 340 is not shown in FIG. Figure 2 Various buses are labeled as bus system 340 .

[0040] The processor 310 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0041] The user interface 330 includes one or more output devices 331 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 330 also includes one or more input devices 332, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0042] The memory 350 may be removable, non-removable or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 350 may optionally include one or more storage devices physically away from the processor 310. The memory 350 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 350 described in the embodiment of the present application is intended to include any suitable type of memory. In some embodiments, the memory 350 can store data to support various operations, and examples of these data include programs, modules, and data structures or subsets or supersets thereof, as exemplarily described below.

[0043] Operating system 351, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0044] A network communication module 352, for reaching other computing devices via one or more (wired or wireless) network interfaces 320, exemplary network interfaces 320 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);

[0045] The input processing module 353 is used to detect one or more user inputs or interactions from one of the one or more input devices 332 and translate the detected inputs or interactions.

[0046] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 A frame rate adjustment device 354 stored in the memory 350 is shown, and the frame rate adjustment device 354 may be a frame rate adjustment device in the terminal 300, which may be software in the form of a program and a plug-in, and includes the following software modules: a first determination module 3541, a first output module 3542, and a first sending module, and these modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0047] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the frame rate adjustment method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0048] The frame rate adjustment method provided in the embodiment of the present application will be described below in conjunction with the exemplary application and implementation of the terminal 300 provided in the embodiment of the present application. Figure 3 , Figure 3 A schematic diagram of an implementation flow of the frame rate adjustment method provided in the embodiment of the present application will be combined with Figure 3 The steps shown are explained.

[0049] Step S101: when the application client in the terminal supports dynamic frame rate switching, the running data of the application client when running in the foreground is obtained.

[0050] Here, the application client may be a game client, a video viewing client, or a shopping client, etc. When implementing step S101, when the application client supports dynamic frame rate switching, the application client obtains its own operation data when running in the foreground, wherein the operation data may include screen information of the presented screen and user operation data, and further, the screen information may be image data of the image rendered and output by the application client during operation, for example, it may include the pixel value of each pixel point of the rendered and output image; the user operation data may include information such as the time point information of the user triggering each operation, the location of the user operation, and the pressure value of the user operation.

[0051] Step S102: determining an operation scenario of the application client based on the operation data.

[0052] Here, the running scenario may include at least a high frame rate running scenario and a low frame rate running scenario, and in some embodiments, may also include a medium frame rate running scenario.

[0053] When step S102 is implemented, the operation data may be analyzed to determine the screen motion, user operation frequency, or whether it is a specific high frame rate scene, thereby determining the operation scene of the application client. Further, when there is screen motion and / or the user operation frequency exceeds a certain number threshold and / or is determined to be a specific high frame rate scene, the operation scene is determined to be a high frame rate scene. On the contrary, when there is no screen motion, the user operation does not exceed a certain number threshold, and it is not a specific high frame rate scene, the operation scene is determined to be a low frame rate scene.

[0054] Step S103: determining a target running frame rate of the application client based on the running scenario.

[0055] During implementation, different operating frame rates can be pre-allocated to different operating scenarios based on the maximum frame rate supported by the terminal. For example, when the maximum frame rate supported by the terminal is 90 frames, and the operating scenarios include high frame rate operating scenarios and low frame rate operating scenarios, then the operating frame rate corresponding to the high frame rate operating scenario can be 90 frames, and the operating frame rate corresponding to the low frame rate operating scenario can be 30 frames.

[0056] After allocating corresponding operating frame rates to different operating scenarios in advance, in step S103, the target operating frame rate of the application client can be determined according to the determined operating scenario. For example, when the determined operating scenario is a high frame rate operating scenario, the target operating frame rate of the application client is 90 frames.

[0057] Step S104: the application client outputs images according to the target operating frame rate, so as to dynamically adjust the frame rate of the application client.

[0058] Here, the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen. That is to say, when the application client outputs images according to the target operating frame rate to achieve dynamic adjustment of the frame rate, it can also drive the terminal to adjust the refresh frame rate of the screen. In implementation, there are two ways to trigger the terminal to dynamically adjust the refresh frame rate of the screen by using the dynamic adjustment of the frame rate by the application client. One is passive adjustment by the terminal, that is, the application client instructs the terminal to adjust the frame rate according to the target operating frame rate; the other is active adjustment by the terminal, that is, the terminal's operating system actively monitors the frame rate changes of the application client, and actively adjusts the frame rate when the frame rate changes of the application client are detected.

[0059] In addition, it should be noted that when the terminal dynamically adjusts the screen refresh frame rate, it can adjust the screen refresh frame rate to the target operating frame rate when the terminal's operating status allows, or it can adjust the screen refresh frame rate to a certain extent when the terminal's operating status does not allow. The current refresh frame rate of the screen is 30 frames, and the target operating frame rate is 90 frames. If the current temperature of the terminal is slightly high, the screen refresh frame rate cannot be increased to 90 frames. At this time, the refresh frame rate can be increased to 60 frames.

[0060] In the frame rate adjustment method provided in the embodiment of the present application, when the application client in the terminal supports dynamic frame rate switching, the operation data of the application client when it is running in the foreground is obtained, and then the application client determines the operation scenario based on the operation data. Different operation scenarios can correspond to different target operation frame rates. Therefore, after determining the operation scenario, the target operation frame rate of the application client is determined based on the operation scenario. Thereafter, the application client outputs images according to the target operation frame rate to dynamically adjust the frame rate of the application client, thereby realizing real-time dynamic adjustment of the frame rate by the application client based on the operation scenario, and the dynamic adjustment is also used to trigger the terminal to adjust the refresh frame rate of the screen, which can effectively reduce power consumption while ensuring user experience.

[0061] In some embodiments, after the application client performs dynamic frame rate adjustment, that is, outputs the image according to the target operating frame rate, the terminal may be triggered to dynamically adjust the frame rate accordingly. The terminal may actively or passively adjust the frame rate based on the dynamic adjustment of the application client. If the terminal passively adjusts the frame rate dynamically, after step S104, Figure 4 As shown, you can also perform the following steps:

[0062] Step S105A: the application client sends the target operating frame rate to the operating system of the terminal to instruct the screen of the terminal to refresh the display according to the target operating frame rate.

[0063] Here, during implementation, after being started, the application client may request to establish a communication connection with the terminal operating system. After the communication connection is successfully established, information and data can be exchanged between the terminal operating system and the application client.

[0064] Step S106A: After receiving the target operating frame rate, the operating system of the terminal obtains the state parameters of the terminal.

[0065] Here, the status parameters of the terminal may include CPU temperature, CPU occupancy rate, etc.

[0066] Step S107A: The operating system of the terminal determines whether the terminal meets the execution condition of the target operating frame rate based on the state parameter.

[0067] When implementing step S107A, the temperature threshold and / or usage threshold included in the target operating frame rate execution condition can be first obtained, and then a determination is made as to whether the CPU temperature is less than the temperature threshold and / or whether the CPU usage rate is less than the usage rate threshold. When it is determined that the CPU temperature is less than the temperature threshold and / or the CPU usage rate is less than the usage rate threshold, it is determined that the terminal meets the execution condition of the target operating frame rate, and the process goes to step S108A. When it is determined that the CPU temperature is greater than or equal to the temperature threshold and / or the CPU usage rate is greater than or equal to the usage rate threshold, it is determined that the terminal does not meet the execution condition of the target operating frame rate, and the process goes to step S111A.

[0068] In an embodiment of the present application, different running frame rates correspond to different execution conditions. For example, the execution condition corresponding to a high frame rate (e.g., 144 frames) is that the CPU temperature is lower than 40° and the CPU utilization rate is lower than 40%; the execution condition corresponding to a medium frame rate (e.g., 90 frames) is that the CPU temperature is lower than 55°; there is no execution condition for a low frame rate, that is, when the execution condition corresponding to the high frame rate and the execution condition of the medium frame rate are not met, the low frame rate is executed.

[0069] For example, the status parameters obtained are: CPU temperature 50°, CPU utilization rate 45%, and the execution condition of the target operating frame rate is that the CPU temperature is lower than 40° and the CPU utilization rate is lower than 40%. Since the CPU temperature and the CPU utilization rate do not meet the requirements for the CPU temperature and the CPU utilization rate in the execution conditions, it is determined that the terminal does not meet the execution conditions of the target operating frame rate, and enters step S111A.

[0070] In some embodiments, the status parameter may also include the remaining power of the terminal. Correspondingly, the execution condition of the target operating frame rate may also include a remaining power threshold. When determining whether the terminal meets the execution condition of the target operating frame rate, it may be determined whether the CPU temperature is less than the temperature threshold, and / or whether the CPU usage rate is less than the usage rate threshold, and / or whether the remaining power is greater than the remaining power threshold.

[0071] Step S108A: The operating system of the terminal determines whether the target operating frame rate is less than or equal to a preset refresh frame rate threshold.

[0072] Here, the refresh frame rate threshold can be set by the user according to his own needs, and the refresh frame rate threshold can be less than the maximum frame rate supported by the terminal, or can be equal to the maximum frame rate supported by the terminal. When the target operating frame rate is less than or equal to the refresh frame rate threshold, step S109A is entered; when the target operating frame rate is greater than the refresh frame rate threshold, step S110A is entered.

[0073] Step S109A: the operating system of the terminal controls the screen to refresh and display according to the target operating frame rate.

[0074] Here, when the terminal meets the execution condition of the target operating frame rate, the real-time control screen is refreshed and displayed according to the target operating frame rate to improve the user experience.

[0075] Step S110A: The operating system of the terminal determines the refresh frame rate threshold as the target refresh frame rate, and controls the screen to refresh and display according to the target refresh frame rate.

[0076] Here, under the premise that the terminal status parameters meet the execution conditions of the target operating frame rate, if the target operating frame rate is higher than the specified refresh frame rate threshold, then the control screen is refreshed and displayed according to the refresh frame rate threshold, that is, the terminal will increase the refresh frame rate to the maximum value that can be adjusted to ensure user experience.

[0077] In some embodiments, after step S110A, step S113A and subsequent steps may also be performed.

[0078] Step S111A: The operating system of the terminal determines a target refresh frame rate of the screen based on the state parameter.

[0079] Here, when the terminal does not meet the execution conditions of the target operating frame rate, the highest frame rate corresponding to at least one execution condition that the state parameter can meet can be determined based on the state parameter, and the highest frame rate can be determined as the target refresh frame rate of the screen.

[0080] Continuing with the above example, the state parameters are CPU temperature of 50° and CPU usage of 45%. Assuming that the state parameters meet the execution conditions of 90 frames and 30 frames, the higher of 30 frames and 90 frames, that is, 90 frames, is determined as the target refresh frame rate.

[0081] Step S112A: the operating system of the terminal controls the screen to refresh and display according to the target refresh frame rate.

[0082] Step S113A: the operating system of the terminal sends the state parameter and the target refresh frame rate to the application client.

[0083] Here, the operating system of the terminal sends the state parameters and the target refresh frame rate to the application client based on the previously established communication connection.

[0084] Step S114A: The application client determines whether the terminal meets the execution condition of the target running frame rate based on the state parameter.

[0085] Here, the application client can determine whether the terminal meets the execution conditions of the target operating frame rate based on the status parameters, so as to determine whether the terminal does not adjust the refresh frame rate to the target operating frame rate because it cannot support the target operating frame rate. If it is determined that the terminal does not meet the execution conditions of the target frame rate, that is, the terminal cannot support the target operating frame rate and does not adjust the refresh frame rate, then it is determined that the operating frame rate needs to be adjusted in the opposite direction and the process goes to step S115A; if it is determined that the terminal meets the execution conditions of the target operating frame rate, that is, the terminal does not adjust the refresh frame rate due to other reasons rather than because it cannot support the target operating frame rate, then it is determined that the operating frame rate does not need to be adjusted and the process goes to step S116A.

[0086] Step S115A: the application client outputs images according to the target refresh frame rate.

[0087] Step S116A: the application client outputs images according to the target operating frame rate.

[0088] In the frame rate adjustment method provided in the embodiment of the present application, after the application client determines the corresponding target operating frame rate based on its own operating scenario, the application client dynamically adjusts the operating frame rate of the application client to the target operating frame rate, and sends the target operating frame rate to the operating system of the terminal through a communication connection established with the operating system of the terminal, so as to instruct the operating system of the terminal to adjust the refresh frame rate of the screen based on the target operating frame rate. After receiving the target operating frame rate, the terminal determines whether it can support the target operating frame rate based on its own state parameters. If the operating state of the terminal is sufficient to support the target operating frame rate, the refresh frame rate of the screen can be adjusted to the target operating frame rate. If the refresh frame rate of the screen is lowered to the target operating frame rate, the power consumption of the terminal can be effectively reduced. If the refresh frame rate of the screen is increased to the target operating frame rate, the display effect can be improved, thereby improving the user experience.

[0089] In some embodiments, if the terminal actively performs dynamic adjustment of the frame rate, after step S104, as shown in FIG. Figure 5 As shown, you can also perform the following steps:

[0090] Step S105B: the operating system of the terminal obtains the target running frame rate of the application client.

[0091] Here, the terminal operating system sends a frame rate acquisition request to the application client to obtain the target operating frame rate of the application client. Further, the terminal operating system can send a frame rate acquisition request to the application client once every preset time interval to obtain the target operating frame rate of the application client.

[0092] Step S106B: the operating system of the terminal determines whether the target operating frame rate is the same as the current refresh frame rate of the screen.

[0093] Here, when it is determined that the target operating frame rate is the same as the current refresh frame rate of the screen, it means that the refresh frame rate does not need to be adjusted, and the process returns to step S105B again; when it is determined that the target operating frame rate is different from the current refresh frame rate of the screen, it means that the refresh frame rate of the screen needs to be adjusted, and the process enters step S107B. In step S107B, the operating system of the terminal obtains the status parameters of the terminal.

[0094] Here, the state parameters of the terminal obtained by the operating system may include but are not limited to CPU temperature, CPU usage rate, etc.

[0095] Step S108B: The operating system of the terminal determines whether the terminal meets the execution condition of the target operating frame rate based on the state parameter.

[0096] Here, similar to the implementation process of step S107A, when implementing step S108B, the temperature threshold and / or usage threshold included in the target operating frame rate execution condition can be first obtained, and then a judgment is made as to whether the CPU temperature is less than the temperature threshold, and / or whether the CPU usage rate is less than the usage rate threshold. When it is determined that the CPU temperature is less than the temperature threshold and / or the CPU usage rate is less than the usage rate threshold, it is determined that the terminal meets the execution condition of the target operating frame rate, and the process goes to step S109B; when it is determined that the CPU temperature is greater than or equal to the temperature threshold and / or the CPU usage rate is greater than or equal to the usage rate threshold, it is determined that the terminal does not meet the execution condition of the target operating frame rate, and the process goes to step S110B.

[0097] Step S109B: the operating system of the terminal controls the screen to refresh and display according to the target operating frame rate.

[0098] Step S110B: The operating system of the terminal determines a target refresh frame rate of the screen based on the state parameter.

[0099] Here, when the terminal does not meet the execution conditions of the target operating frame rate, the highest frame rate corresponding to at least one execution condition that the state parameter can meet can be determined based on the state parameter, and the highest frame rate can be determined as the target refresh frame rate of the screen.

[0100] Step S111B: the operating system of the terminal controls the screen to refresh and display according to the target refresh frame rate.

[0101] In the frame rate adjustment method provided in the above embodiment, after the application client determines the corresponding target operating frame rate based on its own operating scenario, the application client dynamically adjusts the operating frame rate of the application client to the target operating frame rate to achieve the adjustment of the operating frame rate of the application client, but the application client will not instruct the terminal to adjust. The terminal can actively monitor whether the operating frame rate of the application client has changed. If it is monitored that the operating frame rate of the application client has changed, the terminal's operating system determines the target operating frame rate of the application client, and determines whether it can support the target operating frame rate based on its own state parameters. If the terminal's operating state is sufficient to support the target operating frame rate, the screen refresh frame rate can be adjusted to the target operating frame rate, thereby achieving active adjustment of the screen refresh frame rate. If the screen refresh frame rate is lowered to the target operating frame rate, the terminal's power consumption can be effectively reduced. If the screen refresh frame rate is increased to the target operating frame rate, the display effect can be improved, thereby improving the user experience.

[0102] In some embodiments, the above step S102 can be implemented by the following steps:

[0103] Step S1021A: determining the movement parameters of the virtual object in the output screen of the application client and the user's operation frequency based on the operation data.

[0104] Here, the virtual object can be a virtual character or a virtual prop.

[0105] Step S1022A: when the movement parameter is greater than a first parameter threshold, or when the operation frequency is greater than a first frequency threshold, it is determined that the application client is in a first operation scenario.

[0106] Step S1023A: When the movement parameter is less than or equal to the first parameter threshold, and the operation frequency is less than or equal to the first frequency threshold, it is determined that the application client is in the second operation scenario.

[0107] Here, in the high frame rate mode, the user's operations can get a faster response, and the user experience of the application client will be smoother. Therefore, when the operation frequency is determined to be greater than the predetermined first frequency threshold based on the operation frequency, the scenario in which the application client is located can be determined to be the first operation scenario, that is, the high frame rate operation scenario; when the operation frequency is lower than the first frequency threshold, that is, the user's operation frequency is not very high, for example, when the user purchases equipment outside the game client and other operations that do not involve real-time confrontation, or when the user has no operation at all, it can be determined that the scenario in which the application client is located is the second operation scenario, that is, the low frame rate operation scenario.

[0108] When the movement parameter of the virtual object is greater than the first parameter threshold, indicating that the virtual object is moving rapidly, the high frame rate mode can avoid image lag and blur. Therefore, the scene in which the application client is located is determined to be the first operating scene, that is, the high frame rate operating scene. When the movement parameter of the virtual object is less than or equal to the first parameter threshold, indicating that the virtual object is moving at medium or low speed, or has not moved, the scene in which the application client is located is determined to be the second operating scene, that is, the low frame rate operating scene.

[0109] In some embodiments, the above step S102 can also be implemented by the following steps:

[0110] Step S1021B: determining whether the application client plays the recommended animation based on the running data.

[0111] Here, when the application client plays a recommended animation, for example, when the game client plays a CG animation, the high frame rate can better show the quality of the game, or when the video viewing client plays a video recommendation short film, the high frame rate can improve the picture quality. Therefore, even if the above conditions are not met, it is determined as the first operating scenario, that is, the high frame rate scenario.

[0112] Step S1022B: when it is determined to play the recommended animation based on the operation data, it is determined that the application client is in the first operation scene.

[0113] Or you can do it by following these steps:

[0114] Step S1021C: Determine whether the game is over or whether to play a scene switching animation based on the running data. Whether the application client is in a preset low frame rate scene.

[0115] Here, for the game client, the scene switching animation after the end of the game, the switching scenes between different copies, etc., in these scenes, the user will not be immersed in the screen display, so they are determined as the second running scene, that is, the low frame rate scene. For the video viewing client, the opening advertisements, or the opening and ending parts that users do not pay much attention to can be determined as low frame rate scenes.

[0116] Step S1022C: when it is determined based on the running data that the game is over, or when the scene switching animation is played, it is determined that the application client is in the second running scene.

[0117] Through the three implementation methods provided above, it is possible to determine the current operating scenario for the client based on the operating data of the application client, so as to dynamically adjust the frame rate based on the operating scenario.

[0118] In some embodiments, before step S101, the following steps may also be performed:

[0119] Step S001: after the application client is started, determine whether the application client supports frame rate adjustment.

[0120] Here, when it is determined that the application client supports frame rate adjustment, the process proceeds to step S002; when it is determined that the application client does not support frame rate adjustment, the process proceeds to step S201.

[0121] Step S002: After being started, the application client requests to establish a communication connection with the operating system of the terminal.

[0122] Step S003: When the communication connection is established, the application client determines whether the terminal supports frame rate adjustment.

[0123] When it is determined that the terminal supports frame rate adjustment, the process proceeds to step S004; when it is determined that the terminal does not support frame rate adjustment, the process proceeds to step S101.

[0124] Step S004: the application client obtains the highest frame rate supported by the terminal.

[0125] Here, the maximum frame rate supported by the terminal is determined based on the hardware of the terminal, and can be considered to be determined when the terminal leaves the factory.

[0126] After the application client obtains the highest frame rate supported by the terminal, step S103 can be implemented by the following steps:

[0127] Step S1031, when it is determined that the running scenario is the first running scenario, the highest frame rate is determined as the target running frame rate of the application client;

[0128] Step S1032: when it is determined that the running scenario is the second running scenario, a preset running frame rate is determined as a target running frame rate of the application client.

[0129] Here, the preset operating frame rate is lower than the maximum frame rate. That is to say, when the operating scenario is determined to be a high frame rate scenario, the maximum frame rate supported by the terminal hardware is determined as the target operating frame rate of the application client to improve the playback quality in the high frame rate scenario. When the operating scenario is determined to be a low frame rate scenario, a preset relatively low operating frame rate can be determined as the target operating frame rate of the application client, thereby reducing terminal power consumption and extending terminal standby time without affecting user experience.

[0130] In some embodiments, when the application client supports dynamic frame rate adjustment, the application client can dynamically adjust the frame rate in real time according to the running data, or the user can manually adjust the frame rate through the frame rate adjustment interface provided by the application client. If the application client automatically adjusts the frame rate in real time according to the running data, then after step S005, step S101 and subsequent steps are executed. If the application client manually adjusts the frame rate based on the user's settings, after the application client obtains the target running frame rate set by the user, the image is output based on the target running frame rate to achieve dynamic adjustment of the frame rate, and based on the dynamic adjustment, the terminal is triggered to dynamically adjust the refresh frame rate of the screen.

[0131] Step S201: The operating system of the terminal obtains the status parameters of the terminal.

[0132] Step S202: The operating system of the terminal collects image data and user operation data when the application client is running within a preset time period.

[0133] Here, the preset duration is pre-set at the factory, and of course the terminal can also provide a setting interface for the duration, which can be pre-set by the user according to his own needs. The image data may include the pixel value of each pixel point of the output image rendered by the client at runtime, and the user operation data may include the trigger time, trigger position, pressure value and other data of the user operation.

[0134] Step S203: The operating system of the terminal determines a target refresh frame rate of the screen based on the state parameter, the image data and the user operation data.

[0135] Here, when implementing step S203, it can be that the running scene of the application client is first determined based on the image data and the user operation data, and then the running frame rate corresponding to the running scene is determined. If the running frame rate is lower than the current refresh frame rate of the terminal, the running frame rate is determined as the target refresh frame rate of the screen; when the running frame rate is higher than the current refresh frame rate of the terminal, based on the state parameter, it is determined whether the terminal can meet the execution condition of the running frame rate. If the terminal can meet the execution condition of the running frame rate, the running frame rate is determined as the target refresh frame rate of the screen; if the terminal cannot meet the execution condition of the running frame rate, then the target refresh frame rate is determined based on the state parameter. The target refresh frame rate is greater than or equal to the current refresh frame rate.

[0136] Step S204: the operating system of the terminal controls the screen to refresh and display according to the target refresh frame rate.

[0137] Through the above-mentioned steps S201 to S204, even if the application client does not support dynamic adjustment of the frame rate, the terminal can make real-time judgments on the running scenario of the application client based on the screen data of the application client during operation and the number of user operations, and estimate the corresponding running frame rate of the application client based on the determined running scenario, thereby dynamically adjusting its own refresh frame rate based on the running frame rate, thereby being able to achieve screen refresh at a high refresh frame rate in a high frame rate scenario to improve user experience, and screen refresh at a low frame rate in a low frame rate scenario to reduce terminal power consumption.

[0138] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0139] Here, the frame rate adjustment method provided in the embodiment of the present application is described by taking the application client as a game client as an example. The frame rate adjustment method includes the following steps:

[0140] Step S501: The game client identifies a high frame rate scene and a low frame rate scene, and determines a target frame rate according to the identified scenes.

[0141] When identifying a scene, the game client can determine whether the current scene is one where the user can clearly perceive a high frame rate based on whether the user needs frequent touch operations, whether there are complex animations, and whether there are camera switching transfers, and determine the target frame rate of the identified scene. The game client can dynamically adjust the frame rate when switching between different scenes. The basis for the adjustment can be the identified scene or the real-time operating status of the terminal.

[0142] Step S502: The game client sends the identified scene and target frame rate to the terminal.

[0143] During implementation, a set of interactive protocols can be defined between the game client and the terminal, so that the game client can send the identified scene and target frame rate to the terminal in real time. At the same time, when the terminal is operating abnormally, such as when the temperature is too high and the performance is degraded and cannot support a high frame rate, the terminal can also notify the game client through the interactive protocol, and the game client can adjust the frame rate in real time according to the received information.

[0144] Step S503: After receiving the frame rate adjustment message sent by the game client, the terminal adjusts the frame rate of the terminal in real time to ensure that no lag occurs during the switching process.

[0145] In some embodiments, when the current running state of the terminal is insufficient to support the current frame rate, the terminal may notify the game client through a callback interface to reduce the frame rate in real time.

[0146] The following describes the division of game scenes and dynamic frame rate strategy.

[0147] 1. Scene Division

[0148] The high and low frame rate scenes are divided according to the impact of different frame rates on the actual user experience in each scene. During implementation, the distinction can be made based on the following factors.

[0149] 1. Whether the user has taken any action.

[0150] In high frame rate mode, the user's operations can get a faster response and the gaming experience will be smoother, so high frame rate support is required in scenarios where users need to perform operations.

[0151] Different user operation types can correspond to different scenarios, which means that different operation types have different requirements for frame rates. For example, in an intense fighting scene, the user's operations will be frequent, and a high frame rate is required to provide a faster response; while for scenes that do not involve real-time confrontation, such as purchasing equipment outside the game, the user's operations will not be too frequent, and a medium to high frame rate is enough to give the user a good experience.

[0152] When the user is not performing any operation, it is only necessary to maintain a low frame rate, which will not affect the user experience and can also reduce the overall power consumption of the game.

[0153] 2. Is there any movement in the picture?

[0154] Changes in the height and position of the camera will affect the user's perception of the picture. A high frame rate can make the camera changes smoother and reduce user dizziness. When characters and props move quickly, a high frame rate can make the movement visually smoother. Therefore, when the camera height and position change, or the movement of characters and props causes frequent screen switching, a high frame rate scene is used. When the picture is relatively still or the movement is not obvious, maintaining a low frame rate will not affect the user experience and can also reduce the overall power consumption of the game. This corresponds to a low frame rate scene.

[0155] 3. Special scenarios.

[0156] In certain scenarios, users have clear expectations, such as the cut-scene animation after the end of a game, the switching scenes between different copies, etc. In these scenarios, users will not be immersed in the screen display, so they can switch to a low frame rate.

[0157] In some special scenes, such as the playback of CG animations in games, a high frame rate can better demonstrate the quality of the game, so a high frame rate should be maintained even if the above conditions are not met.

[0158] 2. Scene recognition and distribution.

[0159] During the game running process, the client can judge the frame rate of each scene according to the above-defined principles, mark the frame rate of each scene in real time, and send it to the terminal.

[0160] Figure 6 A schematic diagram of the implementation process of scene division provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the process includes:

[0161] Step S601, determining whether the picture is moving.

[0162] Here, if it is determined that the picture is moving, the process proceeds to step S604 to determine that it is a high frame rate scene; if it is determined that the picture is still, the process proceeds to step S602 to perform further determination.

[0163] Step S602, determining whether there is any user operation.

[0164] Here, when it is determined that there is a user operation, the process proceeds to step S604 to determine that it is a high frame rate scene; when it is determined that there is no user operation, the process proceeds to step S603 to perform further judgment.

[0165] In an embodiment of the present application, determining whether there is a user operation may be determining whether there is a user operation and the frequency of the user operation is greater than a certain number threshold. If there is a user operation and the operation frequency is greater than the number threshold, it is determined that there is a user operation.

[0166] Step S603, determining whether it is a preset high frame rate special scene.

[0167] Here, when it is determined to be a preset high frame rate special scene, the process proceeds to step S604 to determine it to be a high frame rate scene; when it is determined not to be a preset high frame rate special scene, the process proceeds to step S605.

[0168] Step S604: determine it is a high frame rate scene.

[0169] Step S605: determine it is a low frame rate scene.

[0170] In step S601 to step S605, in order to provide the best user experience, when any of the conditions meets the high frame rate requirement, it needs to be identified as a high frame rate scene.

[0171] It should be noted that in steps S601 to S603, first judging the picture motion, then judging the user operation, and finally judging the special scene is only an exemplary description. In actual implementation, the order of judging the picture motion, user operation and special scene can be randomly arranged.

[0172] After the game client completes scene recognition, it determines the target frame rate based on the recognized scene, adjusts the screen rendering frame rate in real time according to the target frame rate, and then notifies the terminal in real time to make the corresponding frame rate adjustment.

[0173] In an embodiment of the present application, in addition to automatically identifying scenes and adjusting frame rates, the game client can also dynamically adjust the frame rate according to the actual needs of the user. In addition, when the terminal operating status is abnormal, such as when the temperature is too high and the performance decreases, the overall operating frame rate also needs to be lowered accordingly.

[0174] When the game client receives abnormal running status from the terminal, it lowers the running frame rate in real time and sends the adjustment result back to the terminal in real time.

[0175] The following describes the interaction protocol between the game client and the terminal, wherein Table 1 is the field information sent from the game client to the terminal:

[0176] Table 1: Field information sent from the game client to the terminal

[0177]

[0178]

[0179] Table 2: Field information of the terminal reply to the game client

[0180]

[0181] Figure 7 A schematic diagram of the interaction process between the terminal and the game client provided in the embodiment of the present application, such as Figure 7 As shown, the interaction process includes:

[0182] Step S701: The game client queries the terminal whether the terminal supports dynamic frame rate.

[0183] During implementation, you can call the QeryDynamicFPS interface to query whether the terminal supports dynamic frame rate. This interface does not require input parameters, and the output can be: 1. Supported or not supported 2. Supported version number.

[0184] Step S702: The terminal returns the dynamic frame rate support status.

[0185] Step S703: The game client queries the terminal for the highest frame rate currently supported.

[0186] When implementing, you can query the terminal for the currently supported maximum frame rate by calling the QueryTerminalMaxFPS interface. This interface has no input parameters, and the output parameter is the maximum frame rate that the terminal can support.

[0187] Step S704: The terminal returns the highest frame rate currently supported.

[0188] Step S705: the game client requests the terminal to establish a connection.

[0189] During implementation, the game client can call the ConnetToTerminal interface to request the terminal to establish a connection channel for dynamically adjusting the frame rate, and the output is success or failure.

[0190] Step S706: The terminal completes initialization and returns a connection established.

[0191] Here, in step S701 to step S706, before the game starts to adjust the dynamic frame rate, it shakes hands with the terminal, agrees on relevant protocols, and establishes and maintains a communication link.

[0192] Step S707: The game client determines the current target frame rate and sends the information to the terminal.

[0193] Here, the game client can determine the target frame rate of the game client by calling the JudgeStartgetFPS interface, where the input of the interface is the running data of the game, and the output is the target frame rate. After the game client determines the target frame rate, the target frame rate is carried in the message and sent to the terminal. The fields in the sent information are shown in Table 1.

[0194] Step S708: After receiving the information sent by the game client, the terminal performs dynamic frame rate adjustment and returns the adjustment result to the game client.

[0195] Here, after receiving the message shown in Table 1, the terminal calls the AdjustTerminalTargetFPS interface to adjust its own frame rate, that is, the input of the interface is the information structure shown in Table 1, and the output is the information structure shown in Table 2. Then the terminal feeds back the information structure shown in Table 2 to the game client.

[0196] Step S709: the game client performs reverse adjustment of the frame rate according to the information fed back by the terminal, and feeds back the adjustment result and the current real-time scene information to the terminal.

[0197] Here, after receiving the information structure shown in Table 2 sent by the terminal, the game client calls the AdjustGameTargetFPS interface to dynamically adjust the target frame rate again, where the input of the interface can be the information structure shown in Table 2 returned by the terminal and the target frame rate TargetFPS determined in step S707, and the output is the information structure shown in Table 1, so that the game client can dynamically adjust the target frame rate again according to the adjustment result returned by the terminal, make a comprehensive judgment on TargetFPS and the information returned by the terminal, adjust the running frame rate of the game in real time, and return the adjustment result to the terminal.

[0198] Step S710: After receiving the information sent by the game client, the terminal performs dynamic frame rate adjustment.

[0199] Step S711, repeat steps 8-10 during the game running process until the game running ends.

[0200] When the game ends, the game notifies the terminal to disconnect.

[0201] When the game ends and the user closes the game client, the game client can call the CloseConnect interface to close the communication connection with the terminal. This interface has no input parameters and the output is success or failure.

[0202] In the embodiment of the present application, the terminal realizes the ability to adjust the frame rate dynamically in real time, and the frame rate adjustment can take effect instantly and is imperceptible to the user. After receiving the request from the game client to adjust the frame rate, the terminal judges the current operating state. If the temperature is normal and the frame rate requirement of the game client can be supported, the frame rate is adjusted normally according to the request sent by the game client.

[0203] If the terminal's current operating status is abnormal, such as the temperature is too high, resulting in performance degradation and unable to meet the requirements of high frame rate operation of the game, the frame rate will not be increased temporarily, and the operating status will be notified to the game client, allowing the game client to adjust the frame rate according to the terminal.

[0204] Through the frame rate adjustment method provided in the embodiment of the present application, the game client can dynamically adjust the running frame rate of the game, and the dynamic adjustment of the frame rate can notify the terminal in real time, so that the terminal can adjust in real time according to the changes in the game, which can avoid the situation where the game adjusts the frame rate, the display frame rate of the terminal is inconsistent with the game, resulting in power consumption waste or impaired user experience. In addition, the terminal can dynamically adjust the display frame rate in real time according to the running status of the terminal, which can effectively reduce power consumption while ensuring user experience. At the same time, when the performance is insufficient, the game can be notified in real time, so that the game client can cooperate to make adjustments. In this way, through the frame rate adjustment method provided in the embodiment of the present application, users can enjoy a smooth high frame rate experience, and also avoid abnormalities such as freezes when the terminal temperature is too high.

[0205] In the above implementation, the game client and the terminal dynamically adjust the frame rate. In some embodiments, only the game client can perform dynamic frame rate adjustment, that is, the game client can achieve dynamic frame rate without relying on the terminal and can also obtain most of the benefits, but the terminal does not follow the dynamic frame rate adjustment. In a low frame rate scenario, maintaining a high frame rate on the screen will still bring additional power consumption.

[0206] Alternatively, in some embodiments, there is no need to establish a communication connection between the game client and the terminal. In this case, if the game client performs a dynamic frame rate switch, the terminal can monitor the frame rate switch of the game through GPU rendering. After the game client switches the frame rate, the terminal can also follow the game client to switch the frame rate.

[0207] Alternatively, in some embodiments, if the game client does not perform dynamic frame rate switching, the terminal may not rely on the game client to perform dynamic frame rate adjustment. At this time, the terminal can perform real-time dynamic judgment on the game scene by collecting the user's game screen changes and the user's touch operations in real time, thereby distinguishing between high frame rate scenes and low frame rate scenes, and dynamically switching the frame rate.

[0208] The following is a description of an exemplary structure of the frame rate adjustment device 354 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example, Figure 2 As shown, the software module stored in the frame rate adjustment device 354 of the memory 350 may be the frame rate adjustment device in the terminal 300, including:

[0209] The first determination module 3541 is used to determine the target running frame rate of the application client when the application client in the terminal supports dynamic frame rate switching;

[0210] The first output module 3542 is used to control the application client to output images according to the target running frame rate, so as to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen.

[0211] The first sending 3543 is also used to control the application client to send the target operating frame rate to the operating system of the terminal to instruct the screen of the terminal to refresh the display according to the target operating frame rate.

[0212] In some embodiments, the apparatus further comprises:

[0213] A first acquisition module is used to acquire the state parameter of the terminal after receiving the target running frame rate;

[0214] The first control module is used to control the screen to refresh and display according to the target operating frame rate when it is determined based on the state parameter that the terminal meets the execution condition of the target operating frame rate and the target operating frame rate is less than or equal to a preset refresh frame rate threshold.

[0215] In some embodiments, the apparatus further comprises:

[0216] A second determination module, configured to determine a target refresh frame rate of the screen based on the state parameter when it is determined based on the state parameter that the terminal does not meet the execution condition of the target running frame rate;

[0217] A second control module is used to control the screen to refresh and display according to the target refresh frame rate;

[0218] The second sending module is used to send the state parameter and the target refresh frame rate to the application client.

[0219] In some embodiments, the state parameter includes CPU temperature and / or CPU usage, and the device further includes:

[0220] A second acquisition module is used to acquire a temperature threshold and / or a usage rate threshold included in the target running frame rate execution condition;

[0221] A third determination module is used to determine that the terminal meets the execution condition of the target running frame rate when it is determined that the CPU temperature is less than the temperature threshold and / or the CPU usage rate is less than the usage rate threshold;

[0222] The fourth determination module is used to determine that the terminal does not meet the execution condition of the target running frame rate when it is determined that the CPU temperature is greater than or equal to the temperature threshold and / or the CPU usage is greater than or equal to the usage threshold.

[0223] In some embodiments, the apparatus further comprises:

[0224] A second output module, configured to, when it is determined based on the state parameter that the terminal does not meet the execution condition of the target running frame rate, cause the application client to output images according to the target refresh frame rate;

[0225] The third output module is used to determine, based on the state parameter, that when the terminal meets the execution condition of the target operating frame rate, the application client outputs images according to the target operating frame rate.

[0226] In some embodiments, the apparatus further comprises:

[0227] The third acquisition module is used to obtain the target running frame rate of the application client;

[0228] A fourth acquisition module, configured to acquire a state parameter of the terminal when the operating system of the terminal determines that the target operating frame rate is different from the current refresh frame rate of the screen;

[0229] The third control module is used to control the screen to refresh and display according to the target operating frame rate when it is determined based on the state parameter that the terminal meets the execution condition of the target operating frame rate.

[0230] In some embodiments, the first determining module is further configured to:

[0231] When the application client in the terminal supports dynamic frame rate switching, obtaining the running data of the application client when it is running in the foreground;

[0232] Determining an operation scenario of the application client based on the operation data;

[0233] A target running frame rate of the application client is determined based on the running scenario.

[0234] In some embodiments, the first determining module is further configured to:

[0235] Determine, based on the operation data, movement parameters of a virtual object in an output screen of the application client and a user's operation frequency;

[0236] When the movement parameter is greater than a first parameter threshold, or when the operation frequency is greater than a first frequency threshold, determining that the application client is in a first operation scenario;

[0237] When the movement parameter is less than or equal to the first parameter threshold, and the operation frequency is less than or equal to the first frequency threshold, it is determined that the application client is in the second operation scenario.

[0238] In some embodiments, the first determining module is further configured to:

[0239] When it is determined based on the running data to play the recommended animation, it is determined that the application client is in the first running scene; or,

[0240] When it is determined based on the operation data that the game is over, it is determined that the application client is in the second operation scenario, or,

[0241] When it is determined to play the scene switching animation based on the running data, it is determined that the application client is in the second running scene.

[0242] In some embodiments, the apparatus further comprises:

[0243] A connection establishment module, used for the application client to request to establish a communication connection with the operating system of the terminal after startup;

[0244] A fifth determination module, configured to determine whether the terminal supports frame rate adjustment when the communication connection is established;

[0245] A fifth acquisition module, configured to acquire a maximum frame rate supported by the terminal when it is determined that the terminal supports frame rate adjustment;

[0246] The sixth determination module is used to determine the correspondence between the scene level and the running frame rate based on the highest frame rate and the preset scene level.

[0247] In some embodiments, the first determining module is further configured to:

[0248] When it is determined that the running scenario is the first running scenario, the highest frame rate is determined as the target running frame rate of the application client;

[0249] When it is determined that the running scenario is the second running scenario, a preset running frame rate is determined as the target running frame rate of the application client, and the preset running frame rate is less than the maximum frame rate.

[0250] In some embodiments, the apparatus further comprises:

[0251] A sixth acquisition module, used for acquiring a state parameter of the terminal when the application client in the terminal does not support dynamic frame rate switching;

[0252] A data collection module is used to collect image data and user operation data when the application client is running within a preset time period;

[0253] a seventh determination module, configured to determine a target refresh frame rate of the screen based on the state parameter, the image data and the user operation data;

[0254] The fourth control module is used to control the screen to refresh and display according to the target refresh frame rate.

[0255] It should be noted that the description of the device of the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.

[0256] The present application embodiment provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the method provided by the present application embodiment, for example, Figure 4 The method shown.

[0257] In some embodiments, the storage medium can be a computer-readable storage medium, for example, a ferroelectric random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disk read-only memory (CD-ROM), etc.; it can also be various devices including one or any combination of the above memories.

[0258] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0259] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions). As an example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.

Claims

1. A frame rate adjustment method, applied to a terminal, characterized in that: include: When the application client in the terminal supports dynamic frame rate switching, determining a target running frame rate of the application client; The application client outputs images according to the target running frame rate, so as to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen; The application client sends the target operating frame rate to the operating system of the terminal to instruct the screen of the terminal to refresh and display according to the target operating frame rate; After receiving the target operating frame rate, the operating system of the terminal obtains the state parameter of the terminal; When it is determined based on the state parameters that the terminal meets the execution condition of the target operating frame rate and the target operating frame rate is less than or equal to a preset refresh frame rate threshold, the screen is controlled to refresh and display according to the target operating frame rate.

2. The method according to claim 1, characterized in that The method further comprises: When it is determined based on the state parameter that the terminal does not meet the execution condition of the target operating frame rate, the operating system of the terminal determines a target refresh frame rate of the screen based on the state parameter; Controlling the screen to refresh and display according to the target refresh frame rate; The operating system of the terminal sends the state parameter and the target refresh frame rate to the application client.

3. The method according to claim 1, characterized in that: The state parameter includes CPU temperature and / or CPU usage rate, and the method further includes: Obtaining a temperature threshold and / or a usage rate threshold included in the target running frame rate execution condition; When it is determined that the CPU temperature is less than the temperature threshold and / or the CPU usage rate is less than the usage rate threshold, determining that the terminal meets the execution condition of the target operating frame rate; When it is determined that the CPU temperature is greater than or equal to the temperature threshold and / or the CPU usage is greater than or equal to the usage threshold, it is determined that the terminal does not meet the execution condition of the target operating frame rate.

4. The method according to claim 2, characterized in that The method further comprises: When the application client determines, based on the state parameter, that the terminal does not meet the execution condition of the target running frame rate, the application client outputs images according to the target refresh frame rate; When the application client determines, based on the state parameter, that the terminal meets the execution condition of the target operating frame rate, the application client outputs images according to the target operating frame rate.

5. The method according to claim 1, characterized in that After the application client outputs the image according to the target running frame rate, the method further includes: The operating system of the terminal obtains a target running frame rate of the application client; When the operating system of the terminal determines that the target operating frame rate is different from the current refresh frame rate of the screen, acquiring a state parameter of the terminal; When it is determined based on the state parameter that the terminal meets the execution condition of the target operating frame rate, the screen is controlled to be refreshed and displayed according to the target operating frame rate.

6. The method according to any one of claims 1 to 5, characterized in that When the application client in the terminal supports dynamic frame rate switching, determining the target running frame rate of the application client includes: When the application client in the terminal supports dynamic frame rate switching, obtaining the running data of the application client when it is running in the foreground; Determining an operation scenario of the application client based on the operation data; A target running frame rate of the application client is determined based on the running scenario.

7. The method according to claim 6, characterized in that The determining the operation scenario of the application client based on the operation data includes: Determining, based on the operation data, movement parameters of a virtual object in an output screen of the application client and a user's operation frequency; When the movement parameter is greater than a first parameter threshold, or when the operation frequency is greater than a first frequency threshold, determining that the application client is in a first operation scenario; When the movement parameter is less than or equal to the first parameter threshold, and the operation frequency is less than or equal to the first frequency threshold, it is determined that the application client is in the second operation scenario.

8. The method according to claim 6, characterized in that The determining the operation scenario of the application client based on the operation data includes: When it is determined based on the running data to play the recommended animation, it is determined that the application client is in the first running scene; or, When it is determined based on the operation data that the game is over, it is determined that the application client is in the second operation scenario, or, When it is determined to play the scene switching animation based on the operation data, it is determined that the application client is in the second operation scene.

9. The method according to claim 6, characterized in that The method further comprises: After being started, the application client requests to establish a communication connection with the operating system of the terminal; When the communication connection is established, the application client determines whether the terminal supports frame rate adjustment; When it is determined that the terminal supports frame rate adjustment, the application client obtains a maximum frame rate supported by the terminal.

10. The method according to claim 9, characterized in that The determining the target running frame rate of the application client based on the running scenario includes: When it is determined that the running scenario is the first running scenario, determining the highest frame rate as the target running frame rate of the application client; When it is determined that the running scenario is the second running scenario, a preset running frame rate is determined as the target running frame rate of the application client, and the preset running frame rate is less than the maximum frame rate.

11. The method according to claim 1, characterized in that The method further comprises: When the application client in the terminal does not support dynamic frame rate switching, the operating system of the terminal obtains the state parameters of the terminal; The operating system of the terminal collects image data and user operation data when the application client is running within a preset time period; The operating system of the terminal determines a target refresh frame rate of the screen based on the state parameter, the image data and the user operation data; The operating system of the terminal controls the screen to refresh and display according to the target refresh frame rate.

12. A frame rate adjustment device, characterized in that: include: A first determination module, configured to determine a target running frame rate of the application client when the application client in the terminal supports dynamic frame rate switching; A first output module, used to control the application client to output images according to the target running frame rate, so as to dynamically adjust the frame rate of the application client, and the dynamic adjustment is used to trigger the terminal to adjust the refresh frame rate of the screen; A first sending module, used to control the application client to send the target running frame rate to the operating system of the terminal, so as to instruct the screen of the terminal to refresh and display according to the target running frame rate; A first acquisition module, configured to control the operating system of the terminal to acquire a state parameter of the terminal after receiving the target running frame rate; The first control module is used to control the screen to refresh and display according to the target operating frame rate when it is determined based on the state parameters that the terminal meets the execution conditions of the target operating frame rate and the target operating frame rate is less than or equal to a preset refresh frame rate threshold.

13. A frame rate adjustment device, characterized in that: include: A memory for storing executable instructions; A processor, configured to enable the frame rate adjustment device to implement the method described in any one of claims 1 to 11 when executing the executable instructions stored in the memory.

14. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when the executable instructions are executed by a processor in an electronic device, the frame rate adjustment device implements the method described in any one of claims 1 to 11.