CN-122006260-A - Method, device, equipment and storage medium for adjusting performance of application program
Abstract
The application discloses a method, a device, equipment and a storage medium for adjusting the performance of an application program, and relates to the field of computers. The method comprises the steps of obtaining a temperature control frequency reduction strategy of a terminal, wherein the temperature control frequency reduction strategy is used for reducing the working frequency of the terminal under the condition that the real-time temperature of the terminal reaches a temperature threshold value, determining the blocking reason of an application program under the condition that the temperature control frequency reduction strategy is triggered, indicating the processing process of causing the blocking of the application program by the blocking reason, and adjusting the operation parameters of the application program according to the blocking reason, wherein the operation parameters are related to the processing process. The method can remove temperature control frequency reduction by adjusting the operation parameters of the application program after triggering high frame rate frequency reduction, and ensures the high frame rate operation of the application program.
Inventors
- YANG FAN
Assignees
- 大连北境互动娱乐科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (15)
- 1. A method for adjusting performance of an application program, the method being performed by the application program running in a terminal, the method comprising: the temperature control frequency-reducing strategy is used for reducing the working frequency of the terminal under the condition that the real-time temperature of the terminal reaches a temperature threshold value; determining a jamming reason of the application program under the condition of triggering the temperature control down-conversion strategy, wherein the jamming reason is used for indicating a processing process which leads to the jamming of the application program; and adjusting the operation parameters of the application program according to the blocking reasons, wherein the operation parameters are related to the processing process.
- 2. The method of claim 1, wherein the determining a cause of a jam of the application comprises: Acquiring frame processing time and logic processing time of the application program, wherein the frame processing time comprises total duration for processing a frame of picture, and the logic processing time comprises time consumption of processing logic for processing the frame of picture; And determining the jam reason as CPU jam under the condition that the logic processing time is equal to the frame processing time.
- 3. The method of claim 1, wherein the determining a cause of a jam of the application comprises: Acquiring frame processing time and image rendering time of the application program, wherein the frame processing time comprises total duration for processing a frame of picture; and determining the jam reason as CPU jam under the condition that the image rendering time is equal to the frame processing time.
- 4. A method according to claim 2 or 3, wherein said adjusting the operating parameters of the application according to the cause of the click comprises at least one of: Reducing the updating frequency of the animation; closing prop state consistency detection, wherein the prop state consistency detection is used for ensuring that prop states of virtual characters displayed by at least two clients participating in game play are the same; Reducing a collision volume update frequency, the collision volume for detecting a collision event; The firing animation is turned off.
- 5. A method according to any one of claims 1 to 3, wherein said determining a cause of a click of said application program comprises: acquiring frame processing time, logic processing time and image rendering time of the application program, wherein the frame processing time comprises total duration for processing a frame of picture, the logic processing time comprises time consumption of processing logic for processing the frame of picture, and the image rendering time comprises time consumption for processing image rendering of the frame of picture; And determining the jam reason as GPU jam of a graphic processor under the condition that the logic processing time and the image rendering time are smaller than the frame processing time.
- 6. The method of claim 5, wherein the GPU-clamping includes vertex clamping and fragment clamping; and determining the cause of the stuck as a graphics processor GPU stuck when the logic processing time and the image rendering time are both less than the frame processing time, including: Under the condition that the logic processing time and the image rendering time are smaller than the frame processing time, obtaining a GPU period counted by a GPU counter; determining the cause of the stuck as the vertex stuck under the condition that the vertex calculation cycle ratio in the GPU cycle is higher than a first threshold value, wherein the vertex calculation cycle comprises a processing cycle of a vertex shader in the picture rendering process; And under the condition that the fragment period ratio in the GPU period is higher than a second threshold value, determining the jam reason as the fragment jam, wherein the fragment period comprises the processing period of a fragment shader in the picture rendering process.
- 7. The method of claim 5, wherein the cause of the stuck includes the GPU stuck or a vertex stuck; the adjusting the operation parameters of the application program according to the katon reason comprises at least one of the following steps: Reducing a multi-level of detail (LOD) level of a virtual model in a virtual environment, wherein the LOD level is used for determining rendering fineness of the virtual model; And in the picture rendering process, eliminating the virtual model with the distance exceeding the distance threshold value from the camera.
- 8. The method of claim 5, wherein the cause of the stuck includes the GPU stuck or a fragment stuck; the adjusting the operation parameters of the application program according to the katon reason comprises at least one of the following steps: Reducing screen resolution; in the picture rendering process, a point sampling mode is adopted to execute texture sampling; and reducing the LOD level of multiple detail layers of the virtual model in the virtual environment, wherein the LOD level is used for determining the rendering fineness degree of the virtual model.
- 9. The method according to claim 4, wherein the method further comprises: in the event that the real-time temperature is not above the temperature threshold, performing at least one of: the animation updating frequency is improved; Opening prop state consistency detection, wherein the prop state consistency detection is used for ensuring that prop states of virtual characters displayed by at least two clients participating in game play are the same; Increasing a collision volume update frequency, the collision volume for detecting a collision event; And starting the firing animation.
- 10. The method of claim 7, wherein the method further comprises: in the event that the real-time temperature is not above the temperature threshold, performing at least one of: Improving a multi-level-of-detail LOD level of a virtual model in a virtual environment, wherein the LOD level is used for determining rendering fineness of the virtual model; And in the picture rendering process, preserving a virtual model with a distance exceeding a distance threshold value from the camera.
- 11. The method of claim 8, wherein the method further comprises: in the event that the real-time temperature is not above the temperature threshold, performing at least one of: The screen resolution is improved; In the picture rendering process, texture sampling is executed according to an original sampling mode; and improving the LOD level of multiple detail layers of the virtual model in the virtual environment, wherein the LOD level is used for determining the rendering fineness degree of the virtual model.
- 12. An apparatus for adjusting performance of an application program, the apparatus comprising: the system comprises a strategy module, a temperature control frequency reduction strategy module and a control module, wherein the strategy module is used for acquiring a temperature control frequency reduction strategy of a terminal, and the temperature control frequency reduction strategy is used for reducing the working frequency of the terminal under the condition that the real-time temperature of the terminal reaches a temperature threshold value; the analysis module is used for determining the blocking reason of the application program under the condition of triggering the temperature control frequency-reducing strategy, wherein the blocking reason is used for indicating the processing process which leads to the blocking of the application program; and the adjusting module is used for adjusting the operation parameters of the application program according to the blocking reasons, wherein the operation parameters are related to the processing process.
- 13. A computer device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by the processor to implement the method of performance adjustment of an application program according to any one of claims 1 to 11.
- 14. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the method of performance tuning of an application according to any one of claims 1 to 11.
- 15. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which a processor reads the computer instructions, which processor executes to implement the method of performance adjustment of an application according to any of claims 1 to 11.
Description
Method, device, equipment and storage medium for adjusting performance of application program Technical Field The present application relates to the field of computers, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting performance of an application program. Background The game high frame rate mode refers to a frame rate setting in which the refresh rate of pictures that can be achieved by the game during operation is higher than that of the normal mode. Before the high frame rate mode is brought on-line, it is necessary to test whether each terminal model is adapted to the high frame rate mode. For example, a full combat test is performed to confirm whether the tester model can be stably operated at a high frame rate (e.g., 90 frames or 120 frames) during combat, and if the test data is up to standard, the model can be adapted to a high frame rate mode. After the high frame rate mode is online, the external network operation data of the machine type in a period of time can be observed, and if the data is poor or the public opinion feedback is too hot, the high frame rate mode of the machine type is closed. In the related art, only one part of data is used for the complete combat test of the tester type, and the data expression of multiple parts cannot be reflected. However, in the actual game operation of the player, multiple combat is often performed, at this time, the terminal heats up and triggers a temperature control frequency-reducing strategy, so that each chip of the terminal is frequency-reduced, the performance of the terminal cannot maintain the operation of the high frame rate mode, so that the operation data of the external network is extremely poor, and many machine types finally have to shut down the high frame rate mode. Disclosure of Invention The embodiment of the application provides a performance adjustment method, device, equipment and storage medium of an application program, which can release temperature control frequency reduction by adjusting operation parameters of the application program after triggering high-frame-rate frequency reduction and ensure high-frame-rate operation of the application program. The technical scheme is as follows. According to an aspect of the present application, there is provided a performance adjustment method of an application program, the method being performed by the application program running in a terminal, the method comprising: the temperature control frequency-reducing strategy is used for reducing the working frequency of the terminal under the condition that the real-time temperature of the terminal reaches a temperature threshold value; determining a jamming reason of the application program under the condition of triggering the temperature control down-conversion strategy, wherein the jamming reason is used for indicating a processing process which leads to the jamming of the application program; and adjusting the operation parameters of the application program according to the blocking reasons, wherein the operation parameters are related to the processing process. According to another aspect of the present application, there is provided a performance adjustment apparatus for an application program, the apparatus including: the system comprises a strategy module, a temperature control frequency reduction strategy module and a control module, wherein the strategy module is used for acquiring a temperature control frequency reduction strategy of a terminal, and the temperature control frequency reduction strategy is used for reducing the working frequency of the terminal under the condition that the real-time temperature of the terminal reaches a temperature threshold value; the analysis module is used for determining the blocking reason of the application program under the condition of triggering the temperature control frequency-reducing strategy, wherein the blocking reason is used for indicating the processing process which leads to the blocking of the application program; and the adjusting module is used for adjusting the operation parameters of the application program according to the blocking reasons, wherein the operation parameters are related to the processing process. According to another aspect of the present application there is provided a computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, code set or instruction set loaded and executed by the processor to implement the method of performance adjustment of an application as described in the above aspects. According to another aspect of the present application, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes or a set of instructions, the at least one instruction, the at least one program, the set of codes or the set of instructions being loaded and executed by a processor to implemen