WO2023142434A1 - Rendering engine testing method and apparatus, device, system, storage medium, computer program and computer program product - Google Patents

Rendering engine testing method and apparatus, device, system, storage medium, computer program and computer program product Download PDF

Info

Publication number
WO2023142434A1
WO2023142434A1 PCT/CN2022/112298 CN2022112298W WO2023142434A1 WO 2023142434 A1 WO2023142434 A1 WO 2023142434A1 CN 2022112298 W CN2022112298 W CN 2022112298W WO 2023142434 A1 WO2023142434 A1 WO 2023142434A1
Authority
WO
WIPO (PCT)
Prior art keywords
rendering
test
rendering engine
resources
performance parameters
Prior art date
Application number
PCT/CN2022/112298
Other languages
French (fr)
Chinese (zh)
Inventor
李春艳
Original Assignee
深圳市慧鲤科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市慧鲤科技有限公司 filed Critical 深圳市慧鲤科技有限公司
Publication of WO2023142434A1 publication Critical patent/WO2023142434A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Definitions

  • the present disclosure relates to the field of computer technology, in particular to a rendering engine testing method, device, system, storage medium, computer program, and computer program product.
  • Augmented reality is a technology that integrates virtual information with the real world. It simulates virtual information such as text, images, spatial feature point models, music, and videos generated by computers and simulates them on user equipment. Displaying virtual information and real-time images of the real world, the two kinds of information complement each other to achieve "augmentation" of the real world.
  • visual information such as images realized by rendering engine is displayed.
  • the rendering engine is integrated in the visual display application program, and the tester uses the visual display application program to observe the displayed virtual objects. , to judge the performance of the rendering engine based on subjective feelings.
  • the present disclosure at least provides a rendering engine testing method, device, device, system, storage medium, computer program, and computer program product.
  • An embodiment of the present disclosure provides a method for testing a rendering engine.
  • the method includes: acquiring rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources; Preset processing, wherein the preset processing is used to reflect the performance of the rendering engine.
  • An embodiment of the present disclosure provides a testing device for a rendering engine, including an acquisition module and a processing module.
  • the acquisition module is configured to acquire the rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources.
  • the processing module is configured to perform preset processing based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
  • An embodiment of the present disclosure provides a processing device, which includes a processor and a memory, where the memory is used to store program data, and the processor is used to execute the program data to implement any of the above methods.
  • An embodiment of the present disclosure provides a rendering engine testing system.
  • the testing system includes a processing device and a testing device, wherein the testing device is used to run the rendering engine to render test resources to obtain rendering performance parameters, and the processing device is used to execute any of the above methods. .
  • An embodiment of the present disclosure provides a computer-readable storage medium.
  • the computer-readable storage medium is used to store program data, and the program data can be executed to implement any of the above methods.
  • An embodiment of the present disclosure provides a computer program, the computer program includes computer readable code, and when the computer readable code is read and executed by a computer, a part or part of the method in any embodiment of the present disclosure is realized. All steps.
  • An embodiment of the present disclosure provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, any embodiment of the present disclosure is realized Some or all of the steps in the method.
  • the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate.
  • FIG. 1 is a first schematic flow diagram of a rendering engine testing method provided by an embodiment of the present disclosure
  • FIG. 2 is a second schematic flow diagram of a rendering engine testing method provided by an embodiment of the present disclosure
  • FIG. 3 is a third schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a preset evaluation strategy in a rendering engine testing method provided by an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of recording test item scoring provided by an embodiment of the present disclosure.
  • FIG. 6 is a fourth schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic framework diagram of a rendering engine testing device provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic framework diagram of a rendering engine testing system provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic framework diagram of a processing device provided by an embodiment of the present disclosure.
  • Fig. 10 is a schematic framework diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
  • the disclosed method may include the methods provided by any one of the following method embodiments and any non-conflicting combination of the following method embodiments.
  • the rendering engine testing method in the present disclosure may be executed by a processing device, and the processing device may be any electronic device with processing capabilities, such as a mobile phone, a tablet computer, a computer, and the like.
  • the test device can run the rendering engine to render the test resources, and the test device can also be any device capable of running the rendering engine, and then the processing device executes the rendering engine test method of the present disclosure. step.
  • the testing equipment can be the same equipment as the processing equipment, or it can be different.
  • Fig. 1 shows a schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure. The method includes:
  • Step S110 Obtain the rendering performance parameters of the rendering engine.
  • the rendering engine in the present disclosure can be integrated into an application program, and the existing rendering engine is usually tested by integrating it into an application program and subjectively evaluating the rendering result by a tester.
  • the test device in the embodiments of the present disclosure can run the rendering engine alone to render resources, so as to test the rendering engine alone, and can also test the application integrated with the rendering engine.
  • the rendering performance parameter is obtained by using the test device to run the rendering engine to render the test resource, and the rendering performance parameter can be used to evaluate the performance of the rendering engine.
  • the test equipment may be the same equipment as the execution equipment of the test method, or different equipment from the execution equipment of the test method. After the test device runs the rendering engine to render the test resources, the rendering result will be displayed for the user to view.
  • the rendering performance parameters can reflect the performance of the rendering engine through at least one of the following: Rendering result, rendering process.
  • the rendering performance parameters may include at least one of the time-consuming to obtain test resources, the time-consuming to render, the memory usage of the rendering process, the network resources consumed by obtaining test resources, and the maximum number of rendering resources, which may be used to reflect the rendering process.
  • the performance parameter can also score the rendering effect, which can be used to reflect the rendering effect.
  • the rendering performance parameter may be obtained by the test device running the test tool, based on the process of rendering the test resource by the rendering engine, or it may be obtained after the test device renders the test resource by the rendering engine, the test device or The processing device obtains the content input by the user.
  • Step S120 Perform preset processing based on rendering performance parameters.
  • the rendering performance parameter can be used to reflect the performance of the rendering engine, and the preset processing of the rendering performance parameter can reflect the performance of the rendering engine.
  • the preset processing may be at least one of displaying the rendering performance parameters and performing performance analysis on the rendering performance parameters.
  • the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate.
  • this disclosure decouples the rendering engine from other modules of the application. Compared with using the integrated application to test the performance of the rendering engine in the application, only testing the rendering engine can reduce the number of other modules of the application.
  • the impact on rendering can accurately determine the performance of the rendering engine itself, and help to locate and analyze the problems obtained in the test; in addition, by executing the test method of the rendering engine before the rendering engine is integrated in the application, the performance of the rendering engine can be reduced. Low probability of the rendering engine being integrated into the application, thereby reducing the impact of poor performance of the rendering engine on the application.
  • FIG. 2 shows a second schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure.
  • the rendering engine can be used to be integrated in an enhanced display application as an example for illustration.
  • the resource refers to the object rendered by the rendering engine, which may be some Virtual objects can be divided into dynamic models and static models; among them, the dynamic model refers to the model that can interact with the user, and the interaction with the user means that the device can respond to the user's operation on the dynamic model and display the corresponding information of the dynamic model.
  • dynamic actions; static models refer to models that cannot interact with users, both dynamic models and static models can change with the environment, for example, a flower cannot interact with users, but it can change with the wind And jiggle.
  • different resources require different rendering capabilities, and the rendering performance parameters obtained by rendering different resources with the same rendering engine may also be different.
  • each difficulty level can include multiple test resources.
  • different difficulty levels can be set for the dynamic model and the static model, and only the dynamic model of the difficulty level or the static model of the difficulty level can be included in the same level, or all models can be combined Set the difficulty level so that both dynamic and static models may be included in the same level. For example, three difficulty levels are set for the dynamic model and the static model respectively.
  • the difficulty level can be reflected in the number of patches and the number of rendering batches. Different difficulty levels correspond to dynamic models with different numbers of patches and different batches of rendering. and static models, six levels of test resources can be obtained.
  • the work of the rendering engine is affected by the device. Because the performance of different devices is different, even if the same rendering engine is used to render the same resource, the rendering process and rendering results on different devices may be different. In order to conduct a comprehensive test on the rendering engine, multiple terminal devices may be pre-selected in the present disclosure as test devices, and each test device renders all test resources separately in sequence, and the test engine only renders one test resource at the same time.
  • the terminal device is a mobile phone
  • the mobile phone category can be divided according to the two dimensions of high performance, medium performance, and low performance, and the operating system.
  • at least one device of this category is selected as a test equipment, which means that the test equipment can cover all pre-defined mobile phone categories.
  • a total of 3 mobile phones with high, medium and low performance running on the Apple system are selected, and a total of 3 mobile phones with high, medium and low performance running on the Android system are respectively selected, and a total of 6 terminal devices are used as test equipment, and the test
  • the devices cover all pre-designated mobile phone categories, and the terminal device selected during the actual test can be any device capable of running the rendering engine, not limited to the mobile phone in this example.
  • the category division and the number of test equipment are only examples, and the user may perform category division and test equipment selection according to actual needs.
  • the device can use the rendering engine to render the resources.
  • the preset conditions here can be the triggering conditions for rendering. It is divided into four steps: decompression, parsing, construction and drawing.
  • the test device in order to test the extreme performance of the rendering engine, in the process of testing the rendering engine, in addition to using the rendering engine to render each test resource, the test device can also perform a stress test on the rendering engine , so as to determine the maximum number of resources that can be rendered at the same time under the premise of taking into account the rendering effect.
  • the test equipment can obtain static models and skeletal animation models in a standard format, use the estimated illuminance value and color value of the illumination corresponding to the current test environment as the ambient illuminance and ambient light color, and use the rendering engine to render the test resources
  • the rendering performance parameters of the test engine such as rendering resolution and running frame rate, can be obtained through common frame capture tools such as Arm or Qualcomm, etc.
  • the rendering performance parameters can be used to reflect the loading of static models and dynamic models , animation update and rendering result.
  • test methods include:
  • Step S210 Obtain the rendering performance parameters of the rendering engine.
  • the rendering performance parameters include at least one of time-consuming to acquire test resources, time-consuming to render, memory usage of the rendering process, network resources consumed by acquiring test resources, and the maximum number of rendering resources.
  • the test resource can be preset in the test device, so that the test device obtains the test resource, and there is no need to take the time spent in obtaining the test resource and the network resources consumed in obtaining the test resource as rendering performance parameters.
  • the test device needs to download test resources through the network. The downloading process is also the process of obtaining test resources, and the time spent on obtaining test resources and the network resources consumed by obtaining test resources can be obtained. These two can be used as rendering performance parameters. .
  • the above rendering performance parameters are generated by the test device during the rendering process.
  • the test device in addition to the rendering engine, can also run a test tool, which can be used to determine when the rendering engine performs rendering.
  • the above-mentioned testing tool may be the aforementioned frame-cutting tool.
  • the test device downloads test resources through the network, and the rendering performance parameters include the time-consuming to obtain test resources, the time-consuming to render, the memory usage of the rendering process, the network resources consumed by obtaining test resources, and the maximum number of rendering resources.
  • the network resources consumed by obtaining test resources can be the traffic consumed during downloading, the time spent obtaining test resources can be the download time, and the rendering time can be divided into decompression time-consuming, parsing time-consuming, construction time-consuming and drawing time-consuming according to the rendering process
  • the maximum number of rendering resources is the number of test resources that the rendering engine can process in parallel.
  • the maximum number of rendering resources is obtained in the process of testing the extreme performance of the rendering engine, and the maximum number of rendering resources refers to the fact that the rendering engine can process in parallel while taking into account the basic rendering effect The maximum number of test resources.
  • the test device may use a rendering engine to render a certain test resource, and the rendering engine may render multiple resources at the same time, and the multiple resources may be the same resource or different resources.
  • the rendering engine will compress the model after the drawing step, so that the rendering effect of each model will be affected to a certain extent.
  • the number of parallel rendering resources When the number increases, the rendering effect of each resource will gradually decrease, and the number of resources processed in parallel by the rendering engine will be gradually increased until the situation of freezing occurs; the number of resources that can be processed in parallel in the critical situation that does not cause freezing in this disclosure can be It is considered to be the maximum number of rendering resources.
  • the disclosed processing device obtains the rendering performance parameters of the rendering engine to obtain several sets of rendering performance parameters.
  • Each set of rendering performance parameters is obtained by using a test device to run a rendering engine to render a test resource.
  • Each set of rendering performance parameters may include the above Obtaining at least one of the time consumption of test resources, the time consumption of rendering, the memory usage of the rendering process, the acquisition of network resources consumed by the test resources, and the maximum number of rendering resources.
  • each rendering engine is run sequentially on each test equipment, and multiple sets of rendering performance parameters obtained by using each rendering engine to sequentially render all test resources ;
  • the number of multiple sets of rendering performance parameters is the product of the number of test devices, the number of rendering engines and the number of test resources.
  • the content included in the multiple sets of rendering performance parameters may be corresponding, so that the rendering performance parameters can be compared, for example, all include rendering time consumption and memory usage of the rendering process.
  • step S210 reference may also be made to the relevant description of the foregoing step S110, and the foregoing step S120 may be implemented through steps S220 to S240.
  • Step S220 Select at least one set of rendering performance parameters as target performance parameters.
  • the device may select a target performance parameter from multiple sets of rendering performance parameters according to a certain policy.
  • the rendering performance parameter related to the user's selection is used as the target performance parameter.
  • rendering engines include A and B, and the user selects rendering engine B, then all rendering performance parameters related to rendering engine B are taken as a set of target performance parameters.
  • each test resource can be used as a test resource category, or each level of test resources can be used as a test resource category.
  • several sets of rendering performance parameters can be obtained as a set of target performance parameters.
  • multiple selections can also be performed to obtain multiple sets of target performance parameters.
  • Step S230 Perform comparative analysis on each group of target performance parameters, and obtain performance analysis results of the rendering engine corresponding to the target performance parameters.
  • the comparative analysis in step S230 may be the comparative analysis within the same group of target performance parameters, or the comparative analysis between different groups of target performance parameters.
  • this group of target performance parameters includes a total of 6 groups obtained by using rendering engine B to render test resources a, b, and c on test equipment 1 and test equipment 2 respectively. Rendering performance parameters.
  • the set of target performance parameters includes a total of 6 sets of rendering performance parameters obtained by rendering test resources a, b, and c on test device 1 using rendering engine A and rendering engine B respectively. Then, it is also possible to directly compare the rendering performance parameters of different rendering engines on the same test device for the same test resource, so that the performance of the two test engines can be compared. In addition, all the rendering performance parameters of the rendering engine B can be counted and compared with the rendering engine A, which can also reflect the performance of both.
  • test devices the number of test devices, the number of rendering engines, and the number of test resource categories in the above examples are all simplified examples.
  • the above example summary takes one test resource as one category for analysis.
  • a level of test resources can be described as a category, then a level may include multiple test resources, so that the rendering performance parameters corresponding to all test resources in the same level can be counted first, and then further comparative analysis can be performed .
  • the performance of the rendering engine can be reflected from multiple dimensions, for example, the performance of the same rendering engine on different devices or the rendering performance of different levels of test resources, and it can also reflect the performance of different rendering engines on the same The performance on the device, etc., can fully reflect the performance of the tested rendering engine, so that users can strengthen the rendering engine based on the performance reflected by the test.
  • Step S240 Display each group of target performance parameters.
  • step S240 may be to display a group of target performance parameters, or to display multiple groups of target performance parameters at the same time. Parameters are displayed in the form of graphs, etc.
  • the performance analysis result may also be displayed for the user to view, so that the user can understand the performance of the rendering engine according to the performance analysis result.
  • step S230 and step S240 may be selected for execution, and the present disclosure does not limit the execution order of step S230 and step S240.
  • the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine.
  • the performance evaluation of the engine is more accurate; in addition, the rendering performance parameters can reflect the relevant performance of the rendering engine during the rendering process, and the comparison, analysis and display of the rendering performance parameters can more comprehensively reflect the performance of the rendering engine from multiple dimensions.
  • FIG. 3 shows a third schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure.
  • the rendering performance parameter is used as an example to describe the rendering effect score.
  • the test equipment, test resource category, and rendering engine are used as three variables for testing. related content in the example.
  • the rendering performance parameters are based on the rendering results obtained by running the rendering engine on the test equipment to render the test resources. It is understandable that since the rendering engine is used to integrate in augmented reality applications, the device will display the rendering results in the real-time real-world environment images collected by the device. In order to make the rendering results closer to reality, the rendering engine usually performs During rendering, information such as ambient lighting and ambient light color will be collected in real time for rendering. In order to conduct a comprehensive test on the performance of the rendering engine, it can be analyzed in combination with environmental factors that affect the rendering effect.
  • the three factors of light and shade, indoor point light source and outdoor parallel natural light, and presence or absence of occlusion can be used as environmental factors that affect the rendering effect.
  • the presence or absence of occlusion can be determined by the number of moving objects in the environment And embodied. Combining these three factors, eight different test environments can be constructed.
  • the rendering engine does not use real-time acquisition of external environment information for rendering, but predetermines each test environment.
  • the ambient lighting conditions of the environment are used when the test device runs the rendering engine for rendering.
  • the ambient lighting conditions may include ambient light intensity and ambient light color, etc.
  • the model can be fixed in different positions in some scenes.
  • the model can be viewed through the application of augmented reality.
  • the user can perform different operations on the test equipment to view the model in different ways.
  • the rendering result can also be adjusted accordingly in response to the user's operations on the device when viewing the model, which can reflect the update of the animation of the rendering engine.
  • it can also be analyzed in combination with the operation of the device by the user.
  • the way of observing the rendering result may be at least one of standing still, performing a preset movement, and being at a corner, and performing a preset movement may be rotation, normal speed Move, quick start stop, etc.
  • the observation method can be realized by the tester operating the test equipment. If the user rotates to observe, then the rendering engine can rotate according to the user to display the rendering results of different angles of the model. If the observation is at a corner, the model can be seen after the corner The rendering engine displays the rendering results. Quick start and stop can be manifested as a change from a position where the model cannot be observed to a position where the model can be observed. For example, if the device is placed from horizontal to vertical, then the rendering engine can display the rendering results according to the corresponding positional relationship .
  • test environment and observation methods can be used to construct different test conditions.
  • each rendering engine use each test device to run the rendering engine to render each test resource, and evaluate the rendering effect under each test condition , so as to obtain the rendering effect score corresponding to the rendering engine, test equipment and test resources as a rendering performance parameter, reflecting the performance of the rendering engine.
  • the method includes:
  • Step S310 Evaluate the rendering effect of the test device using the rendering engine to render the test resource according to the preset evaluation strategy, and obtain a rendering effect score.
  • step S310 it may include obtaining test scores corresponding to at least one test condition, using the test scores corresponding to at least one test condition as rendering effect scores, or analyzing and processing the test scores corresponding to at least one test condition to obtain the rendering Performance rating.
  • at least one of the following corresponding to different test conditions is different: at least one of the test environment and the tester's operation on the test equipment.
  • a test score is performed on the rendering results obtained by using one rendering engine, one test device, one test resource and one test condition. If there is only one test condition, then the test score under the test condition can be As the rendering effect scores corresponding to the current rendering engine, test equipment and test resources, if there are multiple test conditions, the test scores corresponding to the multiple test conditions can be analyzed and processed, such as averaging, etc., to obtain the current rendering engine, Rendering effect scores corresponding to test equipment and test resources.
  • Step S320 Obtain the user effect score input by the user, and obtain the rendering effect score based on the user effect score.
  • the user effect score is obtained by the evaluators based on the preset evaluation strategy to evaluate the rendering effect of the test resource rendered by the test device running the rendering engine.
  • the evaluators can go to the points where the test resources are placed in different test environments, and perform different operations on the test equipment.
  • the test equipment runs the rendering engine to render the test resources and display the rendering results. Rendering effects under a test condition are scored to obtain a user effect score under the test condition.
  • the number of scores for each evaluator may be the product of the number of rendering engines, the number of test devices, the number of test resources, and the number of test conditions. Count the scores of the same evaluator, rendering engine, test equipment, and test resource under different test conditions, and obtain the user effect score corresponding to the evaluator, rendering engine, test equipment, and test resource.
  • obtaining the rendering effect score based on the user effect score may be obtained by fusing multiple user effect scores evaluated by multiple evaluators to obtain the rendering effect score. That is, the same rendering engine, test equipment, test resources, and user effect scores of different evaluators are fused to obtain the rendering effect scores corresponding to the rendering engine, test equipment, and test resources.
  • the processing device may select one of step S310 and step S320 to execute to obtain a rendering effect score, that is to say, the evaluation of the rendering effect may be performed by the processing device or by an evaluator.
  • Fig. 4 shows a schematic diagram of a preset evaluation strategy in a rendering engine testing method provided by an embodiment of the present disclosure.
  • a preset evaluation strategy for scoring static models is shown in Figure 4, in which several rendering criteria are given, such as pointing, jitter, offset, and lighting of test resources. Since the dynamic model can interact with the user, the rendering standard of the dynamic model can exclude dithering and offset. Then, for each test condition, the rendering performed under the test condition is evaluated from at least one rendering standard to obtain a test score. In some embodiments, a score is obtained based on each rendering standard, and the test score may be the average score of all rendering standards.
  • Fig. 5 shows a schematic diagram of recording test item scores provided by an embodiment of the present disclosure.
  • Figure 5 includes different test conditions, including normal light, shopping malls or outdoors, no pedestrians or few pedestrians, dark light, outdoors or shopping malls, no pedestrians or few pedestrians; each condition has different test items, Including: Observing AR objects when the mobile phone is stationary, observing AR objects while moving the mobile phone left and right, observing AR objects while walking at a normal speed, observing AR objects after quickly starting and stopping, and observing AR objects after turning; to show the number of test items for readability.
  • the user can record the scores of each test item under different test conditions in the table in Figure 5, so as to obtain the user effect score under this test condition.
  • Step S330 Use the rendering effect score as a rendering performance parameter.
  • step S340 can be performed to obtain the rendering performance parameter of the rendering engine; and step S350 is used to preset the rendering performance parameter, and the related processing involved in step S340 and step S350 can refer to the aforementioned implementation
  • the relevant content of the rendering performance parameter processing in the example is used as the rendering performance parameter.
  • the present disclosure compares and analyzes the rendering effect scores of the rendering engines from different dimensions, which can fully reflect the rendering effects of the rendering engines, thereby reflecting the performance of the rendering engines.
  • the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine.
  • the performance evaluation of the engine is more accurate, and the rendering performance parameters can reflect the relevant performance of the rendering results of the rendering engine, and the comparison, analysis and display of the rendering performance parameters can more comprehensively reflect the performance of the rendering engine from multiple dimensions.
  • FIG. 6 shows a fourth schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure. The method includes:
  • Step S510 Obtain at least one test resource.
  • At least one test resource includes a first number of static models and a second number of dynamic models.
  • Step S520 Run at least one rendering engine to render each test resource.
  • test device will run all test engines, and each test engine will render all test resources.
  • test engines will render all test resources.
  • Step S530 Send the test resources to at least one test device, and each test device runs at least one rendering engine to render the test resources.
  • the processing device can select one of step S520 and step S530 to execute, and if step S520 is selected, it means that the processing device is also used as a testing device.
  • the method Before executing step S520 or step S530, the method also includes packaging the test resources into a format supported by the rendering engine, and if there are multiple rendering engines, then packaging the test resources into a format supported by each rendering engine for the corresponding rendering engine to perform Rendering works.
  • Step S540 Obtain the rendering performance parameters of the rendering engine.
  • Step S540 is to obtain the rendering performance parameters of the rendering engine from the test device.
  • the test devices corresponding to step S520 and step S530 are different devices.
  • Step S550 Perform preset processing based on rendering performance parameters.
  • Fig. 7 shows a schematic framework diagram of a rendering engine testing device provided by an embodiment of the present disclosure.
  • the testing device 60 of the rendering engine includes an acquisition module 61 and a processing module 62, wherein the acquisition module 61 is configured to acquire the rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using the test equipment to run the rendering engine.
  • the test resource is rendered.
  • the processing module 62 is configured to perform preset processing based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
  • the rendering performance parameters include at least one of time-consuming acquisition of test resources, time-consuming rendering, memory usage of the rendering process, network resources consumed by acquiring test resources, and the maximum number of rendering resources.
  • the maximum number of rendering resources is The rendering engine is able to process the number of test resources in parallel.
  • the preset processing includes at least one of displaying the rendering performance parameters and performing performance analysis on the rendering performance parameters.
  • the acquisition module 61 is configured to acquire several sets of rendering performance parameters, each set of rendering performance parameters is obtained by using a test device to run a rendering engine to render a test resource, different sets of rendering performance parameters corresponding to the test At least one of the device, the rendering engine, and the test resource is different;
  • the processing module 62 is configured to select at least one set of rendering performance parameters as the target performance parameter, and perform at least one of the following: display each set of target performance parameters; The parameters are compared and analyzed to obtain the performance analysis results of the rendering engine corresponding to the target performance parameters; wherein at least one of the test equipment, rendering engine and test resource category corresponding to at least one set of target performance parameters is the same.
  • each test resource serves as a test resource category, or each level of test resources serves as a test resource category.
  • the processing module 62 is configured to use the rendering performance parameter related to the user's selection as the target performance parameter in response to the user's selection operation on at least one of the test device, rendering engine and test resource category.
  • the testing device 60 of the rendering engine may further include an evaluation module and a determination module, the evaluation module is configured to evaluate the rendering effect of the test device using the rendering engine to render test resources according to a preset evaluation strategy, and obtain a rendering effect score; Or, obtain the user effect score input by the user, and obtain the rendering effect score based on the user effect score input by the user, wherein the user effect score is the evaluation of the rendering effect of the test resource rendered by the test device running the rendering engine by the evaluator according to the preset evaluation strategy Obtained; determines that the module is configured to use the rendering performance score as a rendering performance parameter.
  • the evaluation module is configured to obtain test scores respectively corresponding to at least one test condition, wherein at least one of the following corresponding to different test conditions is different: at least one of the test environment and the tester's operation of the test equipment;
  • the test scores corresponding to the at least one test condition are used as the rendering effect scores, or the test scores corresponding to the at least one test condition are analyzed and processed to obtain the rendering effect scores.
  • the evaluation module is configured to fuse multiple user effect scores evaluated by multiple evaluators to obtain a rendering effect score.
  • the test environment is determined by at least one of light, location and the number of moving objects in the scene, and the operation of the tester on the test equipment includes making the test equipment stationary, performing preset movements, and at least one of the objects located in the corner.
  • the evaluation module is configured to, for each test condition, evaluate the rendering performed under the test condition from at least one rendering standard to obtain a test score, at least one rendering standard includes the pointing, jitter, offset and at least one of illumination.
  • the rendering engine testing device 60 may further include a rendering module configured to acquire at least one test resource before acquiring the rendering performance parameters of the rendering engine; respectively run at least one rendering engine to render each test resource; Alternatively, the test resources are respectively sent to at least one test device, and each test device runs at least one rendering engine to render the test resources.
  • At least one test resource includes a first number of static models and a second number of dynamic models; at least one test resource is divided into several levels of test resources, and different levels of test resources require different rendering capabilities; respectively At least one rendering engine is run to render each test resource, or the rendering module is configured to package the test resources into a format supported by the rendering engine before sending the test resources to at least one test device respectively.
  • the rendering engine is tested before the rendering engine is integrated into the application program; the rendering engine is used to be integrated into the augmented reality application program.
  • Fig. 8 shows a schematic framework diagram of a rendering engine testing system provided by an embodiment of the present disclosure.
  • the rendering engine testing system 70 includes a processing device 71 and a testing device 72, and the processing device 71 and the testing device 72 can communicate with each other.
  • the processing device 71 is configured to execute the relevant steps of any one of the above method embodiments
  • the testing device 72 is configured to run the rendering engine to render the test resources to obtain the rendering performance parameters.
  • Fig. 9 shows a schematic diagram of a frame of a processing device provided by an embodiment of the present disclosure.
  • the processing device 80 includes a memory 81 and a processor 82 , wherein the memory 81 is coupled to the processor 82 .
  • various components of the processing device 80 may be coupled together through a bus, or the processor 82 of the processing device 80 may be connected to other components one by one.
  • the processing device 80 may be any device with processing capabilities, such as a computer, a tablet computer, a mobile phone, and the like.
  • the memory 81 is used to store program data executed by the processor 82 and data during processing by the processor 82 . For example, testing resources, rendering engines, etc.
  • the memory 81 includes a volatile storage part or a non-volatile storage part for storing the above-mentioned program data.
  • the processor 82 controls the operation of the processing device 80, and the processor 82 may also be called a CPU (Central Processing Unit, central processing unit).
  • the processor 82 may be an integrated circuit chip with signal processing capability.
  • the processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other possible Program logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like.
  • the processor 82 may be jointly implemented by multiple circuit chips.
  • the processor 82 is used to execute instructions by calling the program data stored in the memory 81 to implement any of the above-mentioned testing methods of the rendering engine.
  • Fig. 10 shows a schematic diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
  • the computer-readable storage medium 90 stores program data 91 executable by the processor, and the program data can be executed to implement any of the above-mentioned testing methods for the rendering engine.
  • the computer readable storage medium 90 can be a volatile storage medium or a nonvolatile storage medium, and can be a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), disk or optical disc, etc. can store the program data, or it can also be a server that stores the program data, and the server can send the stored program data to other devices for operation, or it can also run the storage program data.
  • the computer-readable storage medium 90 may also be the memory 81 as shown in FIG. 9 .
  • Some embodiments of the present disclosure relate to the field of augmented reality.
  • the target object may involve faces, limbs, gestures, actions, etc. related to the human body, or markers and markers related to objects, or sand tables, display areas or display items related to venues or places.
  • Vision-related algorithms can involve visual localization, real-time localization and map construction or concurrent localization and localization (Simultaneous Localization And Mapping, SLAM), 3D reconstruction, image registration, background segmentation, object key point extraction and tracking, object pose or depth detection etc.
  • Applications can not only involve interactive scenes such as tours, navigation, explanations, reconstructions, virtual effect overlays and display related to real scenes or objects, but can also involve special effects processing related to people, such as makeup beautification, body beautification, special effect display, virtual model Display and other interactive scenes.
  • the relevant features, states and attributes of the target object can be detected or identified through the convolutional neural network.
  • the above-mentioned convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
  • the functions or modules included in the apparatus provided by the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments, and the implementation can refer to the descriptions of the above method embodiments.
  • the computer program product can be realized by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
  • a software development kit Software Development Kit, SDK

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Testing Of Engines (AREA)

Abstract

The present application provides a rendering engine testing method and apparatus, a device, a system, a storage medium, a computer program and a computer program product. The method comprises: obtaining a rendering performance parameter of a rendering engine, wherein the rendering performance parameter is obtained by using a testing device to operate the rendering engine to render a testing resource; and performing preset processing on the basis of the rendering performance parameter, wherein the preset processing is used for reflecting the performance of the rendering engine. According to the solution, the rendering engine is rendered to obtain the rendering performance parameter for processing, such that the rendering engine is tested, subjective feeling does not need to be carried out in the use process of the rendering engine, the performance of the rendering engine can be objectively reflected, and the performance evaluation of the rendering engine is more accurate.

Description

渲染引擎的测试方法及装置、设备、系统、存储介质、计算机程序、计算机程序产品Rendering engine testing method and device, device, system, storage medium, computer program, computer program product
相关申请的交叉引用Cross References to Related Applications
本公开基于申请号为202210103074.2、申请日为2022年01月27日、申请名称为“一种渲染引擎的测试方法、装置、设备、系统和介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is based on the Chinese patent application with the application number 202210103074.2, the application date is January 27, 2022, and the application name is "a rendering engine testing method, device, equipment, system and medium", and requires the Chinese patent application The entire content of this Chinese patent application is hereby incorporated into this disclosure as a reference.
技术领域technical field
本公开涉及计算机技术领域,特别是涉及一种渲染引擎的测试方法及装置、设备、系统、存储介质、计算机程序、计算机程序产品。The present disclosure relates to the field of computer technology, in particular to a rendering engine testing method, device, system, storage medium, computer program, and computer program product.
背景技术Background technique
增强现实(Augmented Reality,AR)技术是一种将虚拟信息与真实世界融合的技术,将计算机生成的文字、图像、空间特征点模型、音乐、视频等虚拟信息模拟仿真,在用户设备上一并显示虚拟信息和真实世界实时图像,两种信息互为补充,从而实现对真实世界的“增强”。Augmented reality (Augmented Reality, AR) technology is a technology that integrates virtual information with the real world. It simulates virtual information such as text, images, spatial feature point models, music, and videos generated by computers and simulates them on user equipment. Displaying virtual information and real-time images of the real world, the two kinds of information complement each other to achieve "augmentation" of the real world.
在增强现实等视觉显示的应用中是显示利用渲染引擎实现的图像等视觉信息,通常来说,渲染引擎都是集成在视觉显示应用程序后通过测试人员使用视觉显示应用程序,观察显示的虚拟物,以主观感受评判渲染引擎的性能。In the application of visual display such as augmented reality, visual information such as images realized by rendering engine is displayed. Generally speaking, the rendering engine is integrated in the visual display application program, and the tester uses the visual display application program to observe the displayed virtual objects. , to judge the performance of the rendering engine based on subjective feelings.
发明内容Contents of the invention
本公开至少提供一种渲染引擎的测试方法及装置、设备、系统、存储介质、计算机程序、计算机程序产品。The present disclosure at least provides a rendering engine testing method, device, device, system, storage medium, computer program, and computer program product.
本公开实施例提供一种渲染引擎的测试方法,该方法包括:获取渲染引擎的渲染性能参数,其中,渲染性能参数是利用测试设备运行渲染引擎对测试资源进行渲染得到的;基于渲染性能参数进行预设处理,其中,预设处理用于反映渲染引擎的性能。An embodiment of the present disclosure provides a method for testing a rendering engine. The method includes: acquiring rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources; Preset processing, wherein the preset processing is used to reflect the performance of the rendering engine.
本公开实施例提供一种渲染引擎的测试装置,包括获取模块和处理模块,获取模块配置为获取渲染引擎的渲染性能参数,其中,渲染性能参数是利用测试设备运行渲染引擎对测试资源进行渲染得到的;处理模块配置为基于渲染性能参数进行预设处理,其中,预设处理用于反映渲染引擎的性能。An embodiment of the present disclosure provides a testing device for a rendering engine, including an acquisition module and a processing module. The acquisition module is configured to acquire the rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources. The processing module is configured to perform preset processing based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
本公开实施例提供一种处理设备,该设备包括处理器和存储器,存储器用于存储程序数据,处理器用于执行程序数据以实现上述任一方法。An embodiment of the present disclosure provides a processing device, which includes a processor and a memory, where the memory is used to store program data, and the processor is used to execute the program data to implement any of the above methods.
本公开实施例提供一种渲染引擎的测试系统,测试系统包括处理设备和测试设备,其中,测试设备用于运行渲染引擎对测试资源进行渲染得到渲染性能参数,处理设备用于执行上述任一方法。An embodiment of the present disclosure provides a rendering engine testing system. The testing system includes a processing device and a testing device, wherein the testing device is used to run the rendering engine to render test resources to obtain rendering performance parameters, and the processing device is used to execute any of the above methods. .
本公开实施例提供一种计算机可读存储介质,计算机可读存储介质用于存储程序数据,程序数据能够被执行,用以实现上述任一方法。An embodiment of the present disclosure provides a computer-readable storage medium. The computer-readable storage medium is used to store program data, and the program data can be executed to implement any of the above methods.
本公开实施例提供一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码被计算机读取并执行的情况下,实现本公开任一实施例中的方法的部分或全部步骤。An embodiment of the present disclosure provides a computer program, the computer program includes computer readable code, and when the computer readable code is read and executed by a computer, a part or part of the method in any embodiment of the present disclosure is realized. All steps.
本公开实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序被计算机读取并执行时,实现本公开任一实施例中的方法的部分或全部步骤。An embodiment of the present disclosure provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, any embodiment of the present disclosure is realized Some or all of the steps in the method.
在上述方案中,通过对渲染引擎进行渲染得到渲染性能参数并进行处理,实现对渲染引擎的测试,无需在渲染引擎的使用过程中进行主观感受,能够客观地反映渲染引擎的性能,使得对渲染引擎的性能评估更为准确。In the above solution, the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并于说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to describe the technical solution of the present disclosure.
图1为本公开实施例提供的一种渲染引擎的测试方法的流程示意图一;FIG. 1 is a first schematic flow diagram of a rendering engine testing method provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种渲染引擎的测试方法的流程示意图二;FIG. 2 is a second schematic flow diagram of a rendering engine testing method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的一种渲染引擎的测试方法的流程示意图三;FIG. 3 is a third schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种渲染引擎的测试方法中预设评价策略的示意图;FIG. 4 is a schematic diagram of a preset evaluation strategy in a rendering engine testing method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的一种记录测试项打分的示意图;FIG. 5 is a schematic diagram of recording test item scoring provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种渲染引擎的测试方法的流程示意图四;FIG. 6 is a fourth schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种渲染引擎的测试装置的框架示意图;FIG. 7 is a schematic framework diagram of a rendering engine testing device provided by an embodiment of the present disclosure;
图8为本公开实施例提供的一种渲染引擎的测试系统的框架示意图;FIG. 8 is a schematic framework diagram of a rendering engine testing system provided by an embodiment of the present disclosure;
图9为本公开实施例提供的一种处理设备的框架示意图;FIG. 9 is a schematic framework diagram of a processing device provided by an embodiment of the present disclosure;
图10为本公开实施例提供的一种计算机可读存储介质的框架示意图。Fig. 10 is a schematic framework diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本公开进一步详细说明。In order to make the purpose, technical solutions and effects of the present disclosure more clear and definite, the present disclosure will be further described in detail below with reference to the accompanying drawings and examples.
可以理解的是,本公开方法可以包含任一个下述方法实施例以及任意不冲突的下述方法实施例的组合所提供的方法。It can be understood that the disclosed method may include the methods provided by any one of the following method embodiments and any non-conflicting combination of the following method embodiments.
可以理解的是,本公开中的渲染引擎的测试方法可以由一处理设备执行,上述处理设备可以为任意具有处理能力的电子设备,例如,手机、平板电脑、计算机等。在对渲染引擎进行测试的过程中,可以由测试设备运行渲染引擎对测试资源进行渲染,测试设备也可以为任意能够运行渲染引擎的设备,而后由处理设备执行本公开渲染引擎的测试方法的相关步骤。测试设备可以与处理设备为同一设备,也可以不同。It can be understood that the rendering engine testing method in the present disclosure may be executed by a processing device, and the processing device may be any electronic device with processing capabilities, such as a mobile phone, a tablet computer, a computer, and the like. In the process of testing the rendering engine, the test device can run the rendering engine to render the test resources, and the test device can also be any device capable of running the rendering engine, and then the processing device executes the rendering engine test method of the present disclosure. step. The testing equipment can be the same equipment as the processing equipment, or it can be different.
图1示出了本公开实施例提供的一种渲染引擎的测试方法的流程示意图一,该方法包括:Fig. 1 shows a schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure. The method includes:
步骤S110:获取渲染引擎的渲染性能参数。Step S110: Obtain the rendering performance parameters of the rendering engine.
需要说明的是,本公开中的渲染引擎可以集成在应用程序中进行应用,现有的渲染引擎的测试通常通过将其集成在应用程序之中,通过测试人员对渲染结果的主观评测进行的。本公开实施例的测试设备可以单独运行渲染引擎对资源进行渲染,从而实现单独对渲染引擎进行测试,也可以对集成有渲染引擎的应用程序进行测试。其中,渲染性能参数是利用测试设备运行渲染引擎对测试资源进行渲染得到的,渲染性能参数可以用于评估渲染引擎的性能。该测试设备可以与本测试方法的执行设备为同一设备,或者与本测试方法的执行设备为不同设备。测试设备运行渲染引擎对测试资源进行渲染完成之后,会显示渲染结果供用户查看,此处的用户可以但不限于是测试人员,渲染性能参数可以是通过以下至少之一来反映渲染引擎的性能:渲染结果、渲染过程。例如,渲染性能参数可以包括获取测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取测试资源消耗的网络资源、最大渲染资源数中的至少一者,可以用于反映渲染过程,渲染性能参数也可以为渲染效果评分,可以用于反映渲染效果。It should be noted that the rendering engine in the present disclosure can be integrated into an application program, and the existing rendering engine is usually tested by integrating it into an application program and subjectively evaluating the rendering result by a tester. The test device in the embodiments of the present disclosure can run the rendering engine alone to render resources, so as to test the rendering engine alone, and can also test the application integrated with the rendering engine. Wherein, the rendering performance parameter is obtained by using the test device to run the rendering engine to render the test resource, and the rendering performance parameter can be used to evaluate the performance of the rendering engine. The test equipment may be the same equipment as the execution equipment of the test method, or different equipment from the execution equipment of the test method. After the test device runs the rendering engine to render the test resources, the rendering result will be displayed for the user to view. The user here can be but not limited to a tester. The rendering performance parameters can reflect the performance of the rendering engine through at least one of the following: Rendering result, rendering process. For example, the rendering performance parameters may include at least one of the time-consuming to obtain test resources, the time-consuming to render, the memory usage of the rendering process, the network resources consumed by obtaining test resources, and the maximum number of rendering resources, which may be used to reflect the rendering process. The performance parameter can also score the rendering effect, which can be used to reflect the rendering effect.
在本公开实施例中,渲染性能参数的产生可以有多种方式,相应地获取渲染性能参数的方式也可以有多种。举例来说,渲染性能参数可以是测试设备运行测试工具,基于渲染引擎对测试资源进行渲染的过程而得到的,或者也可以是在测试设备利用渲染引擎对测试资源进行渲染完成之后,测试设备或处理设备获取用户输入的内容而得到的。In the embodiments of the present disclosure, there may be multiple ways to generate the rendering performance parameters, and there may be multiple ways to obtain the rendering performance parameters accordingly. For example, the rendering performance parameter may be obtained by the test device running the test tool, based on the process of rendering the test resource by the rendering engine, or it may be obtained after the test device renders the test resource by the rendering engine, the test device or The processing device obtains the content input by the user.
步骤S120:基于渲染性能参数进行预设处理。Step S120: Perform preset processing based on rendering performance parameters.
其中,渲染性能参数能够用于反映渲染引擎的性能,对渲染性能参数进行预设处理可以反映渲染引擎的性能。其中,预设处理可以为显示渲染性能参数和对渲染性能参数进行性能分析中的至少一者。Wherein, the rendering performance parameter can be used to reflect the performance of the rendering engine, and the preset processing of the rendering performance parameter can reflect the performance of the rendering engine. Wherein, the preset processing may be at least one of displaying the rendering performance parameters and performing performance analysis on the rendering performance parameters.
在上述方案中,通过对渲染引擎进行渲染得到渲染性能参数并进行处理,实现对渲染引擎的测试,无需在渲染引擎的使用过程中进行主观感受,能够客观地反映渲染引擎 的性能,使得对渲染引擎的性能评估更为准确。In the above solution, the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate.
另外,本公开将渲染引擎与应用程序的其他模块进行解耦,相比于利用集成后的应用程序测试应用程序中的渲染引擎的性能,仅对渲染引擎进行测试,能够减少应用程序的其他模块对渲染的影响,进而能够准确地确定渲染引擎自身的性能,以及有助于对测试得到的问题的定位分析;另外,通过在渲染引擎集成在应用程序之前执行渲染引擎的测试方法,减少将性能低的渲染引擎集成到应用程序中的概率,进而减少渲染引擎性能差对应用程序的影响。In addition, this disclosure decouples the rendering engine from other modules of the application. Compared with using the integrated application to test the performance of the rendering engine in the application, only testing the rendering engine can reduce the number of other modules of the application. The impact on rendering can accurately determine the performance of the rendering engine itself, and help to locate and analyze the problems obtained in the test; in addition, by executing the test method of the rendering engine before the rendering engine is integrated in the application, the performance of the rendering engine can be reduced. Low probability of the rendering engine being integrated into the application, thereby reducing the impact of poor performance of the rendering engine on the application.
图2示出了本公开实施例提供的一种渲染引擎的测试方法的流程示意图二。FIG. 2 shows a second schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure.
在一些实施例中,本实施例中以渲染引擎可以用于集成在增强显示的应用程序中为例进行说明,资源指的是渲染引擎进行渲染的对象,可以是一些用于放置在现实中的虚拟物,可以分为动态模型和静态模型;其中,动态模型指的是可以与用户进行互动的模型,与用户进行互动指的是,设备可以响应于用户对动态模型的操作,显示动态模型相应的动态动作;静态模型指的是不能够与用户进行互动的模型,不论动态模型或者静态模型都可以随着环境而变动,例如,一朵花不可以与用户进行互动,但是它可以随着风而轻摇。另外,不同资源所需的渲染能力不同,同一渲染引擎对不同资源进行渲染的得到的渲染性能参数也可能是不同的,为了对渲染引擎进行全面的测试,可以依据所需渲染能力的不同预设多个不同难度级别,每个难度级别可以包括多个测试资源。可以理解的是,本公开可以对动态模型和静态模型分别设置不同的难度级别,同一级别中仅包括该难度级别的动态模型或者仅包括该难度级别的静态模型,或者也可以将所有模型一并进行难度级别的设置,从而同一级别中可能同时包括动态模型和静态模型。举例来说,对动态模型和静态模型分别设置三个难度级别,对模型来说其难度级别可以体现为面片数和渲染批数,不同难度级别对应不同面片数和不同批渲染的动态模型和静态模型,可以得到六个级别的测试资源。In some embodiments, in this embodiment, the rendering engine can be used to be integrated in an enhanced display application as an example for illustration. The resource refers to the object rendered by the rendering engine, which may be some Virtual objects can be divided into dynamic models and static models; among them, the dynamic model refers to the model that can interact with the user, and the interaction with the user means that the device can respond to the user's operation on the dynamic model and display the corresponding information of the dynamic model. dynamic actions; static models refer to models that cannot interact with users, both dynamic models and static models can change with the environment, for example, a flower cannot interact with users, but it can change with the wind And jiggle. In addition, different resources require different rendering capabilities, and the rendering performance parameters obtained by rendering different resources with the same rendering engine may also be different. In order to conduct a comprehensive test on the rendering engine, you can preset different rendering capabilities according to the required Multiple different difficulty levels, each difficulty level can include multiple test resources. It can be understood that in the present disclosure, different difficulty levels can be set for the dynamic model and the static model, and only the dynamic model of the difficulty level or the static model of the difficulty level can be included in the same level, or all models can be combined Set the difficulty level so that both dynamic and static models may be included in the same level. For example, three difficulty levels are set for the dynamic model and the static model respectively. For the model, the difficulty level can be reflected in the number of patches and the number of rendering batches. Different difficulty levels correspond to dynamic models with different numbers of patches and different batches of rendering. and static models, six levels of test resources can be obtained.
渲染引擎的工作受设备影响,由于不同设备的性能有所差异,所以即便是利用同一渲染引擎对同一资源进行渲染,在不同设备上的渲染过程和渲染结果都可能有所差异。为了对渲染引擎进行全面的测试,本公开可以预先选择多个终端设备作为测试设备,每台测试设备分别对所有测试资源依次进行单独渲染,同一时间测试引擎仅对一个测试资源进行渲染。The work of the rendering engine is affected by the device. Because the performance of different devices is different, even if the same rendering engine is used to render the same resource, the rendering process and rendering results on different devices may be different. In order to conduct a comprehensive test on the rendering engine, multiple terminal devices may be pre-selected in the present disclosure as test devices, and each test device renders all test resources separately in sequence, and the test engine only renders one test resource at the same time.
在一应用场景中,终端设备为手机,可以分别依照性能高、中、低以及运行的系统这两个维度划分手机类别,对于每个类别来说,至少选择一台该种类别的设备作为测试设备,也就是说测试设备能够涵盖所有预先划定的手机类别。例如,分别选择运行苹果系统的性能包括高、中、低的共3台手机,以及运行安卓系统的性能包括高、中、低的共3台手机,一共6台终端设备作为测试设备,并且测试设备涵盖了所有预先划定的手机类别,实际进行测试时选择的终端设备可以为任意能够运行渲染引擎的设备,而不仅限于本例中的手机。另外,类别划分以及测试设备的数量也仅为示例,用户可以根据实际需要而进行类别划分和测试设备的选择。通过上述变量的控制,能够测试得到渲染引 擎在性能不同的手机上所能得到的渲染性能参数,以及能够测试得到渲染引擎在运行不同系统的手机上的渲染性能参数,从而可以对渲染引擎的性能做出更全面的评判。In an application scenario, the terminal device is a mobile phone, and the mobile phone category can be divided according to the two dimensions of high performance, medium performance, and low performance, and the operating system. For each category, at least one device of this category is selected as a test equipment, which means that the test equipment can cover all pre-defined mobile phone categories. For example, a total of 3 mobile phones with high, medium and low performance running on the Apple system are selected, and a total of 3 mobile phones with high, medium and low performance running on the Android system are respectively selected, and a total of 6 terminal devices are used as test equipment, and the test The devices cover all pre-designated mobile phone categories, and the terminal device selected during the actual test can be any device capable of running the rendering engine, not limited to the mobile phone in this example. In addition, the category division and the number of test equipment are only examples, and the user may perform category division and test equipment selection according to actual needs. Through the control of the above variables, it is possible to test the rendering performance parameters that the rendering engine can obtain on mobile phones with different performances, and to obtain the rendering performance parameters of the rendering engine on mobile phones running different systems, so that the performance of the rendering engine can be evaluated. Make a more comprehensive judgment.
通常来说,设备在获取得到资源之后,在满足预设条件之后即可以利用渲染引擎对资源进行渲染,此处预设条件可以为渲染的触发条件,利用渲染引擎对资源进行渲染的过程可以大致划分为解压、解析、构建和绘制这四个步骤。在一些实施例中,为了对渲染引擎的极限性能进行测试,在对渲染引擎进行测试的过程中,测试设备除了会利用渲染引擎对每个测试资源进行渲染以外,还可以对渲染引擎进行压力测试,从而确定在兼顾渲染效果的前提下,能够同时进行渲染的资源数量的最大值。Generally speaking, after the device obtains the resources and meets the preset conditions, it can use the rendering engine to render the resources. The preset conditions here can be the triggering conditions for rendering. It is divided into four steps: decompression, parsing, construction and drawing. In some embodiments, in order to test the extreme performance of the rendering engine, in the process of testing the rendering engine, in addition to using the rendering engine to render each test resource, the test device can also perform a stress test on the rendering engine , so as to determine the maximum number of resources that can be rendered at the same time under the premise of taking into account the rendering effect.
另外,为了对不同渲染引擎的性能做出比较,那么还可以选择不同的渲染引擎,在每台测试设备上逐个运行所有的渲染引擎,利用每个渲染引擎对所有测试资源依次进行渲染,得到每个渲染引擎的渲染性能参数。In addition, in order to compare the performance of different rendering engines, you can also choose different rendering engines, run all rendering engines one by one on each test device, use each rendering engine to render all test resources in turn, and get each Rendering performance parameters of a rendering engine.
在一应用场景中,测试设备可以获取标准格式的静态模型和骨骼动画模型,将当前测试环境对应的光照估计的照度值和颜色值作为环境光照度和环境光颜色,利用渲染引擎对测试资源进行渲染,另外可以通过常见的截帧工具例如,Arm或者Qualcomm等,获取测试引擎的渲染性能参数,例如,渲染分辨率和运行帧率等,渲染性能参数可以用于反映静态模型和动态模型的载入、动画更新及渲染结果。In an application scenario, the test equipment can obtain static models and skeletal animation models in a standard format, use the estimated illuminance value and color value of the illumination corresponding to the current test environment as the ambient illuminance and ambient light color, and use the rendering engine to render the test resources In addition, the rendering performance parameters of the test engine, such as rendering resolution and running frame rate, can be obtained through common frame capture tools such as Arm or Qualcomm, etc. The rendering performance parameters can be used to reflect the loading of static models and dynamic models , animation update and rendering result.
如图2所示,测试方法包括:As shown in Figure 2, the test methods include:
步骤S210:获取渲染引擎的渲染性能参数。Step S210: Obtain the rendering performance parameters of the rendering engine.
本公开实施例中以渲染性能参数包括获取测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取测试资源消耗的网络资源、最大渲染资源数中的至少一者为例进行说明。In the embodiments of the present disclosure, the rendering performance parameters include at least one of time-consuming to acquire test resources, time-consuming to render, memory usage of the rendering process, network resources consumed by acquiring test resources, and the maximum number of rendering resources.
在一些实施例中,测试资源可以预置在测试设备中,从而测试设备获取得到了测试资源,也就无需将获取测试资源耗时以及获取测试资源消耗的网络资源作为渲染性能参数。在一些实施例中,测试设备需要通过网络下载测试资源,该下载的过程也就是获取测试资源的过程,得到获取测试资源耗时以及获取测试资源消耗的网络资源,这两者可以作为渲染性能参数。In some embodiments, the test resource can be preset in the test device, so that the test device obtains the test resource, and there is no need to take the time spent in obtaining the test resource and the network resources consumed in obtaining the test resource as rendering performance parameters. In some embodiments, the test device needs to download test resources through the network. The downloading process is also the process of obtaining test resources, and the time spent on obtaining test resources and the network resources consumed by obtaining test resources can be obtained. These two can be used as rendering performance parameters. .
上述渲染性能参数为测试设备在进行渲染的过程中产生的,在一些实施例中,测试设备中除了渲染引擎以外,还可以运行一测试工具,该测试工具可以用于在渲染引擎进行渲染时确定渲染性能参数,上述测试工具可以为前述截帧工具。在一应用场景中,测试设备通过网络下载测试资源,渲染性能参数包括获取测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取测试资源消耗的网络资源、最大渲染资源数,其中,获取测试资源消耗的网络资源可以为下载时所消耗的流量,获取测试资源耗时可以为下载用时,渲染耗时可以依据渲染的流程分为解压耗时、解析耗时、构建耗时和绘制耗时,最大渲染资源数为渲染引擎能够并行处理测试资源的数量。在本公开实施例中,最大渲染资源数为在对渲染引擎的极限性能进行测试的过程中得到的,最大渲染资源数指的是,在兼顾基本的渲染效果的情况下,渲染引擎能够并行处理的测试资源的数量的最大值。 例如,测试设备可以利用渲染引擎对某一测试资源进行渲染,且渲染引擎可以同时渲染多个资源,多个资源可以为相同的资源或不同的资源。由于渲染引擎的渲染能力有限,在并行处理的资源数量增加的情况下,渲染引擎在绘制步骤结束后会对模型进行压缩,从而每个模型的渲染效果会受到一定影响,当并行渲染的资源数量增多时,每个资源的渲染效果会逐步下降,逐步增加渲染引擎并行处理的资源数量,直到开始产生卡顿的情况;本公开能够在不产生卡顿的临界情况下的并行处理的资源数量可以认为是最大渲染资源数,通常来说,将模型压缩到30fps(Frames Per Second,每秒传输帧数)为能够兼顾基础渲染效果的临界情况,若低于30fps,就可能产生明显的卡顿。在测试中,为了对测试引擎进行压力测试,测试设备可以逐步增大并行渲染的该测试资源的数量,在渲染效果不产生卡顿的情况下,得到能够并行处理的测试资源的数量最大值,也就是最大渲染资源数。The above rendering performance parameters are generated by the test device during the rendering process. In some embodiments, in addition to the rendering engine, the test device can also run a test tool, which can be used to determine when the rendering engine performs rendering. For rendering performance parameters, the above-mentioned testing tool may be the aforementioned frame-cutting tool. In an application scenario, the test device downloads test resources through the network, and the rendering performance parameters include the time-consuming to obtain test resources, the time-consuming to render, the memory usage of the rendering process, the network resources consumed by obtaining test resources, and the maximum number of rendering resources. Among them, The network resources consumed by obtaining test resources can be the traffic consumed during downloading, the time spent obtaining test resources can be the download time, and the rendering time can be divided into decompression time-consuming, parsing time-consuming, construction time-consuming and drawing time-consuming according to the rendering process When , the maximum number of rendering resources is the number of test resources that the rendering engine can process in parallel. In the embodiment of the present disclosure, the maximum number of rendering resources is obtained in the process of testing the extreme performance of the rendering engine, and the maximum number of rendering resources refers to the fact that the rendering engine can process in parallel while taking into account the basic rendering effect The maximum number of test resources. For example, the test device may use a rendering engine to render a certain test resource, and the rendering engine may render multiple resources at the same time, and the multiple resources may be the same resource or different resources. Due to the limited rendering capability of the rendering engine, when the number of parallel processing resources increases, the rendering engine will compress the model after the drawing step, so that the rendering effect of each model will be affected to a certain extent. When the number of parallel rendering resources When the number increases, the rendering effect of each resource will gradually decrease, and the number of resources processed in parallel by the rendering engine will be gradually increased until the situation of freezing occurs; the number of resources that can be processed in parallel in the critical situation that does not cause freezing in this disclosure can be It is considered to be the maximum number of rendering resources. Generally speaking, compressing the model to 30fps (Frames Per Second, the number of frames transmitted per second) is a critical condition that can take into account the basic rendering effect. If it is lower than 30fps, obvious freezes may occur. In the test, in order to stress test the test engine, the test equipment can gradually increase the number of test resources that can be rendered in parallel, and obtain the maximum number of test resources that can be processed in parallel when the rendering effect does not cause lag. That is, the maximum number of rendering resources.
本公开处理设备获取渲染引擎的渲染性能参数为获取若干组渲染性能参数,每组渲染性能参数是利用一测试设备运行一渲染引擎对一测试资源进行渲染得到的,每组渲染性能参数可以包括上述获取测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取测试资源消耗的网络资源、最大渲染资源数中的至少一者。The disclosed processing device obtains the rendering performance parameters of the rendering engine to obtain several sets of rendering performance parameters. Each set of rendering performance parameters is obtained by using a test device to run a rendering engine to render a test resource. Each set of rendering performance parameters may include the above Obtaining at least one of the time consumption of test resources, the time consumption of rendering, the memory usage of the rendering process, the acquisition of network resources consumed by the test resources, and the maximum number of rendering resources.
需要说明的是,通过将渲染引擎、测试设备和测试资源作为变量,在每台测试设备上依次运行每个渲染引擎,利用每个渲染引擎对所有测试资源依次进行渲染得到的多组渲染性能参数;其中,多组渲染性能参数的组数量为测试设备的数量、渲染引擎的数量和测试资源的数量之积。多组渲染性能参数包含的内容可以是对应的,从而能够对渲染性能参数进行比较,例如,均包含渲染耗时、渲染过程的内存占用情况。It should be noted that by using the rendering engine, test equipment, and test resources as variables, each rendering engine is run sequentially on each test equipment, and multiple sets of rendering performance parameters obtained by using each rendering engine to sequentially render all test resources ; Wherein, the number of multiple sets of rendering performance parameters is the product of the number of test devices, the number of rendering engines and the number of test resources. The content included in the multiple sets of rendering performance parameters may be corresponding, so that the rendering performance parameters can be compared, for example, all include rendering time consumption and memory usage of the rendering process.
步骤S210还可以参考前述步骤S110的相关描述,前述步骤S120可以通过步骤S220至步骤S240来实现。For step S210, reference may also be made to the relevant description of the foregoing step S110, and the foregoing step S120 may be implemented through steps S220 to S240.
步骤S220:选择至少一组渲染性能参数作为目标性能参数。Step S220: Select at least one set of rendering performance parameters as target performance parameters.
在本公开实施例中,设备可以依照一定的策略从多组渲染性能参数中选择目标性能参数。In the embodiment of the present disclosure, the device may select a target performance parameter from multiple sets of rendering performance parameters according to a certain policy.
在一些实施例中,响应于用户对测试设备、渲染引擎和测试资源类别中的至少一者的选择操作,将与用户的选择相关的渲染性能参数作为目标性能参数。例如,渲染引擎包括A和B,用户的选择为渲染引擎B,那么所有与渲染引擎B相关的渲染性能参数均作为一组目标性能参数。其中,每个测试资源可以作为一个测试资源类别,或者每个级别的测试资源作为一个测试资源类别。In some embodiments, in response to the user's selection operation on at least one of the test device, the rendering engine, and the test resource category, the rendering performance parameter related to the user's selection is used as the target performance parameter. For example, rendering engines include A and B, and the user selects rendering engine B, then all rendering performance parameters related to rendering engine B are taken as a set of target performance parameters. Wherein, each test resource can be used as a test resource category, or each level of test resources can be used as a test resource category.
本公开通过一次选择,能够得到若干组渲染性能参数作为一组目标性能参数,在一些实施例中,也可以进行多次选择,从而得到多组目标性能参数。In the present disclosure, through one selection, several sets of rendering performance parameters can be obtained as a set of target performance parameters. In some embodiments, multiple selections can also be performed to obtain multiple sets of target performance parameters.
步骤S230:对各组目标性能参数进行比对分析,得到目标性能参数对应的渲染引擎的性能分析结果。Step S230: Perform comparative analysis on each group of target performance parameters, and obtain performance analysis results of the rendering engine corresponding to the target performance parameters.
在本公开实施例中,步骤S230中进行比对分析可以为同一组目标性能参数组内进行比对分析,也可以为不同组目标性能参数之间进行比对分析。In the embodiment of the present disclosure, the comparative analysis in step S230 may be the comparative analysis within the same group of target performance parameters, or the comparative analysis between different groups of target performance parameters.
对于一组目标性能参数来说,其测试设备、渲染引擎和测试资源类别中的一者可以是相同的。那么对一组目标性能参数进行比对分析可以从该组中的渲染性能参数存在差异的两个变量出发进行分析,或是直接比对分析,也可以对渲染性能参数进行统计后进行比对分析。仍以上述用户选择为渲染引擎B为例进行说明,该组目标性能参数中包括在测试设备一和测试设备二上分别利用渲染引擎B对测试资源a、b、c进行渲染得到的共6组渲染性能参数。若对同类别的测试资源对应的所有渲染性能参数进行分别统计,那么能够反映渲染引擎B对不同类别的测试资源的渲染性能;若对不同测试设备对应的所有渲染性能参数进行分别统计,那么能够反映渲染引擎B在不同测试设备上的渲染性能。以用户选择测试设备为例进行说明,该组目标性能参数中包括在测试设备一上分别利用渲染引擎A和渲染引擎B对测试资源a、b、c进行渲染得到的共6组渲染性能参数。那么也可以直接比较在同一测试设备上不同的渲染引擎对相同的测试资源的渲染性能参数,从而可以对两测试引擎的性能进行比较。另外也可以对渲染引擎B的所有渲染性能参数进行统计,与渲染引擎A进行比较,也能够反映两者的性能。For a set of target performance parameters, one of its test device, rendering engine and test resource class may be the same. Then, the comparative analysis of a group of target performance parameters can start from the two variables with different rendering performance parameters in the group, or directly compare and analyze, or compare and analyze the rendering performance parameters after statistics . Still taking the above-mentioned user selection as rendering engine B as an example, this group of target performance parameters includes a total of 6 groups obtained by using rendering engine B to render test resources a, b, and c on test equipment 1 and test equipment 2 respectively. Rendering performance parameters. If all the rendering performance parameters corresponding to the same type of test resources are counted separately, it can reflect the rendering performance of rendering engine B on different types of test resources; if all the rendering performance parameters corresponding to different test devices are counted separately, then it can be Reflects the rendering performance of rendering engine B on different test devices. Taking the test device selected by the user as an example, the set of target performance parameters includes a total of 6 sets of rendering performance parameters obtained by rendering test resources a, b, and c on test device 1 using rendering engine A and rendering engine B respectively. Then, it is also possible to directly compare the rendering performance parameters of different rendering engines on the same test device for the same test resource, so that the performance of the two test engines can be compared. In addition, all the rendering performance parameters of the rendering engine B can be counted and compared with the rendering engine A, which can also reflect the performance of both.
需要说明的是,上述示例中的测试设备数量、渲染引擎数量以及测试资源类别数量均为简化示例,另外,上述示例汇总以一个测试资源作为一个类别为例进行分析,在一些实施例中,也可以将一个级别的测试资源作为一个类别进行说明,那么一个级别可能包括多个测试资源,从而可以首先对同个级别中的所有测试资源对应的渲染性能参数进行统计,而后再进行进一步比对分析。It should be noted that the number of test devices, the number of rendering engines, and the number of test resource categories in the above examples are all simplified examples. In addition, the above example summary takes one test resource as one category for analysis. In some embodiments, A level of test resources can be described as a category, then a level may include multiple test resources, so that the rendering performance parameters corresponding to all test resources in the same level can be counted first, and then further comparative analysis can be performed .
通过上述比对分析,可以从多个维度反映渲染引擎的性能,例如,同个渲染引擎在不同设备的性能情况或者对不同级别测试资源的渲染的性能情况,以及也可以反映不同渲染引擎在相同设备上的性能情况等,能够全面地反映被测渲染引擎的性能,以便于用户基于测试反映出的性能情况对渲染引擎进行加强。Through the above comparative analysis, the performance of the rendering engine can be reflected from multiple dimensions, for example, the performance of the same rendering engine on different devices or the rendering performance of different levels of test resources, and it can also reflect the performance of different rendering engines on the same The performance on the device, etc., can fully reflect the performance of the tested rendering engine, so that users can strengthen the rendering engine based on the performance reflected by the test.
步骤S240:显示各组目标性能参数。Step S240: Display each group of target performance parameters.
在本公开实施例中,步骤S240可以为显示一组目标性能参数,也可以为同时显示多组目标性能参数,显示方式可以是多样的,例如,直接显示目标性能参数的值,或者将目标性能参数以图表的形式显示等。In the embodiment of the present disclosure, step S240 may be to display a group of target performance parameters, or to display multiple groups of target performance parameters at the same time. Parameters are displayed in the form of graphs, etc.
在一些实施例中,在得到性能分析结果之后,还可以显示性能分析结果供用户查看,便于用户根据性能分析结果了解渲染引擎的性能。In some embodiments, after the performance analysis result is obtained, the performance analysis result may also be displayed for the user to view, so that the user can understand the performance of the rendering engine according to the performance analysis result.
可以理解的是,步骤S230和步骤S240中可以选择至少一者进行执行,本公开不对步骤S230和步骤S240的执行顺序进行限定。It can be understood that at least one of step S230 and step S240 may be selected for execution, and the present disclosure does not limit the execution order of step S230 and step S240.
在上述方案中,通过对渲染引擎进行渲染得到渲染性能参数并进行处理,实现对渲染引擎的测试,无需在渲染引擎的使用过程中进行主观感受,能够客观地反映渲染引擎的性能,使得对渲染引擎的性能评估更为准确;此外,渲染性能参数能够反映渲染引擎在渲染过程中的相关性能,对渲染性能参数进行比对分析和显示,能够从多维度更全面地反映渲染引擎的性能。In the above solution, the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate; in addition, the rendering performance parameters can reflect the relevant performance of the rendering engine during the rendering process, and the comparison, analysis and display of the rendering performance parameters can more comprehensively reflect the performance of the rendering engine from multiple dimensions.
图3示出了本公开实施例提供的一种渲染引擎的测试方法的流程示意图三。FIG. 3 shows a third schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure.
在本公开实施例中,以渲染性能参数为渲染效果评分为例进行说明,本实施例中将测试设备、测试资源类别以及渲染引擎作为三个变量进行测试,上述变量的相关描述可以参考前述实施例中的相关内容。在需要对渲染效果进行评价的测试过程中,渲染性能参数为依据测试设备运行渲染引擎对测试资源进行渲染得到的渲染结果而来的。可以理解的是,由于渲染引擎用于集成在增强现实的应用程序中,设备会将渲染的结果显示在设备采集到的实时现实环境图像中,为了使渲染结果更加贴近现实,通常渲染引擎在进行渲染时会实时采集环境的光照、环境光颜色等信息用于渲染。为了对渲染引擎的性能进行全面的测试,可以结合影响渲染效果的环境因素进行分析。In the embodiment of the present disclosure, the rendering performance parameter is used as an example to describe the rendering effect score. In this embodiment, the test equipment, test resource category, and rendering engine are used as three variables for testing. related content in the example. In the test process that needs to evaluate the rendering effect, the rendering performance parameters are based on the rendering results obtained by running the rendering engine on the test equipment to render the test resources. It is understandable that since the rendering engine is used to integrate in augmented reality applications, the device will display the rendering results in the real-time real-world environment images collected by the device. In order to make the rendering results closer to reality, the rendering engine usually performs During rendering, information such as ambient lighting and ambient light color will be collected in real time for rendering. In order to conduct a comprehensive test on the performance of the rendering engine, it can be analyzed in combination with environmental factors that affect the rendering effect.
在一应用场景中,光线的明暗、室内的点状光源和室外的平行自然光、有无遮挡这三个因素可以作为影响渲染效果的环境因素,其中,有无遮挡可以通过环境中的移动对象数量而体现。利用这三个因素进行组合,可以构建八个不同的测试环境,另外,为了减少测试环境波动所造成的影响,渲染引擎不采取实时获取外界环境信息的方式进行渲染,而是预先确定每个测试环境的环境光照情况,以供测试设备运行渲染引擎进行渲染时使用,环境光照情况可以包括环境光照度和环境光颜色等。In an application scenario, the three factors of light and shade, indoor point light source and outdoor parallel natural light, and presence or absence of occlusion can be used as environmental factors that affect the rendering effect. Among them, the presence or absence of occlusion can be determined by the number of moving objects in the environment And embodied. Combining these three factors, eight different test environments can be constructed. In addition, in order to reduce the impact of test environment fluctuations, the rendering engine does not use real-time acquisition of external environment information for rendering, but predetermines each test environment. The ambient lighting conditions of the environment are used when the test device runs the rendering engine for rendering. The ambient lighting conditions may include ambient light intensity and ambient light color, etc.
通常来说,模型可以固定在某些场景当中的不同位置,当用户经过时,可以通过增强现实的应用程序查看模型,用户可以对测试设备进行不同的操作,从而以不同观察方式查看模型。在渲染引擎对模型进行渲染完成之后,还可以响应于用户在查看模型时对设备进行的操作相应地调整渲染结果,能够反映渲染引擎动画更新的情况。为了对渲染引擎的性能进行全面的测试,还可以结合用户对设备的操作进行分析。Generally speaking, the model can be fixed in different positions in some scenes. When the user passes by, the model can be viewed through the application of augmented reality. The user can perform different operations on the test equipment to view the model in different ways. After the rendering engine finishes rendering the model, the rendering result can also be adjusted accordingly in response to the user's operations on the device when viewing the model, which can reflect the update of the animation of the rendering engine. In order to conduct a comprehensive test on the performance of the rendering engine, it can also be analyzed in combination with the operation of the device by the user.
在一应用场景中,在对渲染效果进行评价时,对渲染结果的观察方式可以为静止不动、进行预设运动和位于拐弯处中的至少一者,进行预设运动可以是转动、正常速度移动、快速启动停止等。观察方式可以通过测试人员对测试设备操作而实现,若转动进行观察,那么渲染引擎可以根据用户转动,显示模型各个不同角度的渲染结果,若位于拐弯处观察,那么在拐弯后能够看到模型时渲染引擎显示渲染结果,快速启动停止可以表现为由不能观察到模型的位置转变为能够观察到模型的位置,例如设备由平放转为垂直放置,那么渲染引擎可以根据相应的位置关系显示渲染结果。In an application scenario, when evaluating the rendering effect, the way of observing the rendering result may be at least one of standing still, performing a preset movement, and being at a corner, and performing a preset movement may be rotation, normal speed Move, quick start stop, etc. The observation method can be realized by the tester operating the test equipment. If the user rotates to observe, then the rendering engine can rotate according to the user to display the rendering results of different angles of the model. If the observation is at a corner, the model can be seen after the corner The rendering engine displays the rendering results. Quick start and stop can be manifested as a change from a position where the model cannot be observed to a position where the model can be observed. For example, if the device is placed from horizontal to vertical, then the rendering engine can display the rendering results according to the corresponding positional relationship .
上述测试环境以及观察方式可以用于构建不同的测试条件,对每个渲染引擎来说,分别利用每台测试设备运行渲染引擎渲染每个测试资源,并对每种测试条件下的渲染效果进行评价,从而得到与该渲染引擎、测试设备和测试资源对应的渲染效果评分以作为渲染性能参数,反映渲染引擎的性能。如图3所示,该方法包括:The above test environment and observation methods can be used to construct different test conditions. For each rendering engine, use each test device to run the rendering engine to render each test resource, and evaluate the rendering effect under each test condition , so as to obtain the rendering effect score corresponding to the rendering engine, test equipment and test resources as a rendering performance parameter, reflecting the performance of the rendering engine. As shown in Figure 3, the method includes:
步骤S310:按照预设评价策略,对测试设备利用渲染引擎渲染测试资源的效果进行评价,得到渲染效果评分。Step S310: Evaluate the rendering effect of the test device using the rendering engine to render the test resource according to the preset evaluation strategy, and obtain a rendering effect score.
在步骤S310中,可以包括获取至少一个测试条件分别对应的测试评分,将至少一个测试条件分别对应的测试评分作为渲染效果评分,或者对至少一个测试条件分别对应的测试评分进行分析处理,得到渲染效果评分。其中,不同测试条件对应的以下至少一不同:测试环境、测试人员对测试设备的操作中的至少一者。In step S310, it may include obtaining test scores corresponding to at least one test condition, using the test scores corresponding to at least one test condition as rendering effect scores, or analyzing and processing the test scores corresponding to at least one test condition to obtain the rendering Performance rating. Wherein, at least one of the following corresponding to different test conditions is different: at least one of the test environment and the tester's operation on the test equipment.
需要说明的是,对利用一个渲染引擎、一台测试设备、一个测试资源以及一个测试条件下得到的渲染结果进行一次测试评分,若仅有一个测试条件,那么可以将该测试条件下的测试评分作为当前渲染引擎、测试设备和测试资源对应的渲染效果评分,若存在多个测试条件,那么可以将多个测试条件分别对应的测试评分进行分析处理,例如求平均值等,得到当前渲染引擎、测试设备和测试资源对应的渲染效果评分。It should be noted that a test score is performed on the rendering results obtained by using one rendering engine, one test device, one test resource and one test condition. If there is only one test condition, then the test score under the test condition can be As the rendering effect scores corresponding to the current rendering engine, test equipment and test resources, if there are multiple test conditions, the test scores corresponding to the multiple test conditions can be analyzed and processed, such as averaging, etc., to obtain the current rendering engine, Rendering effect scores corresponding to test equipment and test resources.
步骤S320:获取用户输入的用户效果评分,基于用户效果评分得到渲染效果评分。Step S320: Obtain the user effect score input by the user, and obtain the rendering effect score based on the user effect score.
其中,用户效果评分是评价人员根据预设评价策略对测试设备运行渲染引擎对测试资源进行渲染的效果进行评价得到的。评价人员可以为多个,对于同一渲染引擎来说,分别在不同测试设备上运行这一渲染引擎对所有测试运行进行渲染,每个评价人员在不同的测试条件下对分别对所有测试资源进行评分。在一些实施例中,评价人员可以到不同的测试环境中放置测试资源的点位处,对测试设备进行不同操作,测试设备运行渲染引擎对测试资源进行渲染并显示渲染结果,评价人员可以对该种测试条件下的渲染效果进行评分,从而得到该种测试条件下的用户效果评分。每个评价人员的评分数量可以为渲染引擎数量、测试设备数量、测试资源数量和测试条件数量之积。对相同的评价人员、渲染引擎、测试设备、测试资源,在不同测试条件下的评分进行统计,得到该评价人员、渲染引擎、测试设备、测试资源对应的用户效果评分。The user effect score is obtained by the evaluators based on the preset evaluation strategy to evaluate the rendering effect of the test resource rendered by the test device running the rendering engine. There can be multiple evaluators. For the same rendering engine, this rendering engine is run on different test devices to render all test runs. Each evaluator scores all test resources under different test conditions. . In some embodiments, the evaluators can go to the points where the test resources are placed in different test environments, and perform different operations on the test equipment. The test equipment runs the rendering engine to render the test resources and display the rendering results. Rendering effects under a test condition are scored to obtain a user effect score under the test condition. The number of scores for each evaluator may be the product of the number of rendering engines, the number of test devices, the number of test resources, and the number of test conditions. Count the scores of the same evaluator, rendering engine, test equipment, and test resource under different test conditions, and obtain the user effect score corresponding to the evaluator, rendering engine, test equipment, and test resource.
在本公开实施例中,基于用户效果评分得到渲染效果评分可以为融合多个评价人员评价的多个用户效果评分,得到渲染效果评分。也就是对相同的渲染引擎、测试设备、测试资源,不同评价人员的用户效果评分进行融合,得到该渲染引擎、测试设备、测试资源对应的渲染效果评分。In the embodiment of the present disclosure, obtaining the rendering effect score based on the user effect score may be obtained by fusing multiple user effect scores evaluated by multiple evaluators to obtain the rendering effect score. That is, the same rendering engine, test equipment, test resources, and user effect scores of different evaluators are fused to obtain the rendering effect scores corresponding to the rendering engine, test equipment, and test resources.
需要说明的是,处理设备可以选择步骤S310和步骤S320中的一者执行,得到渲染效果评分,也就是说对渲染效果进行评价可以由处理设备执行或者由评价人员进行。It should be noted that the processing device may select one of step S310 and step S320 to execute to obtain a rendering effect score, that is to say, the evaluation of the rendering effect may be performed by the processing device or by an evaluator.
图4示出了本公开实施例提供的一种渲染引擎的测试方法中预设评价策略的示意图。图4中给出了一种对静态模型进行评分的预设评价策略,其中给出了若干渲染标准,例如,测试资源的指向、抖动、偏移和光照等。由于动态模型可以与用户进行互动,动态模型的渲染标准可以不包括抖动和偏移。那么对于每个测试条件,分别从至少一个渲染标准对该测试条件下进行的渲染进行评价,得到测试评分。在一些实施例中,基于每个渲染标准均得到一个分值,测试评分可以为所有渲染标准的平均分。Fig. 4 shows a schematic diagram of a preset evaluation strategy in a rendering engine testing method provided by an embodiment of the present disclosure. A preset evaluation strategy for scoring static models is shown in Figure 4, in which several rendering criteria are given, such as pointing, jitter, offset, and lighting of test resources. Since the dynamic model can interact with the user, the rendering standard of the dynamic model can exclude dithering and offset. Then, for each test condition, the rendering performed under the test condition is evaluated from at least one rendering standard to obtain a test score. In some embodiments, a score is obtained based on each rendering standard, and the test score may be the average score of all rendering standards.
图5示出了本公开实施例提供的一种记录测试项打分的示意图。图5中包括不同的测试条件,包括正常光线、商场或室外、无行人或少行人的条件,光线较暗、室外或商场、无行人或少行人的条件;每一条件设置有不同测试项,包括:手机静止不动状态下观察AR物体、手机左右运动观察AR物体、正常速度行走观察AR物体、快速启动停止观察AR物体、经过转弯处观察AR物体;此外,图5中还包括序号,用以显示测试项数量,提高可读性。结合前述图4预设评价策略示意图中的评分标准,用户可在图5表格中记录不同测试条件下各测试项的分数,从而得到该种测试条件下的用户效果评分。Fig. 5 shows a schematic diagram of recording test item scores provided by an embodiment of the present disclosure. Figure 5 includes different test conditions, including normal light, shopping malls or outdoors, no pedestrians or few pedestrians, dark light, outdoors or shopping malls, no pedestrians or few pedestrians; each condition has different test items, Including: Observing AR objects when the mobile phone is stationary, observing AR objects while moving the mobile phone left and right, observing AR objects while walking at a normal speed, observing AR objects after quickly starting and stopping, and observing AR objects after turning; to show the number of test items for readability. Combined with the scoring criteria in the preset evaluation strategy schematic diagram in Figure 4, the user can record the scores of each test item under different test conditions in the table in Figure 5, so as to obtain the user effect score under this test condition.
步骤S330:将渲染效果评分作为渲染性能参数。Step S330: Use the rendering effect score as a rendering performance parameter.
经过上述步骤得到一个渲染引擎、一个测试资源和一个测试设备对应一个渲染效果评分。将渲染效果评分作为渲染性能参数之后,可以执行下述步骤S340获取渲染引擎的渲染性能参数;以及步骤S350对渲染性能参数进行预设处理,步骤S340和步骤S350中涉及的相关处理可以参考前述实施例中对渲染性能参数处理的相关内容。After the above steps, a rendering engine, a test resource, and a test device are obtained corresponding to a rendering effect score. After the rendering effect score is used as the rendering performance parameter, the following step S340 can be performed to obtain the rendering performance parameter of the rendering engine; and step S350 is used to preset the rendering performance parameter, and the related processing involved in step S340 and step S350 can refer to the aforementioned implementation The relevant content of the rendering performance parameter processing in the example.
本公开从不同维度对渲染引擎的渲染效果评分进行比对分析,能够全面地反映渲染引擎的渲染效果,从而体现渲染引擎的性能。The present disclosure compares and analyzes the rendering effect scores of the rendering engines from different dimensions, which can fully reflect the rendering effects of the rendering engines, thereby reflecting the performance of the rendering engines.
在上述方案中,通过对渲染引擎进行渲染得到渲染性能参数并进行处理,实现对渲染引擎的测试,无需在渲染引擎的使用过程中进行主观感受,能够客观地反映渲染引擎的性能,使得对渲染引擎的性能评估更为准确,渲染性能参数能够反映渲染引擎的渲染结果的相关性能,对渲染性能参数进行比对分析和显示,能够从多维度更全面地反映渲染引擎的性能。In the above solution, the rendering performance parameters are obtained and processed by rendering the rendering engine, so as to realize the testing of the rendering engine. There is no need to feel subjectively during the use of the rendering engine, and it can objectively reflect the performance of the rendering engine. The performance evaluation of the engine is more accurate, and the rendering performance parameters can reflect the relevant performance of the rendering results of the rendering engine, and the comparison, analysis and display of the rendering performance parameters can more comprehensively reflect the performance of the rendering engine from multiple dimensions.
图6示出了本公开实施例提供的一种渲染引擎的测试方法的流程示意图四。该方法包括:FIG. 6 shows a fourth schematic flowchart of a rendering engine testing method provided by an embodiment of the present disclosure. The method includes:
步骤S510:获取至少一个测试资源。Step S510: Obtain at least one test resource.
至少一个测试资源包括第一数量个静态模型和第二数量个动态模型。At least one test resource includes a first number of static models and a second number of dynamic models.
步骤S520:分别运行至少一个渲染引擎对每个测试资源进行渲染。Step S520: Run at least one rendering engine to render each test resource.
需要说明的是,每台测试设备均会运行所有的测试引擎,每个测试引擎均会对所有测试资源进行渲染,相关描述可以参考前述实施例中关于测试设备的相关内容。It should be noted that each test device will run all test engines, and each test engine will render all test resources. For related descriptions, please refer to relevant content about test devices in the foregoing embodiments.
步骤S530:将测试资源分别发送给至少一个测试设备,每个测试设备分别运行至少一个渲染引擎对测试资源进行渲染。Step S530: Send the test resources to at least one test device, and each test device runs at least one rendering engine to render the test resources.
需要说明的是,处理设备可以从步骤S520和步骤S530中选择一者执行,若选择步骤S520也就意味着该处理设备同时也作为了测试设备。在执行步骤S520或者步骤S530之前,该方法还包括将测试资源打包成渲染引擎支持的格式,若存在多个渲染引擎,那么分别打包成每个渲染引擎支持的格式,以供对应的渲染引擎进行渲染工作。It should be noted that the processing device can select one of step S520 and step S530 to execute, and if step S520 is selected, it means that the processing device is also used as a testing device. Before executing step S520 or step S530, the method also includes packaging the test resources into a format supported by the rendering engine, and if there are multiple rendering engines, then packaging the test resources into a format supported by each rendering engine for the corresponding rendering engine to perform Rendering works.
步骤S540:获取渲染引擎的渲染性能参数。Step S540: Obtain the rendering performance parameters of the rendering engine.
步骤S540为从测试设备处获取渲染引擎的渲染性能参数,步骤S520和步骤S530对应的测试设备是不同的设备,步骤S540和步骤S550的相关内容可以参考前述实施例中的内容。Step S540 is to obtain the rendering performance parameters of the rendering engine from the test device. The test devices corresponding to step S520 and step S530 are different devices. For the relevant content of step S540 and step S550, please refer to the content in the foregoing embodiments.
步骤S550:基于渲染性能参数进行预设处理。Step S550: Perform preset processing based on rendering performance parameters.
在上述方案中,通过对渲染引擎进行渲染得到的渲染性能参数进行处理,相比于现有的依靠用户主观对渲染结果的感受判断渲染引擎的性能来说,通过参数反映渲染引擎的性能,更为客观和准确。In the above solution, by processing the rendering performance parameters obtained by rendering the rendering engine, compared with the existing method of judging the performance of the rendering engine based on the user's subjective perception of the rendering results, reflecting the performance of the rendering engine through parameters is more efficient. be objective and accurate.
图7示出了本公开实施例提供的一种渲染引擎的测试装置的框架示意图。Fig. 7 shows a schematic framework diagram of a rendering engine testing device provided by an embodiment of the present disclosure.
在本公开实施例中,渲染引擎的测试装置60包括获取模块61和处理模块62,其中,获取模块61配置为获取渲染引擎的渲染性能参数,其中,渲染性能参数是利用测试设 备运行渲染引擎对测试资源进行渲染得到的。处理模块62配置为基于渲染性能参数进行预设处理,其中,预设处理用于反映渲染引擎的性能。In the embodiment of the present disclosure, the testing device 60 of the rendering engine includes an acquisition module 61 and a processing module 62, wherein the acquisition module 61 is configured to acquire the rendering performance parameters of the rendering engine, wherein the rendering performance parameters are obtained by using the test equipment to run the rendering engine. The test resource is rendered. The processing module 62 is configured to perform preset processing based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
在一些实施例中,渲染性能参数包括获取测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取测试资源消耗的网络资源、最大渲染资源数中的至少一者,最大渲染资源数为渲染引擎能够并行处理测试资源的数量。In some embodiments, the rendering performance parameters include at least one of time-consuming acquisition of test resources, time-consuming rendering, memory usage of the rendering process, network resources consumed by acquiring test resources, and the maximum number of rendering resources. The maximum number of rendering resources is The rendering engine is able to process the number of test resources in parallel.
在一些实施例中,预设处理包括显示渲染性能参数和对渲染性能参数进行性能分析中的至少一种。In some embodiments, the preset processing includes at least one of displaying the rendering performance parameters and performing performance analysis on the rendering performance parameters.
在一些实施例中,获取模块61配置为获取若干组渲染性能参数,每组渲染性能参数是利用一测试设备运行一渲染引擎对一测试资源进行渲染得到的,不同组的渲染性能参数对应的测试设备、渲染引擎和测试资源中的至少一者不同;处理模块62配置为选择至少一组渲染性能参数作为目标性能参数,并执行以下至少之一:显示各组目标性能参数;对各组目标性能参数进行比对分析,得到目标性能参数对应的渲染引擎的性能分析结果;其中,至少一组目标性能参数对应的测试设备、渲染引擎和测试资源类别中的至少一者相同。In some embodiments, the acquisition module 61 is configured to acquire several sets of rendering performance parameters, each set of rendering performance parameters is obtained by using a test device to run a rendering engine to render a test resource, different sets of rendering performance parameters corresponding to the test At least one of the device, the rendering engine, and the test resource is different; the processing module 62 is configured to select at least one set of rendering performance parameters as the target performance parameter, and perform at least one of the following: display each set of target performance parameters; The parameters are compared and analyzed to obtain the performance analysis results of the rendering engine corresponding to the target performance parameters; wherein at least one of the test equipment, rendering engine and test resource category corresponding to at least one set of target performance parameters is the same.
在一些实施例中,每个测试资源作为一个测试资源类别,或每级别的测试资源作为一个测试资源类别。In some embodiments, each test resource serves as a test resource category, or each level of test resources serves as a test resource category.
在一些实施例中,处理模块62配置为响应于用户对测试设备、渲染引擎和测试资源类别中的至少一者的选择操作,将与用户的选择相关的渲染性能参数作为目标性能参数。In some embodiments, the processing module 62 is configured to use the rendering performance parameter related to the user's selection as the target performance parameter in response to the user's selection operation on at least one of the test device, rendering engine and test resource category.
在一些实施例中,渲染引擎的测试装置60还可以包括评价模块和确定模块,评价模块配置为按照预设评价策略,对测试设备利用渲染引擎渲染测试资源的效果进行评价,得到渲染效果评分;或者,获取用户输入的用户效果评分,基于用户输入的用户效果评分得到渲染效果评分,其中,用户效果评分是评价人员根据预设评价策略对测试设备运行渲染引擎对测试资源进行渲染的效果进行评价得到的;确定模块配置为将渲染效果评分作为渲染性能参数。In some embodiments, the testing device 60 of the rendering engine may further include an evaluation module and a determination module, the evaluation module is configured to evaluate the rendering effect of the test device using the rendering engine to render test resources according to a preset evaluation strategy, and obtain a rendering effect score; Or, obtain the user effect score input by the user, and obtain the rendering effect score based on the user effect score input by the user, wherein the user effect score is the evaluation of the rendering effect of the test resource rendered by the test device running the rendering engine by the evaluator according to the preset evaluation strategy Obtained; determines that the module is configured to use the rendering performance score as a rendering performance parameter.
在一些实施例中,评价模块配置为获取至少一个测试条件分别对应的测试评分,其中,不同测试条件对应的以下至少之一不同:测试环境、测试人员对测试设备的操作中的至少一者;将至少一个测试条件分别对应的测试评分作为渲染效果评分,或者,对至少一个测试条件分别对应的测试评分进行分析处理,得到渲染效果评分。In some embodiments, the evaluation module is configured to obtain test scores respectively corresponding to at least one test condition, wherein at least one of the following corresponding to different test conditions is different: at least one of the test environment and the tester's operation of the test equipment; The test scores corresponding to the at least one test condition are used as the rendering effect scores, or the test scores corresponding to the at least one test condition are analyzed and processed to obtain the rendering effect scores.
在一些实施例中,评价模块配置为融合多个评价人员评价的多个用户效果评分,得到渲染效果评分。In some embodiments, the evaluation module is configured to fuse multiple user effect scores evaluated by multiple evaluators to obtain a rendering effect score.
在一些实施例中,测试环境由光线、场所和场景存在的移动对象数量中的至少一者决定,测试人员对测试设备的操作包括使测试设备静止、进行预设运动和位于拐弯处中的至少一者;评价模块配置为对于每个测试条件,分别从至少一个渲染标准对测试条件下进行的渲染进行评价,得到测试评分,至少一个渲染标准包括渲染的测试资源的指向、抖动、偏移和光照中的至少一者。In some embodiments, the test environment is determined by at least one of light, location and the number of moving objects in the scene, and the operation of the tester on the test equipment includes making the test equipment stationary, performing preset movements, and at least one of the objects located in the corner. One; the evaluation module is configured to, for each test condition, evaluate the rendering performed under the test condition from at least one rendering standard to obtain a test score, at least one rendering standard includes the pointing, jitter, offset and at least one of illumination.
在一些实施例中,渲染引擎的测试装置60还可以包括渲染模块,配置为在获取渲染引擎的渲染性能参数之前,获取至少一个测试资源;分别运行至少一个渲染引擎对每个测试资源进行渲染;或者,将测试资源分别发送给至少一个测试设备,每个测试设备分别运行至少一个渲染引擎对测试资源进行渲染。In some embodiments, the rendering engine testing device 60 may further include a rendering module configured to acquire at least one test resource before acquiring the rendering performance parameters of the rendering engine; respectively run at least one rendering engine to render each test resource; Alternatively, the test resources are respectively sent to at least one test device, and each test device runs at least one rendering engine to render the test resources.
在一些实施例中,至少一个测试资源包括第一数量个静态模型和第二数量个动态模型;至少一个测试资源划分若干级别的测试资源,不同级别的测试资源所需的渲染能力不同;在分别运行至少一个渲染引擎对每个测试资源进行渲染,或者,渲染模块配置为将测试资源分别发送给至少一个测试设备之前,将测试资源打包成渲染引擎支持的格式。In some embodiments, at least one test resource includes a first number of static models and a second number of dynamic models; at least one test resource is divided into several levels of test resources, and different levels of test resources require different rendering capabilities; respectively At least one rendering engine is run to render each test resource, or the rendering module is configured to package the test resources into a format supported by the rendering engine before sending the test resources to at least one test device respectively.
在一些实施例中,包括以下至少之一:渲染引擎的测试是在渲染引擎集成在应用程序之前执行的;渲染引擎用于集成在增强现实的应用程序中。In some embodiments, at least one of the following is included: the rendering engine is tested before the rendering engine is integrated into the application program; the rendering engine is used to be integrated into the augmented reality application program.
图8示出了本公开实施例提供的一种渲染引擎的测试系统的框架示意图。Fig. 8 shows a schematic framework diagram of a rendering engine testing system provided by an embodiment of the present disclosure.
在公开本实施中,渲染引擎的测试系统70包括处理设备71和测试设备72,处理设备71和测试设备72之间可以进行通信。其中,处理设备71用于执行上述任一方法实施例的相关步骤,测试设备72用于运行渲染引擎对测试资源进行渲染得到渲染性能参数。In the disclosed implementation, the rendering engine testing system 70 includes a processing device 71 and a testing device 72, and the processing device 71 and the testing device 72 can communicate with each other. Wherein, the processing device 71 is configured to execute the relevant steps of any one of the above method embodiments, and the testing device 72 is configured to run the rendering engine to render the test resources to obtain the rendering performance parameters.
图9示出了本公开实施例提供的一种处理设备的框架示意图。Fig. 9 shows a schematic diagram of a frame of a processing device provided by an embodiment of the present disclosure.
在本公开实施例中,处理设备80包括存储器81、处理器82,其中存储器81耦接处理器82。在一些实施例中,处理设备80的各个组件可通过总线耦合在一起,或者处理设备80的处理器82分别与其他组件一一连接。该处理设备80可以为具有处理能力的任意设备,例如计算机、平板电脑、手机等。In the embodiment of the present disclosure, the processing device 80 includes a memory 81 and a processor 82 , wherein the memory 81 is coupled to the processor 82 . In some embodiments, various components of the processing device 80 may be coupled together through a bus, or the processor 82 of the processing device 80 may be connected to other components one by one. The processing device 80 may be any device with processing capabilities, such as a computer, a tablet computer, a mobile phone, and the like.
存储器81用于存储处理器82执行的程序数据以及处理器82在处理过程中的数据等。例如,测试资源、渲染引擎等。其中,该存储器81包括易失性存储部分或非易失性存储部分,用于存储上述程序数据。The memory 81 is used to store program data executed by the processor 82 and data during processing by the processor 82 . For example, testing resources, rendering engines, etc. Wherein, the memory 81 includes a volatile storage part or a non-volatile storage part for storing the above-mentioned program data.
处理器82控制处理设备80的操作,处理器82还可以称为CPU(Central Processing Unit,中央处理单元)。处理器82可能是一种集成电路芯片,具有信号的处理能力。处理器82还可以是通用处理器、数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。另外,处理器82可以由多个成电路芯片共同实现。The processor 82 controls the operation of the processing device 80, and the processor 82 may also be called a CPU (Central Processing Unit, central processing unit). The processor 82 may be an integrated circuit chip with signal processing capability. The processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other possible Program logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. In addition, the processor 82 may be jointly implemented by multiple circuit chips.
处理器82通过调用存储器81存储的程序数据,用于执行指令以实现上述任一渲染引擎的测试方法。The processor 82 is used to execute instructions by calling the program data stored in the memory 81 to implement any of the above-mentioned testing methods of the rendering engine.
图10示出了本公开实施例提供的一种计算机可读存储介质的框架示意图。Fig. 10 shows a schematic diagram of a computer-readable storage medium provided by an embodiment of the present disclosure.
在本公开实施例中,该计算机可读存储介质90存储有处理器可运行的程序数据91,该程序数据能够被执行,用以实现上述任一渲染引擎的测试方法。In the embodiment of the present disclosure, the computer-readable storage medium 90 stores program data 91 executable by the processor, and the program data can be executed to implement any of the above-mentioned testing methods for the rendering engine.
该计算机可读存储介质90可为易失性存储介质或者非易失性存储介质,可以为U盘、移动硬盘、只读存储器(,Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等可以存储程序数据的介质,或者也可以为存储有该程序数据的服务器,该服务器可将存储的程序数据发送给其他设备运行,或者也可以自运行该存储的程序数据。The computer readable storage medium 90 can be a volatile storage medium or a nonvolatile storage medium, and can be a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), disk or optical disc, etc. can store the program data, or it can also be a server that stores the program data, and the server can send the stored program data to other devices for operation, or it can also run the storage program data.
在一些实施例中,计算机可读存储介质90还可以为如图9所示的存储器81。In some embodiments, the computer-readable storage medium 90 may also be the memory 81 as shown in FIG. 9 .
本公开一些实施例涉及增强现实领域,通过获取现实环境中的目标对象的图像信息,进而借助各类视觉相关算法实现对目标对象的相关特征、状态及属性进行检测或识别处理,从而得到与应用匹配的虚拟与现实相结合的AR效果。示例性的,目标对象可涉及与人体相关的脸部、肢体、手势、动作等,或者与物体相关的标识物、标志物,或者与场馆或场所相关的沙盘、展示区域或展示物品等。视觉相关算法可涉及视觉定位、)即时定位与地图构建或并发建图与定位(Simultaneous Localization And Mapping,SLAM)、三维重建、图像注册、背景分割、对象的关键点提取及跟踪、对象的位姿或深度检测等。应用不仅可以涉及跟真实场景或物品相关的导览、导航、讲解、重建、虚拟效果叠加展示等交互场景,还可以涉及与人相关的特效处理,比如妆容美化、肢体美化、特效展示、虚拟模型展示等交互场景。Some embodiments of the present disclosure relate to the field of augmented reality. By acquiring the image information of the target object in the real environment, and then using various visual correlation algorithms to detect or identify the relevant features, states, and attributes of the target object, so as to obtain and apply Matching AR effect combining virtual and reality. Exemplarily, the target object may involve faces, limbs, gestures, actions, etc. related to the human body, or markers and markers related to objects, or sand tables, display areas or display items related to venues or places. Vision-related algorithms can involve visual localization, real-time localization and map construction or concurrent localization and localization (Simultaneous Localization And Mapping, SLAM), 3D reconstruction, image registration, background segmentation, object key point extraction and tracking, object pose or depth detection etc. Applications can not only involve interactive scenes such as tours, navigation, explanations, reconstructions, virtual effect overlays and display related to real scenes or objects, but can also involve special effects processing related to people, such as makeup beautification, body beautification, special effect display, virtual model Display and other interactive scenes.
可通过卷积神经网络,实现对目标对象的相关特征、状态及属性进行检测或识别处理。上述卷积神经网络是基于深度学习框架进行模型训练而得到的网络模型。The relevant features, states and attributes of the target object can be detected or identified through the convolutional neural network. The above-mentioned convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其实现可以参照上文方法实施例的描述。In some embodiments, the functions or modules included in the apparatus provided by the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments, and the implementation can refer to the descriptions of the above method embodiments.
在一些实施例中,计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。In some embodiments, the computer program product can be realized by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考。The above descriptions of the various embodiments tend to emphasize the differences between the various embodiments, and the same or similar points can be referred to each other.
以上所述仅为本公开的实施方式,并非因此限制本公开的专利范围,凡是利用本公开说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。The above is only the implementation of the present disclosure, and does not limit the patent scope of the present disclosure. Any equivalent structure or equivalent process conversion made by using the contents of this disclosure and the accompanying drawings, or directly or indirectly used in other related technologies fields, are equally included in the patent protection scope of the present disclosure.

Claims (27)

  1. 一种渲染引擎的测试方法,包括:A method for testing a rendering engine, comprising:
    获取渲染引擎的渲染性能参数,其中,所述渲染性能参数是利用测试设备运行所述渲染引擎对测试资源进行渲染得到的;Acquiring rendering performance parameters of a rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources;
    基于所述渲染性能参数进行预设处理,其中,所述预设处理用于反映所述渲染引擎的性能。Preset processing is performed based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
  2. 根据权利要求1所述的方法,其中,所述渲染性能参数包括获取所述测试资源耗时、渲染耗时、渲染过程的内存占用情况、获取所述测试资源消耗的网络资源、最大渲染资源数中的至少一者,所述最大渲染资源数为所述渲染引擎能够并行处理所述测试资源的数量。The method according to claim 1, wherein the rendering performance parameters include obtaining the time-consuming of the test resource, rendering time, memory usage of the rendering process, obtaining network resources consumed by the test resource, and the maximum number of rendering resources In at least one of the above, the maximum number of rendering resources is the number of test resources that the rendering engine can process in parallel.
  3. 根据权利要求1或2所述的方法,其中,所述预设处理包括显示所述渲染性能参数和对所述渲染性能参数进行性能分析中的至少一种。The method according to claim 1 or 2, wherein the preset processing includes at least one of displaying the rendering performance parameters and performing performance analysis on the rendering performance parameters.
  4. 根据权利要求3所述的方法,其中,所述获取渲染引擎的渲染性能参数,包括:The method according to claim 3, wherein said acquiring the rendering performance parameters of the rendering engine comprises:
    获取若干组渲染性能参数,每组所述渲染性能参数是利用一所述测试设备运行一所述渲染引擎对一所述测试资源进行渲染得到的,不同组的所述渲染性能参数对应的所述测试设备、所述渲染引擎和所述测试资源中的至少一者不同;Obtain several sets of rendering performance parameters, each set of rendering performance parameters is obtained by using a test device to run a rendering engine to render a test resource, and different sets of rendering performance parameters correspond to the At least one of the test device, the rendering engine, and the test resource is different;
    所述基于所述渲染性能参数进行预设处理,包括:The preset processing based on the rendering performance parameters includes:
    选择至少一组所述渲染性能参数作为目标性能参数,并执行以下至少之一:显示各组所述目标性能参数;对各组所述目标性能参数进行比对分析,得到所述目标性能参数对应的所述渲染引擎的性能分析结果;其中,所述至少一组目标性能参数对应的所述测试设备、渲染引擎和测试资源类别中的至少一者相同。Selecting at least one set of rendering performance parameters as target performance parameters, and performing at least one of the following: displaying each set of target performance parameters; performing comparative analysis on each set of target performance parameters to obtain the corresponding The performance analysis result of the rendering engine; wherein, at least one of the test equipment, rendering engine and test resource category corresponding to the at least one set of target performance parameters is the same.
  5. 根据权利要求4所述的方法,其中,每个所述测试资源作为一个所述测试资源类别,或每级别的测试资源作为一个所述测试资源类别。The method according to claim 4, wherein each of the test resources is used as a test resource category, or each level of test resources is used as a test resource category.
  6. 根据权利要求4或5所述的方法,其中,所述选择至少一组所述渲染性能参数作为目标性能参数,包括:The method according to claim 4 or 5, wherein said selecting at least one set of said rendering performance parameters as target performance parameters comprises:
    响应于用户对所述测试设备、渲染引擎和测试资源类别中的至少一者的选择操作,将与所述用户的选择相关的所述渲染性能参数作为所述目标性能参数。In response to a user's selection operation on at least one of the test device, rendering engine, and test resource category, the rendering performance parameter related to the user's selection is used as the target performance parameter.
  7. 根据权利要求1至6任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    按照预设评价策略,对所述测试设备利用所述渲染引擎渲染所述测试资源的效果进行评价,得到渲染效果评分;或者,获取用户输入的用户效果评分,基于所述用户输入的用户效果评分得到所述渲染效果评分,其中,所述用户效果评分是评价人员根据所述预设评价策略对所述测试设备运行渲染引擎对所述测试资源进行渲染的效果进行评价得到的;According to a preset evaluation strategy, evaluate the effect of the test device using the rendering engine to render the test resource to obtain a rendering effect score; or obtain a user effect score input by the user, and based on the user effect score input by the user Obtaining the rendering effect score, wherein the user effect score is obtained by an evaluator evaluating the rendering effect of the test resource rendered by the test device running a rendering engine according to the preset evaluation strategy;
    将所述渲染效果评分作为所述渲染性能参数。The rendering effect score is used as the rendering performance parameter.
  8. 根据权利要求7所述的方法,其中,所述按照预设评价策略,对所述测试设备 利用所述渲染引擎渲染所述测试资源的效果进行评价,得到渲染效果评分,包括:The method according to claim 7, wherein, according to the preset evaluation strategy, evaluating the effect of the test device using the rendering engine to render the test resource to obtain a rendering effect score, comprising:
    获取至少一个测试条件分别对应的测试评分,其中,不同测试条件对应的以下至少之一不同:测试环境、测试人员对所述测试设备的操作中的至少一者;Acquiring test scores corresponding to at least one test condition, wherein at least one of the following corresponding to different test conditions is different: at least one of the test environment and the operation of the tester on the test equipment;
    将所述至少一个测试条件分别对应的测试评分作为所述渲染效果评分,或者,对所述至少一个测试条件分别对应的测试评分进行分析处理,得到所述渲染效果评分。The test scores corresponding to the at least one test condition are used as the rendering effect scores, or the test scores corresponding to the at least one test condition are analyzed and processed to obtain the rendering effect scores.
  9. 根据权利要求7或8所述的方法,其中,所述基于所述用户输入的用户效果评分得到所述渲染效果评分,包括:The method according to claim 7 or 8, wherein the obtaining the rendering effect score based on the user effect score input by the user comprises:
    融合多个所述评价人员评价的多个用户效果评分,得到所述渲染效果评分。The rendering effect score is obtained by fusing multiple user effect scores evaluated by multiple evaluators.
  10. 根据权利要求8或9所述的方法,其中,所述测试环境由光线、场所和场景存在的移动对象数量中的至少一者决定,所述测试人员对所述测试设备的操作包括使所述测试设备静止、进行预设运动和位于拐弯处中的至少一者;The method according to claim 8 or 9, wherein the test environment is determined by at least one of light, place and the number of moving objects in the scene, and the tester's operation of the test equipment includes making the the test device is at least one of stationary, performing a preset motion, and positioned on a bend;
    所述获取至少一个测试条件分别对应的测试评分,包括:The acquisition of test scores corresponding to at least one test condition includes:
    对于每个所述测试条件,分别从至少一个渲染标准对所述测试条件下进行的所述渲染进行评价,得到所述测试评分;所述至少一个渲染标准包括渲染的所述测试资源的指向、抖动、偏移和光照中的至少一者。For each of the test conditions, evaluate the rendering performed under the test conditions from at least one rendering standard to obtain the test score; the at least one rendering standard includes the direction of the rendered test resource, At least one of dithering, offsetting and lighting.
  11. 根据权利要求1至10任一项所述的方法,其中,在所述获取渲染引擎的渲染性能参数之前,所述方法还包括:The method according to any one of claims 1 to 10, wherein, before the acquisition of the rendering performance parameters of the rendering engine, the method further comprises:
    获取至少一个测试资源;Get at least one test resource;
    分别运行至少一个所述渲染引擎对每个所述测试资源进行渲染;或者,将所述测试资源分别发送给至少一个测试设备,每个所述测试设备分别运行至少一个渲染引擎对所述测试资源进行渲染。Run at least one rendering engine to render each of the test resources; or, send the test resources to at least one test device, each of the test devices runs at least one rendering engine to render the test resources to render.
  12. 根据权利要求11所述的方法,其中,所述至少一个测试资源包括第一数量个静态模型和第二数量个动态模型;The method of claim 11, wherein the at least one test resource includes a first number of static models and a second number of dynamic models;
    所述至少一个测试资源划分若干级别的所述测试资源,不同级别的测试资源所需的渲染能力不同;The at least one test resource is divided into several levels of the test resources, and different levels of test resources require different rendering capabilities;
    在所述分别运行至少一个所述渲染引擎对每个所述测试资源进行渲染,或者,将所述测试资源分别发送给至少一个测试设备之前,所述方法还包括:Before running at least one rendering engine to render each of the test resources, or sending the test resources to at least one test device, the method further includes:
    将所述测试资源打包成所述渲染引擎支持的格式。Pack the test resources into a format supported by the rendering engine.
  13. 根据权利要求1至12任一项所述的方法,其中,包括以下至少之一:所述渲染引擎的测试方法是在所述渲染引擎集成在应用程序之前执行的;The method according to any one of claims 1 to 12, wherein at least one of the following is included: the testing method of the rendering engine is executed before the rendering engine is integrated into an application program;
    所述渲染引擎用于集成在增强现实的应用程序中。The rendering engine is intended to be integrated in augmented reality applications.
  14. 一种渲染引擎的测试装置,包括:A test device for a rendering engine, comprising:
    获取模块,配置为获取渲染引擎的渲染性能参数,其中,所述渲染性能参数是利用测试设备运行所述渲染引擎对测试资源进行渲染得到的;An acquisition module configured to acquire rendering performance parameters of a rendering engine, wherein the rendering performance parameters are obtained by using a test device to run the rendering engine to render test resources;
    处理模块,配置为基于所述渲染性能参数进行预设处理,其中,所述预设处理用于反映所述渲染引擎的性能。A processing module configured to perform preset processing based on the rendering performance parameter, wherein the preset processing is used to reflect the performance of the rendering engine.
  15. 根据权利要求14所述的装置,其中,所述获取模块,配置为获取若干组渲染性能参数,每组所述渲染性能参数是利用一所述测试设备运行一所述渲染引擎对一所述测试资源进行渲染得到的,不同组的所述渲染性能参数对应的所述测试设备、所述渲染引擎和所述测试资源中的至少一者不同;The device according to claim 14, wherein the acquisition module is configured to acquire several sets of rendering performance parameters, and each set of rendering performance parameters is performed by using a test device to run a rendering engine to a test resources obtained by rendering, different sets of rendering performance parameters correspond to at least one of the test equipment, the rendering engine, and the test resources;
    所述处理配置,配置为选择至少一组所述渲染性能参数作为目标性能参数,并执行以下至少之一:显示各组所述目标性能参数;对各组所述目标性能参数进行比对分析,得到所述目标性能参数对应的所述渲染引擎的性能分析结果;其中,所述至少一组目标性能参数对应的所述测试设备、渲染引擎和测试资源类别中的至少一者相同。The processing configuration is configured to select at least one set of rendering performance parameters as target performance parameters, and perform at least one of the following: displaying each set of target performance parameters; performing comparative analysis on each set of target performance parameters, A performance analysis result of the rendering engine corresponding to the target performance parameter is obtained; wherein at least one of the test device, rendering engine and test resource category corresponding to the at least one set of target performance parameters is the same.
  16. 根据权利要求15所述的装置,其中,每个测试资源作为一个测试资源类别,或每级别的测试资源作为一个测试资源类别;所述处理配置,配置为响应于用户对所述测试设备、渲染引擎和测试资源类别中的至少一者的选择操作,将与所述用户的选择相关的所述渲染性能参数作为所述目标性能参数。The apparatus according to claim 15, wherein each test resource is used as a test resource category, or each level of test resources is used as a test resource category; The selection operation of at least one of the engine and the test resource category uses the rendering performance parameter related to the user's selection as the target performance parameter.
  17. 根据权利要求15或16所述的装置,其中,所述装置还包括:The device according to claim 15 or 16, wherein the device further comprises:
    评价模块,配置为按照预设评价策略,对所述测试设备利用所述渲染引擎渲染所述测试资源的效果进行评价,得到渲染效果评分;或者,获取用户输入的用户效果评分,基于所述用户输入的用户效果评分得到所述渲染效果评分,其中,所述用户效果评分是评价人员根据所述预设评价策略对所述测试设备运行渲染引擎对所述测试资源进行渲染的效果进行评价得到的;The evaluation module is configured to evaluate the effect of the test device rendering the test resource by using the rendering engine according to a preset evaluation strategy to obtain a rendering effect score; or obtain a user effect score input by the user, based on the user The input user effect score is obtained to obtain the rendering effect score, wherein the user effect score is obtained by an evaluator evaluating the effect of rendering the test resource by the rendering engine running on the test device according to the preset evaluation strategy ;
    确定模块,配置为将所述渲染效果评分作为所述渲染性能参数。A determining module configured to use the rendering effect score as the rendering performance parameter.
  18. 根据权利要求17所述的装置,其中,所述评价模块,配置为获取至少一个测试条件分别对应的测试评分,其中,不同测试条件对应的以下至少之一不同:测试环境、测试人员对所述测试设备的操作中的至少一者;将所述至少一个测试条件分别对应的测试评分作为所述渲染效果评分,或者,对所述至少一个测试条件分别对应的测试评分进行分析处理,得到所述渲染效果评分。The device according to claim 17, wherein the evaluation module is configured to obtain test scores corresponding to at least one test condition, wherein at least one of the following corresponding to different test conditions is different: the test environment, the tester's evaluation of the At least one of the operations of the test device; using the test scores corresponding to the at least one test condition as the rendering effect scores, or analyzing and processing the test scores corresponding to the at least one test condition to obtain the Rendering rating.
  19. 根据权利要求17或18所述的装置,其中,所述评价模块,配置为融合多个所述评价人员评价的多个用户效果评分,得到所述渲染效果评分。The device according to claim 17 or 18, wherein the evaluation module is configured to fuse multiple user effect scores evaluated by multiple evaluators to obtain the rendering effect score.
  20. 根据权利要求18或19所述的装置,其中,所述测试环境由光线、场所和场景存在的移动对象数量中的至少一者决定,所述测试人员对所述测试设备的操作包括使所述测试设备静止、进行预设运动和位于拐弯处中的至少一者;The device according to claim 18 or 19, wherein the test environment is determined by at least one of light, location and the number of moving objects in the scene, and the operation of the tester on the test equipment includes making the the test device is at least one of stationary, performing a preset motion, and positioned on a bend;
    所述评价模块,配置为对于每个所述测试条件,分别从至少一个渲染标准对所述测试条件下进行的所述渲染进行评价,得到所述测试评分;所述至少一个渲染标准包括渲染的所述测试资源的指向、抖动、偏移和光照中的至少一者。The evaluation module is configured to, for each of the test conditions, respectively evaluate the rendering performed under the test conditions from at least one rendering standard to obtain the test score; the at least one rendering standard includes rendering At least one of orientation, jitter, offset and illumination of the test resource.
  21. 根据权利要求14至20任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 14 to 20, wherein the device further comprises:
    渲染模块,配置为在获取渲染引擎的渲染性能参数之前,获取至少一个测试资源;分别运行至少一个所述渲染引擎对每个所述测试资源进行渲染;或者,将所述测试资源分别发送给至少一个测试设备,每个所述测试设备分别运行至少一个渲染引擎对所 述测试资源进行渲染。The rendering module is configured to obtain at least one test resource before obtaining the rendering performance parameters of the rendering engine; respectively run at least one of the rendering engines to render each of the test resources; or send the test resources to at least A test device, each of which runs at least one rendering engine to render the test resources.
  22. 根据权利要求21所述的装置,其中,所述至少一个测试资源包括第一数量个静态模型和第二数量个动态模型;所述至少一个测试资源划分若干级别的所述测试资源,不同级别的测试资源所需的渲染能力不同;所述渲染模块,配置为将测试资源分别发送给至少一个测试设备之前,将所述测试资源打包成所述渲染引擎支持的格式。The apparatus according to claim 21, wherein said at least one test resource comprises a first number of static models and a second number of dynamic models; said at least one test resource is divided into several levels of said test resources, different levels of The rendering capabilities required by the test resources are different; the rendering module is configured to package the test resources into a format supported by the rendering engine before sending the test resources to at least one test device respectively.
  23. 一种处理设备,所述设备包括处理器和存储器,所述存储器用于存储程序数据,所述处理器用于执行所述程序数据以实现如权利要求1-13中任一项所述的方法。A processing device, the device comprising a processor and a memory, the memory is used to store program data, and the processor is used to execute the program data to implement the method according to any one of claims 1-13.
  24. 一种渲染引擎的测试系统,所述测试系统包括处理设备和测试设备,其中,所述测试设备用于运行所述渲染引擎对测试资源进行渲染得到渲染性能参数,所述处理设备用于执行如权利要求1-13中任一项所述的方法。A test system for a rendering engine, the test system includes a processing device and a test device, wherein the test device is used to run the rendering engine to render test resources to obtain rendering performance parameters, and the processing device is used to perform such as The method of any one of claims 1-13.
  25. 一种计算机可读存储介质,所述计算机可读存储介质用于存储程序数据,所述程序数据能够被执行,用以实现如权利要求1-13中任一项所述的方法。A computer-readable storage medium, the computer-readable storage medium is used to store program data, and the program data can be executed to implement the method according to any one of claims 1-13.
  26. 一种计算机程序,包括计算机可读代码,在计算机可读代码在设备上运行的情况下,设备中的处理器执行用于实现权利要求1至13中任一所述的方法。A computer program comprising computer readable codes, in case the computer readable codes run on the device, the processor in the device executes to implement the method according to any one of claims 1 to 13.
  27. 一种计算机程序产品,配置为存储计算机可读指令,所述计算机可读指令被执行时使得计算机执行权利要求1至13中任一所述的方法。A computer program product configured to store computer-readable instructions that, when executed, cause a computer to perform the method of any one of claims 1-13.
PCT/CN2022/112298 2022-01-27 2022-08-12 Rendering engine testing method and apparatus, device, system, storage medium, computer program and computer program product WO2023142434A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210103074.2A CN114445545A (en) 2022-01-27 2022-01-27 Method, device, equipment, system and medium for testing rendering engine
CN202210103074.2 2022-01-27

Publications (1)

Publication Number Publication Date
WO2023142434A1 true WO2023142434A1 (en) 2023-08-03

Family

ID=81370304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112298 WO2023142434A1 (en) 2022-01-27 2022-08-12 Rendering engine testing method and apparatus, device, system, storage medium, computer program and computer program product

Country Status (2)

Country Link
CN (1) CN114445545A (en)
WO (1) WO2023142434A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116841914A (en) * 2023-09-01 2023-10-03 星河视效科技(北京)有限公司 Method, device, equipment and storage medium for calling rendering engine

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114445545A (en) * 2022-01-27 2022-05-06 深圳市慧鲤科技有限公司 Method, device, equipment, system and medium for testing rendering engine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080317347A1 (en) * 2007-06-20 2008-12-25 Chee Boon Lim Rendering engine test system
CN104809061A (en) * 2015-04-09 2015-07-29 百度在线网络技术(北京)有限公司 Regression testing method and device
CN107368410A (en) * 2017-06-14 2017-11-21 腾讯科技(深圳)有限公司 The performance test methods and device of game engine, storage medium and electronic installation
CN107506306A (en) * 2017-09-28 2017-12-22 网易(杭州)网络有限公司 The method of testing and device of fine arts resource
CN110457218A (en) * 2019-08-07 2019-11-15 Oppo广东移动通信有限公司 Game engine test method, device, storage medium and electronic equipment
CN114445545A (en) * 2022-01-27 2022-05-06 深圳市慧鲤科技有限公司 Method, device, equipment, system and medium for testing rendering engine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080317347A1 (en) * 2007-06-20 2008-12-25 Chee Boon Lim Rendering engine test system
CN104809061A (en) * 2015-04-09 2015-07-29 百度在线网络技术(北京)有限公司 Regression testing method and device
CN107368410A (en) * 2017-06-14 2017-11-21 腾讯科技(深圳)有限公司 The performance test methods and device of game engine, storage medium and electronic installation
CN107506306A (en) * 2017-09-28 2017-12-22 网易(杭州)网络有限公司 The method of testing and device of fine arts resource
CN110457218A (en) * 2019-08-07 2019-11-15 Oppo广东移动通信有限公司 Game engine test method, device, storage medium and electronic equipment
CN114445545A (en) * 2022-01-27 2022-05-06 深圳市慧鲤科技有限公司 Method, device, equipment, system and medium for testing rendering engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116841914A (en) * 2023-09-01 2023-10-03 星河视效科技(北京)有限公司 Method, device, equipment and storage medium for calling rendering engine

Also Published As

Publication number Publication date
CN114445545A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2023142434A1 (en) Rendering engine testing method and apparatus, device, system, storage medium, computer program and computer program product
US10885713B2 (en) Method, apparatus, and system for generating an AR application and rendering an AR instance
CN108875633B (en) Expression detection and expression driving method, device and system and storage medium
US9898844B2 (en) Augmented reality content adapted to changes in real world space geometry
US20150185825A1 (en) Assigning a virtual user interface to a physical object
CN109688451B (en) Method and system for providing camera effect
US11893701B2 (en) Method for simulating natural perception in virtual and augmented reality scenes
US9799143B2 (en) Spatial data visualization
CN110363839B (en) Model rendering method, device, computer equipment and storage medium
US20150187137A1 (en) Physical object discovery
US20220214797A1 (en) Virtual image control method, apparatus, electronic device and storage medium
US12045921B2 (en) Automated content curation for generating composite augmented reality content
US20160048515A1 (en) Spatial data processing
Lu et al. Attributes of subtle cues for facilitating visual search in augmented reality
CN115690496A (en) Real-time regional intrusion detection method based on YOLOv5
CN110248235B (en) Software teaching method, device, terminal equipment and medium
CN116485973A (en) Material generation method of virtual object, electronic equipment and storage medium
US11657568B2 (en) Methods and systems for augmented reality tracking based on volumetric feature descriptor data
CN107770580B (en) Video image processing method and device and terminal equipment
CN117237514A (en) Image processing method and image processing apparatus
KR20180080618A (en) Method and apparatus for realistic rendering based augmented reality
CN113496513A (en) Target object detection method and device
CN111787081B (en) Information processing method based on Internet of things interaction and intelligent communication and cloud computing platform
CN114187427A (en) Method for presenting virtual space based on iOS (Internet operating System) end ARkit
CN112101387A (en) Salient element identification method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923238

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE