Game scene data processing method, device and equipment

By setting route information in the game scene data and using the automatic test framework to conduct automated performance testing, the problem of inaccurate manual frame counting is solved, and the efficient optimization of the game scene data and the improvement of the presentation effect are achieved.

CN112100065BActive Publication Date: 2024-09-20CHONGQING PERFECT WORLD INTERACTIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010937224.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-08
Publication Date
2024-09-20
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

In the existing technology, relying on manual statistics of the number of frames in game scene data is a heavy workload, making it difficult to ensure the accuracy of the number of frames and affecting the optimization effect of the game scene data. Scene optimization needs to be repeated over a long period of time, making it difficult to achieve the expected optimization effect in the short term.

Method used

By setting the route information in the game scene data, covering all walking areas in the scene to be tested, and using the automatic testing framework to connect terminal devices that meet the preset conditions, automatic performance testing of the game scene data is realized, and statistics and optimization are formed during the operation process. Performance parameters, automatically scan and obtain abnormal data frames.

Benefits of technology

It realizes automated performance testing and optimization of game scene data, improves the presentation effect of scene data, reduces the workload of manual statistics, and improves the accuracy and efficiency of optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112100065B
    Figure CN112100065B
Patent Text Reader

Abstract

The present application discloses a method, device and equipment for processing game scene data, which relates to the field of data processing technology. It does not rely on manual statistics of the number of frames of the screen in the game scene data, and can more accurately optimize the game scene and improve the presentation effect of the game scene data. The method includes: setting route information in the game scene data, the route information covers all walking areas in the scene to be tested; responding to the test instructions of the game scene data, using the automatic test framework to connect the terminal device that meets the preset conditions, and running the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions; counting the performance parameters of the screen formed during the operation of the game scene data, and optimizing the target game scene data whose performance parameters are in an abnormal numerical range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and equipment for processing game scene data. Background Art

[0002] In the process of 3D game development, in order to improve the player's gaming experience, performance optimization is an indispensable part, which is mainly divided into memory optimization and scene optimization. The game scene is an element that accounts for a very large proportion of the game. Realistic scenes can often infect the player's inner world and have a higher sense of immersion. Therefore, scene optimization has become the top priority of performance optimization.

[0003] In the related technology, scene optimization mainly includes the memory usage of textures, the memory usage of models, and the rendering pressure of the same-screen textures and models in each frame of game scene data. For the optimization of the memory usage of textures and models, the memory space usage can be reduced to a certain extent through compression tools. For the optimization of the rendering pressure of the same-screen textures and models, the game scene data can be run and the frame number changes of the pictures in the game scene data can be counted manually. If it is found that the frame number drops significantly at a certain position and camera angle, it means that the same-screen rendering pressure at this perspective is relatively large, and the game scene data at this perspective is further processed. However, the shots in the game scene data are ever-changing and the perspectives are varied. It is difficult to ensure the accuracy of the frame number by manually counting the frame number of the pictures in the game scene data, which affects the presentation effect of the game scene data. In addition, scene optimization is a long-term and repeated work. A large amount of manual statistical work limits the processing efficiency of the game scene data, and it is difficult to achieve the expected optimization effect in the short term. Summary of the invention

[0004] In view of this, the present application provides a method, device and equipment for processing game scene data, the main purpose of which is to solve the problem that the existing technology relies on manual statistics of the number of frames in the game scene data, which is labor-intensive, difficult to ensure the accuracy of the frame number, and affects the optimization effect of the game scene data.

[0005] According to a first aspect of the present application, a method for processing game scene data is provided, comprising:

[0006] Set the route information in the game scene data, where the route information covers all walking areas in the scene to be tested;

[0007] In response to a test instruction of the game scene data, the terminal device meeting the preset conditions is connected by using the automatic test framework, and the game scene data covering all walking areas in the scene to be tested is run on the terminal device meeting the preset conditions;

[0008] The performance parameters of the screen formed during the running of the game scene data are counted, and the target game scene data whose performance parameters are in an abnormal value range are optimized.

[0009] In another embodiment, after setting the route information in the game scene data, the method includes:

[0010] By searching for terminal devices in a preset network environment, a test terminal list is configured, wherein the test terminal list records terminal devices that meet preset conditions, and the terminal devices that meet the preset conditions have test applications installed therein.

[0011] In another embodiment, the automatic testing framework is used to connect a terminal device that meets the preset conditions, and the game scene data covering all walking areas in the scene to be tested is run on the terminal device that meets the preset conditions, specifically including:

[0012] Using the functional interface provided by the automatic test framework, an access request is sent to a terminal device that meets the preset conditions, so that the terminal device that meets the preset conditions parses the access request based on the test application and converts the access request into an automatic test code;

[0013] Based on the automatic test code, game scene data covering all walking areas in the scene to be tested is run on the terminal device that meets the preset conditions.

[0014] In another embodiment, based on the automatic test code, running the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions specifically includes:

[0015] Based on the first operation instruction formulated in the automatic test code, controlling the terminal device that meets the preset conditions to start the game program;

[0016] Based on the second operation instruction formulated in the automatic test code, game scene data covering all walking areas in the scene to be tested in the game program is run on the terminal device that meets the preset conditions.

[0017] In another embodiment, the first operation instruction carries a target application identifier of the game program, and the controlling the terminal device that meets the preset conditions to start the game program based on the first operation instruction formulated in the automatic test code specifically includes:

[0018] Based on the first operation instruction formulated in the automatic test code, capturing the application control matching the target application identifier;

[0019] The location information of the game program in the terminal device is located by using the application control that matches the target application identifier, and the terminal device that meets the preset conditions is controlled to start the game program according to the triggering operation of the location information.

[0020] In another embodiment, the second operation instruction carries virtual data for simulating entering the game program, and the second operation instruction formulated in the automatic test code runs the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions, specifically including:

[0021] Based on the second operation instruction formulated in the automatic test code, grab the operation control of the game program;

[0022] The page elements are located using the operation controls of the game program, the virtual data for simulating entering the game program is input according to the triggering operation of the page elements, and the game scene data covering all walking areas in the scene to be tested in the game program is run on the terminal device that meets the preset conditions.

[0023] In another embodiment, after setting the route information in the game scene data, the method further includes:

[0024] The project data formed around the route information in the game scene data are collected at preset time intervals, and the project data are packaged to generate a software test package, which is embedded in the automatic testing framework.

[0025] In another embodiment, the counting of performance parameters of the screen formed during the running of the game scene data and the optimization processing of the target game scene data whose performance parameters are in an abnormal value range specifically include:

[0026] Counting the frame data formed by the screen during the running of the game scene data, and recording the value change curve corresponding to the frame data;

[0027] Based on a preset abnormal value range, marking the frame data in the abnormal value range in the value change curve corresponding to the frame data;

[0028] The target game scene data mapped to the frame data in the abnormal numerical range is extracted, and the target game scene data is optimized.

[0029] In another embodiment, the optimizing the target game scene data specifically includes:

[0030] Using a performance analysis tool to capture performance information associated with the target game scene data;

[0031] The rendering state of the frame data formed by the screen in the target game scene data is restored according to the performance information, and the rendering state is optimized.

[0032] According to a second aspect of the present application, a device for processing game scene data is provided, comprising:

[0033] A setting unit, used to set route information in the game scene data, wherein the route information covers all walking areas in the scene to be tested;

[0034] A connection unit, for responding to a test instruction of the game scene data, connecting a terminal device that meets the preset conditions by using an automatic test framework, and running the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions;

[0035] The processing unit is used to count the performance parameters of the screen formed during the operation of the game scene data, and optimize the target game scene data whose performance parameters are in an abnormal value range.

[0036] In another embodiment, the apparatus further comprises:

[0037] A configuration unit is used to configure a test terminal list by searching for terminal devices in a preset network environment after setting the route information in the game scene data. The test terminal list records terminal devices that meet the preset conditions, and the terminal devices that meet the preset conditions have a test application installed in them.

[0038] In another embodiment, the connecting unit comprises:

[0039] A sending module, configured to send an access request to a terminal device that meets the preset conditions by using a functional interface provided by the automatic test framework, so that the terminal device that meets the preset conditions parses the access request based on the test application and converts the access request into an automatic test code;

[0040] The running module is used to run the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions based on the automatic testing code.

[0041] In another embodiment, the operation module includes:

[0042] A control submodule, configured to control the terminal device meeting the preset conditions to start a game program based on the first operation instruction formulated in the automatic test code;

[0043] The running submodule is used to run the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions based on the second operation instruction formulated in the automatic test code.

[0044] In another embodiment, the first operation instruction carries a target application identifier of the game program.

[0045] The control submodule is specifically configured to capture an application control that matches the target application identifier based on a first operation instruction formulated in the automatic test code;

[0046] The control submodule is further specifically used to locate the location information of the game program in the terminal device using the application control matching the target application identifier, and control the terminal device that meets the preset conditions to start the game program according to the triggering operation of the location information.

[0047] In another embodiment, the second operation instruction carries virtual data for simulating entering a game program.

[0048] The operation submodule is specifically used to capture the operation control of the game program based on the second operation instruction formulated in the automatic test code;

[0049] The running submodule is specifically used to locate page elements using the operation controls of the game program, input virtual data for simulating entry into the game program according to the triggering operation of the page element, and run the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions.

[0050] In another embodiment, the apparatus further comprises:

[0051] The collecting unit is used to collect the project data formed around the route information in the game scene data at a preset time interval after setting the route information in the game scene data, and to package the project data to generate a software test package, and embed it into the automatic testing framework.

[0052] In another embodiment, the processing unit comprises:

[0053] A statistics module is used to count the frame data formed by the screen during the running of the game scene data, and record the value change curve corresponding to the frame data;

[0054] A marking module, used for marking frame data in an abnormal value range in a value change curve corresponding to the frame data based on a preset abnormal value range;

[0055] The processing module is used to extract the target game scene data mapped to the frame data in the abnormal numerical range, and optimize the target game scene data.

[0056] In another embodiment, the processing module comprises:

[0057] An acquisition submodule, used for capturing performance information associated with the target game scene data using a performance analysis tool;

[0058] The processing submodule is used to restore the rendering state of the frame data formed by the picture in the target game scene data according to the performance information, and optimize the rendering state.

[0059] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.

[0060] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0061] By means of the above technical scheme, the present application provides a method, device and equipment for processing game scene data. Compared with the current existing method of optimizing the game scene by manually counting the number of frames of the picture in the game scene data, the present application sets the route information in the game scene data, and the route information covers all walking areas in the scene to be tested to ensure the comprehensiveness of the scene test. In response to the test instructions of the game scene data, the automatic test framework is used to connect the terminal devices that meet the preset conditions, and the game scene data of all walking areas in the scene to be tested are run on the terminal devices that meet the preset conditions to realize the automated performance test of the game scene data. At the same time, the performance parameters of the picture formed in the process of running the game scene data are counted, and the target game scene data with the performance number in the abnormal numerical range is optimized. There is no need to rely on manual counting of the number of frames of the picture in the game scene data. The game scene data can be automatically scanned and the data frames with abnormalities therein can be obtained, so that the game scene can be optimized more accurately and the presentation effect of the game scene data can be improved.

[0062] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0064] Figure 1 A flowchart of a method for processing game scene data provided by an embodiment of the present application is shown;

[0065] Figure 2 A schematic flow chart showing another method for processing game scene data provided by an embodiment of the present application;

[0066] Figure 3 A schematic diagram showing a game scene data running screen provided by an embodiment of the present application is shown;

[0067] Figure 4 A schematic diagram showing the game scene data test results provided by an embodiment of the present application;

[0068] Figure 5 A schematic diagram showing frame data formed by a screen in target game scene data provided by an embodiment of the present application is shown;

[0069] Figure 6 A schematic diagram showing the structure of a device for processing game scene data provided by an embodiment of the present application is shown;

[0070] Figure 7 A schematic diagram showing the structure of another device for processing game scene data provided by an embodiment of the present application is shown;

[0071] Figure 8 A schematic diagram of the device structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0072] Now the content of the present invention will be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.

[0073] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment." The term "another embodiment" is to be interpreted as "at least one other embodiment."

[0074] In the 3D game development scene, performance optimization is an indispensable part. In the previous development process, since artists often modify the effects of game scene data and perform optimization and other processing, scene optimization needs to be carried out on a long-term and regular basis, and all processing needs to be done manually by technicians, which takes up a lot of time and cost. In the related technology, scene optimization mainly includes the memory usage of textures, the memory usage of models, and the rendering pressure of the same-screen textures and models in each frame of game scene data. For the optimization processing of the memory usage of textures and the memory usage of models, the compression tool can be used to reduce the space usage of memory to a certain extent. For the optimization processing of the rendering pressure of the same-screen textures and models, the game scene data can be run and the frame number changes in the game scene data can be counted manually. If it is found that the frame number has dropped significantly at a certain position and camera angle, it means that the same-screen rendering pressure at this perspective is relatively large, and the game scene data at this perspective is further processed. However, the shots in the game scene data are ever-changing and the perspectives are diverse. It is labor-intensive to manually count the frame rates in the game scene data, and it is difficult to ensure the accuracy of the frame rates, which affects the presentation effect of the game scene data. In addition, scene optimization is a long-term and repetitive process. A large amount of manual statistical work limits the processing efficiency of the game scene data, making it difficult to achieve the expected optimization effect in the short term.

[0075] In order to solve this problem, this embodiment provides a method for processing game scene data, such as Figure 1 As shown, the method is applied to the client of the game testing tool, and includes the following steps:

[0076] 101. Set the route information in the game scene data.

[0077] In the process of game development, it is inevitable that there will be a lot of game scene data settings. These game scene data are not only static elements such as scenery and roads, but also some dynamic elements, such as flashing lights and rolling iron barrels, to describe the plot environment in the game. As the plot develops, the game scene data continues to add or reduce elements, which can reflect the game plot and increase the interactivity of the game.

[0078] Generally, many games have game maps, such as tower defense games and board games. The game maps are embedded in the game scene data. By selecting different areas in the game map, the game scene data of different areas in the map can be displayed, and the characters can be controlled to walk in the corresponding game scene data. However, not all areas in the game scene data are suitable for characters to walk, such as lakes, mountains, buildings, etc. It is necessary to create paths in the game scene data and restrict the character's walking area so that the character can walk along the planned route.

[0079] Considering the diversity of elements in the scene, once there are too many elements displayed on the same screen, it is easy to cause rendering pressure on the game scene data and affect the quality of the game. Through the performance test of the game scene, the performance parameters of the game scene data can be evaluated, and then the abnormal performance parameters can be optimized to improve the rendering effect of the game scene. During the performance test of the game scene, the route information is the path of the character's walkable area in the game scene data, and in order to ensure that the test can cover all paths, the route information covers all walking areas in the scene to be tested.

[0080] The execution subject of this embodiment can be a processing device or equipment for game scene data, which can be configured in the client of the game testing tool. For the testing link of the game scene, several travel route information can be set in the game scene data. The route information covers all walking areas in the scene, and the route information is saved in a configuration file. The configuration file is used as a project file for the scene test, which covers the paths in the game scene to the maximum extent and improve the quality of the game.

[0081] 102. In response to a test instruction of the game scene data, the automatic test framework is used to connect to a terminal device that meets preset conditions, and the game scene data covering all walking areas in the scene to be tested is run on the terminal device that meets the preset conditions.

[0082] The automatic testing framework can be embedded in both the game testing tool and the terminal device as an application. By pre-setting the terminal device that meets the preset conditions and installing the application with the automatic testing framework in the terminal device that meets the preset conditions, the game testing tool can be connected to the terminal device that meets the preset conditions. The specific connection method can be a wireless network connection and a USB connection. Usually, in order to save USB interface resources, it is preferred to use a wireless network connection method, and at this time the terminal devices need to be in the same network environment.

[0083] Specifically, in the process of running game scene data covering all walking areas in the scene to be tested on a terminal device that meets the preset conditions, the automatic testing framework can send an access request to the terminal device that meets the preset conditions, and the access request carries code logic so that the game testing tool can perform game scene testing operations according to the code logic, for example, opening the game application, entering various scenes in the game application, etc., which are not limited here, and further run game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions.

[0084] 103. Count the performance parameters of the screen formed during the running of the game scene data, and optimize the target game scene data whose performance parameters are in an abnormal value range.

[0085] During the scene testing process, running the game scene data will display the scene screen accordingly in the terminal device, and the performance parameters formed by the corresponding scene screen will be counted in the game testing tool, such as the frame data of the screen, memory used, etc., to understand the game memory usage, and pre-set abnormal numerical ranges for the performance parameters. The abnormal numerical range can reflect that there are certain problems with the performance of the current screen, and it is necessary to optimize the target game scene data in the abnormal numerical range to further obtain relevant information of the target scene, such as the current coordinates, the camera position in the scene, screenshots, performance information captured in the scene, etc.

[0086] The optimization processing of the target game scene data with performance parameters in the abnormal range is mainly to improve the frame data of the picture and reduce the memory usage. In order to further determine the index parameters that can be optimized for the frame data, the performance analysis tool can be used to locate the initial values ​​of each index parameter in the frame data, and determine the optimizable index parameters based on the initial values ​​of each index parameter, and set the index parameters after optimization to reach the final values, so as to obtain the resource data designed for the optimizable index parameters, and adopt different optimization strategies for the type of resource data for optimization processing. For example, for texture optimization, you can compress maps with large texture sizes, reduce the number of texture channels or apply a single channel, etc. You can also reduce the texture reuse rate. For interface atlases, you can use shared atlases, and you can use nine-square grids and detail maps for large-size textures, or replace them through combinations, etc.

[0087] The method for processing game scene data provided in the embodiment of the present application is compared with the current existing method of optimizing the game scene by manually counting the number of frames of the picture in the game scene data. The present application sets route information in the game scene data, and the route information covers all walking areas in the scene to be tested to ensure the comprehensiveness of the scene test. In response to the test instructions of the game scene data, the automatic test framework is used to connect the terminal devices that meet the preset conditions, and the game scene data of all walking areas in the scene to be tested are run on the terminal devices that meet the preset conditions to realize the automated performance test of the game scene data. At the same time, the performance parameters of the picture formed in the process of running the game scene data are counted, and the target game scene data with performance numbers in the abnormal numerical range are optimized. There is no need to rely on manual counting of the number of frames of the picture in the game scene data. The game scene data can be automatically scanned and the data frames with abnormalities therein can be obtained, so that the game scene can be optimized more accurately and the presentation effect of the game scene data can be improved.

[0088] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, this embodiment provides another method for processing game scene data, such as Figure 2 As shown, the method includes:

[0089] 201. Set route information in the game scene data.

[0090] Generally, during the testing of game scene data, the scene editor will pre-edit the scene to be tested, set the route information planned in the game scene data, and output the test case of the game scene data, which can generate the screen of the scene to be tested and control the characters to move in the scene to be tested according to the planned path information. For multiple path information, each route information in the scene to be tested is set separately, and the test cases for different route information in the game scene data are output.

[0091] It is understandable that, for the convenience of testing, in the process of designing test cases, the test functions can be divided into one or several relatively logically complete functional processes according to the size of the test functions. By analyzing the test cases, test cases for game scene data can be sorted out. Due to the uncertainty of route information, the main route information planned in the scene can be selected as the basic flow, and each main route information from the beginning to the end may be accompanied by multiple branch route information as multiple alternative flows. A basic flow and any one or more alternative flows can form a test case, and there is an association or mutual exclusion relationship between the alternative flows. If there is an association relationship between the alternative flows, one or more alternative flows need to be selected in order of origin. If there is a mutual exclusion relationship between the alternative flows, it is necessary to abandon some of the alternative flows, and then combine to form multiple test cases.

[0092] For example, for a game scene, including basic flow, alternative flow 1, alternative flow 2, alternative flow 3 and alternative flow 4, among which alternative flow 2 originates from alternative flow 1 and has an associated relationship, and alternative flow 3 and alternative flow 4 have a mutually exclusive relationship, then determine the test cases of the following game scene data:

[0093] Scenario 1: Basic Stream

[0094] Scenario 2: Basic Stream, Alternative Stream 1

[0095] Scenario 3: Basic stream, alternative stream 1 and alternative stream 2

[0096] Scenario 4: Basic stream, alternative stream 1 and alternative stream 3

[0097] Scenario 5: Basic stream, alternative stream 1 and alternative stream 4

[0098] Scenario 6: Basic Stream, Alternative Stream 3

[0099] Scenario 7: Basic Stream, Alternative Stream 4

[0100] 202. Configure a test terminal list by searching for terminal devices in a preset network environment.

[0101] Among them, the test interruption list records the terminal devices that meet the preset conditions, and the terminal devices that meet the preset conditions have test applications installed in them. It should be noted that the test application, as a test carrier for game scene data, needs to be installed on both the game testing tool end and the terminal device end, and the game testing end and the terminal device must be kept in the same network environment. Then, network communication can be used to establish a connection between the game testing tool end and the interruption device end. Only successfully connected terminal devices can be controlled by the game testing tool end.

[0102] The specific process of configuring the terminal test list can be to parse the network connection information to obtain the device information of the terminal device in the same network environment as the game testing tool, such as the device information of the terminal device, device IP, device name, device power, device status, device online time, device version, etc., and form the device information of the terminal device into a test terminal list.

[0103] 203. Collect project data formed around the route information in the game scene data at preset time intervals, package the project data to generate a software test package, and embed it into an automatic test framework.

[0104] For the scene to be tested, in order to save terminal resources, the project data formed by the route information around the game scene data can be collected at a specified time every day. The project data includes test cases designed for the route information covering all walking areas in the scene to be tested. The project data is further packaged into a software test package and embedded in the automatic testing framework. The automatic testing framework can provide the function of automatically running the game scene data on the device terminal, and control the device terminal to read the game scene data in the test case, and the corresponding game scene is formed.

[0105] 204. In response to the test instructions of the game scene data, an access request is sent to a terminal device that meets the preset conditions using the functional interface provided by the automatic testing framework, so that the terminal device that meets the preset conditions parses the access request based on the test application and converts the access request into an automatic testing code.

[0106] Specifically, during the scenario testing process, the automatic testing framework embedded in the game testing tool can first obtain the device information of the terminal device that meets the preset conditions, such as the device serial number, wireless network LAN IP, connection status of the test application, etc., and then send an access request to the terminal device that meets the preset conditions, so that the terminal device that meets the preset conditions parses the access request based on the test application and converts the access request into an automatic testing code.

[0107] It is understandable that the connection method between the game test tool and the terminal device can include wireless network connection and USB connection. During the connection process, it is necessary to check whether the test application is started. For wireless network connection, it is necessary to ensure that the terminal device and the game test tool are in the same local area network and use the device terminal IP for connection. For USB connection, it is necessary to simulate commands to obtain the unique identification serial number of the device terminal and use the unique identification serial number of the device terminal for connection.

[0108] 205. Based on the automatic test code, run the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions.

[0109] Automatic testing can implement operation instructions for the device terminal, including screen-related operations, such as turning the screen on and off, unlocking the screen, etc., button-related operations, such as menu keys, home keys, tuning keys, etc., gesture-related operations, such as clicking, sliding, dragging, etc., and application-related operations, such as starting applications, logging in to applications, closing applications, etc. In the process of running game scene data, on the one hand, based on the first operation instruction formulated in the automatic test code, the terminal device that meets the preset conditions can be controlled to start the game program. On the other hand, based on the second operation instruction formulated in the automatic test code, the game scene data covering all walking areas in the scene to be tested in the game program can be run on the terminal device that meets the preset conditions.

[0110] The above-mentioned first operation instruction carries the target application identifier of the game program. Specifically, in the process of controlling a terminal device that meets preset conditions to start the game program, the application control that matches the target application identifier can be first captured based on the first operation instruction formulated in the automatic test code, and then the application control that matches the target application identifier can be used to locate the location information of the game program in the terminal device, and the terminal device that meets the preset conditions can be controlled to start the game program according to the triggering operation of the location information.

[0111] The above-mentioned second operation instruction carries virtual data for simulating entry into the game program. Specifically, in the process of running the game scene data covering all walking areas in the scene to be tested in the game program on a terminal device that meets the preset conditions, the operation controls of the game program can be first captured based on the second operation instruction formulated in the automatic testing code, and then the operation controls of the game program can be used to locate the page elements. According to the triggering operation of the page elements, the virtual data for simulating entry into the game program is input, and the game scene data covering all walking areas in the scene to be tested in the game program is run on the terminal device that meets the preset conditions.

[0112] The specific operation process of game scene data can be as follows Figure 3As shown, the web page of the game testing tool can be used to view the screen formed by the device terminal running the game, and provide corresponding performance query and screen screenshot functions.

[0113] 206. Count the performance parameters of the screen formed during the running of the game scene data, and optimize the target game scene data whose performance parameters are in an abnormal value range.

[0114] Specifically, in the process of optimizing the target game scene data, the frame data formed by the screen during the running of the game scene data can be counted, and the numerical change curve corresponding to the frame data can be recorded. Based on the pre-set abnormal numerical range, the frame data in the abnormal numerical range is marked in the numerical change curve corresponding to the frame data, and the target game scene data mapped to the frame data in the abnormal numerical range is extracted, and the target game scene data is optimized.

[0115] Specific game scene data test results, such as Figure 4 As shown, you can view the performance parameters of the screen formed by the device terminal during the game running process, use curves of different colors to distinguish game scenes, and form the numerical values ​​corresponding to the corresponding performance parameters of the game scenes on the timeline.

[0116] The frame data formed by the screen in the specific target game scene data, such as Figure 5 As shown, the target game scene data mapped to the frame data in the abnormal value range is a screen with performance problems. Further, a screenshot of the current frame data can be saved as a file to facilitate further search and positioning.

[0117] Specifically, in the process of optimizing the target game scene data, since the performance information of the target game scene data cannot be directly analyzed through the game testing software, the performance analysis tool can be used here to capture the performance information associated with the target game scene data, save the relevant performance information, and restore the rendering state of the frame data formed by the picture in the target game scene data according to the performance information, and optimize the rendering state.

[0118] Further, as Figure 1 and Figure 2 The specific implementation of the method, the embodiment of the present application provides a device for processing game scene data, such as Figure 6 As shown, the device includes: a setting unit 31, a connecting unit 32, and a processing unit 33.

[0119] A setting unit 31 may be used to set route information in the game scene data, where the route information covers all walking areas in the scene to be tested;

[0120] The connection unit 32 may be used to respond to the test instruction of the game scene data, connect the terminal device that meets the preset conditions by using the automatic test framework, and run the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions;

[0121] The processing unit 33 can be used to count the performance parameters of the screen formed during the operation of the game scene data, and optimize the target game scene data whose performance parameters are in an abnormal value range.

[0122] The processing device for game scene data provided by the embodiment of the present invention is compared with the current existing method of optimizing the game scene by manually counting the number of frames of the picture in the game scene data. The present application sets the route information in the game scene data, and the route information covers all walking areas in the scene to be tested to ensure the comprehensiveness of the scene test. In response to the test instruction of the game scene data, the automatic test framework is used to connect the terminal device that meets the preset conditions, and the game scene data of all walking areas in the scene to be tested are run on the terminal device that meets the preset conditions to realize the automated performance test of the game scene data. At the same time, the performance parameters of the picture formed in the process of running the game scene data are counted, and the target game scene data with the performance number in the abnormal numerical range is optimized. There is no need to rely on manual counting of the number of frames of the picture in the game scene data. The game scene data can be automatically scanned and the data frames with abnormalities therein can be obtained, so that the game scene can be optimized more accurately and the presentation effect of the game scene data can be improved.

[0123] In specific application scenarios, such as Figure 7 As shown, the device also includes:

[0124] The configuration unit 34 can be used to configure a test terminal list by searching for terminal devices in a preset network environment after setting the route information in the game scene data. The test terminal list records terminal devices that meet the preset conditions, and the terminal devices that meet the preset conditions have test applications installed in them.

[0125] In specific application scenarios, such as Figure 7 As shown, the connection unit 32 includes:

[0126] The sending module 321 may be used to send an access request to a terminal device that meets the preset conditions by using a functional interface provided by the automatic test framework, so that the terminal device that meets the preset conditions parses the access request based on the test application and converts the access request into an automatic test code;

[0127] The running module 322 can be used to run the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions based on the automatic testing code.

[0128] In specific application scenarios, such as Figure 7 As shown, the operation module 322 includes:

[0129] The control submodule 3221 may be used to control the terminal device that meets the preset conditions to start the game program based on the first operation instruction formulated in the automatic test code;

[0130] The running submodule 3222 can be used to run the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions based on the second operation instruction formulated in the automatic test code.

[0131] In a specific application scenario, the first operation instruction carries a target application identifier of the game program.

[0132] The control submodule 3221 may be specifically configured to capture an application control that matches the target application identifier based on a first operation instruction formulated in the automatic test code;

[0133] The control submodule 3221 can also be specifically used to locate the location information of the game program in the terminal device using the application control matching the target application identifier, and control the terminal device that meets the preset conditions to start the game program according to the trigger operation of the location information.

[0134] In a specific application scenario, the second operation instruction carries virtual data for simulating entering a game program.

[0135] The operation submodule 3222 may be specifically used to capture the operation controls of the game program based on the second operation instruction formulated in the automatic test code;

[0136] The running submodule can also be specifically used to locate page elements using the operating controls of the game program, input virtual data for simulating entry into the game program according to the triggering operation of the page element, and run game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions.

[0137] In specific application scenarios, such as Figure 7 As shown, the device also includes:

[0138] The collection unit 35 can be used to collect project data formed around the route information in the game scene data at preset time intervals after setting the route information in the game scene data, and package the project data to generate a software test package, which is embedded in the automatic testing framework.

[0139] In specific application scenarios, such as Figure 7 As shown, the processing unit 33 includes:

[0140] The statistics module 331 can be used to count the frame data formed by the screen during the running of the game scene data, and record the value change curve corresponding to the frame data;

[0141] The marking module 332 may be used to mark the frame data in the abnormal value range in the value change curve corresponding to the frame data based on the preset abnormal value range;

[0142] The processing module 333 can be used to extract the target game scene data mapped to the frame data in the abnormal numerical range, and optimize the target game scene data.

[0143] In specific application scenarios, such as Figure 7 As shown, the processing module 333 includes:

[0144] The acquisition submodule 3331 may be used to capture the performance information associated with the target game scene data using a performance analysis tool;

[0145] The processing submodule 3332 can be used to restore the rendering state of the frame data formed by the picture in the target game scene data according to the performance information, and optimize the rendering state.

[0146] It should be noted that for other corresponding descriptions of the functional units involved in the device for processing game scene data provided in this embodiment, reference can be made to Figure 1-Figure 2 The corresponding description in will not be repeated here.

[0147] Based on the above Figure 1-Figure 2 The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-Figure 2 The method for processing game scene data is shown.

[0148] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0149] Based on the above Figure 1-Figure 2 The method shown, and Figure 6-Figure 7 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a physical device for processing game scene data, which can be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1-Figure 2 The method for processing game scene data is shown.

[0150] Optionally, the physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0151] In an exemplary embodiment, see Figure 8 The physical device 400 includes a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the painting mounting method in the above embodiment.

[0152] Those skilled in the art will appreciate that the physical device structure for processing game scene data provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0153] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device for the store search information processing, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the physical device for information processing.

[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware platforms, or by hardware. By applying the technical solution of the present application, compared with the current existing methods, the present application uses an automatic test framework to connect terminal devices that meet the preset conditions, and runs game scene data covering all walking areas in the scene to be tested on the terminal devices that meet the conditions, which can realize the automated performance test of the game scene data, and at the same time, count the performance parameters of the screen formed during the operation of the game scene data, and optimize the target game scene data whose performance number is in the abnormal numerical range, without relying on manual statistics of the number of frames of the screen in the game scene data, the game scene data can be automatically scanned and the data frames with abnormalities therein can be obtained, which can more accurately optimize the game scene and improve the presentation effect of the game scene data.

[0155] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0156] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A method for processing game scene data, characterized in that: include: Set the route information in the game scene data, where the route information covers all walking areas in the scene to be tested; In response to a test instruction of the game scene data, an automatic test framework is used to connect a terminal device that meets the preset conditions, and an access request is sent to the terminal device that meets the preset conditions, so that the terminal device that meets the preset conditions parses the access request based on a test application, and converts the access request into an automatic test code, and based on the automatic test code, runs the game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions, and specifically controls the terminal device that meets the preset conditions to start a game program based on a first operation instruction formulated in the automatic test code; and runs the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions based on a second operation instruction formulated in the automatic test code; The performance parameters of the screen formed during the running of the game scene data are counted, and the target game scene data whose performance parameters are in an abnormal value range are optimized.

2. The method according to claim 1, characterized in that After setting the route information in the game scene data, the method includes: By searching for terminal devices in a preset network environment, a test terminal list is configured, wherein the test terminal list records terminal devices that meet preset conditions, and the terminal devices that meet the preset conditions have test applications installed therein.

3. The method according to claim 1, characterized in that The first operation instruction carries a target application identifier of the game program, and the first operation instruction formulated in the automatic test code is used to control the terminal device that meets the preset conditions to start the game program, specifically including: Based on the first operation instruction formulated in the automatic test code, capturing the application control matching the target application identifier; The location information of the game program in the terminal device is located by using the application control that matches the target application identifier, and the terminal device that meets the preset conditions is controlled to start the game program according to the triggering operation of the location information.

4. The method according to claim 1, characterized in that The second operation instruction carries virtual data for simulating entering the game program, and the second operation instruction formulated in the automatic test code runs the game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions, specifically including: Based on the second operation instruction formulated in the automatic test code, grab the operation control of the game program; The page elements are positioned using the operation controls of the game program, virtual data for simulating entry into the game program is input according to the triggering operation of the page elements, and game scene data covering all walking areas in the scene to be tested in the game program is run on the terminal device that meets the preset conditions.

5. The method according to any one of claims 1 to 4, characterized in that After setting the route information in the game scene data, the method further includes: The project data formed around the route information in the game scene data are collected at preset time intervals, and the project data are packaged to generate a software test package, which is embedded in the automatic testing framework.

6. The method according to any one of claims 1 to 4, characterized in that The counting of performance parameters of the screen formed during the running of the game scene data and the optimization processing of the target game scene data whose performance parameters are in an abnormal value range specifically include: Counting the frame data formed by the screen during the running of the game scene data, and recording the value change curve corresponding to the frame data; Based on a preset abnormal value range, marking frame data in the abnormal value range in the value change curve corresponding to the frame data; The target game scene data mapped to the frame data in the abnormal numerical range is extracted, and the target game scene data is optimized.

7. The method according to claim 6, characterized in that The optimizing process of the target game scene data specifically includes: Using a performance analysis tool to capture performance information associated with the target game scene data; The rendering state of the frame data formed by the screen in the target game scene data is restored according to the performance information, and the rendering state is optimized.

8. A device for processing game scene data, characterized in that: include: A setting unit, used to set route information in the game scene data, wherein the route information covers all walking areas in the scene to be tested; A connection unit, for responding to a test instruction of game scene data, connecting a terminal device that meets preset conditions by using an automatic test framework, sending an access request to the terminal device that meets the preset conditions, so that the terminal device that meets the preset conditions parses the access request based on a test application, and converts the access request into an automatic test code, and based on the automatic test code, runs game scene data covering all walking areas in the scene to be tested on the terminal device that meets the preset conditions, and specifically controls the terminal device that meets the preset conditions to start a game program based on a first operation instruction formulated in the automatic test code; and runs game scene data covering all walking areas in the scene to be tested in the game program on the terminal device that meets the preset conditions based on a second operation instruction formulated in the automatic test code; The processing unit is used to count the performance parameters of the screen formed during the operation of the game scene data, and optimize the target game scene data whose performance parameters are in an abnormal value range.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for processing game scene data described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for processing game scene data described in any one of claims 1 to 7 are implemented.