Method and apparatus for testing compatibility of 3D engine

US10372571B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10372571-B2
Application numberUS-201515117029-A
CountryUS
Kind codeB2
Filing dateFeb 11, 2015
Priority dateFeb 11, 2014
Publication dateAug 6, 2019
Grant dateAug 6, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present disclosure discloses a method and an apparatus for testing the compatibility of a 3D engine. The method includes: acquiring a hardware capability parameter of a graphics card to be simulated, the hardware capability parameter recording a capability supported by the graphics card; running a predetermined 3D engine according to the hardware capability parameter; and determining, according to a result of running the 3D engine, whether the 3D engine is compatible with the graphics card to be simulated. The present disclosure solves the technical problem that a hardware testing environment needs to be repeatedly built to test the compatibility of the 3D engine on different graphics cards, thereby achieving technical effects of simulating different virtual graphics cards to implement testing in a hardware testing environment built once, and shortening a testing period.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for testing the compatibility of a 3D engine, comprising: acquiring, by a computing terminal, a hardware capability parameter of a graphics card to be simulated, the hardware capability parameter recording a capability supported by the graphics card; running, by the computing terminal, a 3D engine according to the hardware capability parameter; and determining, by the computing terminal according to a result of running the 3D engine, whether the 3D engine is compatible with the graphics card to be simulated, wherein a hardware and software environment of the computing terminal is built once and remains unchanged in testing the compatibility of the 3D engine with different graphics cards to be simulated, wherein the running the 3D engine according to the hardware capability parameter comprises: remodeling an implementation application programming interface (API) needs to be invoked when the 3D engine is run by using a preset API under a premise of making no modification to the 3D engine, including: setting a first function corresponding to the preset API before or in a second function corresponding to the implementation API that needs to be invoked when the 3D engine is run, such that the first function corresponding to the preset API is invoked before the second function corresponding to the implementation API is invoked; determining whether a capability implemented by the implementation API that is invoked when the 3D engine is run is the capability that is supported by the graphics card and recorded by the hardware capability parameter through using the preset API; determining, if the capability implemented by the implementation API is the capability that is supported by the graphics card and recorded by the hardware capability parameter, that the result of running the 3D engine is normal; or determining, if the capability implemented by the implementation API is not the capability that is supported by the graphics card and recorded by the hardware capability parameter, that the result of running the 3D engine is error; and providing a shortened period of testing the compatibility of the 3D engine with a plurality of graphics cards by: instead of building the hardware and software environment of the computing terminal repeatedly for testing the compatibility of the 3D engine with the plurality of graphics cards, running the 3D engine and using the preset API a plurality of times when the implementation API needs to be invoked according to hardware capability parameters of the plurality of graphics cards on the same computing terminal without changing the hardware and software environment of the computing terminal. 2. The method according to claim 1 , wherein the determining, according to a result of running the 3D engine, whether the 3D engine is compatible with the graphics card to be simulated comprises: determining, if the result of running the 3D engine is normal, that the 3D engine is compatible with the graphics card to be simulated; or determining, if the result of running the 3D engine is error, that the 3D engine is incompatible with the graphics card to be simulated. 3. The method according to claim 1 , wherein the determining whether a capability implemented by the implementation API that is invoked when the 3D engine is run is the capability that is supported by the graphics card and recorded by the hardware capability parameter comprises: returning, by using the preset API, when the 3D engine is run, if it is determined that the implementation API needs to be invoked currently, the capability implemented by the invoked implementation API; and determining whether the returned capability is the capability that is supported by the graphics card and recorded by the hardware capability parameter. 4. The method according to claim 1 , after the determining, according to a result of running the 3D engine, whether the 3D engine is compatible with the graphics card to be simulated, further comprising: outputting debug information for identifying the implementation API and identifying information about the capability in a graphical user interface if the result of running the 3D engine is error, such that the debug information locates a root cause of a compatibility issue and allows a developer to fix the compatibility issue conveniently. 5. The method according to claim 1 , wherein before the acquiring a hardware capability parameter of a graphics card to be simulated, the method further comprises: establishing a graphics card information database, wherein the graphics card information database records models and hardware capability parameters of multiple graphics cards comprising the graphics card to be simulated, wherein the acquiring a hardware capability parameter of a graphics card to be simulated comprises: acquiring the hardware capability parameter of the graphics card to be simulated from the graphics card information database. 6. An apparatus for testing the compatibility of a 3D engine, comprising: a processor; and a memory storing a plurality of program units to be executed by the processor, the plurality of program units comprising: an acquiring unit, configured to acquire a hardware capability parameter of a graphics card to be simulated, the hardware capability parameter recording a capability supported by the graphics card; a running unit, configured to run a predetermined 3D engine according to the hardware capability parameter; and a determining unit, configured to determine, according to a result of running the 3D engine, whether the 3D engine is compatible with the graphics card to be simulated, wherein a hardware and software environment of the computing terminal is built once and remains unchanged in testing the compatibility of the 3D engine with different graphics cards to be simulated, wherein the running unit comprises a first determining module, configured to: remodel an implementation application programming interface (API) needs to be invoked when the 3D engine is run by using a preset API under a premise of making no modification to the 3D engine, including: setting a first function corresponding to the preset API before or in a second function corresponding to the implementation API that needs to be invoked when the 3D engine is run, such that the first function corresponding to the preset API is invoked before the second function corresponding to the implementation API is invoked; determine whether a capability implemented by a the implementation API that is invoked when the 3D engine is run is the capability that is supported by the graphics card and recorded by the hardware capability parameter through using the preset API; determine, if the capability implemented by the implementation API is the capability that is supported by the graphics card and recorded by the hardware capability parameter, that the result of running the 3D engine is normal; or determine, if the capability implemented by the implementation API is not the capability that is supported by the graphics card and recorded by the hardware capability parameter, that the result of running the 3D engine is error; and provide a shortened period of testing the compatibility of the 3D engine with a plurality of graphics cards by: instead of building the hardware and software environment of the computing terminal repeatedly for testing the compatibility of the 3D engine with the plurality of graphics cards, running the 3D engine and using the preset API a plurality of times when the implementation API needs to be invoked according to hardware capability parameters of the plurality of graphics cards on the same computing terminal without changing the hardware and software environment of the computing terminal. 7. The apparatus accor

Assignees

Inventors

Classifications

  • by simulating additional hardware, e.g. fault simulation · CPC title

  • to test CPU or processors · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10372571B2 cover?
The present disclosure discloses a method and an apparatus for testing the compatibility of a 3D engine. The method includes: acquiring a hardware capability parameter of a graphics card to be simulated, the hardware capability parameter recording a capability supported by the graphics card; running a predetermined 3D engine according to the hardware capability parameter; and determining, accor…
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F11/2236. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 06 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).