Game rendering method, terminal device, and non-transitory computer-readable storage medium

US10866818B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10866818-B2
Application numberUS-201916525038-A
CountryUS
Kind codeB2
Filing dateJul 29, 2019
Priority dateSep 12, 2018
Publication dateDec 15, 2020
Grant dateDec 15, 2020

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 game rendering method and a terminal device. The terminal device includes a JS layer, a bridge layer, and a system framework layer. The method includes the follows. The JS layer transmits drawing instructions cached in an instruction set to the bridge layer, when a number of the drawing instructions cached in the instruction set is greater than or equal to a first threshold. The bridge layer obtains a rendering result by using an OpenGL capability to process the drawing instructions, and transmits the rendering result to the system framework layer. The system framework layer performs rendering based on the rendering result.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for game rendering being applied to a terminal device, the terminal device comprising a JavaScript (JS) layer, a bridge layer and a system framework layer, and the method comprising: the JS layer transmitting drawing instructions cached in an instruction set to the bridge layer, when a number of the drawing instructions cached in the instruction set is greater than or equal to a first threshold; the bridge layer obtaining a rendering result by using an OpenGL capability to process the drawing instructions; the bridge layer transmitting the rendering result to the system framework layer; and the system framework layer performing rendering based on the rendering result. 2. The method of claim 1 , further comprising: the JS layer receiving a game service code; the JS layer invoking a WebGL capability; the JS layer obtaining an operation instruction by using the WebGL capability to parse the game service code; and the JS layer determining whether the number of the drawing instructions cached in the instruction set is greater than or equal to the first threshold, when the operation instruction is not a query instruction. 3. The method of claim 2 , further comprising: the JS layer transmitting the operation instruction to the bridge layer, when the operation instruction is the query instruction; the bridge layer obtaining a query result by using the OpenGL capability to process the operation instruction; and the bridge layer transmitting the query result to the JS layer. 4. The method of claim 2 , further comprising: the JS layer caching the operation instruction into the instruction set, when the operation instruction is not the query instruction and the number of the drawing instructions cached in the instruction set is less than the first threshold. 5. The method of claim 1 , wherein the bridge layer obtaining the rendering result by using the OpenGL capability to process the drawing instructions comprises: the bridge layer obtaining instruction information by parsing the drawing instructions; the bridge layer using the OpenGL capability to generate an OpenGL drawing command corresponding to the drawing instructions according to the instruction information; and the bridge layer forming the rendering result by drawing the OpenGL drawing command into an OpenGL rendering window. 6. The method of claim 1 , wherein the bridge layer transmitting the rendering result to the system framework layer comprises: the bridging layer caching the rendering result into a pixel buffer; and the bridging layer transmitting the rendering result to the system framework layer by exchanging data with a screen buffer through the pixel buffer. 7. The method of claim 1 , wherein the system framework layer performing rendering based on the rendering result comprises: the system framework layer transmitting the rendering result to a surface flinger; and the system framework layer synthesizing screen contents through the surface flinger based on the rendering result, and displaying the synthesized screen contents on a display screen of the terminal device. 8. A terminal device, comprising: at least one processor; and a computer readable storage coupled to the at least one processor and storing computer programs thereon, which when executed by the processor, cause the processor to: transmit drawing instructions cached in an instruction set to a bridge layer by a JS layer, when a number of the drawing instructions cached in the instruction set is greater than or equal to a first threshold; obtain a rendering result by the bridge layer using an OpenGL capability to process the drawing instructions; transmit the rendering result to a system framework layer by the bridge layer; and perform rendering based on the rendering result by the system framework layer. 9. The terminal device of claim 8 , wherein the computer programs further cause the processor to: receive a game service code by the JS layer; invoke a WebGL capability by the JS layer; obtain an operation instruction by the JS layer using the WebGL capability to parse the game service code; and determine, by the JS layer, whether the number of the drawing instructions cached in the instruction set is greater than or equal to the first threshold, when the operation instruction is not a query instruction. 10. The terminal device of claim 9 , wherein the computer programs further cause the processor to: transmit the operation instruction to the bridge layer by the JS layer, when the operation instruction is the query instruction; obtain a query result by the bridge layer using the OpenGL capability to process the operation instruction; and transmit the query result to the JS layer by the bridge layer. 11. The terminal device of claim 9 , wherein the computer programs further cause the processor to: cache the operation instruction into the instruction set by the JS layer, when the operation instruction is not the query instruction and the number of the drawing instructions cached in the instruction set is less than the first threshold. 12. The terminal device of claim 8 , wherein the computer programs that cause the processor to obtain the rendering result by the bridge layer using an OpenGL capability to process the drawing instructions cause the processor to: obtain instruction information by the bridge layer parsing the drawing instructions; use the OpenGL capability to generate an OpenGL drawing command corresponding to the drawing instructions according to the instruction information; and form the rendering result by the bridge layer drawing the OpenGL drawing command into an OpenGL rendering window. 13. The terminal device of claim 8 , wherein the computer programs that cause the processor to transmit the rendering result to the system framework layer by the bridge layer cause the processor to: cache the rendering result into a pixel buffer by the bridging layer; and transmit the rendering result to the system framework layer by the bridging layer exchanging data with a screen buffer through the pixel buffer. 14. The terminal device of claim 8 , wherein the computer programs that cause the processor to perform rendering based on the rendering result by the system framework layer cause the processor to: transmit the rendering result to a surface flinger by the system framework layer; and synthesize screen contents based on the rendering result by the surface flinger, and display the synthesized screen contents on a display screen of the terminal device. 15. A non-transitory computer-readable storage medium storing computer programs which, when executed by a processor, cause the processor to: transmit drawing instructions cached in an instruction set to a bridge layer by a JS layer, when a number of the drawing instructions cached in the instruction set is greater than or equal to a first threshold; obtain a rendering result by the bridge layer using an OpenGL capability to process the drawing instructions; transmit the rendering result to a system framework layer by the bridge layer; and perform rendering based on the rendering result by the system framework layer. 16. The non-transitory computer-readable storage medium of claim 15 , wherein the computer programs further cause the processor to: receive a game service code by the JS layer; invoke a WebGL capability by the JS layer; obtain an operation instruction by the JS layer using the WebGL capability to parse the game service code; and determine, by the JS layer, whether the number of the drawing instructions cach

Assignees

Inventors

Classifications

  • G06F9/449Primary

    Object-oriented method invocation or resolution · CPC title

  • Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen (G09G5/399 takes precedence) · CPC title

  • using a cache memory · CPC title

  • Reducing the energy consumption · CPC title

  • Control of mixing and/or overlay of colours in general (G09G5/022 and G09G5/024 take precedence) · 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 US10866818B2 cover?
The present disclosure discloses a game rendering method and a terminal device. The terminal device includes a JS layer, a bridge layer, and a system framework layer. The method includes the follows. The JS layer transmits drawing instructions cached in an instruction set to the bridge layer, when a number of the drawing instructions cached in the instruction set is greater than or equal to a f…
Who is the assignee on this patent?
Guangdong Oppo Mobile Telecommunications Corp Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/449. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 15 2020 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 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).