CN102509323B - 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
CN102509323B
CN102509323B CN201110359280.1A CN201110359280A CN102509323B CN 102509323 B CN102509323 B CN 102509323B CN 201110359280 A CN201110359280 A CN 201110359280A CN 102509323 B CN102509323 B CN 102509323B
Authority
CN
China
Prior art keywords
rendering
video memory
rendering objects
cutting
memory control
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
Application number
CN201110359280.1A
Other languages
Chinese (zh)
Other versions
CN102509323A (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

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 video memory control treatment method based on hardware-accelerated Rendering
Technical field
The present invention relates to computer graphic image Rendering, particularly relate to a kind of video memory control treatment method based on hardware-accelerated Rendering.
Background technology
Existing large-scale two dimension (also referred to as 2D) game image enriches, picture amount is large, use hardware-accelerated play up mode time, the physics video memory used may exceed the maximum video memory that video card is supported, thus cause cannot normally running on the computing machine of lower or current mainstream configuration, further, be more difficult to ensure that card runs multiple game client simultaneously on the computing machine of lower or current mainstream configuration.
Summary of the invention
For solve above-mentioned existing large-scale 2D game use hardware-accelerated play up mode time, take more to video card video memory, cause the technical matters that computing machine cannot normally run, the present invention adopts following technical scheme:
Based on a video memory control treatment method for hardware-accelerated Rendering, it comprises: input rendering objects; Cutting is carried out to rendering objects; Judge whether the rendering objects of present frame changes relative to the rendering objects of previous frame, if, the rendering objects of cutting is put into render-ahead queue, when there being the rendering objects of cutting in render-ahead queue, when there being the rendering objects of cutting in render-ahead queue, inquiring about it and whether registering in video memory, if registered, registered pinup picture was directly used to play up, if not yet registered, then apply for buffer zone, play up after upgrading by the rendering objects of cutting.
Beneficial effect of the present invention is: the present invention is directed to existing large-scale 2D game use hardware-accelerated play up mode time, more problem is taken to video card video memory, proposes a set of effective solution.By in conjunction with pinup picture buffer memory and dirty rectangle technology, under the prerequisite keeping the original rich content of game, strictly control the video card video memory amount that game client uses, also the occupancy of game to video card video memory is effectively reduced, improve execution efficiency, thus while also solving permanent this field of puzzlement, run the demand that multiple game client normally works.
Accompanying drawing explanation
Fig. 1 is a kind of video memory control treatment embodiment of the method schematic flow sheet based on hardware-accelerated Rendering of the present invention.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Refer to Fig. 1, it is a kind of video memory control treatment embodiment of the method schematic flow sheet based on hardware-accelerated Rendering.
The invention provides a kind of video memory control treatment method based on hardware-accelerated Rendering, it comprises:
Step 1, input rendering objects;
Step 2, cutting is carried out to rendering objects; In the present embodiment, the method for rendering objects being carried out to cutting comprises: the display screen area of display divided by block, when rendering objects corresponds on this display screen, correspondingly carries out cutting by block;
Step 3, judge whether the rendering objects of present frame changes relative to the rendering objects of previous frame, if so, then perform step 4, otherwise, perform step 6;
Step 4, the rendering objects of cutting to be indicated, such as in the present embodiment, can the block at rendering objects place is all labeled as dirty;
Can understand like this, when the picture on certain block changes, also namely this region is dirty;
Step 5, the rendering objects of cutting is put into render-ahead queue;
Step 6, judge whether the rendering objects of cutting all carried out cutting, if so, then perform step 7, otherwise, perform step 2;
Step 7, judge the rendering objects whether having cutting in render-ahead queue, if so, then perform step 8, otherwise, perform step 11;
Step 8, search the texture playing up needs in the buffer, and judge whether to find, if so, then perform step 9, otherwise, perform step 10;
Step 9, the texture playing up needs found is sent into video card play up, then perform step 7;
Step 10, application play up the texture of needs, and copy buffer memory to, then perform step 9;
Whether step 11, determining program terminate, and if so, then perform step 12, otherwise, perform step 1;
Step 12, end.
A kind of above-mentioned video memory control treatment method based on hardware-accelerated Rendering, in the process realized, can adopt following technology:
1, pinup picture caching technology: when starting when playing, distributes the video memory page that a group is specified size in advance in video card, and the physical size of the pinup picture that the page can use according to game is split again, and such page just can place multiple pinup picture as required; In operational process, by certain strategy, aging replacement Treatment (as: least recently used algorithm) is carried out to the pinup picture in buffer memory.For each pinup picture entering buffer memory, needing to use some algorithm (as: hash etc.) to mark, required buffer memory pinup picture can be obtained by fast fetching from buffer memory when playing up, effectively avoiding data redundancy simultaneously.
2, the dirty rectangle technology of Hardware Render: first create slightly larger than a games window standby screen, then according to certain size by this standby screen piecemeal; During drafting, calculate institute's rendered object at the position of standby screen and this object block at standby screen, and carry out cutting according to the block belonging to it, the rendered object after cutting is joined successively and plays up in chained list; If the object of current drafting there occurs state change (as: position, animation are play frame etc. and changed) relative to previous frame, then, when drawing, need to notify that each piece belonging to this object is played up; After all objects needing to draw all cutting, traversal plays up chained list, search the object that all needs are played up, if the block residing for this object needs again to play up, then play up this object, otherwise do not play up, because the rendered object being cut into several part is continuous print playing up in chained list, during drafting, can play up needing the part changed to synthesize one batch, ensureing the efficiency played up.In addition, because the standby comparatively games window that shields slightly greatly, therefore when moving among a small circle, only needing the position adjusting viewport, without the need to redrawing whole standby screen, only having when viewport is beyond standby screen scope, just wiping standby screen, repaint all blocks.
Compared to prior art, the present invention is directed to existing large-scale 2D game use hardware-accelerated play up mode time, more problem is taken to video card video memory, proposes a set of effective solution.By in conjunction with pinup picture buffer memory and dirty rectangle technology, under the prerequisite keeping the original rich content of game, strictly control the video card video memory amount that game client uses, also the occupancy of game to video card video memory is effectively reduced, improve execution efficiency, thus while also solving permanent this field of puzzlement, run the demand that multiple game client normally works.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or essential characteristic, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (5)

1., based on a video memory control treatment method for hardware-accelerated Rendering, it is characterized in that, comprising:
Input rendering objects;
Cutting is carried out to rendering objects;
Judge whether the rendering objects of present frame changes relative to the rendering objects of previous frame, if, the rendering objects of cutting is put into render-ahead queue, when there being the rendering objects of cutting in render-ahead queue, inquire about it whether to register in video memory, if registered, directly use registered pinup picture to play up, if not yet registered, then in video memory application buffer area, upgrade with the buffer zone of pinup picture data to application of the object to be rendered of cutting and then play up.
2. a kind of video memory control treatment method based on hardware-accelerated Rendering according to claim 1, it is characterized in that, the method of rendering objects being carried out to cutting comprises: the display screen area of display divided by block, when rendering objects corresponds on this display screen, correspondingly carry out cutting by block.
3. a kind of video memory control treatment method based on hardware-accelerated Rendering according to claim 1, it is characterized in that, judge whether the rendering objects of present frame changes relative to the rendering objects of previous frame described, if, before the step rendering objects of cutting being put into render-ahead queue, also comprise: the rendering objects of cutting is indicated.
4. a kind of video memory control treatment method based on hardware-accelerated Rendering according to claim 1, it is characterized in that, described judge the step whether rendering objects of present frame changes relative to the rendering objects of previous frame after, also comprise: if not, then do not play up.
5. a kind of video memory control treatment method based on hardware-accelerated Rendering according to claim 1, is characterized in that, when there being the rendering objects of non-cutting in render-ahead queue, carrying out cutting to rendering objects.
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 CN102509323A (en) 2012-06-20
CN102509323B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982159B (en) * 2012-12-05 2016-07-06 上海创图网络科技发展有限公司 A kind of three-dimensional web page many scenes fast switch over method
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
CN106021421B (en) * 2016-05-13 2019-12-06 北京视博云科技有限公司 method and device for accelerating webpage rendering
CN107680150A (en) * 2017-10-25 2018-02-09 苏州蜗牛数字科技股份有限公司 A kind of two dimensional image batch render method and device
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7692642B2 (en) * 2004-12-30 2010-04-06 Intel Corporation Method and apparatus for controlling display refresh
CN101847269B (en) * 2009-03-27 2011-11-09 上海科泰世纪科技有限公司 Multi-layer cartoon rendering system and method
CN101882077B (en) * 2010-05-19 2013-03-20 广东威创视讯科技股份有限公司 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

Also Published As

Publication number Publication date
CN102509323A (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN102509323B (en) Video memory control and process method based on hardware acceleration rendering technology
KR102590644B1 (en) Method and apparatus for managing atlas of augmented reality content
US8888590B2 (en) Graphics render matching for displays
KR102131644B1 (en) Electronic apparatus and operating method of web-platform
US10628911B2 (en) Computer system, graphics processing unit, and graphics processing method thereof that are capable of switching different rendering modes
CN112486606B (en) Cloud desktop display optimization method and system based on Android system
CN104732486B (en) The display methods and device of a kind of picture
US10915982B2 (en) Computer system, graphics processing unit, and graphics processing method thereof that are capable of switching different rendering modes
US9396564B2 (en) Atlas generation based on client video configuration
CN103021023A (en) Three-dimensional scene construction method based on browser
US10140268B2 (en) Efficient browser composition for tiled-rendering graphics processing units
KR20140105609A (en) Online gaming
CN102982159B (en) A kind of three-dimensional web page many scenes fast switch over method
CN111275803A (en) 3D model rendering method, device, equipment and storage medium
CN108543307B (en) Integrated optimization method and device for simulating process by Physx physical engine
KR101616650B1 (en) Drawing device
CN106020756A (en) Method and apparatus for updating virtual desktop
TW202236205A (en) Rasterization of compute workloads
JP2022084763A5 (en)
CN103268619B (en) The method of image data batch compression in swf file and device
US9685140B1 (en) Optimized rendering of multimedia content
US11615504B2 (en) Methods and apparatus for scalable primitive rate architecture for geometry processing
CN102298796B (en) Method for real-timely drawing large data volume CAD model
JP2002015337A (en) Three-dimensional image drawing device
CN106201401A (en) The 3D rendering presented for virtual desktop accelerates display packing

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