CN102509323A - Video memory control and process method based on hardware acceleration rendering technology - Google Patents

Video memory control and process method based on hardware acceleration rendering technology Download PDF

Info

Publication number
CN102509323A
CN102509323A CN2011103592801A CN201110359280A CN102509323A CN 102509323 A CN102509323 A CN 102509323A CN 2011103592801 A CN2011103592801 A CN 2011103592801A CN 201110359280 A CN201110359280 A CN 201110359280A CN 102509323 A CN102509323 A CN 102509323A
Authority
CN
China
Prior art keywords
video memory
render objects
rendering
cutting
playing
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.)
Granted
Application number
CN2011103592801A
Other languages
Chinese (zh)
Other versions
CN102509323B (en
Inventor
苏聚鎏
黄文�
耿庆宵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN G-BITS NETWORK TECHNOLOGY CO LTD
Original Assignee
XIAMEN G-BITS NETWORK TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by XIAMEN G-BITS NETWORK TECHNOLOGY CO LTD filed Critical XIAMEN G-BITS NETWORK TECHNOLOGY CO LTD
Priority to CN201110359280.1A priority Critical patent/CN102509323B/en
Publication of CN102509323A publication Critical patent/CN102509323A/en
Application granted granted Critical
Publication of CN102509323B publication Critical patent/CN102509323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a video memory control and process method based on the hardware acceleration rendering technology, which comprises the following steps: a rendering target is inputted and cut; texture cache is created in advance, so as to judge whether the current rendering target changes or not compared with the former rendering target, and if yes, the cut rendering target is placed in a rendering queue; and when the cut rendering target appears in the rendering queue, whether the cut rendering target is registered in the video memory or not is inquired, if yes, and the registered target is directly used for rendering, and if not, the cache area is requested, and the cut rendering target is subject to updating for rendering. Through the invention, under the condition that original rich content of a game is maintained, the quantity of a display card video memory used on the game client side is controlled strictly, the occupation quantity of the game on the display card video memory is effectively reduced, and the execution efficiency is promoted.

Description

A kind of based on the hardware-accelerated video memory control and treatment method of playing up technology
Technical field
The present invention relates to computer graphic image and play up technology, relate in particular to a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology.
Background technology
Existing large-scale two dimension (being also referred to as 2D) game image is abundant; The picture amount is big; Using hardware-acceleratedly when playing up mode, employed physics video memory possibly surpass the maximum video memory that video card is supported, thereby causes on the computing machine of lower or present mainstream configuration, can't normally moving; Further, more cannot say for sure to demonstrate,prove a plurality of game clients of operation on the computing machine of lower or present mainstream configuration simultaneously.
Summary of the invention
For solve above-mentioned existing large-scale 2D recreation use hardware-accelerated when playing up mode, the video card video memory is taken more, the technical matters that causes computing machine normally to move, the present invention adopts following technical scheme:
A kind of based on the hardware-accelerated video memory control and treatment method of playing up technology, it comprises: the input render objects; Render objects is carried out cutting; Whether the render objects of judging present frame changes with respect to the render objects of previous frame, if the render objects of cutting put into play up formation; When the render objects of cutting is arranged in playing up formation, when the render objects of cutting is arranged in playing up formation, inquire about it and whether in video memory, registered; If registered then directly use registered pinup picture to play up; If still unregistered, then apply for the buffer zone, play up after upgrading with the render objects of cutting.
Beneficial effect of the present invention is: the present invention is directed to existing large-scale 2D recreation and using hardware-acceleratedly when playing up mode, the video card video memory is taken more problem, proposed the effective solution of a cover.Through combining pinup picture buffer memory and dirty rectangle technology; Under the prerequisite that keeps the original rich content of recreation; The video card video memory amount that game client uses is controlled in strictness; Also effectively reduced the occupancy of recreation, promoted execution efficient, thereby moved the demand of a plurality of game client operate as normal when also having solved this field of permanent puzzlement the video card video memory.
Description of drawings
Fig. 1 is a kind of based on the hardware-accelerated video memory control and treatment method embodiment schematic flow sheet of playing up technology for the present invention.
Embodiment
Specify the preferred embodiments of the present invention below in conjunction with accompanying drawing.
See also Fig. 1, it is a kind of based on the hardware-accelerated video memory control and treatment method embodiment schematic flow sheet of playing up technology.
It is a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology that the present invention provides, and it comprises:
Step 1, input render objects;
Step 2, render objects is carried out cutting; In the present embodiment, the method for render objects being carried out cutting comprises: the display screen area of display is divided by piece, when render objects corresponds on this display screen, correspondingly carry out cutting by piece;
Whether step 3, the render objects of judging present frame change with respect to the render objects of previous frame, if then execution in step 4, otherwise, execution in step 6;
Step 4, the render objects of cutting is indicated,, can all be labeled as the piece at render objects place dirty such as in the present embodiment;
Can understand like this, when the picture on certain piece changes, also promptly should the zone dirty;
Step 5, the render objects of cutting put into play up formation;
Step 6, judge whether the render objects of cutting all carried out cutting, if then execution in step 7, otherwise, execution in step 2;
The render objects whether cutting is arranged in the formation is played up in step 7, judgement, if then execution in step 8, otherwise, execution in step 11;
Step 8, in buffer memory, search and play up the texture that needs, and judge whether to find, if then execution in step 9, otherwise, execution in step 10;
Step 9, the texture of playing up needs that will find are sent into video card and are played up, and execution in step 7 again;
The texture that needs is played up in step 10, application, and copies buffer memory to, and execution in step 9 again;
Whether step 11, determining program finish, if then execution in step 12, otherwise, execution in step 1;
Step 12, end.
Above-mentioned a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology, in the process that realizes, can adopt following technology:
1, pinup picture caching technology: when starting when playing, in video card, distribute one group of video memory page of specifying size in advance, the physical size of the pinup picture that the page can use according to playing is cut apart again, and such page just can be placed a plurality of pinup pictures as required; In operational process, through certain strategy to the replacement Treatment (as: LRU) that wears out of the pinup picture in the buffer memory.For each pinup picture that gets into buffer memory, need to use some algorithm (as: hash etc.) to carry out mark, so that when playing up, can from buffer memory, obtain needed buffer memory pinup picture fast, effectively avoided data redundancy simultaneously.
2, the dirty rectangle technology played up of hardware: at first create one than games window big slightly be equipped with screen, according to certain size this is shielded piecemeal fully then; During drafting, calculate institute's rendered object in the position that is equipped with screen and this object at the piece that is equipped with screen, and carry out cutting according to the piece under it, the rendered object after the cutting is joined successively plays up in the chained list; If the object of current drafting with respect to previous frame state variation (as: position, animation broadcast frame etc. change) has taken place, then when drawing, need notify each affiliated piece of this object to play up; When all objects that need draw after all cutting finishes, traversal is played up chained list, searches the object that all need be played up; If residing needs of this object are played up again, then play up this object, otherwise do not play up; Because being cut into the rendered object of several sections is continuous in playing up chained list; During drafting, can the part that need to change be played up for synthetic one batch, guarantee the efficient of playing up.In addition,, therefore when moving among a small circle, only need the position of adjustment viewport, need not the whole screen that is equipped with is redrawn, have only when viewport to have exceeded when shielding scope fully, just wipe to be equipped with and shield, repaint all pieces because it is big slightly than games window to be equipped with screen.
Compared to prior art, the present invention is directed to existing large-scale 2D recreation and using hardware-acceleratedly when playing up mode, the video card video memory is taken more problem, the effective solution of a cover has been proposed.Through combining pinup picture buffer memory and dirty rectangle technology; Under the prerequisite that keeps the original rich content of recreation; The video card video memory amount that game client uses is controlled in strictness; Also effectively reduced the occupancy of recreation, promoted execution efficient, thereby moved the demand of a plurality of game client operate as normal when also having solved this field of permanent puzzlement the video card video memory.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of the embodiment that is disclosed and change are possible, and the replacement of embodiment is known with the various parts of equivalence for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to the embodiment that is disclosed.

Claims (5)

  1. One kind based on hardware-accelerated play up the technology video memory control and treatment method, it is characterized in that, comprising:
    The input render objects;
    Render objects is carried out cutting;
    Whether the render objects of judging present frame changes with respect to the render objects of previous frame, if the render objects of cutting put into play up formation; When the render objects of cutting is arranged in playing up formation; Inquire about it and whether in video memory, registered, if registered then directly use registered pinup picture to play up, if still unregistered; Then apply for the buffer zone, play up after upgrading with the render objects of cutting.
  2. 2. according to claim 1 a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology; It is characterized in that; The method of render objects being carried out cutting comprises: the display screen area of display is divided by piece; When render objects corresponds on this display screen, correspondingly carry out cutting by piece.
  3. 3. according to claim 1 a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology; It is characterized in that; Whether change in the render objects of the said render objects of judging present frame with respect to previous frame; If step after, also comprise: the render objects to cutting indicates.
  4. 4. according to claim 1 a kind of based on the hardware-accelerated video memory control and treatment method of playing up technology; It is characterized in that; After the step whether said render objects of judging present frame changes with respect to the render objects of previous frame, also comprise: if not, then do not play up.
  5. 5. according to claim 1 a kind of based on hardware-accelerated play up the technology video memory control and treatment method, it is characterized in that, when the render objects of not cutting is arranged, render objects is carried out cutting in playing up formation.
CN201110359280.1A 2011-11-14 2011-11-14 Video memory control and process method based on hardware acceleration rendering technology Active CN102509323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110359280.1A CN102509323B (en) 2011-11-14 2011-11-14 Video memory control and process method based on hardware acceleration rendering technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110359280.1A CN102509323B (en) 2011-11-14 2011-11-14 Video memory control and process method based on hardware acceleration rendering technology

Publications (2)

Publication Number Publication Date
CN102509323A true CN102509323A (en) 2012-06-20
CN102509323B CN102509323B (en) 2015-04-08

Family

ID=46221401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110359280.1A Active CN102509323B (en) 2011-11-14 2011-11-14 Video memory control and process method based on hardware acceleration rendering technology

Country Status (1)

Country Link
CN (1) CN102509323B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982159A (en) * 2012-12-05 2013-03-20 上海创图网络科技发展有限公司 Three-dimensional webpage multi-scenario fast switching method
CN104299253A (en) * 2013-07-19 2015-01-21 广州欧划动画技术有限公司 Intelligent rendering method and device for full-high-definition digital film animation
CN104740873A (en) * 2015-04-13 2015-07-01 四川天上友嘉网络科技有限公司 Image rendering method for game
CN106021421A (en) * 2016-05-13 2016-10-12 北京视博云科技有限公司 Method and device for accelerating web page rendering
CN107680150A (en) * 2017-10-25 2018-02-09 苏州蜗牛数字科技股份有限公司 A kind of two dimensional image batch render method and device
CN111381925A (en) * 2020-03-17 2020-07-07 广州致远电子有限公司 GUI (graphical user interface) fragment type rendering method and device based on dirty rectangle mechanism
CN113727142A (en) * 2021-09-02 2021-11-30 北京沃东天骏信息技术有限公司 Cloud rendering method and device and computer-storable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088116A (en) * 2004-12-30 2007-12-12 英特尔公司 Method and apparatus for controlling display refresh
CN101847269A (en) * 2009-03-27 2010-09-29 上海科泰世纪科技有限公司 Multi-layer cartoon rendering system and method
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic
CN101980072A (en) * 2010-09-02 2011-02-23 广东欧珀电子工业有限公司 Android system-based electronic ink screen refresh control system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101088116A (en) * 2004-12-30 2007-12-12 英特尔公司 Method and apparatus for controlling display refresh
CN101847269A (en) * 2009-03-27 2010-09-29 上海科泰世纪科技有限公司 Multi-layer cartoon rendering system and method
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic
CN101980072A (en) * 2010-09-02 2011-02-23 广东欧珀电子工业有限公司 Android system-based electronic ink screen refresh control system and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982159A (en) * 2012-12-05 2013-03-20 上海创图网络科技发展有限公司 Three-dimensional webpage multi-scenario fast switching method
CN104299253A (en) * 2013-07-19 2015-01-21 广州欧划动画技术有限公司 Intelligent rendering method and device for full-high-definition digital film animation
CN104299253B (en) * 2013-07-19 2017-05-31 广州欧划动画技术有限公司 A kind of intelligent rendering intent and device towards full HD digital movie animation
CN104740873A (en) * 2015-04-13 2015-07-01 四川天上友嘉网络科技有限公司 Image rendering method for game
CN106021421A (en) * 2016-05-13 2016-10-12 北京视博云科技有限公司 Method and device for accelerating web page rendering
CN107680150A (en) * 2017-10-25 2018-02-09 苏州蜗牛数字科技股份有限公司 A kind of two dimensional image batch render method and device
CN111381925A (en) * 2020-03-17 2020-07-07 广州致远电子有限公司 GUI (graphical user interface) fragment type rendering method and device based on dirty rectangle mechanism
CN111381925B (en) * 2020-03-17 2024-03-26 广州致远电子股份有限公司 GUI fragment type rendering method and device based on dirty rectangle mechanism
CN113727142A (en) * 2021-09-02 2021-11-30 北京沃东天骏信息技术有限公司 Cloud rendering method and device and computer-storable medium

Also Published As

Publication number Publication date
CN102509323B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN102509323A (en) Video memory control and process method based on hardware acceleration rendering technology
US11565178B2 (en) User interface rendering and post processing during video game streaming
US10262389B2 (en) Intermediary graphics rendition
US10537799B1 (en) User interface rendering and post processing during video game streaming
JP2019510993A (en) System and method for rendering multiple levels of detail
EP3193308A1 (en) Apparatus and method of image rendering
US11724184B2 (en) 2.5D graphics rendering system
KR101536501B1 (en) Moving image distribution server, moving image reproduction apparatus, control method, recording medium, and moving image distribution system
US10140268B2 (en) Efficient browser composition for tiled-rendering graphics processing units
CN103021023A (en) Three-dimensional scene construction method based on browser
JP2014529387A (en) System and method for automatic and dynamic layout design for media broadcasting
JP2011028653A (en) Image file generation device, image processing device, image file generation method and image processing method
CN102982159B (en) A kind of three-dimensional web page many scenes fast switch over method
CN106982388A (en) The display methods and device of a kind of picture
US11185758B2 (en) Game console application with action cards
CN105373374A (en) Method and system for displaying 3D place in WEB
EP4114021A1 (en) Virtual set top
CN106020756A (en) Method and apparatus for updating virtual desktop
TW202236205A (en) Rasterization of compute workloads
CN104113704A (en) Game image processing method and device
KR102027172B1 (en) VR content streaming server and method based on ROI information
CN105373375A (en) Asynchronous loading based WEB 3D display method and system
CN104392472A (en) 2D game weather effect processing method and processing device thereof
KR102310190B1 (en) Rendering system and rendering method thereof
US20240037835A1 (en) Complex rendering using tile buffers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant