Particle effect performance index acquisition method and device, equipment and storage medium
By superimposing preset values when drawing pixel points in the image frame of particle special effects, the problem of inaccurate acquisition of particle special effects performance indicators in the prior art is solved, and accurate analysis and optimization of particle special effects performance is achieved.
Patent Information
- Application Number
- CN202310527403.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-05-09
AI Technical Summary
In the prior art, it is difficult to accurately estimate the number of repeated drawings by observing the overlap of the particle special effects by the naked eye, resulting in low accuracy in obtaining particle special effects performance indicators.
By obtaining the particle effect file, calling the rendering program to draw the pixel points in the image frame, the preset value is superimposed on the color value, and the performance indicators of the particle effect are determined based on the color value and the preset value after rendering. Including the number of repeated drawings, screen-to-body ratio, pixel fill rate, etc.
It improves the accuracy of particle special effect performance indicators, can accurately determine the repeated drawing of particle special effect and performance indicators, and enhances the analysis and optimization capabilities of particle special effect performance.
Smart Images

Figure CN118941683A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, equipment and storage medium for obtaining performance indicators of particle special effects. Background Art
[0002] Particle effects are special effects technology used in computer graphics to simulate specific phenomena or visual effects. They can achieve realistic, natural and random effects and are widely used in image processing, video editing, game effects and other fields. Before applying particle effects, developers can analyze the performance of particle effects by obtaining performance indicators of particle effects. One of the performance indicators of particle effects is the number of repeated drawing.
[0003] In the related art, the number of repeated drawing times of particle effects is estimated by visually observing the overlapping of triangles in particle effects through the view mode of a rendering editor. However, it is difficult to obtain the exact number of repeated drawing times, so the accuracy of obtaining performance indicators is low. Summary of the invention
[0004] The embodiment of the present application provides a method, device, equipment and storage medium for obtaining performance indicators of particle special effects, which can accurately determine the performance indicators of particle special effects and improve the accuracy of obtaining the performance indicators of particle special effects. The technical solution is as follows:
[0005] In one aspect, a method for obtaining performance indicators of particle special effects is provided, the method comprising:
[0006] Obtain a particle special effect file, where the particle special effect file is used to generate a particle special effect, where the particle special effect includes a plurality of particles;
[0007] Calling a rendering program to render based on the particle special effect file to obtain dynamic resources of the particle special effect, wherein the dynamic resources include a plurality of image frames for presenting the particle special effect, and the rendering program is used to superimpose a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame;
[0008] Based on the color values of a plurality of pixels in the image frame after rendering and the preset value, a performance index of the particle special effect is determined, and the performance index is used to indicate the performance of the particle special effect.
[0009] On the other hand, a device for obtaining performance indicators of particle special effects is provided, the device comprising:
[0010] A file acquisition module, used to acquire a particle special effect file, wherein the particle special effect file is used to generate a particle special effect, and the particle special effect includes a plurality of particles;
[0011] A rendering module, used for calling a rendering program, rendering based on the particle special effect file, and obtaining a dynamic resource of the particle special effect, wherein the dynamic resource includes a plurality of image frames for presenting the particle special effect, and the rendering program is used for superimposing a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame;
[0012] The performance index determination acquisition module is used to determine the performance index of the particle special effect based on the color values of multiple pixels in the image frame after rendering and the preset value, and the performance index is used to indicate the performance of the particle special effect.
[0013] Optionally, the rendering program further includes a first adjustment factor and a second adjustment factor, wherein the first adjustment factor is used to adjust the proportion of the color value of the pixel itself, and the second adjustment factor is used to adjust the proportion of the color value of the pixel superimposed this time;
[0014] The rendering module is used to:
[0015] For any image frame rendered based on the particle special effect file, calling the rendering program, performing weighted summation on the current color value of the pixel point in the image frame and the preset value based on the first adjustment factor and the second adjustment factor, and determining the value after the weighted summation as the color value of the pixel point after this drawing;
[0016] The first adjustment factor and the second adjustment factor are both equal to 1.
[0017] Optionally, the performance indicator includes the number of repeated drawing times of each image frame of the particle special effect; the performance indicator determination acquisition module is used to:
[0018] Determine the ratio between the color value of each pixel in the image frame after rendering and the preset value as the number of repeated drawing times for each pixel in the image frame;
[0019] An average value of the repeated drawing times of a plurality of pixel points in the image frame is determined as the repeated drawing times of the image frame.
[0020] Optionally, the rendering module is used to:
[0021] Creating an empty scene, wherein the empty scene does not contain any object;
[0022] The rendering program is called to render in the empty scene based on the particle special effect file to obtain a dynamic resource of the particle special effect, wherein the image frame in the dynamic resource is a frame of the particle special effect in the empty scene.
[0023] Optionally, the performance index of the particle special effect also includes a screen ratio of the particle special effect in each image frame; and the performance index determination acquisition module is further used to:
[0024] For any image frame, determine a first number and a second number, wherein the first number is the number of pixels rendered in the image frame, and the second number is the total number of pixels in the image frame;
[0025] The ratio between the second number and the first number is determined as the screen-to-screen ratio of the particle special effect in the image frame, where the screen-to-screen ratio represents the ratio of the particle special effect in the image frame.
[0026] Optionally, the performance index of the particle special effect further includes a pixel fill rate of each image frame of the particle special effect; and the performance index determination acquisition module is further used to:
[0027] For any image frame, determining a first number, where the first number is the number of rendered pixels in the image frame;
[0028] The first number is determined as a pixel fill rate of the image frame, where the pixel fill rate represents the number of pixels rendered in a unit time.
[0029] Optionally, the file acquisition module is used to:
[0030] Searching for files in a target format in a specified directory, wherein any particle special effect file belongs to the target format;
[0031] Determine, among the found files belonging to the target format, a file containing a particle component, wherein the particle component is used to generate particles;
[0032] The file containing the particle component is determined as the particle special effect file.
[0033] Optionally, the performance indicator further includes at least one of the number of vertices, the number of triangles or the number of rendering times of the particle special effect; and the performance indicator determination acquisition module is further used to:
[0034] Acquire a data acquisition script, wherein the data acquisition script includes an object declaration code, and the object declaration code is used to instruct to acquire at least one of the number of vertices, the number of triangles, or the number of rendering times;
[0035] In the process of rendering based on the particle special effect file, the data acquisition script is executed to sequentially obtain at least one of the number of vertices, the number of triangles or the number of rendering times of the particle special effect in each image frame.
[0036] Optionally, the performance indicator further includes the number of particles in the particle special effect; and the performance indicator determination acquisition module is further used to:
[0037] Determine a particle processing function, wherein the particle processing function is used to calculate the number of particles generated based on the particle special effect file;
[0038] Generate a data acquisition device, bind the data acquisition device to the particle processing function, and the data acquisition device is used to acquire data generated by the particle processing function;
[0039] In the process of rendering based on the particle special effect file, the data acquisition device is called to acquire the number of particles calculated by the particle processing function.
[0040] Optionally, the device further comprises a data display module, configured to:
[0041] Obtaining performance indicators of the particle special effects in the multiple image frames, the performance indicators comprising at least one of the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components;
[0042] Determine an image frame that exceeds the standard based on the performance indicators of the multiple image frames, where the image frame that exceeds the standard refers to an image frame that meets at least one exceeding standard condition, where the exceeding standard condition refers to a condition where the performance indicator of the image frame does not meet the standard performance indicator;
[0043] The performance indicators of the multiple image frames and the exceeding conditions satisfied by the exceeding image frames are displayed.
[0044] Optionally, the data display module is used to:
[0045] Prioritize multiple exceedance conditions;
[0046] Displaying the performance indicators of a plurality of exceeding standard image frames and the satisfied exceeding standard conditions according to the priority order of the plurality of exceeding standard conditions;
[0047] The performance indicators of other image frames among the multiple image frames except the multiple exceeding-standard image frames are displayed.
[0048] On the other hand, a computer device is provided, comprising a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the method for obtaining performance indicators of particle special effects as described in the above aspects.
[0049] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the method for obtaining performance indicators of particle special effects as described in the above aspects.
[0050] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is loaded and executed by a processor to implement the operations performed by the method for obtaining performance indicators of particle special effects as described in the above aspects.
[0051] In the solution provided by the embodiment of the present application, the situation of repeatedly drawing pixels when rendering particle special effects can reflect the performance of the particle special effects. In order to obtain the performance index of the particle special effects, when rendering is performed based on the particle special effects file, a rendering program is called to render the particle special effects. Since the rendering program performs color drawing on the pixel where the particle is located by superimposing a fixed preset value on the color value of the pixel, then according to the final color value of the pixel in the image frame of the particle special effect obtained by rendering, it can be determined how many times the preset value is superimposed on the pixel, that is, it is determined how many times the pixel is repeatedly drawn. Therefore, based on the color value and preset value of the pixel after the rendering is completed, the performance index of the particle special effect related to the repeated drawing situation can be accurately determined, thereby improving the accuracy of obtaining the performance index of the particle special effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0053] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0054] Figure 2 It is a flow chart of a method for obtaining the number of repeated drawing times of a particle special effect provided in an embodiment of the present application;
[0055] Figure 3 It is a flow chart of a method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0056] Figure 4 is a schematic diagram of a hybrid rendering method for particle special effects provided in an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of a scene parameter setting method provided in an embodiment of the present application;
[0058] Figure 6 is a schematic diagram of a particle special effects rendering method provided in an embodiment of the present application;
[0059] Figure 7 It is a schematic diagram of obtaining performance indicator dimensions provided by an embodiment of the present application;
[0060] Figure 8 is a schematic diagram of a method for obtaining the number of repeated drawing times provided in an embodiment of the present application;
[0061] Fig. 9 is a schematic diagram of a method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0062] Fig.10 This is a flow chart for determining the number of repeated drawing times, screen ratio and pixel fill rate provided by an embodiment of the present application;
[0063] Fig.11 This is a flow chart for determining the number of vertices, the number of triangles, and the number of rendering times provided in an embodiment of the present application;
[0064] Fig.12 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0065] Fig.13 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0066] Fig.14 is a schematic diagram of a performance indicator display interface provided in an embodiment of the present application;
[0067] Fig.15 is a schematic diagram of another performance indicator display interface provided in an embodiment of the present application;
[0068] Fig.16 is a schematic diagram of another performance indicator display interface provided in an embodiment of the present application;
[0069] Fig.17 is a flow chart of a performance indicator display method provided in an embodiment of the present application;
[0070] Fig.18 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0071] Fig.19 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0072] Fig. 20It is a structural schematic diagram of a performance indicator acquisition device for particle special effects provided in an embodiment of the present application;
[0073] Fig.21 It is a structural schematic diagram of another device for obtaining performance indicators of particle special effects provided in an embodiment of the present application;
[0074] Fig. 22 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0075] Fig.23 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0077] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, a first adjustment factor may be referred to as a second adjustment factor, and similarly, a second adjustment factor may be referred to as a first adjustment factor.
[0078] Among them, at least one refers to one or more than one, for example, at least one image frame can be one image frame, two image frames, three image frames, or any other integer greater than or equal to one. Multiple refers to two or more than two, for example, multiple image frames can be two image frames, three image frames, or any other integer greater than or equal to two. Each refers to each of at least one, for example, each image frame refers to each image frame in the multiple image frames. If the multiple image frames are 3 image frames, each image frame refers to each image frame in the 3 image frames.
[0079] It can be understood that in the implementation mode of the present application, related data such as particle special effects files and performance indicators of particle special effects are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0080] The embodiment of the present application provides a method for obtaining performance indicators of particle special effects, and the execution subject is a computer device. In one possible implementation, the computer device is a terminal, and the terminal can be a variety of devices such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal. In one possible implementation, the computer device is a server, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0081] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes a resource processing device 101 and a resource display device 102. A communication connection is established between the resource processing device 101 and the resource display device 102 via a wired or wireless method. The resource processing device 101 can be a server or a terminal, and the resource display device 102 can be a terminal.
[0082] Among them, the resource processing device 101 is used to obtain the particle special effects file, call the rendering program, render based on the particle special effects file, and collect performance indicators of the particle special effects during the rendering process. For example, the performance indicators include the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components. After collecting the performance indicators, the resource processing device 101 sends the performance indicators of the particle special effects to the resource display device 102, and the resource display device 102 displays the performance indicators of the particle special effects for users to view.
[0083] The method for obtaining performance indicators of particle special effects provided in the embodiment of the present application can be applied to any scenario where performance indicators of particle special effects need to be obtained.
[0084] Particle effects are special effects technology used in computer graphics to simulate specific phenomena or visual effects. They can achieve real, natural and random effects and are widely used in image processing, video editing, game special effects and other fields. For example, particle effects can be used to simulate abstract visual effects such as fire, explosions, smoke, water flow, sparks, fallen leaves, clouds, fog, snow, dust, meteor trails or luminous tracks. After the developer has produced the particle effects, before actually putting the particle effects into use, the developer can also obtain the performance indicators of the particle effects to analyze the performance of the particle effects so as to further optimize and adjust them according to the current performance of the particle effects. Then, the method provided in the embodiment of the present application can be used to collect the performance indicators of the particle effects during the rendering of the particle effects, and the developer can grasp the performance of the particle effects based on the performance indicators of the particle effects.
[0085] Figure 2 is a flowchart of a method for obtaining the number of repeated drawing times of a particle special effect provided in an embodiment of the present application. The embodiment of the present application is executed by a computer device. Figure 2 , the method comprising:
[0086] 201. A computer device obtains a particle special effect file, where the particle special effect file is used to generate a particle special effect, and the particle special effect includes a plurality of particles.
[0087] Particle effects are special effects technology used in computer graphics to simulate specific phenomena or visual effects. They can achieve realistic, natural and random effects and are widely used in image processing, video editing, game special effects and other fields. Particle effects include multiple dynamic particles, which constitute particle effects. Optionally, multiple particles of particle effects may overlap each other during the movement.
[0088] The particle effects file is used to generate particle effects. For example, the particle effects file specifies the size, quantity, position, motion trajectory, shape, etc. of the particles in the particle effects.
[0089] 202. The computer device calls a rendering program to render based on the particle special effects file to obtain dynamic resources of the particle special effects, where the dynamic resources include multiple image frames for presenting the particle special effects. The rendering program is used to superimpose a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame.
[0090] The computer device determines a rendering program, which is used to perform color drawing for pixels in the image frame during the process of rendering particle special effects. The rendering program is also called a shader. The computer device generates particle special effects based on the particle special effects file, and calls the rendering program to perform color drawing on the generated particle special effects. Since the particle special effect is a dynamic special effect, the rendering program needs to perform color drawing on each frame of the particle special effect, thereby obtaining multiple image frames. The multiple image frames are dynamic resources of the particle special effect. The dynamic particle special effect can be presented by continuously playing the multiple image frames.
[0091] Among them, the rendering program needs to draw the color of the pixel where each particle in the image frame is located. For example, if two particles among 10 particles overlap in the same pixel, for this pixel, the rendering program needs to first draw the color of the first particle on the pixel, and then draw the color of the second particle on the pixel, so the pixel will be drawn twice.
[0092] In one possible implementation, the particle special effects file itself corresponds to a rendering program, and the rendering program is used to render based on the particle special effects file to obtain particle special effects with desired colors. The purpose of the embodiment of the present application is to obtain the performance indicators of the particle special effects during the rendering process, so there is no need to pay attention to the color of the rendered particle special effects. Therefore, a rendering program can be customized so that each time the rendering program draws the color of the pixel where the particle is located, a fixed preset value is superimposed on the current color value. The customized rendering program is used instead of the rendering program of the particle special effects file itself for rendering, so as to grasp the changes in the color value of the pixel when the pixel is drawn.
[0093] 203. The computer device determines a performance index of the particle special effect based on the color values of multiple pixels in the image frame after rendering and a preset value, where the performance index is used to indicate the performance of the particle special effect.
[0094] In the process of rendering particle special effects, the repeated drawing of pixels can reflect the performance of the particle special effects. In the embodiment of the present application, when color is drawn on the pixels where the particles are located in the image frame, a fixed preset value is superimposed on the color value of the pixel. Then, based on the color value finally rendered and the preset value, the repeated drawing of the pixels in the image frame can be determined, thereby determining the performance index of the particle special effects.
[0095] The method provided in the embodiment of the present application can reflect the performance of the particle special effects by repeatedly drawing pixels when rendering particle special effects. In order to obtain the performance index of the particle special effects, when rendering is performed based on the particle special effects file, a rendering program is called to render the particle special effects. Since the rendering program performs color drawing on the pixel where the particle is located by superimposing a fixed preset value on the color value of the pixel, then according to the final color value of the pixel in the image frame of the particle special effect obtained by rendering, it can be determined how many times the preset value is superimposed on the pixel, that is, it is determined how many times the pixel is repeatedly drawn. Therefore, based on the color value and preset value of the pixel after the rendering is completed, the performance index of the particle special effect related to the repeated drawing situation can be accurately determined, thereby improving the accuracy of obtaining the performance index of the particle special effect.
[0096] Above Figure 3 The embodiment briefly describes the process of obtaining the performance index of the particle special effect, wherein the performance index of the particle special effect may include the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components, etc. The process of obtaining the performance index is detailed in the following Figure 3 The embodiment shown.
[0097] Figure 3 is a flowchart of a method for obtaining performance indicators of particle special effects provided in an embodiment of the present application. The embodiment of the present application is executed by a computer device. Figure 3 , the method comprising:
[0098] 301. A computer device obtains a particle special effect file, where the particle special effect file is used to generate a particle special effect, and the particle special effect includes a plurality of particles.
[0099] In a possible implementation, after generating a particle special effect file, the computer device stores the particle special effect file in a designated directory, where other types of files are also stored. When receiving a request to obtain a performance indicator of a particle special effect, the computer device searches for a file in a target format in the designated directory, and determines a file containing a particle component among the files in the target format found, where the particle component is used to generate particles. The computer device determines the file containing the particle component as a particle special effect file.
[0100] Among them, any particle special effect file belongs to the target format, for example, the file suffix of the target format is ".prefab". In addition to particle special effect files, there are other types of files belonging to the target format. Considering that the particles in the particle special effect are generated by particle components, the particle special effect file must include particle components. Therefore, after the computer device finds the file belonging to the target format, it is also necessary to determine whether the file includes particle components. If the file includes particle components, it can be determined that the file is a particle special effect file. If the file does not include particle components, it can be determined that the file is not a particle special effect file.
[0101] Optionally, the computer device traverses the specified directory, and for the currently traversed file, if the file is in the target format and includes a particle component, the computer device determines that the file is a particle special effect file, and each time a particle special effect file is found, the computer device adds the particle special effect file to the particle queue to be processed until the traversal of all files in the specified directory is completed. The computer device then processes each particle special effect file in the particle queue in turn to collect the performance indicators of the particle special effects generated by each particle special effect file.
[0102] 302. The computer device calls a rendering program to render based on the particle special effects file to obtain dynamic resources of the particle special effects, where the dynamic resources include multiple image frames for presenting the particle special effects. The rendering program is used to superimpose a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame.
[0103] After obtaining the particle special effects file, the computer device determines the specified rendering program. Each time the rendering program performs color drawing, a fixed preset value will be superimposed. Since the purpose of the embodiment of the present application is to obtain the performance index of the particle special effects, the rendered particle special effects will not be put into practical application, so there is no need to care about the color of the rendered particle special effects. Therefore, the preset value can be any value, and the developer can flexibly set it according to their own needs. In addition, for a rendered image frame, the number of times the rendering program performs color drawing has nothing to do with the preset value, but is related to the number of pixels where the particles are located. If a pixel is covered with two particles, the pixel needs to be drawn twice, then the pixel is repeatedly drawn, and the number of repeated drawing is twice. The pixel is repeatedly drawn means that the same pixel is repeatedly drawn in color in an image frame. In the rendering process of particle special effects, if the pixel is repeatedly drawn many times, it will bring greater processing pressure to the GPU (Graphics Processing Unit, graphics processor), so the repeated drawing situation can reflect the performance of particle special effects.
[0104] In one possible implementation, the computer device can implement rendering based on the particle special effects file through UE4 (Unreal Engine 4) or Unity3D (game engine), which is not limited in this embodiment of the present application.
[0105] In a possible implementation, the rendering program further includes a first adjustment factor and a second adjustment factor, wherein the first adjustment factor is used to adjust the proportion of the color value of the pixel itself, and the second adjustment factor is used to adjust the proportion of the color value of the pixel superimposed this time. The first adjustment factor and the second adjustment factor are both equal to 1. For any image frame rendered based on the particle special effect file, the computer device calls the rendering program, and based on the first adjustment factor and the second adjustment factor, performs a weighted summation of the current color value of the pixel in the image frame and a preset value, and determines the value after the weighted summation as the color value of the pixel after this drawing.
[0106] Optionally, the rendering program is a custom rendering program, which mainly sets the rendering channel of the particle special effect, sets the adjustment factor, and sets the color value generated by the pixel shader, so that the rendering program superimposes a fixed preset value each time the color is drawn. Among them, the rendering channel of the rendering program can be set in the transparent channel, the first adjustment factor and the second adjustment factor are set to 1, and the color value generated by the pixel shader is set to a fixed preset value, so as to subsequently count the number of color drawings. The rendering program can be applied to rendering any particle special effect. Among them, the process of color drawing can be expressed by the following formula:
[0107] Colar1=M*a+Colar2*b;
[0108] Color1 represents the color value after the current color drawing, M represents the preset value, a represents the first adjustment factor, Colar2 represents the original color value of the pixel, and b represents the second adjustment factor. Since the first adjustment factor and the second adjustment factor are both set to 1 in the embodiment of the present application, the color drawing process is equivalent to superimposing the preset value on the original color value.
[0109] The color value after the pixel is drawn can be stored in the frame buffer. The process of mixed rendering of particle special effects in the embodiment of the present application can be referred to. Figure 4 In the flowchart shown, for example, the color value of the pixel is an RGB color value, the first adjustment factor and the second adjustment factor in the rendering program are both set to 1, and the preset value generated by the pixel shader in the rendering program is (40,0,0), that is, the R channel color value is superimposed by 40, the G channel color value is superimposed by 0, and the B channel color value is superimposed by 0. Figure 4As shown in the figure, the R channel color value of the buffer after the first drawing is 40, the R channel color value of the buffer after the second drawing is 80, the R channel color value of the buffer after the third drawing is 120, the R channel color value of the buffer after the fourth drawing is 160, and the R channel color value of the buffer after the fifth drawing is 200. By passing a fixed R channel color value to the rendering program and combining the above color drawing operations, the color value of each pixel in the image frame is finally obtained.
[0110] In the embodiment of the present application, the two adjustment factors of the rendering program are set to 1. Then, during the rendering process, each time the color of a pixel is drawn, a fixed preset value is superimposed on the original color value. Since the color drawing method is single and simple, such a color drawing method is conducive to the subsequent statistics of the number of repeated drawing times of each pixel in the image frame.
[0111] In a possible implementation, a computer device creates an empty scene that does not contain any object. The computer device calls a rendering program to render in the empty scene based on a particle special effect file to obtain a dynamic resource of the particle special effect, wherein an image frame in the dynamic resource is a frame of the particle special effect in the empty scene.
[0112] The rendering of particle effects needs to be attached to the scene. The computer device creates an empty scene to render the particle effects. The empty scene does not include any objects. When creating an empty scene, you only need to set the parameters related to scene management and the parallel light in the scene. Figure 5 is a schematic diagram of a scene parameter setting method provided in an embodiment of the present application, such as Figure 5 As shown, developers can add scene management parameters and parallel light to the empty scene in the settings menu.
[0113] In an embodiment of the present application, the computer device renders the particle special effect in an empty scene, so that the rendering process of the particle special effect will not be interfered with by other objects in the scene. Therefore, when obtaining the performance indicators of the particle special effect during the rendering process, it will not be interfered with by other objects in the scene, which is conducive to ensuring the accuracy of the obtained performance indicators.
[0114] Figure 6 is a schematic diagram of a particle special effects rendering method provided in an embodiment of the present application, such as Figure 6 As shown, the computer device first instantiates the particle special effects according to the particle special effects file, and then binds the particle special effects to the performance acquisition script. During the rendering process, the performance data is collected through the performance acquisition script, that is, the performance indicators of the particle special effects are obtained. During the rendering process, it is determined in real time whether the rendering is completed. If the rendering is not completed, the performance data of the particle special effects continues to be collected. If the rendering is completed, the collected performance data is separated and stored, and then the instantiated particle special effects are destroyed.
[0115] Among them, the performance acquisition script is used to automatically obtain the performance indicators of particle special effects during the process of rendering particle special effects. For example, the performance acquisition script can be automatically bound to each instantiated particle special effect in the form of a component. After the particle special effect is instantiated, the program automatically binds it. As the particle special effect is rendered, the performance indicators of the particle special effect are collected in real time for each frame until the rendering of the particle special effect is completed, and then the collected performance indicators are analyzed and stored. After completion, they are destroyed together with the instantiated particle special effect.
[0116] Figure 7 is a schematic diagram of obtaining performance indicator dimensions provided by an embodiment of the present application, such as Figure 7 As shown, the performance acquisition script is divided into three major functions, namely, obtaining the number of repeated drawing, screen ratio and pixel fill rate in the performance indicators of particle effects, and obtaining the number of vertices, number of triangles and rendering times in the performance indicators of particle effects, as well as obtaining the number of particles and number of particle components in the performance indicators of particle effects. The detailed process can be found in the following steps.
[0117] 303. The computer device determines the number of repetitions of drawing each image frame of the particle special effect based on the color values of multiple pixels in the rendered image frame and a preset value.
[0118] The performance indicators of particle effects include the number of repeated drawing times of each image frame of particle effects. The number of repeated drawing times of an image frame refers to the average number of repeated drawing times of multiple pixels in an image frame. The number of repeated drawing times of a pixel refers to the number of times the color of the pixel is drawn in an image frame. The computer device determines the number of repeated drawing times of each pixel based on the color value of each pixel in the rendered image frame and a preset value, and then determines the average number of repeated drawing times of multiple pixels in the image frame as the number of repeated drawing times of the image frame.
[0119] In a possible implementation, during the rendering process, for any image frame being rendered, the computer device calls a rendering program, performs a weighted summation of the current color value of the pixel in the image frame and the preset value based on the first adjustment factor and the second adjustment factor, and determines the value after the weighted summation as the color value of the pixel after this drawing, and the first adjustment factor and the second adjustment factor are both equal to 1. Therefore, the process of color drawing can be understood as directly superimposing the preset value on the basis of the current color value. Then, the number of superimposed preset values is equal to the number of times the color is drawn.
[0120] Therefore, the process of the computer device determining the number of repeated drawing times is as follows: the computer device determines the ratio between the color value of each pixel in the rendered image frame and a preset value as the number of repeated drawing times for each pixel in the image frame, and determines the average number of repeated drawing times of multiple pixels in the image frame as the number of repeated drawing times for the image frame.
[0121] When both adjustment factors are 1, each time the color is drawn, a fixed preset value is added to the current color value. Since the initial value of the pixel color drawing is 0, the color value of the rendered pixel is directly divided by the preset value, which is the number of repeated drawing. Figure 4 Taking the color drawing process shown in the figure as an example, by passing a fixed R channel color value to the rendering program, combined with the above color drawing operation, the color value of each pixel in the image frame is finally obtained. Then the color value of the pixel is divided by the fixed preset value passed in, and the final result is the number of repeated drawing of the pixel. For example, if the preset value is (40,0,0), and the color value of the pixel after rendering is (200,0,0), then the number of repeated drawing of the pixel is 200 divided by 40, which is 5 times.
[0122] In the embodiment of the present application, since it is not necessary to consider the effect of the rendered particle effects when determining the number of repeated drawing times of the particle effects, a custom rendering program is first used to render the particle effects. The color value of a single drawing by the custom rendering program is a fixed value. Then, the number of repeated drawing times can be determined based on the color value obtained by the final rendering and the fixed value, thereby ensuring the accuracy of the number of repeated drawing times.
[0123] Figure 8 is a schematic diagram of a method for obtaining the number of repeated drawing times provided in an embodiment of the present application, such as Figure 8 As shown, the method includes the following steps: step 1, specifying the RT (Render to Texture) format of the frame buffer as RGBA8; step 2, passing a fixed color value to the rendering program; step 3, setting the blending state to color value overlay and the translucent state to color value overlay; step 4, copying the color value of the pixel point of the frame buffer from the GPU to the CPU (Central Processing Unit), and calculating the number of repeated drawing times of each pixel point.
[0124] 304. The computer device determines a screen ratio of the particle effect in each image frame.
[0125] The performance indicators of particle effects also include the screen ratio of particle effects in each image frame, which refers to the ratio between the pixels in the image frame where particle effects are drawn and all the pixels in the image frame. For any image frame, the computer device determines a first number and a second number, where the first number is the number of pixels rendered in the image frame and the second number is the total number of pixels in the image frame, and determines the ratio between the second number and the first number as the screen ratio of particle effects in the image frame, which represents the ratio of particle effects in the image frame.
[0126] In the embodiment of the present application, since the particle special effects are rendered in an empty scene, there are no other objects in the empty scene. Therefore, only the pixels where the particle special effects are located are rendered in the empty scene. Then, the rendered pixels in the final image frame must be the pixels where the particle special effects are located, and the unrendered pixels are not the pixels where the particle special effects are located. Therefore, the ratio of the number of rendered pixels to the number of all pixels is the screen ratio of the particle special effects in the image frame.
[0127] 305. The computer device determines a pixel fill rate of each image frame of the particle special effect.
[0128] The performance index of the particle effect also includes the pixel fill rate of each image frame of the particle effect. For any image frame, the computer device determines a first number, which is the number of pixels rendered in the image frame, and the computer device determines the first number as the pixel fill rate of the image frame, and the pixel fill rate represents the number of pixels rendered in a unit time.
[0129] Fig. 9 is a schematic diagram of a method for obtaining performance indicators of particle special effects provided in an embodiment of the present application, such as Fig. 9 As shown, first customize the rendering program, then instantiate the particle effects according to the particle effects file, replace the particle effects rendering program with the customized rendering program, create a new RT, render the particle effects to RT, and after rendering is completed, read RT and count the performance indicators of the particle effects, such as the number of repeated drawing times, screen ratio, and pixel fill rate.
[0130] Fig.10 This is a flow chart of determining the number of repeated drawing times, screen ratio and pixel fill rate provided by an embodiment of the present application, such as Fig.10 As shown, after the rendering is completed, the computer device reads the RT, traverses each pixel in the RT, and counts the number of repeated drawing times, screen ratio and pixel fill rate of the pixel. If the traversal is not completed, the traversal continues to the next pixel. If the traversal is completed, the statistical data such as the number of repeated drawing times, screen ratio and pixel fill rate are sorted and stored.
[0131] 306. During rendering based on the particle special effect file, the computer device determines at least one of the number of vertices, the number of triangles, or the number of rendering times of the particle special effect.
[0132] The performance index also includes at least one of the number of vertices, the number of triangles or the number of rendering times of the particle effect. The number of vertices refers to the number of vertices in the particle effect model, the number of triangles refers to the number of triangles in the particle effect model, and a triangle is composed of three vertices connected. The number of rendering times refers to the number of times the CPU calls the graphics programming interface (DirectX or OpenGL) to command the GPU to perform rendering operations.
[0133] The computer device obtains a data acquisition script, which includes an object declaration code, and the object declaration code is used to indicate the acquisition of at least one of the number of vertices, the number of triangles, or the number of rendering times. During the rendering process based on the particle special effects file, the data acquisition script is executed to sequentially obtain at least one of the number of vertices, the number of triangles, or the number of rendering times of the particle special effects in each image frame.
[0134] The rendering engine provides a data collection script interface (Profiler Recorder API) for the computer device, and provides a data collection script for recording the performance of particle special effects through the data collection script interface. The computer device uses the data collection script interface to obtain the data collection script in the rendering engine, and adds object declaration code to the data collection script to indicate which performance indicators of the particle special effects are to be obtained. In the process of rendering based on the particle special effects file, the computer device synchronously executes the data collection script, and each time an image frame is rendered, the data collection script will obtain the declared performance indicators of the image frame.
[0135] Fig.11 is a flowchart of determining the number of vertices, the number of triangles, and the number of rendering times provided by an embodiment of the present application, such as Fig.11 As shown in the figure, Awake() means waking up the data collection function, Onenable() means declaring the object of performance indicators, that is, specifying which performance indicators need to be collected, Start() means starting to execute the data collection function, using static methods to initialize a new instance of the data collection script and start data collection, Update() means collecting the performance indicators of each image frame, refreshing and recording each performance indicator, and Ondisable() means using the Disposable interface to release the collection resources of the performance indicators after rendering is completed.
[0136] 307. The computer device determines the number of particles in the particle effect during rendering based on the particle effect file.
[0137] The performance index also includes the number of particles in the particle special effect, which refers to the total number of particles constituting the particle special effect. The computer device determines a particle processing function, which is used to calculate the number of particles generated based on the particle special effect file, generates a data acquisition method, binds the data acquisition method to the particle processing function, and the data acquisition method is used to obtain data generated by the particle processing function. In the process of rendering based on the particle special effect file, the data acquisition method is called to obtain the number of particles calculated by the particle processing function.
[0138] The process of obtaining the number of particles in the embodiment of the present application utilizes the reflection mechanism, and based on the reflection mechanism, the member information of each type in the program set can be obtained at runtime. A Getmethod method (data acquisition method) of a Type class (type-based class) is defined, and this method can access information of a given data type. The computer device searches for a particle processing function for calculating the number of particles in the source code of the rendering engine, declares a data acquisition method of the Type class and binds the particle processing function. During the rendering process of the particle special effect, the number of particles generated by each particle component calculated by the particle processing function is read in real time through the data acquisition method. The sum of the number of particles generated by all particle components in the particle special effect file is the number of particles of the particle special effect.
[0139] 308. The computer device determines the number of particle components of the particle effect.
[0140] The performance indicators also include the number of particle components of the particle special effect. The particle special effect file includes particle components used to generate particles. The computer device can determine the number of particle components of the particle special effect by collecting the number of particle components of each image frame of the particle special effect.
[0141] Fig.12 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application. Fig.12As shown, the computer device polls and executes the following steps: whether the computer device fragment has a scanning task, which refers to scanning whether there is a particle special effect file in the specified directory. If there is a scanning task, an empty scene is opened, and an emission object is generated in the empty scene. The emission object refers to an object used to trigger the particle special effect. The computer device sets the rendering method, such as rendering channel, RT format, etc. The computer device traverses the particle special effects, triggers the particle special effect through the emission object, and determines whether the current particle special effect has been rendered. If it has not been rendered, it continues to obtain the performance indicators of the particle special effect, such as the number of particles, the number of repeated drawing times, the screen ratio, the pixel fill rate, the number of particle components, the number of rendering times, the number of triangles, and the number of vertices. If the rendering is completed, it is determined whether all particle special effects have been traversed. If the traversal is not completed, it continues to traverse the next particle special effect. If the traversal is completed, the performance indicators of the obtained particle special effect are uploaded to the server. The server subsequently sends the performance indicators of the particle special effect to the resource display device, and the resource display device displays the performance indicators for users to view.
[0142] In an embodiment of the present application, a technical solution is provided for automatically identifying particle special effects files in a specified directory, automatically rendering particle special effects files, and automatically collecting performance indicators such as the number of rendering times, the number of vertices, the number of triangles, the number of particle components, the number of particles, the number of repeated drawing times, the screen ratio and the pixel fill rate of particle special effects. The solution collects the performance indicators of each image frame during the rendering process of the particle special effects, and finally outputs the performance live broadcast of the particle special effects in the specified directory. The solution is fully automatic, and only a short time (limited by the duration of the particle special effects) is required to complete the performance collection work of the particle special effects, which greatly saves manpower and time and improves the efficiency of obtaining performance indicators. In addition, the performance indicators of each image frame of the particle special effects can describe the overall performance of the particle special effects during the entire rendering process. Compared with the method of analyzing the performance indicators of a single frame by cutting frames, the performance indicators obtained by the embodiment of the present application are more comprehensive and accurate.
[0143] 309. Performance indicators of computer equipment storing particle effects.
[0144] In a possible implementation, a computer device obtains performance indicators of multiple particle effects with an associated relationship respectively, and the multiple particle effects with an associated relationship may be different particle effects in the same project. The computer device generates a first performance indicator file and a second performance indicator file based on the performance indicators of the multiple particle effects obtained, and stores the first performance indicator file and the second performance indicator file. The first performance indicator file includes the maximum values of performance indicators such as the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components of multiple particle effects, and the second performance indicator file includes performance indicators such as the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components of each particle effect. The first performance indicator file and the second performance indicator file may be a chart file or a CSV (Comma-Separated Values) file, etc., so as to describe the trend of performance indicators of multiple image frames of particle effects, which is convenient for developers to locate performance problems and optimize.
[0145] The method provided in the embodiment of the present application can reflect the performance of the particle special effects by repeatedly drawing pixels when rendering particle special effects. In order to obtain the performance index of the particle special effects, when rendering is performed based on the particle special effects file, a rendering program is called to render the particle special effects. Since the rendering program performs color drawing on the pixel where the particle is located by superimposing a fixed preset value on the color value of the pixel, then according to the final color value of the pixel in the image frame of the particle special effect obtained by rendering, it can be determined how many times the preset value is superimposed on the pixel, that is, it can be determined how many times the pixel is repeatedly drawn. Therefore, based on the color value and the preset value of the pixel after the rendering is completed, the performance index of the particle special effect related to the repeated drawing situation can be accurately determined, thereby improving the accuracy of obtaining the performance index of the particle special effect.
[0146] After obtaining the performance indicators of particle effects, you can also display the performance indicators of particle effects. For detailed process, see the following Fig.13 The embodiment shown. Fig.13 is a flowchart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application. The embodiment of the present application is executed by a computer device, see Fig.13 , the method comprising:
[0147] 1301. The computer device obtains performance indicators of particle special effects in multiple image frames, where the performance indicators include at least one of the number of repeated drawing times, screen ratio, pixel fill rate, number of vertices, number of triangles, number of rendering times, number of particles, and number of particle components.
[0148] For details on how to obtain the above performance indicators, see Figure 3The embodiment shown, Figure 3 In the embodiment shown, after obtaining the performance index of the particle effect, the computer device enables the script to upload the generated performance index file to the resource display device (eg Fig.13 The computer device in the embodiment shown), the resource display device scans and analyzes the performance indicator file, and displays the performance indicators of the particle special effects in multiple image frames obtained by the analysis to the user.
[0149] The performance index of the particle effect in the image frame may also include the maximum number of repeated drawing times, the average number of repeated drawing times, and the repeated drawing ratio, etc. The performance index of the particle effect in multiple image frames can be seen in the following Table 1.
[0150] Table 1
[0151]
[0152] The number of frames refers to the number of frames rendered by the particle effect, or the serial number of the rendered image frame. The maximum number of repeated drawing times refers to the maximum number of repeated drawing times of all pixels in the current image frame. The average number of repeated drawing times refers to the average number of repeated drawing times of all pixels in the current image frame. The repeated drawing ratio refers to the ratio of the repeatedly drawn pixels in the current image frame to all the drawn pixels.
[0153] 1302. The computer device determines an over-standard image frame based on performance indicators of multiple image frames, where the over-standard image frame refers to an image frame that meets at least one over-standard condition, where the over-standard condition refers to a condition where the performance indicator of the image frame does not meet the standard performance indicator.
[0154] Among them, the exceeding standard condition can be flexibly set by the developer according to the developer's own needs. For example, in the game development scenario, the performance indicators of the customized image frames do not meet the exceeding standard conditions of the standard performance indicators based on the image quality requirements of the models supported by the game. The exceeding standard image frames are screened out according to the exceeding standard conditions, thereby determining the exceeding standard particle special effects. For example, the exceeding standard condition can be that the rendering times exceed a first value, the number of particles exceeds a second value, the number of repeated drawing times exceeds a third value, etc.
[0155] 1303. The computer device displays the performance indicators of the plurality of image frames and the exceeding conditions satisfied by the exceeding image frames.
[0156] After screening out the image frames that exceed the standard, the computer device can display the performance parameters of multiple image frames, and display the image frames that exceed the standard and the exceeding conditions that the image frames satisfy, so that the user can quickly locate which image frames have problems with their performance indicators, and quickly determine which image frames have problems with their performance indicators based on the exceeding conditions that the image frames satisfy, so as to perform targeted optimization and adjustment.
[0157] Fig.14 is a schematic diagram of a performance indicator display interface provided in an embodiment of the present application, such as Fig.14 As shown, the computer device displays the performance indicators of 4 exceeding standard image frames and the exceeding standard conditions met, and the performance indicators include the number of vertices, the number of triangles, the number of renderings, the number of repeated drawing, the number of particle components, the number of particles, the screen ratio, and the repeated drawing ratio. For example, the exceeding standard condition met by image frame 1 is that the number of triangles exceeds 5000, and the exceeding standard condition met by image frame 2 is that the number of triangles exceeds 5000; the number of repeated drawing is not less than 4, and the number of renderings is not less than 15. The exceeding standard condition met by image frame 3 is that the number of triangles exceeds 5000, and the number of repeated drawing is not less than 4. The exceeding standard condition met by image frame 4 is that the number of triangles exceeds 5000.
[0158] Fig.15 is a schematic diagram of another performance indicator display interface provided in an embodiment of the present application, such as Fig.15 As shown, a computer device displays a chart of the performance indicators of multiple image frames, the horizontal axis of the chart represents different image frames, and the vertical axis represents performance indicators such as the number of vertices, the number of triangles, the number of renderings, the number of repeated drawing, the number of particle components, the number of particles, the screen-to-body ratio, and the repeated drawing ratio of the image frames. According to the chart, the changing trends of the performance indicators of multiple image frames in the same particle special effect can be intuitively observed.
[0159] In one possible implementation, a computer device determines priorities of multiple exceeding conditions, displays performance indicators of multiple exceeding conditions and satisfied exceeding conditions in order of priority of the multiple exceeding conditions, and displays performance indicators of other image frames among the multiple image frames except for the multiple exceeding conditions.
[0160] In addition to setting the exceeding standard conditions according to their own needs, developers can also set priorities for different exceeding standard conditions. The exceeding standard conditions that have a greater impact on the performance of particle special effects have a higher priority, and the exceeding standard conditions that have a smaller impact on the performance of particle special effects have a higher priority. Subsequently, the performance indicators of the exceeding standard image frames that meet the exceeding standard conditions are displayed in the order of priority of the exceeding standard conditions, which makes it easier for developers to quickly locate image frames with relatively large performance indicator problems.
[0161] For example, the first priority level exceeding the standard condition is that the number of renderings is not less than 14, the second priority level exceeding the standard condition is that the number of renderings is more than 5000 triangles, and the third priority level exceeding the standard condition is that the screen ratio is not less than 0.7. Fig.16 As shown, Fig.16It is a schematic diagram of another performance indicator display interface provided in an embodiment of the present application, in which a computer device displays the performance indicators of image frames according to the priority of the exceeding standard conditions, displays the performance indicators of image frames that hit the exceeding standard condition of the first priority at the top, displays the performance indicators of image frames that hit the exceeding standard condition of the second priority at the bottom, and then continues to display the performance indicators of image frames that hit the exceeding standard condition of the third priority at the bottom.
[0162] Fig.17 is a flow chart of a performance indicator display method provided in an embodiment of the present application, such as Fig.17 As shown, the computer device reads the performance indicators of the particle special effects, reads the exceeding conditions of the particle special effects, traverses the performance indicators of the particle special effects, marks the exceeding image frames and the corresponding exceeding images, and if the traversal is completed, the exceeding image frames are sorted according to the priority of the exceeding conditions, and each image frame and performance indicator are displayed.
[0163] In one possible implementation, a computer device determines the number of repeated drawing times of multiple image frames of a particle special effect, and displays the multiple image frames after being labeled according to the number of repeated drawing times of the particle special effect. For example, the multiple image frames are labeled in red, and the higher the number of repeated drawing times, the darker the red color of the image frame is, so that a user can intuitively understand the repeated drawing status of the multiple image frames.
[0164] According to the method provided in the embodiment of the present application, a computer device can display the performance parameters of multiple image frames, and display the image frames that exceed the standard and the exceeding conditions satisfied by the exceeding image frames, so that users can quickly locate which image frames have problems with their performance indicators, and quickly determine which image frames have problems with their performance indicators based on the exceeding conditions satisfied by the exceeding image frames, so as to perform targeted optimization and adjustment.
[0165] Fig.18 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application. Fig.18 As shown, the resource processing device maps the particle special effect file to the specified directory, starts the performance collection function, automatically identifies the particle special effect file in the specified directory, traverses the particle special effect file, collects performance indicators, analyzes the performance indicators and stores them. For example, the resource processing device generates a performance indicator file by analyzing the performance indicators and stores the performance indicator file. The performance indicator file can be a CSV file, thereby saving the performance indicators of the image frames generated by the particle special effect during the rendering process. After the traversal is completed, the performance indicators are uploaded to the resource display device, and the resource display device displays the performance indicators.
[0166] Fig.19 is a flow chart of another method for obtaining performance indicators of particle special effects provided in an embodiment of the present application. Fig.19As shown, the resource processing device starts scanning, identifies the particle special effects file, renders the particle special effects based on the particle special effects file and collects performance indicators. After completing the performance indicator collection for each particle special effects file, the performance indicators are uploaded to the resource display device, and the resource display device displays the performance indicators.
[0167] Fig. 20 Schematic diagram of a device for obtaining performance indicators of particle effects provided in an embodiment of the present application. Fig. 20 , the device comprises:
[0168] The file acquisition module 2001 is used to acquire a particle special effect file, where the particle special effect file is used to generate a particle special effect, and the particle special effect includes a plurality of particles;
[0169] The rendering module 2002 is used to call the rendering program to render based on the particle special effect file to obtain the dynamic resource of the particle special effect, the dynamic resource includes a plurality of image frames for presenting the particle special effect, and the rendering program is used to superimpose a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame;
[0170] The performance index determination and acquisition module 2003 is used to determine the performance index of the particle special effect based on the color values of multiple pixels in the image frame after rendering and the preset value. The performance index is used to indicate the performance of the particle special effect.
[0171] The performance indicator acquisition device for particle special effects provided in the embodiment of the present application can reflect the performance of the particle special effects by repeatedly drawing pixels when rendering particle special effects. In order to obtain the performance indicator of the particle special effects, when rendering is performed based on the particle special effects file, a rendering program is called to render the particle special effects. Since the rendering program performs color drawing on the pixel where the particle is located by superimposing a fixed preset value on the color value of the pixel, then according to the final color value of the pixel in the image frame of the particle special effect obtained by rendering, it can be determined how many times the preset value is superimposed on the pixel, that is, it is determined how many times the pixel is repeatedly drawn. Therefore, based on the color value and preset value of the pixel after the rendering is completed, the performance indicator of the particle special effect related to the repeated drawing situation can be accurately determined, thereby improving the accuracy of obtaining the performance indicator of the particle special effect.
[0172] Alternatively, see Fig.21 The rendering program also includes a first adjustment factor and a second adjustment factor, the first adjustment factor is used to adjust the proportion of the color value of the pixel itself, and the second adjustment factor is used to adjust the proportion of the color value of the pixel superimposed this time;
[0173] The rendering module 2002 is used for:
[0174] For any image frame rendered based on the particle special effect file, calling the rendering program, performing weighted summation on the current color value of the pixel point in the image frame and the preset value based on the first adjustment factor and the second adjustment factor, and determining the value after the weighted summation as the color value of the pixel point after this drawing;
[0175] The first adjustment factor and the second adjustment factor are both equal to 1.
[0176] Alternatively, see Fig.21 The performance index includes the number of repetitions of drawing each image frame of the particle special effect; the performance index determination acquisition module 2003 is used to:
[0177] The ratio between the color value of each pixel in the rendered image frame and the preset value is determined as the number of repeated drawing times for each pixel in the image frame;
[0178] The average value of the repeated drawing times of a plurality of pixel points in the image frame is determined as the repeated drawing times of the image frame.
[0179] Alternatively, see Fig.21 , the rendering module 2002 is used to:
[0180] Create an empty scene, which does not contain any object;
[0181] The rendering program is called to render based on the particle special effect file in the empty scene to obtain the dynamic resource of the particle special effect. The image frame in the dynamic resource is a frame of the particle special effect in the empty scene.
[0182] Alternatively, see Fig.21 The performance index of the particle effect also includes the screen ratio of the particle effect in each image frame; the performance index determination acquisition module 2003 is also used for:
[0183] For any image frame, determine a first number and a second number, the first number being the number of pixels rendered in the image frame, and the second number being the total number of pixels in the image frame;
[0184] The ratio between the second number and the first number is determined as the screen ratio of the particle special effect in the image frame, where the screen ratio represents the ratio of the particle special effect in the image frame.
[0185] Alternatively, see Fig.21 The performance index of the particle effect also includes the pixel filling rate of each image frame of the particle effect; the performance index determination acquisition module 2003 is also used for:
[0186] For any image frame, determining a first number, where the first number is the number of rendered pixels in the image frame;
[0187] The first number is determined as a pixel fill rate of the image frame, where the pixel fill rate represents the number of pixels rendered in a unit time.
[0188] Alternatively, see Fig.21 , the file acquisition module 2001 is used to:
[0189] Search for files in the target format in the specified directory, where any particle effect file belongs to the target format;
[0190] Among the files found that belong to the target format, determine the file containing the particle component, and the particle component is used to generate particles;
[0191] Identifies the file containing the particle component as a particle effect file.
[0192] Alternatively, see Fig.21 The performance index also includes at least one of the number of vertices, the number of triangles or the number of rendering times of the particle special effect; the performance index determination acquisition module 2003 is also used for:
[0193] Obtain a data collection script, the data collection script including an object declaration code, the object declaration code is used to indicate obtaining at least one of the number of vertices, the number of triangles, or the number of rendering times;
[0194] In the process of rendering based on the particle special effect file, a data acquisition script is executed to sequentially obtain at least one of the number of vertices, the number of triangles or the number of rendering times of the particle special effect in each image frame.
[0195] Alternatively, see Fig.21 The performance index also includes the number of particles in the particle special effect; the performance index determination acquisition module 2003 is also used for:
[0196] Determine the particle processing function, which is used to calculate the number of particles generated based on the particle special effect file;
[0197] Generate a data acquisition device, bind the data acquisition device to the particle processing function, and use the data acquisition device to acquire data generated by the particle processing function;
[0198] In the process of rendering based on the particle special effect file, the data acquisition device is called to acquire the number of particles calculated by the particle processing function.
[0199] Alternatively, see Fig.21 The device further comprises a data display module 2004, which is used to:
[0200] Obtaining performance indicators of particle special effects in multiple image frames, the performance indicators including at least one of the number of repeated drawing times, screen ratio, pixel fill rate, number of vertices, number of triangles, number of rendering times, number of particles, and number of particle components;
[0201] Determine an over-standard image frame based on the performance indicators of the plurality of image frames, where the over-standard image frame refers to an image frame that satisfies at least one over-standard condition, where the over-standard condition refers to a condition where the performance indicator of the image frame does not meet the standard performance indicator;
[0202] The performance indicators of multiple image frames and the exceeding conditions satisfied by the exceeding image frames are displayed.
[0203] Alternatively, see Fig.21 , the data display module 2004 is used to:
[0204] Prioritize multiple exceedance conditions;
[0205] According to the priority order of the multiple exceeding conditions, the performance indicators of the multiple exceeding conditions and the satisfied exceeding conditions are displayed;
[0206] The performance indicators of other image frames except the multiple exceeding-standard image frames among the multiple image frames are displayed.
[0207] It should be noted that the performance index acquisition device for particle special effects provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the performance index acquisition device for particle special effects provided in the above embodiment and the performance index acquisition method embodiment of particle special effects belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0208] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the performance indicator acquisition method of the particle special effects in the above embodiment.
[0209] Optionally, the computer device is provided as a terminal. Fig. 22 A schematic diagram of the structure of a terminal 2200 provided by an exemplary embodiment of the present application is shown.
[0210] The terminal 2200 includes: a processor 2201 and a memory 2202 .
[0211] The processor 2201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0212] The memory 2202 may include one or more computer-readable storage media, which may be non-transitory. The memory 2202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2202 is used to store at least one computer program, which is used by the processor 2201 to implement the performance indicator acquisition method of the particle special effect provided in the method embodiment of the present application.
[0213] In some embodiments, the terminal 2200 may further optionally include: a peripheral device interface 2203 and at least one peripheral device. The processor 2201, the memory 2202 and the peripheral device interface 2203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 2203 via a bus, a signal line or a circuit board. Optionally, the peripheral device includes: at least one of a radio frequency circuit 2204, a display screen 2205, a camera assembly 2206, an audio circuit 2207 and a power supply 2208.
[0214] The peripheral device interface 2203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 2201 and the memory 2202. In some embodiments, the processor 2201, the memory 2202, and the peripheral device interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2201, the memory 2202, and the peripheral device interface 2203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0215] The radio frequency circuit 2204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 2204 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 2204 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 2204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 2204 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 2204 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0216] The display screen 2205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 2205 is a touch display screen, the display screen 2205 also has the ability to collect touch signals on the surface or above the surface of the display screen 2205. The touch signal can be input to the processor 2201 as a control signal for processing. At this time, the display screen 2205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 2205 can be one, set on the front panel of the terminal 2200; in other embodiments, the display screen 2205 can be at least two, respectively set on different surfaces of the terminal 2200 or in a folding design; in other embodiments, the display screen 2205 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 2200. Even, the display screen 2205 can also be set to a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 2205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0217] The camera assembly 2206 is used to capture images or videos. Optionally, the camera assembly 2206 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal 2200, and the rear camera is arranged on the back of the terminal 2200. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 2206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0218] The audio circuit 2207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 2201 for processing, or input them into the RF circuit 2204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 2200. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 2201 or the RF circuit 2204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 2207 may also include a headphone jack.
[0219] The power supply 2208 is used to power various components in the terminal 2200. The power supply 2208 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 2208 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0220] In some embodiments, the terminal 2200 further includes one or more sensors 2209 , including but not limited to: an acceleration sensor 2210 , a gyroscope sensor 2211 , a pressure sensor 2212 , an optical sensor 2213 , and a proximity sensor 2214 .
[0221] The acceleration sensor 2210 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 2200. For example, the acceleration sensor 2210 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 2201 can control the display screen 2205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 2210. The acceleration sensor 2210 can also be used to collect motion data of games or users.
[0222] The gyro sensor 2211 can detect the body direction and rotation angle of the terminal 2200, and the gyro sensor 2211 can cooperate with the acceleration sensor 2210 to collect the user's 3D actions on the terminal 2200. The processor 2201 can implement the following functions based on the data collected by the gyro sensor 2211: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0223] The pressure sensor 2212 can be set in the side frame of the terminal 2200 and / or the lower layer of the display screen 2205. When the pressure sensor 2212 is set in the side frame of the terminal 2200, it can detect the user's holding signal of the terminal 2200, and the processor 2201 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 2212. When the pressure sensor 2212 is set in the lower layer of the display screen 2205, the processor 2201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 2205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0224] The optical sensor 2213 is used to collect the ambient light intensity. In one embodiment, the processor 2201 can control the display brightness of the display screen 2205 according to the ambient light intensity collected by the optical sensor 2213. Optionally, when the ambient light intensity is high, the display brightness of the display screen 2205 is increased; when the ambient light intensity is low, the display brightness of the display screen 2205 is decreased. In another embodiment, the processor 2201 can also dynamically adjust the shooting parameters of the camera assembly 2206 according to the ambient light intensity collected by the optical sensor 2213.
[0225] The proximity sensor 2214, also called a distance sensor, is disposed on the front panel of the terminal 2200. The proximity sensor 2214 is used to collect the distance between the user and the front of the terminal 2200. In one embodiment, when the proximity sensor 2214 detects that the distance between the user and the front of the terminal 2200 is gradually decreasing, the processor 2201 controls the display screen 2205 to switch from the screen-on state to the screen-off state; when the proximity sensor 2214 detects that the distance between the user and the front of the terminal 2200 is gradually increasing, the processor 2201 controls the display screen 2205 to switch from the screen-off state to the screen-on state.
[0226] Those skilled in the art will understand that Fig. 22 The structure shown in the figure does not constitute a limitation on the terminal 2200, and the terminal 2200 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0227] Optionally, the computer device is provided as a server. Fig.23This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 2300 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 2301 and one or more memories 2302, wherein the memory 2302 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 2301 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0228] An embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the method for obtaining performance indicators of particle special effects in the above embodiment.
[0229] The embodiment of the present application also provides a computer program product, including a computer program, which is loaded and executed by a processor to implement the operations performed by the performance indicator acquisition method of the particle special effect in the above embodiment. In some embodiments, the computer program involved in the embodiment of the present application can be deployed on a computer device for execution, or on multiple computer devices located in one location, or on multiple computer devices distributed in multiple locations and interconnected by a communication network. Multiple computer devices distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.
[0230] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0231] The above description is only an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A method for obtaining performance indicators of particle special effects, characterized in that: The method comprises: Obtain a particle special effect file, where the particle special effect file is used to generate a particle special effect, where the particle special effect includes a plurality of particles; Calling a rendering program to render based on the particle special effect file to obtain dynamic resources of the particle special effect, wherein the dynamic resources include a plurality of image frames for presenting the particle special effect, and the rendering program is used to superimpose a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame; Based on the color values of a plurality of pixels in the image frame after rendering and the preset value, a performance index of the particle special effect is determined, and the performance index is used to indicate the performance of the particle special effect.
2. The method according to claim 1, characterized in that The rendering program further includes a first adjustment factor and a second adjustment factor, wherein the first adjustment factor is used to adjust the proportion of the color value of the pixel itself, and the second adjustment factor is used to adjust the proportion of the color value of the pixel superimposed this time; The calling of the rendering program, rendering based on the particle special effect file, and obtaining the dynamic resource of the particle special effect includes: For any image frame rendered based on the particle special effect file, calling the rendering program, performing weighted summation on the current color value of the pixel point in the image frame and the preset value based on the first adjustment factor and the second adjustment factor, and determining the value after the weighted summation as the color value of the pixel point after this drawing; The first adjustment factor and the second adjustment factor are both equal to 1.
3. The method according to claim 2, characterized in that The performance index includes the number of repeated drawing times of each image frame of the particle special effect; The step of determining the performance index of the particle special effect based on the color values of the plurality of pixels in the image frame after rendering and the preset value comprises: Determine the ratio between the color value of each pixel in the image frame after rendering and the preset value as the number of repeated drawing times for each pixel in the image frame; An average value of the repeated drawing times of a plurality of pixel points in the image frame is determined as the repeated drawing times of the image frame.
4. The method according to claim 1, characterized in that: The calling of the rendering program, rendering based on the particle special effect file, and obtaining the dynamic resource of the particle special effect includes: Creating an empty scene, wherein the empty scene does not contain any object; The rendering program is called to render in the empty scene based on the particle special effect file to obtain a dynamic resource of the particle special effect, wherein the image frame in the dynamic resource is a frame of the particle special effect in the empty scene.
5. The method according to claim 4, characterized in that The performance index of the particle special effect also includes the screen ratio of the particle special effect in each image frame; the method also includes: For any image frame, determine a first number and a second number, wherein the first number is the number of pixels rendered in the image frame, and the second number is the total number of pixels in the image frame; The ratio between the second number and the first number is determined as the screen-to-screen ratio of the particle special effect in the image frame, where the screen-to-screen ratio represents the ratio of the particle special effect in the image frame.
6. The method according to claim 4, characterized in that The performance index of the particle special effect also includes a pixel fill rate of each image frame of the particle special effect; the method further includes: For any image frame, determining a first number, where the first number is the number of rendered pixels in the image frame; The first number is determined as a pixel fill rate of the image frame, where the pixel fill rate represents the number of pixels rendered in a unit time.
7. The method according to claim 1, characterized in that The step of obtaining the particle special effects file includes: Searching for files in a target format in a specified directory, wherein any particle special effect file belongs to the target format; Determine, among the found files belonging to the target format, a file containing a particle component, wherein the particle component is used to generate particles; The file containing the particle component is determined as the particle special effect file.
8. The method according to claim 1, characterized in that The performance indicator also includes at least one of the number of vertices, the number of triangles, or the number of rendering times of the particle special effect; the method also includes: Obtain a data acquisition script, wherein the data acquisition script includes an object declaration code, and the object declaration code is used to instruct to obtain at least one of the number of vertices, the number of triangles, or the number of rendering times; During rendering based on the particle special effects file, the data acquisition script is executed to sequentially obtain at least one of the number of vertices, the number of triangles or the number of rendering times of the particle special effects in each image frame.
9. The method according to claim 1, characterized in that: The performance indicator also includes the number of particles in the particle special effect; the method also includes: Determine a particle processing function, wherein the particle processing function is used to calculate the number of particles generated based on the particle special effect file; Generate a data acquisition method, bind the data acquisition method to the particle processing function, and use the data acquisition method to acquire data generated by the particle processing function; In the process of rendering based on the particle special effect file, the data acquisition method is called to obtain the number of particles calculated by the particle processing function.
10. The method according to any one of claims 1 to 9, characterized in that: After determining the performance index of the particle special effect based on the color values of the plurality of pixels in the image frame after rendering and the preset value, the method further includes: Obtaining performance indicators of the particle special effects in the multiple image frames, the performance indicators comprising at least one of the number of repeated drawing, screen ratio, pixel fill rate, number of vertices, number of triangles, number of renderings, number of particles, and number of particle components; Determine an over-standard image frame based on the performance indicators of the multiple image frames, wherein the over-standard image frame refers to an image frame that meets at least one over-standard condition, and the over-standard condition refers to a condition that the performance indicator of the image frame does not meet the standard performance indicator; The performance indicators of the multiple image frames and the exceeding conditions satisfied by the exceeding image frames are displayed.
11. The method according to claim 10, characterized in that The displaying of the performance indicators of the plurality of image frames and the exceeding conditions satisfied by the exceeding image frames comprises: Prioritize multiple exceedance conditions; Displaying the performance indicators of a plurality of exceeding standard image frames and the satisfied exceeding standard conditions according to the priority order of the plurality of exceeding standard conditions; The performance indicators of other image frames among the multiple image frames except the multiple exceeding-standard image frames are displayed.
12. A device for obtaining performance indicators of particle special effects, characterized in that: The device comprises: A file acquisition module, used to acquire a particle special effect file, wherein the particle special effect file is used to generate a particle special effect, and the particle special effect includes a plurality of particles; A rendering module, used for calling a rendering program, rendering based on the particle special effect file, and obtaining a dynamic resource of the particle special effect, wherein the dynamic resource includes a plurality of image frames for presenting the particle special effect, and the rendering program is used for superimposing a preset value on the color value of the pixel point when color drawing is performed on the pixel point where the particle is located in the image frame; The performance index determination acquisition module is used to determine the performance index of the particle special effect based on the color values of multiple pixels in the image frame after rendering and the preset value, and the performance index is used to indicate the performance of the particle special effect.
13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the method for obtaining performance indicators of particle special effects as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the method for obtaining performance indicators of particle special effects according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that The computer program is loaded and executed by a processor to implement the operations performed by the method for obtaining performance indicators of particle special effects according to any one of claims 1 to 11.
Citation Information
Patent Citations
Method and system for processing, compressing, streaming and interactive rendering of 3D color image data
CA2373707A1
Particle special effect processing method and apparatus
CN108053464A
Method and device for realizing particle effect
CN110415326A
Virtual scene rendering method and device and electronic equipment
CN113470153A
Method for batch detection of performance of Untiy special effect particles during operation
CN113908541A
