Graphics card rendering test method, device, electronic device and storage medium
By acquiring and playing back the rendered image group and interface tracking files of the graphics card, and automatically comparing the rendering test results, the complexity of the existing graphics card rendering test methods and platform porting problems are solved, and efficient rendering test and exception detection are achieved.
Patent Information
- Application Number
- CN202311714260.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2043-12-13
AI Technical Summary
The existing graphics card rendering test method requires manual reproduction of the operation scenario, the operation is complex and it is difficult to find subtle differences in graphics rendering, and it cannot be effectively ported between various software and hardware platforms.
By obtaining the target standard rendered image group and the target graphics program interface tracking file, initializing the rendering environment and playing back the tracking file, comparing the rendering image group and standard image group to be tested, generating rendering test results, and checking whether there are abnormalities in the rendering function of the graphics card. .
Without manual operation of heavy scenes, you can discover subtle differences in graphics rendering of graphics cards and effectively port tests in various software and hardware platforms, simplifying the graphics card rendering testing process.
Smart Images

Figure CN117635802B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a rendering test method, device, electronic device and storage medium for a graphics card. Background Art
[0002] In computer graphics, rendering (render, also known as drawing or coloring) refers to the process of generating images from models using software. The model can be a description of a three-dimensional object or virtual scene that is strictly defined in language or data structure, which includes information such as geometry, viewpoint, texture, lighting and shadow. The image can be a digital image or a bitmap image. How to verify the correctness of graphics card rendering is one of the key points in the field of graphics card testing. Summary of the invention
[0003] The present disclosure provides a rendering test technology solution for a graphics card.
[0004] According to one aspect of the present disclosure, a rendering test method for a graphics card is provided, comprising:
[0005] Obtaining a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, wherein the target standard rendering image group includes at least one target standard rendering image, and the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device represents an electronic device that renders the target standard rendering image group;
[0006] Initializing a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested;
[0007] In the rendering environment initialized by the second electronic device, playing back the target graphics program interface tracking file to obtain a rendering image group to be tested;
[0008] The rendering image group to be tested is compared with the target standard rendering image group to obtain a rendering test result corresponding to the graphics card to be tested.
[0009] In a possible implementation, the step of acquiring a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group includes:
[0010] Acquiring software and hardware environment information of the second electronic device;
[0011] According to the software and hardware environment information of the second electronic device, a target standard rendering image group corresponding to the second electronic device, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set; wherein the standard rendering image group information set includes: multiple standard rendering image groups, multiple graphics program interface tracking files corresponding one-to-one to the multiple standard rendering image groups, and rendering environment files corresponding one-to-one to the multiple standard rendering image groups.
[0012] In a possible implementation manner, the software and hardware environment information of the second electronic device includes at least one of the following:
[0013] The CPU architecture information of the second electronic device, the operating system version information of the second electronic device, and the version information of the graphical program interface playback tool in the second electronic device.
[0014] In one possible implementation,
[0015] The target rendering environment file is acquired by the first electronic device in response to a graphics program interface recording instruction;
[0016] The target graphics program interface tracking file and the target standard rendering image group are recorded by the first electronic device through a graphics program interface recording tool in response to the graphics program interface recording instruction.
[0017] In a possible implementation, the step of replaying the target graphics program interface tracking file in the rendering environment initialized by the second electronic device to obtain the rendered image group to be tested includes:
[0018] In response to the target graphics program interface tracking file not matching the software and hardware environment information of the second electronic device, converting the target graphics program interface tracking file according to the software and hardware environment information of the second electronic device to obtain a converted target graphics program interface tracking file;
[0019] In the rendering environment initialized by the second electronic device, the converted target graphics program interface tracking file is played back to obtain a rendering image group to be tested.
[0020] In a possible implementation, after obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes:
[0021] Generate a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system according to the rendering test result and other rendering test results obtained on the graphics card to be tested, the specified CPU architecture and the specified operating system, wherein the specified CPU architecture represents the CPU architecture of the second electronic device, and the specified operating system represents the operating system of the second electronic device;
[0022] Output a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture, and the specified operating system.
[0023] In a possible implementation, after obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes:
[0024] Generate a rendering test report corresponding to the graphics card to be tested according to the rendering test result and other rendering test results obtained on the graphics card to be tested;
[0025] Output a rendering test report corresponding to the graphics card to be tested.
[0026] According to one aspect of the present disclosure, a rendering test device for a graphics card is provided, comprising:
[0027] an acquisition module, configured to acquire a target standard rendered image group, a target graphics program interface tracking file corresponding to the target standard rendered image group, and a target rendering environment file corresponding to the target standard rendered image group, wherein the target standard rendered image group includes at least one target standard rendered image, the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendered image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device represents an electronic device that renders the target standard rendered image group;
[0028] An initialization module, configured to initialize a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested;
[0029] A playback module, configured to play back the target graphics program interface tracking file in the rendering environment initialized by the second electronic device to obtain a rendering image group to be tested;
[0030] The comparison module is used to compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
[0031] In a possible implementation, the acquisition module is specifically used to:
[0032] Acquiring software and hardware environment information of the second electronic device;
[0033] According to the software and hardware environment information of the second electronic device, a target standard rendering image group corresponding to the second electronic device, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set; wherein the standard rendering image group information set includes: multiple standard rendering image groups, multiple graphics program interface tracking files corresponding one-to-one to the multiple standard rendering image groups, and rendering environment files corresponding one-to-one to the multiple standard rendering image groups.
[0034] In a possible implementation manner, the software and hardware environment information of the second electronic device includes at least one of the following:
[0035] The CPU architecture information of the second electronic device, the operating system version information of the second electronic device, and the version information of the graphical program interface playback tool in the second electronic device.
[0036] In one possible implementation,
[0037] The target rendering environment file is acquired by the first electronic device in response to a graphics program interface recording instruction;
[0038] The target graphics program interface tracking file and the target standard rendering image group are recorded by the first electronic device through a graphics program interface recording tool in response to the graphics program interface recording instruction.
[0039] In a possible implementation, the playback module is specifically used to:
[0040] In response to the target graphics program interface tracking file not matching the software and hardware environment information of the second electronic device, converting the target graphics program interface tracking file according to the software and hardware environment information of the second electronic device to obtain a converted target graphics program interface tracking file;
[0041] In the rendering environment initialized by the second electronic device, the converted target graphics program interface tracking file is played back to obtain a rendering image group to be tested.
[0042] In a possible implementation manner, the device further includes:
[0043] A first generating module is used to generate a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system according to the rendering test result and other rendering test results obtained on the graphics card to be tested, the specified CPU architecture and the specified operating system, wherein the specified CPU architecture represents the CPU architecture of the second electronic device, and the specified operating system represents the operating system of the second electronic device;
[0044] The first output module is used to output a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system.
[0045] In a possible implementation manner, the device further includes:
[0046] A second generating module, configured to generate a rendering test report corresponding to the graphics card to be tested according to the rendering test result and other rendering test results obtained on the graphics card to be tested;
[0047] The second output module is used to output a rendering test report corresponding to the graphics card to be tested.
[0048] According to one aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory to execute the above method.
[0049] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0050] According to one aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in an electronic device, a processor in the electronic device executes the above method.
[0051] In an embodiment of the present disclosure, a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained, wherein the target standard rendering image group includes at least one target standard rendering image, and the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device represents an electronic device that renders the target standard rendering image group. According to the target rendering environment file, a rendering environment is initialized in a second electronic device, wherein the second electronic device includes a graphics card to be tested, and in the rendering environment initialized by the second electronic device, the target graphics program interface tracking file is played back to obtain a rendering image group to be tested, and the rendering image group to be tested is compared with the target standard rendering image group to obtain a rendering test result corresponding to the graphics card to be tested. Thus, by comparing the target standard rendering image group and the rendering image group to be tested generated by playing back the target graphics program interface tracking file, it is possible to check whether the graphics rendering function of the graphics card is abnormal, for example, it is possible to check whether a graphics rendering error exists in a new version driver of the graphics card. In the graphics card rendering test method provided in the embodiment of the present disclosure, there is no need for manual operation by the tester to reproduce the scene, and subtle differences in graphics rendering can be discovered, making it easy to port to various software and hardware platforms.
[0052] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0053] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0055] Figure 1 A flowchart of a rendering test method for a graphics card provided by an embodiment of the present disclosure is shown.
[0056] Figure 2 A schematic diagram showing a recording tool framework in a rendering test method for a graphics card provided in an embodiment of the present disclosure.
[0057] Figure 3 A schematic diagram showing an execution framework in a rendering test method for a graphics card provided in an embodiment of the present disclosure.
[0058] Figure 4A block diagram of a rendering test device for a graphics card provided by an embodiment of the present disclosure is shown.
[0059] Figure 5 A block diagram of an electronic device 1900 provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0060] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0061] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0062] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0063] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0064] In related technologies, the graphics card rendering test is mainly performed in the following two ways:
[0065] The first method is to determine the graphics card rendering test results by taking screenshots and comparing the differences between the two rendered images;
[0066] The second method is to identify controls in the images obtained by the two renderings, compare whether the controls in the images obtained by the two renderings are the same, and determine the rendering test result of the graphics card according to the comparison result of the controls.
[0067] In the first method, the operation scenario needs to be reproduced. However, some scenarios are difficult to reproduce. For example, in a video playback scenario, the tester is required to take screenshots of the video twice at exactly the same time point, which is difficult for the tester to operate. For another example, in a dynamically changing interface (such as a web page), even if the same operation steps are used to operate the web page, the rendered image is different.
[0068] In the second method, since only the controls in the interface are recognized and the areas outside the controls are not recognized, rendering anomalies such as local tearing and ripples cannot be recognized.
[0069] In order to solve the technical problems similar to those described above, the present disclosure provides a rendering test method for a graphics card, by obtaining a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, wherein the target standard rendering image group includes at least one target standard rendering image, and the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device indicates that the target standard rendering image group is rendered. An electronic device for an image group, initializes a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested, and in the rendering environment obtained by initialization of the second electronic device, replays the target graphics program interface tracking file to obtain a rendering image group to be tested, and compares the rendering image group to be tested with the target standard rendering image group to obtain a rendering test result corresponding to the graphics card to be tested, thereby by comparing the target standard rendering image group and the rendering image group to be tested generated by replaying the target graphics program interface tracking file, it is possible to check whether there is an abnormality in the graphics rendering function of the graphics card, for example, it is possible to check whether there is a graphics rendering error in the new version of the graphics card driver. In the rendering test method for the graphics card provided in the embodiment of the present disclosure, it is not necessary to reproduce the scene through manual operation by the tester, and subtle differences in graphics rendering can be discovered, which is convenient for porting to various software and hardware platforms.
[0070] The rendering test method of a graphics card provided by the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0071] Figure 1A flow chart of a graphics card rendering test method provided by an embodiment of the present disclosure is shown. In one possible implementation, the execution subject of the graphics card rendering test method may be a graphics card rendering test device. For example, the graphics card rendering test method may be executed by a terminal device or a server or other electronic device. The terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device or a wearable device. In some possible implementations, the graphics card rendering test method may be implemented by a processor calling computer-readable instructions stored in a memory. For example Figure 1 As shown, the rendering test method of the graphics card includes steps S11 to S14.
[0072] In step S11, a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained, wherein the target standard rendering image group includes at least one target standard rendering image, and the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device represents an electronic device that renders the target standard rendering image group.
[0073] In step S12, a rendering environment is initialized in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested.
[0074] In step S13, in the rendering environment initialized by the second electronic device, the target graphics program interface tracking file is played back to obtain a rendering image group to be tested.
[0075] In step S14, the rendering image group to be tested is compared with the target standard rendering image group to obtain a rendering test result corresponding to the graphics card to be tested.
[0076] The execution subject of the rendering test method of the graphics card provided in the embodiment of the present disclosure may be the second electronic device, the third electronic device or the first electronic device, etc., which is not limited here.
[0077] In a possible implementation, the graphics card rendering test method can be executed by a second electronic device. In this implementation, the second electronic device can obtain a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, initialize the rendering environment according to the target rendering environment file, replay the target graphics program interface tracking file in the initialized rendering environment, obtain the rendering image group to be tested, and compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
[0078] In another possible implementation, the rendering test method of the graphics card can be executed by a third electronic device. The third electronic device can communicate with the second electronic device. In this implementation, the third electronic device can obtain a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group. The third electronic device can send the target graphics program interface tracking file and the target rendering environment file to the second electronic device, and can control the second electronic device to initialize the rendering environment according to the target rendering environment file, and control the second electronic device to replay the target graphics program interface tracking file in the initialized rendering environment to obtain the rendering image group to be tested. The third electronic device can obtain the rendering image group to be tested from the second electronic device, and compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
[0079] In another possible implementation, the rendering test method of the graphics card can be executed by a first electronic device. The first electronic device can communicate with a second electronic device. In this implementation, the first electronic device can obtain a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group. The first electronic device can send the target graphics program interface tracking file and the target rendering environment file to the second electronic device, and can control the second electronic device to initialize the rendering environment according to the target rendering environment file, and control the second electronic device to replay the target graphics program interface tracking file in the initialized rendering environment to obtain the rendering image group to be tested. The first electronic device can obtain the rendering image group to be tested from the second electronic device, and compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
[0080] In an embodiment of the present disclosure, a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group can be obtained in a first electronic device, wherein the target graphics program interface tracking file includes identification information of a graphics program interface called by the first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface.
[0081] The first electronic device may be a known electronic device with a normal graphics card rendering function, that is, the first electronic device may be a known electronic device without rendering problems.
[0082] The identification information of any graphics program interface can be used to uniquely identify the graphics program interface. Therefore, based on the identification information of the graphics program interface called by the first electronic device to render the target standard rendered image group, it can be determined which graphics program interfaces are called in the process of the first electronic device rendering the target standard rendered image group, so as to call the same graphics program interface when testing the graphics card to be tested in the second electronic device. In other words, the graphics program interface called by the second electronic device to render the rendered image group to be tested is the same as the graphics program interface called by the first electronic device to render the target standard rendered image group.
[0083] The calling time information of any graphics program interface can be a frame number, a timestamp, etc., which is not limited here. Taking the calling time information as a frame number as an example, for any graphics program interface called in the process of rendering the target standard rendering image group by the first electronic device, according to the frame number of the graphics program interface, it can be determined in which frame the graphics program interface is called in the process of rendering the target standard rendering image group by the first electronic device, so as to call the same graphics program interface in the same frame when testing the graphics card to be tested in the second electronic device. In other words, the second electronic device and the first electronic device call the same graphics program interface in the same frame.
[0084] The parameter information of any graphics program interface may represent the information of the parameters set when the first electronic device calls the graphics program interface. According to the parameter information of the graphics program interface, the parameter values set for each graphics program interface in the process of the first electronic device rendering the target standard rendering image group can be determined, so that when the graphics card to be tested in the second electronic device is tested, the same parameter values are set for each graphics program interface. In other words, the second electronic device and the first electronic device are set with the same parameter values for each graphics program interface.
[0085] In a possible implementation, the target rendering environment file is acquired by the first electronic device in response to a graphics program interface recording instruction; the target graphics program interface tracking file and the target standard rendering image group are recorded by the first electronic device through a graphics program interface recording tool in response to the graphics program interface recording instruction. In this implementation, the first electronic device can be controlled by a graphics program interface recording instruction to acquire the target rendering environment file, and record the target graphics program interface tracking file and the target standard rendering image group.
[0086] In this implementation, a target graphics program interface tracking file and a target standard rendering image group can be recorded by a graphics program interface recording tool. The graphics program interface recording tool can represent a tool for recording a graphics program interface tracking file and a standard rendering image group. For example, the graphics program interface recording tool can be apitrace, RenderDoc, GAPID, etc., which are not limited here.
[0087] In the disclosed embodiment, the target rendering environment file may represent a file of the rendering environment of the first electronic device before rendering the target standard rendering image group, that is, the target rendering environment file may include information of the execution environment of the first electronic device before rendering the target standard rendering image group. In addition, the target rendering environment file may be used to initialize the environment and automatically select the execution file (i.e., the target graphics program interface tracking file) during subsequent graphics card testing (for example, when the second electronic device tests the graphics card to be tested). The target rendering environment file may be an env file, etc., which is not limited here.
[0088] In a possible implementation manner, the target rendering environment file may be collected in the first electronic device through an environment information collection module.
[0089] In some application scenarios, the target rendering environment file may also be referred to as a target execution environment file, a target operating environment file, etc., which is not limited here.
[0090] In the disclosed embodiment, the target graphics program interface tracking file may be used to play back the graphics program interface information when testing a graphics card (eg, when the second electronic device tests a graphics card to be tested) to perform graphics rendering.
[0091] In a possible implementation, a target graphical program interface tracking file may be recorded in the first electronic device by programming a graphical program interface recording module.
[0092] In some application scenarios, the target graphics program interface tracking file may also be called a target trace file, etc., which is not limited here.
[0093] In the embodiment of the present disclosure, the target standard rendering image group can be used to check the rendering result of the graphics card to be tested when the graphics card is tested (for example, when the second electronic device tests the graphics card to be tested).
[0094] In a possible implementation, the target standard rendering image group may be recorded in the first electronic device by programming a graphics program interface recording module.
[0095] In a possible implementation, the obtaining of the target standard rendering image group, the target graphics program interface tracking file corresponding to the target standard rendering image group, and the target rendering environment file corresponding to the target standard rendering image group includes: obtaining the software and hardware environment information of the second electronic device; according to the software and hardware environment information of the second electronic device, obtaining the target standard rendering image group corresponding to the second electronic device, the target graphics program interface tracking file corresponding to the target standard rendering image group, and the target rendering environment file corresponding to the target standard rendering image group from a standard rendering image group information set; wherein the standard rendering image group information set includes: multiple standard rendering image groups, multiple graphics program interface tracking files corresponding one-to-one to the multiple standard rendering image groups, and rendering environment files corresponding one-to-one to the multiple standard rendering image groups.
[0096] In this implementation, rendering environment files can be collected separately in multiple first electronic devices with normal graphics card rendering functions, and graphics program interface tracking files and standard rendering image groups can be recorded separately. Among them, there can be at least one different piece of software and hardware information between any two first electronic devices. For example, the first electronic device A and the first electronic device B have the same CPU architecture, the same operating system version, and different versions of the graphics program interface recording tool; for another example, the first electronic device A and the first electronic device C have different CPU architectures, the same operating system version, and the same version of the graphics program interface recording tool; for another example, the first electronic device B and the first electronic device D have the same CPU architecture, different operating system versions, and the same version of the graphics program interface recording tool; and so on.
[0097] As an example of this implementation, a standard rendering image group, a rendering environment file, and a graphics program interface tracking file can be obtained respectively in various software and hardware environments.
[0098] In this implementation, a graphics program interface tracking file may correspond to a rendering environment file and a standard rendering image group. Any standard rendering image group may include at least one standard rendering image. For example, any standard rendering image group may include multiple standard rendering images.
[0099] As an example of this implementation method, the test environment management module can be used to obtain, based on the software and hardware environment information of the second electronic device, from the standard rendering image group information set, a target standard rendering image group corresponding to the second electronic device, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group.
[0100] In this implementation, a target graphics program interface tracking file, a target rendering environment file, and a target standard rendering image group that match the software and hardware environment information of the second electronic device can be screened out from the standard rendering image group information set.
[0101] In this implementation, the software and hardware environment information of the second electronic device is obtained, and based on the software and hardware environment information of the second electronic device, the target standard rendering image group corresponding to the second electronic device, the target graphics program interface tracking file corresponding to the target standard rendering image group, and the target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set. By pre-setting the standard rendering image group information set, more software and hardware environments can be compatible, thereby enabling the rendering test of the graphics card to be implemented in more software and hardware environments.
[0102] In a possible implementation, the software and hardware environment information of the second electronic device includes at least one of the following: CPU architecture information of the second electronic device, operating system version information of the second electronic device, and version information of a graphical program interface playback tool in the second electronic device.
[0103] The GPIO playback tool may refer to a tool for playing back GPIO trace files. For example, the GPIO playback tool may be apitrace, RenderDoc, GAPID, etc., which are not limited here.
[0104] In this implementation, the target standard rendering image group corresponding to the second electronic device, the target graphics program interface tracking file corresponding to the target standard rendering image group, and the target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set based on the CPU architecture information of the second electronic device, the operating system version information of the second electronic device, and the version information of the graphics program interface playback tool in the second electronic device. This enables the target rendering environment file, the target graphics program interface tracking file, and the target standard rendering image group that match the software and hardware environment of the second electronic device to be screened out from the standard rendering image group information set.
[0105] In the embodiment of the present disclosure, the group of rendered images to be tested may include at least one rendered image to be tested. For example, the group of rendered images to be tested may include multiple rendered images to be tested.
[0106] In a possible implementation, the target graphics program interface tracking file is played back in the rendering environment obtained by initialization of the second electronic device to obtain the rendering image group to be tested, including: in response to the mismatch between the target graphics program interface tracking file and the software and hardware environment information of the second electronic device, the target graphics program interface tracking file is converted according to the software and hardware environment information of the second electronic device to obtain a converted target graphics program interface tracking file; in the rendering environment obtained by initialization of the second electronic device, the converted target graphics program interface tracking file is played back to obtain the rendering image group to be tested.
[0107] In this implementation, when the target graphical program interface tracking file does not match the software and hardware environment information of the second electronic device, the target graphical program interface tracking file can be converted according to the software and hardware environment information of the second electronic device to obtain a converted target graphical program interface tracking file. For example, at least one of the recording method of the graphical program interface and the storage method of the parameters can be converted.
[0108] As an example of this implementation, the target graphic program interface trace file can be converted by a graphic program interface trace file module (also called a trace file conversion module, etc.) to obtain a converted target graphic program interface trace file.
[0109] In this implementation, in response to the mismatch between the target graphics program interface tracking file and the software and hardware environment information of the second electronic device, the target graphics program interface tracking file is converted according to the software and hardware environment information of the second electronic device to obtain the converted target graphics program interface tracking file, and the converted target graphics program interface tracking file is played back in the rendering environment initialized by the second electronic device to obtain the rendering image group to be tested, thereby being compatible with various software and hardware environments, thereby enabling rendering tests of graphics cards in various software and hardware environments.
[0110] In a possible implementation, the target graphics program interface tracking file may be played back in the second electronic device by programming a graphics program interface playback module to obtain a rendering image group to be tested.
[0111] In the disclosed embodiment, after the rendered image group to be tested is rendered in the second electronic device, the rendered image group to be tested can be compared with the target standard rendered image group to obtain the rendering test result corresponding to the graphics card to be tested. Among them, by comparing the rendered image group to be tested with the target standard rendered image group, the rendering test result of a single test case of the graphics card to be tested can be obtained. If there is no difference between the rendered image group to be tested and the target standard image, it can be determined that the rendering test result of the test case is normal rendering; if there is a difference between the rendered image group to be tested and the target standard image, it can be determined that the rendering test result of the test case is abnormal rendering.
[0112] In a possible implementation manner, a picture checking module may be used to check whether there is a difference between the rendered image group to be tested and the target standard rendered image group.
[0113] In a possible implementation, the engineering management capability of the graphical program interface information file can be provided by the test project management module. For example, the test project management module can be used to manage test projects, test suites, and test cases. For example, any test project can include multiple test suites, each test suite can include multiple test cases, and the test project management module can manage the graphical program interface information file of each test case.
[0114] In a possible implementation, after obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes: generating a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system based on the rendering test result and other rendering test results obtained on the graphics card to be tested, the specified CPU architecture and the specified operating system, wherein the specified CPU architecture represents the CPU architecture of the second electronic device, and the specified operating system represents the operating system of the second electronic device; and outputting the rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system.
[0115] For example, the CPU architecture is specified as X86 and the operating system is specified as Winows; for another example, the CPU architecture is specified as ARM and the operating system is specified as UOS; and so on.
[0116] In this implementation, the rendering test results in any rendering test report may correspond to the same graphics card to be tested, the same CPU architecture and the same operating system. By adopting this implementation, multiple rendering test reports corresponding to the graphics card to be tested under various CPU architectures and operating systems can be integrated.
[0117] In a possible implementation, after obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes: generating a rendering test report corresponding to the graphics card to be tested based on the rendering test result and other rendering test results obtained on the graphics card to be tested; and outputting the rendering test report corresponding to the graphics card to be tested.
[0118] In this implementation, the rendering test report includes rendering test results of the graphics card to be tested under various CPU architectures and operating systems. By adopting this implementation, a comprehensive rendering test report of the graphics card to be tested can be obtained.
[0119] The graphics card rendering test method provided by the embodiments of the present disclosure can be applied to technical fields such as testing and graphics cards, and is not limited here.
[0120] Figure 2 A schematic diagram showing a recording tool framework in a rendering test method for a graphics card provided by an embodiment of the present disclosure. Figure 2 In the example shown, the test machine may include a first electronic device, a second electronic device, a third electronic device, etc. The help module can be used to provide help information to the tester. The environment information acquisition module can be used to collect rendering environment files in each first electronic device. The programming graphic program interface recording module can be used to record the graphic program interface tracking file and the standard rendering image group in each first electronic device. The comparison image acquisition module can be used to collect the rendering image group to be tested in the second electronic device, and return the collected rendering image group to be tested to the recording tool framework. The exception handling module can return exception information to the recording tool framework in response to the difference between the rendering image group to be tested and the target standard rendering image group.
[0121] Figure 3 A schematic diagram showing an execution framework in a rendering test method for a graphics card provided by an embodiment of the present disclosure. Figure 3 In the example shown, the test machine may include a first electronic device, a second electronic device, a third electronic device, etc. The test project management module can be used to manage the graphical program interface information files of the test project, the test suite and the test case. The trace file conversion module (graphical program interface trace file module) can be used to convert the trace file (graphical program interface trace file) into a version corresponding to the hardware and software environment in the second electronic device. The environment analysis module can be used to parse the target rendering environment file. The programming graphical program interface playback module can be used to play back the target graphical program interface trace file in the second electronic device to obtain the rendered image group to be tested. The image inspection module can be used to check whether there is a difference between the rendered image group to be tested and the target standard rendered image group. The test report module can be used to output the rendering test report corresponding to the graphics card to be tested to the test framework.
[0122] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0123] In addition, the present disclosure also provides a graphics card rendering test device, an electronic device, a computer-readable storage medium, and a computer program product, all of which can be used to implement any graphics card rendering test method provided by the present disclosure. The corresponding technical solutions and technical effects can be found in the corresponding records in the method part and will not be repeated here.
[0124] Figure 4 FIG. 1 is a block diagram of a rendering test device for a graphics card provided by an embodiment of the present disclosure. Figure 4 As shown, the rendering test device of the graphics card includes:
[0125] An acquisition module 41 is used to acquire a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, wherein the target standard rendering image group includes at least one target standard rendering image, and the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, and the first electronic device represents an electronic device that renders the target standard rendering image group;
[0126] An initialization module 42, configured to initialize a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested;
[0127] A playback module 43, configured to play back the target graphics program interface tracking file in the rendering environment initialized by the second electronic device to obtain a rendering image group to be tested;
[0128] The comparison module 44 is used to compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
[0129] In a possible implementation, the acquisition module 41 is specifically used to:
[0130] Acquiring software and hardware environment information of the second electronic device;
[0131] According to the software and hardware environment information of the second electronic device, a target standard rendering image group corresponding to the second electronic device, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set; wherein the standard rendering image group information set includes: multiple standard rendering image groups, multiple graphics program interface tracking files corresponding one-to-one to the multiple standard rendering image groups, and rendering environment files corresponding one-to-one to the multiple standard rendering image groups.
[0132] In a possible implementation manner, the software and hardware environment information of the second electronic device includes at least one of the following:
[0133] The CPU architecture information of the second electronic device, the operating system version information of the second electronic device, and the version information of the graphical program interface playback tool in the second electronic device.
[0134] In one possible implementation,
[0135] The target rendering environment file is acquired by the first electronic device in response to a graphics program interface recording instruction;
[0136] The target graphics program interface tracking file and the target standard rendering image group are recorded by the first electronic device through a graphics program interface recording tool in response to the graphics program interface recording instruction.
[0137] In a possible implementation, the playback module 43 is specifically configured to:
[0138] In response to the target graphics program interface tracking file not matching the software and hardware environment information of the second electronic device, converting the target graphics program interface tracking file according to the software and hardware environment information of the second electronic device to obtain a converted target graphics program interface tracking file;
[0139] In the rendering environment initialized by the second electronic device, the converted target graphics program interface tracking file is played back to obtain a rendering image group to be tested.
[0140] In a possible implementation manner, the device further includes:
[0141] A first generating module is used to generate a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system according to the rendering test result and other rendering test results obtained on the graphics card to be tested, the specified CPU architecture and the specified operating system, wherein the specified CPU architecture represents the CPU architecture of the second electronic device, and the specified operating system represents the operating system of the second electronic device;
[0142] The first output module is used to output a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system.
[0143] In a possible implementation manner, the device further includes:
[0144] A second generating module, configured to generate a rendering test report corresponding to the graphics card to be tested according to the rendering test result and other rendering test results obtained on the graphics card to be tested;
[0145] The second output module is used to output a rendering test report corresponding to the graphics card to be tested.
[0146] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. Its specific implementation and technical effects can refer to the description of the above method embodiments. For the sake of brevity, they will not be repeated here.
[0147] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
[0148] The embodiment of the present disclosure further provides a computer program, including a computer-readable code. When the computer-readable code is executed in an electronic device, a processor in the electronic device executes the above method.
[0149] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in an electronic device, a processor in the electronic device executes the above method.
[0150] An embodiment of the present disclosure also provides an electronic device, comprising: one or more processors; and a memory for storing executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory to execute the above method.
[0151] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0152] Figure 5 1 is a block diagram of an electronic device 1900 provided in an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0153] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM ), a graphical user interface operating system launched by Apple (MacOS X TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.
[0154] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0155] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0156] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0157] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0158] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0159] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0160] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0161] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0162] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0163] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0164] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0165] If the technical solution of the embodiments of the present disclosure involves personal information, the product using the technical solution of the embodiments of the present disclosure has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of the embodiments of the present disclosure involves sensitive personal information, the product using the technical solution of the embodiments of the present disclosure has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the requirement of "explicit consent". For example, at personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to collect his or her personal information; or on the device for processing personal information, when the personal information processing rules are notified by obvious signs / information, the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.
[0166] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A rendering test method for a graphics card, characterized in that: include: Obtain a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, wherein the target standard rendering image group includes at least one target standard rendering image, the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, the target rendering environment file is a file representing a rendering environment of the first electronic device before rendering the target standard rendering image group, the target rendering environment file includes information of an execution environment of the first electronic device before rendering the target standard rendering image group, and the target rendering environment file is used to initialize a rendering environment and automatically select the target graphics program interface tracking file during a graphics card test, wherein the first electronic device represents an electronic device that renders the target standard rendering image group; Initializing a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested; In the rendering environment initialized by the second electronic device, playing back the target graphics program interface tracking file to obtain a rendering image group to be tested; The rendering image group to be tested is compared with the target standard rendering image group to obtain a rendering test result corresponding to the graphics card to be tested.
2. The method according to claim 1, characterized in that The step of acquiring a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group includes: Acquiring software and hardware environment information of the second electronic device; According to the software and hardware environment information of the second electronic device, a target standard rendering image group corresponding to the second electronic device, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group are obtained from the standard rendering image group information set; wherein the standard rendering image group information set includes: multiple standard rendering image groups, multiple graphics program interface tracking files corresponding one-to-one to the multiple standard rendering image groups, and rendering environment files corresponding one-to-one to the multiple standard rendering image groups.
3. The method according to claim 2, characterized in that The software and hardware environment information of the second electronic device includes at least one of the following: The CPU architecture information of the second electronic device, the operating system version information of the second electronic device, and the version information of the graphical program interface playback tool in the second electronic device.
4. The method according to claim 1, characterized in that: The target rendering environment file is acquired by the first electronic device in response to a graphics program interface recording instruction; The target graphics program interface tracking file and the target standard rendering image group are recorded by the first electronic device through a graphics program interface recording tool in response to the graphics program interface recording instruction.
5. The method according to claim 1, characterized in that The step of replaying the target graphics program interface tracking file in the rendering environment initialized by the second electronic device to obtain a rendered image group to be tested includes: In response to the target graphics program interface tracking file not matching the software and hardware environment information of the second electronic device, converting the target graphics program interface tracking file according to the software and hardware environment information of the second electronic device to obtain a converted target graphics program interface tracking file; In the rendering environment initialized by the second electronic device, the converted target graphics program interface tracking file is played back to obtain a rendering image group to be tested.
6. The method according to claim 1, characterized in that After obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes: Generate a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture and the specified operating system according to the rendering test result and other rendering test results obtained on the graphics card to be tested, the specified CPU architecture and the specified operating system, wherein the specified CPU architecture represents the CPU architecture of the second electronic device, and the specified operating system represents the operating system of the second electronic device; Output a rendering test report corresponding to the graphics card to be tested, the specified CPU architecture, and the specified operating system.
7. The method according to claim 1, characterized in that After obtaining the rendering test result corresponding to the graphics card to be tested, the method further includes: Generate a rendering test report corresponding to the graphics card to be tested according to the rendering test result and other rendering test results obtained on the graphics card to be tested; Output a rendering test report corresponding to the graphics card to be tested.
8. A rendering test device for a graphics card, characterized in that: include: an acquisition module, configured to acquire a target standard rendering image group, a target graphics program interface tracking file corresponding to the target standard rendering image group, and a target rendering environment file corresponding to the target standard rendering image group, wherein the target standard rendering image group includes at least one target standard rendering image, the target graphics program interface tracking file includes identification information of a graphics program interface called by a first electronic device to render the target standard rendering image group, calling time information of the graphics program interface, and parameter information of the graphics program interface, the target rendering environment file is a file representing a rendering environment of the first electronic device before rendering the target standard rendering image group, the target rendering environment file includes information of an execution environment of the first electronic device before rendering the target standard rendering image group, and the target rendering environment file is used to initialize a rendering environment and automatically select the target graphics program interface tracking file during a graphics card test, wherein the first electronic device represents an electronic device that renders the target standard rendering image group; An initialization module, configured to initialize a rendering environment in a second electronic device according to the target rendering environment file, wherein the second electronic device includes a graphics card to be tested; A playback module, configured to play back the target graphics program interface tracking file in the rendering environment initialized by the second electronic device to obtain a rendering image group to be tested; The comparison module is used to compare the rendering image group to be tested with the target standard rendering image group to obtain the rendering test result corresponding to the graphics card to be tested.
9. An electronic device, characterized in that: include: one or more processors; a memory for storing executable instructions; The one or more processors are configured to call the executable instructions stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Electronic equipment, evaluation method of image rendering performance of electronic equipment and medium
CN114092590A
Graphics card rendering result analysis method and device and storage medium
CN115145778A