CN105427366B - A kind of image rendering method and image rendering system - Google Patents
A kind of image rendering method and image rendering system Download PDFInfo
- Publication number
- CN105427366B CN105427366B CN201510765138.5A CN201510765138A CN105427366B CN 105427366 B CN105427366 B CN 105427366B CN 201510765138 A CN201510765138 A CN 201510765138A CN 105427366 B CN105427366 B CN 105427366B
- Authority
- CN
- China
- Prior art keywords
- display data
- frame
- special efficacy
- present frame
- slice
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 101
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000010422 painting Methods 0.000 claims abstract description 12
- 230000015654 memory Effects 0.000 claims description 46
- 238000012545 processing Methods 0.000 claims description 15
- 238000013500 data storage Methods 0.000 claims description 11
- 238000004321 preservation Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 15
- 238000011161 development Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 6
- 206010037660 Pyrexia Diseases 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 239000012634 fragment Substances 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Abstract
The embodiment of the invention discloses a kind of image rendering methods, including:The special efficacy object that need to currently render is read, according to the display data that slice preserves when special efficacy object registered in advance, determines that present frame and next frame need the regional area rendered;Regional area is wiped in painting canvas by precomputation renderer, and precomputation rendering is carried out to the corresponding first kind display data of present frame in CpuRes, obtains precomputation figure;The corresponding Second Type display data of present frame in GpuRes is rendered by preset underlying graphics library renderer, and rendering is merged with precomputation figure, present frame is obtained and completely shows image;Wherein, first kind display data is less than Second Type display data, and the invention also discloses a kind of image rendering systems, it using the present invention, solves the operation pressure that special efficacy complicated in the prior art can reduce CPU, causes entirely using interim card and the too fast technical problem of power consumption.
Description
Technical field
The present invention relates to computer realm more particularly to a kind of image rendering method and image rendering systems.
Background technology
In today that mobile Internet application is with rapid changepl. never-ending changes and improvements, user dazzles cruel special efficacy performance to application interface and requires increasingly
Height, many noticeable special efficacys can greatly enhance cognition and the usage experience of user, generate smoothness gifted with an extraordinary retentive memory and experience, but this
If a little complicated special efficacys by preferable optimization can usually consume at runtime many central processing units (CPU,
Central Processing Unit), power consumption is opposite to become faster, and causes entirely to apply interim card, this is with entire Interactive Product Designing
What original intention was disagreed.
In game engine field, many triangular image calculating methods, graphics processor (GPU, Graphics are had accumulated
Processing Unit) accelerate rendering, precomputation locally to render optimization means and correlation experience that the special efficacys such as range render, but
Be these ideas and technology be usually used in the 3D game for needing complex figure to calculate or large-scale role playing game (RPG,
Role-playing game) in, and it is higher to the threshold requirement of developer;Primary on mobile terminal (such as mobile phone) answers
Threshold is developed all the very bottom of this kind of interface encapsulation in order to reduce with APP so that the development and application on the primary frame of mobile phone
Speed with respect to faster, however performance is high not as game application for game frame.
While how reducing exploitation threshold, high performance native applications special efficacy is realized, solve complicated in the prior art
Special efficacy can reduce the operation pressure of CPU, cause entirely using interim card and the too fast technical problem of power consumption, be heat of people's attention
Point.
Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of image rendering method and image rendering system
System, solves the operation pressure that special efficacy complicated in the prior art can reduce CPU, causes entirely to apply interim card and power consumption is too fast
Technical problem.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention discloses a kind of image rendering method, including:
The special efficacy object that need to currently render is read, according to the display number that slice preserves when the special efficacy object registered in advance
According to determining that present frame and next frame need the regional area rendered;
The regional area is wiped in painting canvas by precomputation renderer, and to the central processing unit memory
The corresponding first kind display data of present frame carries out precomputation rendering in CpuRes, obtains precomputation figure;
By preset underlying graphics library renderer to corresponding second class of present frame in graphics processor memory GpuRes
Type display data is rendered, and merges rendering with the precomputation figure, is obtained present frame and is completely shown image;
Wherein, it includes the first kind display data and second class that the present frame, which needs the regional area rendered,
Type display data, the first kind display data are less than the Second Type display data.The underlying graphics library can be than
The open graphic library (OpenGL, Open Graphics Library) of primary APP more bottoms, and encapsulated by skin mode
The special efficacy image library of pairs of upper layer close friend, reduces exploitation threshold so that application developer can easily be developed high performance
Native applications special efficacy.
With reference to first aspect, in the first possible implementation, in the special efficacy object that reads and need to currently render
Before, further include:
When by the special efficacy object registration to graphics engine, calculates in each frame of special efficacy object and effectively show number
According to, and the display data is sliced;
First kind display data after slice is stored in CpuRes, the Second Type display data after slice is protected
There are in GpuRes.
The possible realization method of with reference to first aspect the first, it is described to institute in second of possible realization method
It states after display data is sliced, further includes:The area information rendered will be needed to be stored in erasing memory after slice
In ClearRes;
The display data according to slice preservation when the special efficacy object registered in advance determines present frame and next frame
The regional area rendered is needed, including:It is rendered according to the needs of the present frame and next frame preserved in the ClearRes
Area information confirms that present frame and next frame need the regional area rendered.
The possible realization method of with reference to first aspect the first, in the third possible realization method, the calculating
Effective display data in each frame of special efficacy object, and the display data is sliced;By the first kind after slice
Type display data is stored in CpuRes, and the Second Type display data after slice is stored in GpuRes, including:
Effective display data in each frame of special efficacy object is calculated using triangular image calculating method, and to described aobvious
Registration is according to progress triangle slice;
The display data that triangle less than the first predetermined threshold value is sliced is stored in CpuRes, it is default to will be greater than second
The display data of the triangle slice of threshold value is stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data,
The display data of the triangle slice for being more than the second predetermined threshold value is the Second Type display data;Described first is default
Threshold value is less than or equal to second predetermined threshold value.
With reference to first aspect, it in the 4th kind of possible realization method, is needed in the determining present frame and next frame
Before the regional area of rendering, further include:
Present frame k described in precomputation renders required time TKAnd the present frame down first frame k+1 render needed for
Time TK+1;
As the TKMore than the TK+1When, it is contemplated that calculating the present frame, the second frame k+2 renders required time T downK+2,
As the TKLess than the TK+1When, using the present frame down first frame k+1 as the next frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described in
Next frame;As the TKMore than the TK+1With TK+2The sum of when, it is contemplated that calculate the present frame down third frame k+3 render needed for
Time TK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nFor the present frame, n-th frame k+n renders institute down
The time needed, wherein the n is natural number more than 2, using the present frame down n-th frame k+n as the next frame.
Either second of the first possible realization method of first aspect or first aspect with reference to first aspect
The 4th kind of possible realization method either the third possible realization method of first aspect or first aspect is possible
Realization method, it is described to obtain after present frame completely shows image in the 5th kind of possible realization method, it will be described next
Frame is as present frame and continues to execute the display data according to slice preservation when the special efficacy object registered in advance, and determination is worked as
The step of previous frame and next frame need the regional area rendered.
The 5th kind of possible realization method with reference to first aspect, in the 6th kind of possible realization method, when to described
After the completion of special efficacy object renders, the special efficacy object is destroyed in special efficacy queue, and is read from the special efficacy queue next
A special efficacy object for needing to render.
Second aspect of the embodiment of the present invention discloses a kind of image rendering system, including:
Read module, for reading the special efficacy object that need to currently render;
Area determination module, for according to the display data that slice preserves when the special efficacy object registered in advance, determination to be worked as
Previous frame and next frame need the regional area rendered;
Precomputation rendering module wipes the regional area for passing through precomputation renderer in painting canvas, and to institute
It states the corresponding first kind display data of present frame in central processing unit memory CpuRes and carries out precomputation rendering, obtain precomputation
Figure;
Merge rendering module, for by preset underlying graphics library renderer in graphics processor memory GpuRes when
The corresponding Second Type display data of previous frame is rendered, and merges rendering with the precomputation figure, obtains present frame
Complete display image;
Wherein, it includes the first kind display data and second class that the present frame, which needs the regional area rendered,
Type display data, the first kind display data are less than the Second Type display data.
In conjunction with second aspect, in the first possible implementation, further include:
Slice module is calculated, for before the read module reads the special efficacy object that need to currently render, will be described
When special efficacy object registration is to graphics engine, effective display data in each frame of special efficacy object is calculated, and to the display
Data are sliced;
Data storage module, for the first kind display data after slice to be stored in CpuRes, after slice
Second Type display data is stored in GpuRes.
In conjunction with the first possible realization method of second aspect, in second of possible realization method, the data
Preserving module is additionally operable to, and after calculating slice module is sliced the display data, will need to render after slice
Area information be stored in erasing memory ClearRes;
The area determination module is specifically used for, according to the need of the present frame and next frame that are preserved in the ClearRes
The area information to be rendered confirms that present frame and next frame need the regional area rendered.
In conjunction with the first possible realization method of second aspect, in the third possible realization method, the calculating
Module is sliced to be specifically used for calculating effective display data in each frame of special efficacy object using triangular image calculating method, and
Triangle slice is carried out to the display data;
The data storage module is specifically used for, and the display data of the slice of the triangle less than the first predetermined threshold value is preserved
In CpuRes, the display data that will be greater than the triangle slice of the second predetermined threshold value is stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data,
The display data of the triangle slice for being more than the second predetermined threshold value is the Second Type display data;Described first is default
Threshold value is less than or equal to second predetermined threshold value.
Further include in the 4th kind of possible realization method in conjunction with second aspect:
Time precalculation module, for determining that present frame and next frame need the office rendered in the area determination module
Before portion region, it is contemplated that calculate the present frame k and render required time TKAnd first frame k+1 is rendered the present frame down
Required time TK+1;
As the TKMore than the TK+1When, the time precalculation module is additionally operable to present frame described in precomputation down
Two frame k+2 render required time TK+2, as the TKLess than the TK+1When, using the present frame down first frame k+1 as
The next frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described in
Next frame;As the TKMore than the TK+1With TK+2The sum of when, the time precalculation module is additionally operable to described in precomputation current
Third frame k+3 renders required time T to frame downK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nFor institute
Stating present frame, n-th frame k+n renders the required time down, wherein the n is the natural number more than 2, down by the present frame
N-th frame k+n is as the next frame.
In conjunction with second of second aspect either the first possible realization method of second aspect or second aspect
The 4th kind of possible realization method either the third possible realization method of second aspect or second aspect is possible
Realization method, in the 5th kind of possible realization method, the merging rendering module obtain present frame completely show image it
Afterwards, using the next frame as present frame and continue to execute it is described preserved according to slice when the special efficacy object registered in advance it is aobvious
Registration evidence, and trigger the step that the area determination module executes the regional area for determining that present frame and next frame needs render
Suddenly.
The 5th kind of possible realization method in conjunction with second aspect further include in the 6th kind of possible realization method:
Module is destroyed, is used for after the completion of being rendered to the special efficacy object, by the special efficacy object pin in special efficacy queue
It ruins;And it triggers the read module and reads next special efficacy object for needing to render from the special efficacy queue.
The third aspect of the embodiment of the present invention discloses a kind of computer storage media, and the computer storage media is stored with
Program, described program include the embodiment of the present invention when executing in a first aspect, first aspect the first possible realization side
Formula either first aspect second of possible realization method either the third possible realization method of first aspect or
5th kind of possible realization method or first party of the 4th kind of possible realization method of first aspect either first aspect
The Overall Steps of image rendering method disclosed in the 6th kind of possible realization method in face.
Implement the embodiment of the present invention, has the advantages that:
By implement the embodiment of the present invention, first pass through precomputation renderer in the central processing unit memory CpuRes when
The corresponding first kind display data of previous frame carries out precomputation rendering, obtains precomputation figure, then pass through preset underlying graphics
Library renderer renders the corresponding Second Type display data of present frame in graphics processor memory GpuRes, and with it is described
Precomputation figure merges rendering, obtains present frame and completely shows image, realizes effective hybrid rending pattern, solves
Complicated special efficacy can reduce the operation pressure of CPU in the prior art, cause entirely to ask using interim card and the too fast technology of power consumption
Topic reduces mobile terminal fever, and brings more smooth special efficacy usage experience to user;The underlying graphics library can be than
The open graphic library (OpenGL, Open Graphics Library) of primary APP more bottoms, and encapsulated by skin mode
The special efficacy image library of pairs of upper layer close friend, reduces exploitation threshold so that application developer can easily be developed high performance
Native applications special efficacy improves development efficiency, and system generally light weight level framework, can substantially reduce development cost.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the schematic diagram that image rendering provided in an embodiment of the present invention realizes frame;
Fig. 2 is external application programming interface provided in an embodiment of the present invention and principle flow chart;
Fig. 3 is the flow diagram of image rendering method provided in an embodiment of the present invention;
Fig. 4 is the principle schematic that triangle slice provided in an embodiment of the present invention preserves;
Fig. 5 is the principle schematic of code logic precomputation provided in an embodiment of the present invention;
Fig. 6 is that double accelerated passages provided in an embodiment of the present invention render the principle schematic calculated;
Fig. 7 is the flow diagram of another embodiment of image rendering method provided by the invention;
Fig. 8 is the principle schematic of special efficacy queue management device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of image rendering system provided by the invention;
Figure 10 is the structural schematic diagram of another embodiment of image rendering system provided by the invention;
Figure 11 is the structural schematic diagram of another embodiment of image rendering system provided by the invention;
Figure 12 is the structural schematic diagram of another embodiment of image rendering system provided by the invention;
Figure 13 is the structural schematic diagram of another embodiment of image rendering system provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
The schematic diagram of frame is realized referring to the image rendering provided in an embodiment of the present invention shown in Fig. 1, wherein render control
Command analysis device in platform is responsible for parsing and executes the special efficacy order received, then by hardware-accelerated wafer breaker by special efficacy team
Special efficacy object in column manager is CPU/GPU and calculates fragment processing, obtains hardware-accelerated required fragment and shows flow object.It runs
Road model thread is responsible for that the fragment display flow object of each frame is rendered and shown in a manner of the libraries OpenGL by OpenGL renderers
It shows to come, and by the display area of precomputation renderer precomputation next frame and repeats to render region, if repeating to render area
Domain is very big to be executed than relatively time-consuming, will usage time difference renderer remained into lower frame and redrawn again, which reduces
Unnecessary expense.
It should be noted that the embodiment of the present invention can be helped in mobile phone, removable computer, tablet computer, individual digital
Manage (Personal Digital Assistant, PDA), media player, smart television, smartwatch, intelligent glasses, intelligence
Arrange that image rendering shown in FIG. 1 realizes frame on the mobile terminals such as bracelet or user equipment.
It should also be noted that, the embodiment of the present invention can use the singleton model in computer program design, that is,
It says, by taking mobile phone as an example, one piece of unique application heap is only distributed in the life cycle of cell phone application, developer needs not worry about
The problem of repeating to create, so all very simple in deployment and use, it is only necessary to call initialization when cell phone application starts
Getinstance methods activate this set mechanism, and then registration needs the special efficacy optimized to registerEffect (id:int,
eff:IEffect) method calls execute (id needing the place using special efficacy:int,obj:Object) method.
External application programming interface (API, Application Programming provided in an embodiment of the present invention as shown in Figure 2
) and principle flow chart Interface:
The first step:When APP is initialized, EffectCore.getinstance methods initialization figure is called to draw
It holds up.
Second step:Realize IEffect interfaces, the special efficacy object that construction one needs oneself.
Third walks:EffectCore.getinstance.registerEffect methods are called to realize oneself
IEffect object registrations are to graphics engine.
4th step:EffectCore.getinstance.execute methods are called when needing to execute, and execute this
A specific special efficacy.
With reference to the flow diagram of the image rendering method provided in an embodiment of the present invention shown in Fig. 3, it is described in detail
The image rendering method of the present invention, including:
Step S300:The special efficacy object that need to currently render is read, is preserved according to being sliced when the special efficacy object registered in advance
Display data, determine that present frame and next frame need the regional area rendered;
Specifically, a special efficacy object can correspond to multiple image data, that is to say, that a special efficacy object is by multiframe figure
It is presented as combination, when system, which receives special efficacy, to be executed instruction, the special efficacy object rendered can will be needed to be put into special efficacy queue
In manager, the special efficacy queue in the special efficacy queue management device of the embodiment of the present invention follows the logic of first in first out;So system
The special efficacy object that need to currently render can be read from the special efficacy queue management, and according to the special efficacy object when being registered pair
It should carry out the display data of slice preservation, it may be determined that the special efficacy object present frame and next frame need the partial zones rendered
Domain, that is, the corresponding display area of display data that the slice of present frame and next frame preserves is present frame and next frame
Need the regional area rendered.
It should be noted that multiple first kind display datas or multiple second can be sliced out in a frame image data
Type display data.Wherein, it includes the first kind display data and second class which, which needs the regional area rendered,
Type display data, the first kind display data is less than the Second Type display data in each embodiment of the present invention, that is,
It says, which is less than the corresponding display area of Second Type display data.
It should also be noted that, can also be included in before step S300 when will change special efficacy object registration to graphics engine,
Effective display data in each frame of special efficacy object is calculated, and the display data is sliced;By the first kind after slice
Type display data is stored in CpuRes, and the Second Type display data after slice is stored in GpuRes.
Specifically, when a special efficacy object is registered to graphics engine, it can be assigned to a sub-line journey pre-execution
Once, then hardware-accelerated wafer breaker can be particularly shown data slicer to its each frame;In each embodiment of the present invention
Slice includes but not limited to carry out triangle slice by triangular image calculating method, as Fig. 4 shows that the embodiment of the present invention provides
Triangle slice preserve principle schematic, list two field pictures data and be sliced, triangular graph can be passed through first
As calculating method calculates effective display data (being particularly shown data) in each frame of special efficacy object, and to the display data into
Row triangle is sliced;Then the first kind display data after slice is stored in CpuRes by pattern analysis, will be sliced
Second Type display data afterwards is stored in GpuRes;Again in detail, the triangle less than the first predetermined threshold value can be cut
The display data of piece is stored in CpuRes, and the display data that will be greater than the triangle slice of the second predetermined threshold value is stored in
In GpuRes, that is to say, that the first kind display data should be used as less than the triangle slice of the first predetermined threshold value, this is more than
The display data of the triangle slice of second predetermined threshold value as the Second Type display data, and the first predetermined threshold value be less than or
Equal to second predetermined threshold value, so that the corresponding display area of first kind display data is shown less than the Second Type
The corresponding display area of data.
In addition, the embodiment of the present invention can also will need the region (it is corresponding to be particularly shown data) wiped to be stored in wiping
Except in memory ClearRes, then, system, can also be according to the ClearRes after reading the special efficacy object that need to currently render
The area information that the present frame of middle preservation and the needs of next frame render confirms that present frame and next frame need the office rendered
Portion region.
Step S302:The regional area is wiped in painting canvas by precomputation renderer, and to the central processing
The corresponding first kind display data of present frame carries out precomputation rendering in device memory CpuRes, obtains precomputation figure;
Specifically, can with the principle schematic of the code logic precomputation provided in an embodiment of the present invention shown in reference chart 5,
In conjunction with the frame diagram of Fig. 1, when rendering starts operation, runway model thread is started to work, which can be in each CPU free time
When start the rendering of next frame, the runway of each frame all includes executing code logic precomputation (Code Execution) and executing
Double accelerated passages, which render, calculates (Accelerated Renderding), and precomputation renderer is called in the code logic precomputation
After needing the regional area rendered to be wiped in painting canvas present frame and next frame, corresponding to present frame in CpuRes first
Type display data carries out precomputation rendering, obtains precomputation figure;
It should be noted that after obtaining precomputation figure, which can also be by hardware-accelerated wafer breaker
CpuRes in the corresponding first kind display data of next frame that preserves be defeated by CPU in advance and calculated.
Step S304:Present frame in graphics processor memory GpuRes is corresponded to by preset underlying graphics library renderer
Second Type display data rendered, and merge rendering with the precomputation figure, obtain present frame and completely show
Diagram picture.
Specifically, the principle calculated can be rendered with double accelerated passages provided in an embodiment of the present invention shown in reference chart 6 to show
It is intended to, when executing double accelerated passages rendering calculating, can first locks current painting canvas, it is ensured that user not can be appreciated that showing for splashette
As, then it will need in triangle (by taking triangle the is sliced as an example) digital independent to runway model rendered using GPU, i.e., it will figure
The corresponding Second Type display data of present frame is read in runway model in shape processor memory GpuRes, then using default
Underlying graphics library renderer the corresponding Second Type display data of present frame in the GpuRes is rendered, while can will
Code logic precomputation is defeated by the CpuRes memories (i.e. above-mentioned precomputation figure) that CPU execution is completed and is also defeated by the underlying graphics library
Renderer merges rendering, then can be finally obtained and added by binary channels (CPU&GPU) mixing with matrixing graphical information again
The present frame of speed completely renders image, and unlocks the locking of this painting canvas, and user is allowed to can see this complete frame image.
By implement the embodiment of the present invention, first pass through precomputation renderer in the central processing unit memory CpuRes when
The corresponding first kind display data of previous frame carries out precomputation rendering, obtains precomputation figure, then pass through preset underlying graphics
Library renderer renders the corresponding Second Type display data of present frame in graphics processor memory GpuRes, and with it is described
Precomputation figure merges rendering, obtains present frame and completely shows image, realizes effective hybrid rending pattern, solves
Complicated special efficacy can reduce the operation pressure of CPU in the prior art, cause entirely to ask using interim card and the too fast technology of power consumption
Topic reduces mobile terminal fever, and brings more smooth special efficacy usage experience to user;The underlying graphics library can be than
The open graphic library (OpenGL, Open Graphics Library) of primary APP more bottoms, and encapsulated by skin mode
The special efficacy image library of pairs of upper layer close friend, reduces exploitation threshold so that application developer can easily be developed high performance
Native applications special efficacy improves development efficiency, and system generally light weight level framework, can substantially reduce development cost.
Still further, the flow signal of another embodiment of image rendering method provided by the invention as shown in Figure 7
Figure, including:
Step S700:Read the special efficacy object that need to currently render;
Specifically, the realization method for the special efficacy object that need to currently render is read with reference to step S300 in above-mentioned Fig. 3 embodiments,
Which is not described herein again.
Step S702:Precomputation present frame k renders required time TKAnd present frame first frame k+1 wash with watercolours down
Time T needed for dyeK+1;
Specifically, due to the render time that each frame is executed by runway model thread be it is unfixed (may be due to certain
One frame is complex and consumes the more time), memory size that system can be rendered with allocating time difference renderer according to this and
Cpu frequency precomputation present frame k renders required time TK, and it is pre- according to the memory size and cpu frequency rendered next time
Calculating present frame, first frame k+1 renders required time T downK+1。
Step S704:As the TKMore than the TK+1When, it is contemplated that needed for calculating the present frame the second frame k+2 being rendered down
Time TK+2;
Specifically, work as TKMore than TK+1When, it can be worked as according to estimated calculate of the memory size and cpu frequency that render next time
The second frame k+2 renders required time T to previous frame downK+2。
Step S706:As the TKLess than the TK+1When, using the present frame down first frame k+1 as described next
Frame;
Step S708:As the TKLess than the TK+1With the TK+2The sum of when, by the present frame the second frame k+2 down
As the next frame;
Step S7010:As the TKMore than the TK+1With TK+2The sum of when, it is contemplated that calculate present frame third frame k+ down
3 render required time TK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, by the present frame, n-th frame k+n makees down
For the next frame;
Specifically, the TK+nFor the present frame, n-th frame k+n renders the required time down, and the wherein n is the nature more than 2
Number.The embodiment of the present invention passes through allocating time difference renderer, it is contemplated that the time consumed may be needed by calculating frame image rendering, if the frame
It, will be this next a few frame figure when being more than the time that following a few frame image renderings are needed to wait for the time required to image rendering
It as directly abandoning, and allows runway model thread to execute more subsequent frame and renders, can thus be saved in interim card much not
Necessary frame calculates, and greatly improves rendering efficiency.
Step S7012:According to when the special efficacy object registered in advance slice preserve display data, determine present frame and
Next frame needs the regional area rendered;
Step S7014:The regional area is wiped in painting canvas by precomputation renderer, and to the central processing
The corresponding first kind display data of present frame carries out precomputation rendering in device memory CpuRes, obtains precomputation figure;
Step S7016:By preset underlying graphics library renderer to present frame pair in graphics processor memory GpuRes
The Second Type display data answered is rendered, and merges rendering with the precomputation figure, and it is complete to obtain present frame
Show image.
Specifically, step S7012 to step S7016 can refer to step S300 to step S304 in above-mentioned Fig. 3 embodiments
Description, which is not described herein again.
Still further, can be with after the step S716 of step S304 or Fig. 7 embodiment of Fig. 3 embodiments of the present invention
Including the next frame as present frame and is continued to execute this according to the display that slice preserves when the special efficacy object registered in advance
Data determine the step of present frame and next frame need the regional area rendered, to complete all frames in the special efficacy object
The rendering of image;
In addition, after the completion of being rendered to the special efficacy object, the special efficacy object is destroyed in special efficacy queue, and from the special efficacy
Next special efficacy object for needing to render is read in queue;Specifically, special efficacy team provided in an embodiment of the present invention as shown in Figure 8
The principle schematic of column manager, special efficacy queue follow first in first out logic, such as an ID1_ spy in special efficacy queue management
Effect is performed addition queue, if the ID queues are not present, a queue is created, as the spy in special efficacy queue management device
When effect object is notified execution, the displacement and deformation of every frame in the special efficacy object can be converted to OpenGL by command analysis device
The rendering script that renderer can identify;(special efficacy object wash with watercolours when a special efficacy object in special efficacy queue, which executes, to be completed
After the completion of dye), the special efficacy object can be destroyed in special efficacy queue, and from the spy by calling its dispose methods
Next special efficacy object for needing to render is read in effect queue, if all special efficacy objects have all been performed in the special efficacy queue
At the then queue also can be destroyed, executes next special efficacy queue.
By implement the embodiment of the present invention, first pass through precomputation renderer in the central processing unit memory CpuRes when
The corresponding first kind display data of previous frame carries out precomputation rendering, obtains precomputation figure, then pass through preset underlying graphics
Library renderer renders the corresponding Second Type display data of present frame in graphics processor memory GpuRes, and with it is described
Precomputation figure merges rendering, obtains present frame and completely shows image, realizes effective hybrid rending pattern, solves
Complicated special efficacy can reduce the operation pressure of CPU in the prior art, cause entirely to ask using interim card and the too fast technology of power consumption
Topic reduces mobile terminal fever, and brings more smooth special efficacy usage experience to user;The underlying graphics library can be than
The open graphic library (OpenGL, Open Graphics Library) of primary APP more bottoms, and encapsulated by skin mode
The special efficacy image library of pairs of upper layer close friend, reduces exploitation threshold so that application developer can easily be developed high performance
Native applications special efficacy improves development efficiency, and system generally light weight level framework, can substantially reduce development cost.
For the ease of preferably implementing the said program of the embodiment of the present invention, the present invention also correspondence provides a kind of image wash with watercolours
Dye system, the structural schematic diagram of image rendering system provided by the invention as shown in Figure 9, image rendering system 90 can wrap
It includes:Read module 900, area determination module 902, precomputation rendering module 904 and merging rendering module 906, wherein
Read module 900 is for reading the special efficacy object that need to currently render;
Area determination module 902 is used to, according to the display data that slice preserves when the special efficacy object registered in advance, determine
Present frame and next frame need the regional area rendered;
Precomputation rendering module 904 is used to wipe the regional area in painting canvas by precomputation renderer, and right
The corresponding first kind display data of present frame carries out precomputation rendering in the central processing unit memory CpuRes, is expected
Nomogram shape;
Merge rendering module 906 to be used for through preset underlying graphics library renderer in graphics processor memory GpuRes
The corresponding Second Type display data of present frame is rendered, and merges rendering with the precomputation figure, is obtained current
Frame completely shows image;
Wherein, it includes the first kind display data and second class that the present frame, which needs the regional area rendered,
Type display data, the first kind display data are less than the Second Type display data.
Specifically, the structural schematic diagram of another embodiment of image rendering system provided by the invention as shown in Figure 10,
Image rendering system 90 includes read module 900, area determination module 902, precomputation rendering module 904 and merges rendering module
Can also include calculating slice module 908 and data storage module 9010 outside 906, wherein
It calculates slice module 908 to be used for before read module 900 reads the special efficacy object that need to currently render, will be described
When special efficacy object registration is to graphics engine, effective display data in each frame of special efficacy object is calculated, and to the display
Data are sliced;
Data storage module 9010 is used to the first kind display data after slice being stored in CpuRes, after slice
Second Type display data be stored in GpuRes.
Further, the data storage module 9010 in the embodiment of the present invention is additionally operable to, and is calculating slice module 908 to institute
It states after display data is sliced, the area information rendered will be needed to be stored in erasing memory ClearRes after slice;
Area determination module 902 is specifically used for, according to the need of the present frame and next frame that are preserved in the ClearRes
The area information to be rendered confirms that present frame and next frame need the regional area rendered.
Still further, the calculating slice module 908 in the embodiment of the present invention is specifically used for calculating using triangular image
Method calculates effective display data in each frame of special efficacy object, and carries out triangle slice to the display data;
Data storage module 9010 is specifically used for, and the display data of the slice of the triangle less than the first predetermined threshold value is preserved
In CpuRes, the display data that will be greater than the triangle slice of the second predetermined threshold value is stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data,
The display data of the triangle slice for being more than the second predetermined threshold value is the Second Type display data;Described first is default
Threshold value is less than or equal to second predetermined threshold value.
Still further, the structural representation of another embodiment of image rendering system provided by the invention as shown in Figure 11
Figure, image rendering system 90 include read module 900, area determination module 902, precomputation rendering module 904, merge rendering mould
Block 906 calculates outside slice module 908 and data storage module 9010, can also include time precalculation module 9012, be used for
Before area determination module 902 determines that present frame and next frame need the regional area rendered, it is contemplated that calculate the present frame k wash with watercolours
Time T needed for dyeKAnd first frame k+1 renders required time T to the present frame downK+1;
As the TKMore than the TK+1When, time precalculation module 9012 is additionally operable to present frame described in precomputation down
Two frame k+2 render required time TK+2, as the TKLess than the TK+1When, using the present frame down first frame k+1 as
The next frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described in
Next frame;As the TKMore than the TK+1With TK+2The sum of when, time precalculation module 9012 is additionally operable to described in precomputation current
Third frame k+3 renders required time T to frame downK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nFor institute
Stating present frame, n-th frame k+n renders the required time down, wherein the n is the natural number more than 2, down by the present frame
N-th frame k+n is as the next frame.
Still further, merging rendering module 906 obtain that after present frame completely shows image, the next frame being made
For present frame and the display data according to slice preservation when the special efficacy object registered in advance is continued to execute, and triggers region
Determining module 902, which executes, determines the step of present frame and next frame need the regional area rendered.
Still further, the structural representation of another embodiment of image rendering system provided by the invention as shown in Figure 12
Figure, image rendering system 90 include read module 900, area determination module 902, precomputation rendering module 904, merge rendering mould
Block 906 calculates outside slice module 908, data storage module 9010 and time precalculation module 9012, can also include destroying mould
Block 9014, for after the completion of being rendered to the special efficacy object, destroying the special efficacy object in special efficacy queue;And trigger reading
Modulus block 900 reads next special efficacy object for needing to render from the special efficacy queue.
It should be noted that image rendering system 90 can also include precomputation renderer, underlying graphics library renderer, spy
Queue management device etc. is imitated, is not marked in figure.Image rendering system 90 includes but not limited to mobile phone, mobile electricity
Brain, tablet computer, personal digital assistant PDA, media player, smart television, smartwatch, intelligent glasses, Intelligent bracelet etc.
Equipment.
Please refer to Fig.1 the structural schematic diagram that 3, Figure 13 is another embodiment of image rendering system provided by the invention.Its
In, as shown in figure 13, image rendering system 130 may include:At least one processor 1301, such as CPU, at least one network
Interface 1304, user interface 1303, memory 1305, at least one communication bus 1302 and display screen 1306.Wherein, it communicates
Bus 1302 is for realizing the connection communication between these components.Wherein, user interface 1303 may include display screen
(Display) 13, optional user interface 1303 can also include standard wireline interface and wireless interface.Network interface 1304 can
Choosing may include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1305 can be high-speed RAM storage
Device can also be non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Storage
Device 1305 optionally can also be at least one storage device for being located remotely from aforementioned processor 1301.As shown in figure 13, as
May include in a kind of memory 1305 of computer storage media operating system, network communication module, Subscriber Interface Module SIM with
And image rendering program.
In the image rendering system 130 shown in Figure 13, which can be used for Connection Service device, with service
Device is into row data communication;And processor 1301 can be used for calling the image rendering program stored in memory 1305, and execute
It operates below:
The special efficacy object that need to currently render is read, according to the display number that slice preserves when the special efficacy object registered in advance
According to determining that present frame and next frame need the regional area rendered;
The regional area is wiped in painting canvas by precomputation renderer, and to the central processing unit memory
The corresponding first kind display data of present frame carries out precomputation rendering in CpuRes, obtains precomputation figure;
By preset underlying graphics library renderer to corresponding second class of present frame in graphics processor memory GpuRes
Type display data is rendered, and merges rendering with the precomputation figure, is obtained present frame and is completely shown image;
Wherein, it includes the first kind display data and second class that the present frame, which needs the regional area rendered,
Type display data, the first kind display data are less than the Second Type display data.
Specifically, processor 1301 can also be performed before the special efficacy object that reads and need to currently render:
When by the special efficacy object registration to graphics engine, calculates in each frame of special efficacy object and effectively show number
According to, and the display data is sliced;
First kind display data after slice is stored in CpuRes, the Second Type display data after slice is protected
There are in GpuRes.
Specifically, it after processor 1301 is sliced the display data, can also be performed:Wash with watercolours will be needed after slice
The area information of dye is stored in erasing memory ClearRes;
Processor 1301 according to when the special efficacy object registered in advance slice preserve display data, determine present frame and
Next frame needs the regional area rendered, including:According to the needs of the present frame and next frame that are preserved in the ClearRes
The area information of rendering confirms that present frame and next frame need the regional area rendered.
Specifically, processor 1301 calculates effective display data in each frame of special efficacy object, and to the display
Data are sliced;First kind display data after slice is stored in CpuRes, the Second Type after slice is shown
Data are stored in GpuRes, including:
Effective display data in each frame of special efficacy object is calculated using triangular image calculating method, and to described aobvious
Registration is according to progress triangle slice;
The display data that triangle less than the first predetermined threshold value is sliced is stored in CpuRes, it is default to will be greater than second
The display data of the triangle slice of threshold value is stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data,
The display data of the triangle slice for being more than the second predetermined threshold value is the Second Type display data;Described first is default
Threshold value is less than or equal to second predetermined threshold value.
Specifically, processor 1301 is before the determining present frame and next frame need the regional area rendered, also
It can execute:
Present frame k described in precomputation renders required time TKAnd the present frame down first frame k+1 render needed for
Time TK+1;
As the TKMore than the TK+1When, it is contemplated that calculating the present frame, the second frame k+2 renders required time T downK+2,
As the TKLess than the TK+1When, using the present frame down first frame k+1 as the next frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described in
Next frame;As the TKMore than the TK+1With TK+2The sum of when, it is contemplated that calculate the present frame down third frame k+3 render needed for
Time TK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nFor the present frame, n-th frame k+n renders institute down
The time needed, wherein the n is natural number more than 2, using the present frame down n-th frame k+n as the next frame.
Specifically, it obtains after present frame completely shows image, processor 1301 is using the next frame as present frame
And continue to execute described according to the display data that slice preserves when the special efficacy object registered in advance, determine present frame and next
Frame needs the step of regional area rendered.
Specifically, after the completion of being rendered to the special efficacy object, processor 1301 is in special efficacy queue by the special efficacy pair
As destroying, and next special efficacy object for needing to render is read from the special efficacy queue.
It will be appreciated that each function mould of the image rendering system 90 or image rendering system 130 in the embodiment of the present invention
The function of block can be implemented according to the method in above method embodiment, and specific implementation process is referred to above method reality
The associated description of example is applied, details are not described herein again.
In conclusion by implementing the embodiment of the present invention, precomputation renderer is first passed through to the central processing unit memory
The corresponding first kind display data of present frame carries out precomputation rendering in CpuRes, obtains precomputation figure, then by default
Underlying graphics library renderer to the corresponding Second Type display data of present frame in graphics processor memory GpuRes carry out wash with watercolours
Dye, and rendering is merged with the precomputation figure, it obtains present frame and completely shows image, realize effective mixing wash with watercolours
Dye pattern solves the operation pressure that special efficacy complicated in the prior art can reduce CPU, causes entirely to apply interim card and power consumption
Fast technical problem reduces mobile terminal fever, and brings more smooth special efficacy usage experience to user;The underlying graphics
Library can be the open graphic library (OpenGL, Open Graphics Library) of bottom more than primary APP, and by outer
The special efficacy image library for seeing the pairs of upper layer close friend of Mode encapsulations, reduces exploitation threshold so that application developer can be developed easily
Go out high performance native applications special efficacy, improves development efficiency, and system generally light weight level framework, exploitation can be substantially reduced
Cost.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (12)
1. a kind of image rendering method, which is characterized in that including:
The special efficacy object that need to currently render is read, according to the display data that slice preserves when the special efficacy object registered in advance, really
Settled previous frame and next frame need the regional area rendered;
The regional area is wiped in painting canvas by precomputation renderer, and to current in central processing unit memory CpuRes
The corresponding first kind display data of frame carries out precomputation rendering, obtains precomputation figure;
It is aobvious to the corresponding Second Type of present frame in graphics processor memory GpuRes by preset underlying graphics library renderer
Registration merges rendering according to being rendered with the precomputation figure, obtains present frame and completely shows image;
Wherein, it includes that the first kind display data and the Second Type are aobvious that the present frame, which needs the regional area rendered,
Registration evidence, it is described read the special efficacy object that need to currently render before, further include:
When by the special efficacy object registration to graphics engine, effective display data in each frame of special efficacy object is calculated,
And the display data is sliced;First kind display data after slice is stored in CpuRes, after slice
Second Type display data is stored in GpuRes;
Display data less than the slice of the first predetermined threshold value is the first kind display data, is more than the second predetermined threshold value
The display data of slice is the Second Type display data;The corresponding display area of the first kind display data is less than institute
State the corresponding display area of Second Type display data.
2. the method as described in claim 1, which is characterized in that it is described the display data is sliced after, further include:
The area information rendered will be needed to be stored in erasing memory ClearRes after slice;
The display data according to slice preservation when the special efficacy object registered in advance determines present frame and next frame needs
The regional area of rendering, including:The region rendered according to the needs of the present frame and next frame preserved in the ClearRes
Information confirms that present frame and next frame need the regional area rendered.
3. the method as described in claim 1, which is characterized in that described calculate effectively shows in each frame of special efficacy object
Data, and the display data is sliced;First kind display data after slice is stored in CpuRes, will be sliced
Second Type display data afterwards is stored in GpuRes, including:
Effective display data in each frame of special efficacy object is calculated using triangular image calculating method, and to the display number
According to progress triangle slice;
The display data that triangle less than the first predetermined threshold value is sliced is stored in CpuRes, the second predetermined threshold value is will be greater than
Triangle slice display data be stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data, described
Display data more than the triangle of the second predetermined threshold value slice is the Second Type display data;First predetermined threshold value
Less than or equal to second predetermined threshold value.
4. the method as described in claim 1, which is characterized in that need the office rendered in the determining present frame and next frame
Before portion region, further include:
Present frame k described in precomputation renders required time TKAnd the present frame down first frame k+1 render needed for when
Between TK+1;
As the TKMore than the TK+1When, it is contemplated that calculating the present frame, the second frame k+2 renders required time T downK+2, work as institute
State TKLess than the TK+1When, using the present frame down first frame k+1 as the next frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described next
Frame;As the TKMore than the TK+1With TK+2The sum of when, it is contemplated that calculate the present frame down third frame k+3 render needed for time
TK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nFor the present frame down n-th frame k+n render needed for
Time, wherein the n is natural number more than 2, using the present frame down n-th frame k+n as the next frame.
5. method according to any one of claims 1-4, which is characterized in that it is described obtain present frame completely show image it
Afterwards, using the next frame as present frame and continue to execute it is described preserved according to slice when the special efficacy object registered in advance it is aobvious
Registration evidence determines the step of present frame and next frame need the regional area rendered.
6. method as claimed in claim 5, which is characterized in that after the completion of being rendered to the special efficacy object, in special efficacy queue
It is middle to destroy the special efficacy object, and next special efficacy object for needing to render is read from the special efficacy queue.
7. a kind of image rendering system, which is characterized in that including:
Read module, for reading the special efficacy object that need to currently render;
Area determination module, for according to the display data that slice preserves when the special efficacy object registered in advance, determining present frame
And next frame needs the regional area rendered;
Precomputation rendering module wipes the regional area for passing through precomputation renderer in painting canvas, and to centre
It manages the corresponding first kind display data of present frame in device memory CpuRes and carries out precomputation rendering, obtain precomputation figure;
Merge rendering module, is used for through preset underlying graphics library renderer to present frame in graphics processor memory GpuRes
Corresponding Second Type display data is rendered, and merges rendering with the precomputation figure, and it is complete to obtain present frame
Display image;
Slice module is calculated, for before the read module reads the special efficacy object that need to currently render, by the special efficacy
When object registration is to graphics engine, effective display data in each frame of special efficacy object is calculated, and to the display data
It is sliced;
Data storage module, for the first kind display data after slice to be stored in CpuRes, by second after slice
Type display data is stored in GpuRes;
Wherein, the display data for being less than the slice of the first predetermined threshold value is the first kind display data, and it is default to be more than second
The display data of the slice of threshold value is the Second Type display data;It includes institute that the present frame, which needs the regional area rendered,
State first kind display data and the Second Type display data, the corresponding display area of the first kind display data is small
In the corresponding display area of the Second Type display data.
8. system as claimed in claim 7, which is characterized in that the data storage module is additionally operable to, and is sliced in the calculating
After module is sliced the display data, the area information rendered will be needed to be stored in erasing memory after slice
In ClearRes;
The area determination module is specifically used for, and needs wash with watercolours according to the present frame and next frame preserved in the ClearRes
The area information of dye confirms that present frame and next frame need the regional area rendered.
9. system as claimed in claim 7, which is characterized in that the calculating slice module is specifically used for using triangular image
Calculating method calculates effective display data in each frame of special efficacy object, and carries out triangle slice to the display data;
The data storage module is specifically used for, and the display data that the triangle less than the first predetermined threshold value is sliced is stored in
In CpuRes, the display data that will be greater than the triangle slice of the second predetermined threshold value is stored in GpuRes;
The display data that wherein triangle less than the first predetermined threshold value is sliced is the first kind display data, described
Display data more than the triangle of the second predetermined threshold value slice is the Second Type display data;First predetermined threshold value
Less than or equal to second predetermined threshold value.
10. system as claimed in claim 7, which is characterized in that further include:
Time precalculation module, for determining that present frame and next frame need the partial zones rendered in the area determination module
Before domain, it is contemplated that calculate the present frame k and render required time TKAnd the present frame down first frame k+1 render needed for
Time TK+1;
As the TKMore than the TK+1When, the time precalculation module is additionally operable to the second frame k+ down of present frame described in precomputation
2 render required time TK+2, as the TKLess than the TK+1When, using the present frame down first frame k+1 as under described
One frame;
As the TKLess than the TK+1With the TK+2The sum of when, using the present frame down the second frame k+2 as described next
Frame;As the TKMore than the TK+1With TK+2The sum of when, it is past that the time precalculation module is additionally operable to present frame described in precomputation
Lower third frame k+3 renders required time TK+3, until meeting formula TK<TK+1+TK+2...+TK+nWhen, the TK+nWork as to be described
Previous frame down n-th frame k+n render needed for time, wherein the n is natural number more than 2, by present frame n-th frame down
K+n is as the next frame.
11. such as claim 7-10 any one of them systems, which is characterized in that it is complete that the merging rendering module obtains present frame
After whole display image, the next frame as present frame and is continued to execute described according to the special efficacy object registered in advance
When the display data that preserves of slice, and trigger the area determination module and execute and determine what present frame and next frame needed to render
The step of regional area.
12. system as claimed in claim 11, which is characterized in that further include:
Module is destroyed, for after the completion of being rendered to the special efficacy object, destroying the special efficacy object in special efficacy queue;And
It triggers the read module and reads next special efficacy object for needing to render from the special efficacy queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510765138.5A CN105427366B (en) | 2015-11-11 | 2015-11-11 | A kind of image rendering method and image rendering system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510765138.5A CN105427366B (en) | 2015-11-11 | 2015-11-11 | A kind of image rendering method and image rendering system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105427366A CN105427366A (en) | 2016-03-23 |
CN105427366B true CN105427366B (en) | 2018-07-27 |
Family
ID=55505545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510765138.5A Active CN105427366B (en) | 2015-11-11 | 2015-11-11 | A kind of image rendering method and image rendering system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105427366B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108027980A (en) * | 2016-06-30 | 2018-05-11 | 华为技术有限公司 | The method and terminal that picture is shown |
CN107844382B (en) * | 2017-10-31 | 2021-03-26 | 努比亚技术有限公司 | Card screen detection method, mobile terminal and computer readable storage medium |
CN108090945B (en) * | 2017-11-03 | 2019-08-02 | 腾讯科技(深圳)有限公司 | Object rendering method and device, storage medium and electronic device |
CN108171783A (en) * | 2018-03-20 | 2018-06-15 | 联想(北京)有限公司 | Image rendering method, system and electronic equipment |
CN111414104B (en) * | 2019-01-07 | 2023-04-18 | 阿里巴巴集团控股有限公司 | Electronic map local display method and device |
CN110704768B (en) * | 2019-10-08 | 2022-03-18 | 支付宝(杭州)信息技术有限公司 | Webpage rendering method and device based on graphics processor |
CN111381925B (en) * | 2020-03-17 | 2024-03-26 | 广州致远电子股份有限公司 | GUI fragment type rendering method and device based on dirty rectangle mechanism |
CN111651131B (en) * | 2020-05-18 | 2024-02-27 | 武汉联影医疗科技有限公司 | Image display method and device and computer equipment |
CN114241161B (en) * | 2021-12-22 | 2023-09-15 | 中设数字技术股份有限公司 | BIM model rendering method and system based on double GPUs |
CN116594718B (en) * | 2023-07-18 | 2023-09-19 | 禾多科技(北京)有限公司 | Element rendering method, device, equipment and readable medium for simulation test |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7167176B2 (en) * | 2003-08-15 | 2007-01-23 | Microsoft Corporation | Clustered principal components for precomputed radiance transfer |
CN101563711A (en) * | 2006-12-15 | 2009-10-21 | 高通股份有限公司 | Post-render graphics transparency |
CN101675453A (en) * | 2007-03-02 | 2010-03-17 | 索尼计算机娱乐美国公司 | Be used to analyze the graphics command management tool and the method for the performance that changes for order before the application modification |
WO2010024782A8 (en) * | 2008-08-26 | 2010-05-06 | Agency For Science, Technology And Research | A method and system for displaying an hdr image on a ldr display device |
CN102737402A (en) * | 2011-05-11 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | Method for multilayer rendering in programmable phase in graphic rendering |
CN104183008A (en) * | 2014-07-31 | 2014-12-03 | 浙江大学 | Shader classification method and device based on surface signal fitting and tessellation and graphics rendering method |
CN104952096A (en) * | 2014-03-31 | 2015-09-30 | 中国电信股份有限公司 | CPU and GPU hybrid cloud rendering method, device and system |
-
2015
- 2015-11-11 CN CN201510765138.5A patent/CN105427366B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7167176B2 (en) * | 2003-08-15 | 2007-01-23 | Microsoft Corporation | Clustered principal components for precomputed radiance transfer |
CN101563711A (en) * | 2006-12-15 | 2009-10-21 | 高通股份有限公司 | Post-render graphics transparency |
CN101675453A (en) * | 2007-03-02 | 2010-03-17 | 索尼计算机娱乐美国公司 | Be used to analyze the graphics command management tool and the method for the performance that changes for order before the application modification |
WO2010024782A8 (en) * | 2008-08-26 | 2010-05-06 | Agency For Science, Technology And Research | A method and system for displaying an hdr image on a ldr display device |
CN102737402A (en) * | 2011-05-11 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | Method for multilayer rendering in programmable phase in graphic rendering |
CN104952096A (en) * | 2014-03-31 | 2015-09-30 | 中国电信股份有限公司 | CPU and GPU hybrid cloud rendering method, device and system |
CN104183008A (en) * | 2014-07-31 | 2014-12-03 | 浙江大学 | Shader classification method and device based on surface signal fitting and tessellation and graphics rendering method |
Non-Patent Citations (2)
Title |
---|
基于图形处理器的雾化渲染方法;陆薇等;《四川大学学报(自然科学版)》;20150131;第52卷(第1期);全文 * |
采用重要性面片采样的实时全局光照;柴学梁等;《计算机工程与应用》;20100111;第46卷(第2期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105427366A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105427366B (en) | A kind of image rendering method and image rendering system | |
US20230033306A1 (en) | Image rendering method and apparatus, computer device, and storage medium | |
CN112614202B (en) | GUI rendering display method, terminal, server, electronic equipment and storage medium | |
CN111488196B (en) | Rendering method and device, storage medium and processor | |
CN111080780B (en) | Edge processing method and device for virtual character model | |
CN113457160B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN106251392A (en) | For the method and apparatus performing to interweave | |
CN103617643B (en) | Rendering method and system of bone animation | |
CN109725977B (en) | Multi-application display method based on Android system and terminal equipment | |
US9396564B2 (en) | Atlas generation based on client video configuration | |
CN107154068B (en) | A kind of animation producing method, device, client and computer readable storage medium | |
CN112057852B (en) | Game picture rendering method and system based on multiple display cards | |
CN110990100B (en) | Processing method and device for node objects in game scene | |
CN105144243A (en) | Data visualization | |
CN111737019A (en) | Method and device for scheduling video memory resources and computer storage medium | |
CN109410300A (en) | Shadows Processing method and device and terminal device in a kind of scene of game | |
CN107122176B (en) | Graph drawing method and device | |
CN111773704B (en) | Game data processing method and device, storage medium, processor and electronic device | |
EP4358028A1 (en) | Graphic rendering method and apparatus, and storage medium | |
CN108733356A (en) | A kind of texture sharing method, computer equipment and storage medium | |
US20080136831A1 (en) | Method and System for Renewing Screen | |
CN104866291A (en) | Android-based 2D mobile game engine | |
CN115361583A (en) | Method for real-time rendering of video frame textures by aiming at APP and Unity | |
CN114254305A (en) | Android system application isolation method and device | |
CN104679555B (en) | A kind of method and system that PPT insertions are realized by third party software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210122 Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Address before: 511442 24 floors, B-1 Building, Wanda Commercial Square North District, Wanbo Business District, 79 Wanbo Second Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |