CN103927184A - Optimization method and device for rendering on same screen - Google Patents

Optimization method and device for rendering on same screen Download PDF

Info

Publication number
CN103927184A
CN103927184A CN201410177995.9A CN201410177995A CN103927184A CN 103927184 A CN103927184 A CN 103927184A CN 201410177995 A CN201410177995 A CN 201410177995A CN 103927184 A CN103927184 A CN 103927184A
Authority
CN
China
Prior art keywords
information
picture block
playing
played
frame
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.)
Pending
Application number
CN201410177995.9A
Other languages
Chinese (zh)
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.)
Shenzhen Qianhai illusion Network Technology Co., Ltd.
Original Assignee
SHENZHEN DIQIDADAO 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 SHENZHEN DIQIDADAO NETWORK TECHNOLOGY Co Ltd filed Critical SHENZHEN DIQIDADAO NETWORK TECHNOLOGY Co Ltd
Priority to CN201410177995.9A priority Critical patent/CN103927184A/en
Publication of CN103927184A publication Critical patent/CN103927184A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses an optimization method and device for rendering on the same screen. The optimization method and device are used for improving efficiency of rendering on the same screen and promoting user experience. The method comprises the steps of determining the serial number of a frame needing to be rendered at present in an on-line game; obtaining rendering information corresponding to the serial number from pre-downloaded animation resources; according to the rendering information, conducting rendering on at least one stored picture on a GPU.

Description

A kind of optimization method and device of playing up with screen
Technical field
The present invention relates to field of network game technology, be specifically related to a kind of optimization method and device of playing up with screen.
Background technology
The server that a kind of player of being in game on line sets up by client Connected Corp. is to carry out game on line.The whole animation of game on line only has a pictures, and this pictures consists of many picture block, and each frame picture is to be converted by each picture block.
In prior art, between each frame picture conversion, need to calculate the coordinate parameters of each picture block conversion, by picture block being transformed to new coordinate, form animation and show.But in the same screen of game render process, need to calculate in real time the new coordinate parameters of each picture block, need to consume a large amount of CPU (central processing unit) (Central Processing Unit is called for short CPU internal memory), cause playing up performance with screen lower, user experiences poor.
Summary of the invention
For above-mentioned defect, the embodiment of the present invention provides a kind of optimization method and device of playing up with screen, for improving with screen rendering efficiency, improves user and experiences, and reduces the download while playing up with screen simultaneously and then reduces memory consumption.
The embodiment of the present invention provides a kind of optimization method of playing up with screen, can comprise:
Determine the sequence number of the frame that in game on line, current needs are played up;
From the animation resource of downloading in advance, obtain the information of playing up that described sequence number is corresponding;
According to the described information of playing up, on picture processor GPU, at least one pictures piece of having preserved is played up.
In the preferred embodiment of the present invention, what if determine, in game on line, current needs were played up is the first frame, before the sequence number of the frame that in described definite game on line, current needs are played up, comprise: from described animation resource, obtain described picture block, and described picture block is uploaded to graphic process unit GPU.
In the preferred embodiment of the present invention, described obtaining from described animation resource before described picture block comprises: from server end, download described animation resource, described animation resource at least comprises the information of playing up and at least one pictures piece of each frame; Describedly play up coordinate parameters and the information converting that information at least comprises described picture block.
In one embodiment of the invention, play up information described in described basis, on picture processor GPU, at least one pictures piece of having preserved is played up and comprised: respectively from described coordinate parameters and the information converting that extracts picture block playing up information; According to described information converting, in the position of the indication of coordinate parameters described in GPU, corresponding picture block is played up.
The present invention provides a kind of optimization device of playing up with screen on the other hand, can comprise:
Determination module, for determining the sequence number of the frame that the current needs of game on line are played up;
Acquisition module, for obtaining from the animation resource of downloading in advance the information of playing up that described sequence number is corresponding;
Rendering module, plays up information for described in basis, on picture processor GPU to preserved at least one pictures piece play up.
In one embodiment, above-mentioned optimization device also comprises: upper transmission module, for obtaining described picture block from described animation resource, and uploads to graphic process unit GPU by described picture block.
In an embodiment, the above-mentioned optimization device of playing up with screen also comprises:
Download module, for download described animation resource from server end, described animation resource at least comprises the information of playing up and at least one pictures piece of each frame; Describedly play up coordinate parameters and the information converting that information at least comprises described picture block.
Further, above-mentioned rendering module specifically for: respectively from described coordinate parameters and the information converting that extracts picture block information of playing up; According to described information converting, in the position of the indication of coordinate parameters described in GPU, corresponding picture block is played up.
As can be seen from the above technical solutions, a kind of optimization method and device of playing up with screen that the embodiment of the present invention provides has the following advantages: owing to downloading with screen and playing up used animation resource in advance, after having determined the frame that current needs are played up, from animation resource, obtain the information of playing up corresponding to frame of playing up with needs, then at GPU, the picture block of having preserved is played up, without interim calculating, play up information, improved with screen rendering efficiency, give the better experience effect of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in the embodiment of the present invention be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The optimization method schematic flow sheet that Fig. 1 plays up for the same screen that the embodiment of the present invention provides;
The optimization method schematic flow sheet that Fig. 2 plays up for the same screen that another embodiment of the present invention provides;
The optimization device structural representation that Fig. 3 plays up for the same screen that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing of the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of optimization method and device of playing up with screen, for improving with screen rendering efficiency, improves user and experiences.
In game on line, client can, directly from service end download games, provide game on line to client user.The actual pictures that only includes of animation of the game on line in the embodiment of the present invention, picture comprises plurality of pictures piece, each pictures piece is exactly a 2D skeleton cartoon, when making, by plurality of pictures piece is combined to form to picture, and each frame is all by obtaining after this picture block evolution, then by switching fast each frame, form animation.Calculated off-line picture block evolution information, and pack together with picture block and obtain animation resource and be stored in server end and use for client downloads.
In animation resource, mainly comprise the information of playing up of each frame, and play up coordinate parameters and the information converting that specifically includes picture block display position in information.Therefore, the information of playing up is kept in animation resource with the sequence number of respective frame, and same, the coordinate parameters of picture block and information converting are also kept in the information of playing up with the sequence number of picture block, guarantee when playing up picture, can extract exactly and play up accordingly information and coordinate parameters.
The optimization device that same screen in client is played up is downloaded animation resource from server end, and decompression is kept in internal memory.
To, with specific embodiment, the present invention be described in detail below.
Refer to Fig. 1, the optimization method schematic flow sheet that Fig. 1 plays up for the same screen that the embodiment of the present invention provides; As shown in Figure 1, a kind of optimization method of playing up with screen can comprise:
S101, determine the sequence number of the frame that in game on line, current needs are played up;
The optimization device that same screen in client is played up is downloaded animation resource from server, and will after the pressurization of animation resource, save.In game on line loading procedure, the optimization device of playing up with screen is determined the frame that current needs are played up, main by determining the sequence number of frame.
Be understandable that, after starting game on line, can first the picture block of animation resource be uploaded to graphic process unit (Graphics Processing Unit, be called for short GPU), or when having determined that frame that current needs are played up is the first frame of animation, first the picture block in animation resource is uploaded to GPU, so that GPU saves picture block, and then when playing up with screen, in whole game loading procedure, only need to download animation resource one time from server, also only before playing up, picture block is uploaded to GPU, the follow-up uploading pictures piece again that no longer needs when playing up each frame again.
S102, from the animation resource of downloading in advance, obtain the information of playing up that described sequence number is corresponding;
After having determined the sequence number of the frame that current needs are played up, the information of playing up of frame will be obtained from animation resource.
The information of playing up comprises coordinate parameters and the information converting of picture block display position in each frame, and wherein, information converting refers to that picture block is from the display position of which direction transformation respective coordinates parameter indication.
Described in S103, basis, play up information, on picture processor GPU, at least one pictures piece of having preserved is played up.
Obtained after the information of playing up, on GPU, completed playing up of picture block.The picture block of playing up use is kept on GPU.。
Main by downloading animation resource from server end in advance in the embodiment of the present invention, and picture block is uploaded to GPU, then after determining the frame that current needs are played up, from animation resource, obtain again the information of playing up of picture block, in the picture block being kept on GPU, play up, in render process, need not calculate again coordinate parameters and the information converting of picture block temporarily, can reduce the consumption of client internal memory in render process, accelerate rendering speed, give the experience effect that user is better.
Refer to Fig. 2, the optimization method schematic flow sheet that Fig. 2 plays up for the same screen that another embodiment of the present invention provides; As shown in Figure 2, a kind of optimization method of playing up with screen can comprise:
S201, determine the sequence number of the frame that in game on line, current needs are played up;
The animation resource of downloading from server end, play up resource and preserve with sequence number, can, by determining the sequence number of the frame that need to play up, with sequence number, from animation resource, obtain and play up accordingly resource.
S202, from the animation resource of downloading in advance, obtain the information of playing up that described sequence number is corresponding;
When playing up, be to play up frame by frame.What first, need to play up is the first frame.Determine and will play up the first frame, from animation resource, obtain so the information of playing up of the first frame, on GPU, the picture block of having preserved is played up.After having played up the first frame, determine and will play up the second frame, from animation information, obtain so the information of playing up of the second frame, by that analogy, until played up the last frame in animation.
S203, respectively from described coordinate parameters and the information converting that extracts picture block information of playing up;
The information of playing up that each frame is corresponding comprises coordinate parameters and the information converting of picture block, extracts respectively coordinate parameters and the information converting of each picture block from play up information, then corresponding picture block is played up.
Such as, total N pictures piece, this N pictures piece uploads to GPU by the optimization device of playing up with screen, and is kept in GPU.According to the order being stored in the information of playing up, from play up information, extract one by one coordinate parameters and the information converting of each picture block.First, from play up information, extract coordinate parameters and the information converting of the first pictures piece, then extract coordinate parameters and the information converting of the second pictures piece, until coordinate parameters and the information converting of N pictures piece.
S204, according to described information converting, in the position of coordinate parameters described in GPU indication, corresponding picture block is played up.
On GPU, according to information converting, corresponding picture block is converted, such as changing direction in information converting, angle etc., make picture block arrive the display position of coordinate parameters indication, then picture block is played up.
The present invention also provides a kind of device of the optimization method based on playing up with screen, as shown in Figure 3, can comprise:
Determination module 310, for determining the sequence number of the frame that the current needs of game on line are played up;
Acquisition module 320, for obtaining from the animation resource of downloading in advance the information of playing up that described sequence number is corresponding;
Rendering module 330, plays up information for described in basis, on picture processor GPU to preserved at least one pictures piece play up.
Wherein, determination module 310 is determined the sequence number of the frame that in game on line, current needs are played up, then acquisition module 320 obtains the play up information corresponding with this sequence number from animation resource, described in rendering module 330 bases, play up information, on picture processor GPU, at least one pictures piece of having preserved is played up.Before playing up, the animation resource downloading off-line having been generated is to local client, picture block has been uploaded in GPU, in the time of only need to playing up again each frame, in the animation resource of preserving from local client, obtain the information of playing up, need not calculate coordinate parameters and the information converting of picture block temporarily, reduce EMS memory occupation, improved rendering speed, obtained better user and experience.
In application scenarios of the present invention, the above-mentioned optimization device of playing up with screen also comprises:
Upper transmission module, for obtaining described picture block from described animation resource, and uploads to graphic process unit GPU by described picture block.
In another embodiment of the present invention, this optimization device of playing up with screen also comprises:
Download module, for download described animation resource from server end, described animation resource at least comprises the information of playing up and at least one pictures piece of each frame; Describedly play up coordinate parameters and the information converting that information at least comprises described picture block.
In another embodiment of the present invention, above-mentioned rendering module 330 specifically for: respectively from described coordinate parameters and the information converting that extracts picture block information of playing up; According to described information converting, in the position of the indication of coordinate parameters described in GPU, corresponding picture block is played up.
The picture block providing in the embodiment of the present invention is 2D skeleton cartoon, and the present invention plays up by the further speeding up picture piece of GPU.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of optimization method and device of playing up with screen provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. an optimization method of playing up with screen, is characterized in that, comprising:
Determine the sequence number of the frame that in game on line, current needs are played up;
From the animation resource of downloading in advance, obtain the information of playing up that described sequence number is corresponding;
According to the described information of playing up, on picture processor GPU, at least one pictures piece of having preserved is played up.
2. optimization method according to claim 1, is characterized in that, what if determine, in game on line, current needs were played up is the first frame, before the sequence number of the frame that in described definite game on line, current needs are played up, comprises:
From described animation resource, obtain described picture block, and described picture block is uploaded to graphic process unit GPU.
3. optimization method according to claim 2, is characterized in that,
Described obtaining from described animation resource before described picture block comprises:
From server end, download described animation resource, described animation resource at least comprises the information of playing up and at least one pictures piece of each frame; Describedly play up coordinate parameters and the information converting that information at least comprises described picture block.
4. optimization method according to claim 3, is characterized in that,
Described in described basis, play up information, on picture processor GPU, at least one pictures piece of having preserved played up and comprised:
Respectively from described coordinate parameters and the information converting that extracts picture block information of playing up;
According to described information converting, in the position of the indication of coordinate parameters described in GPU, corresponding picture block is played up.
5. according to the method described in claim 1~4 any one, it is characterized in that, described picture block is 2D skeleton cartoon.
6. an optimization device of playing up with screen, is characterized in that, comprising:
Determination module, for determining the sequence number of the frame that the current needs of game on line are played up;
Acquisition module, for obtaining from the animation resource of downloading in advance the information of playing up that described sequence number is corresponding;
Rendering module, plays up information for described in basis, on picture processor GPU, at least one pictures piece of having preserved is played up.
7. optimization device according to claim 6, is characterized in that, also comprises:
Upper transmission module, for obtaining described picture block from described animation resource, and uploads to graphic process unit GPU by described picture block.
8. optimization device according to claim 2, is characterized in that, also comprises:
Download module, for download described animation resource from server end, described animation resource at least comprises the information of playing up and at least one pictures piece of each frame; Describedly play up coordinate parameters and the information converting that information at least comprises described picture block.
9. optimization device according to claim 3, is characterized in that,
Described rendering module specifically for: respectively from described coordinate parameters and the information converting that extracts picture block information of playing up; According to described information converting, in the position of the indication of coordinate parameters described in GPU, corresponding picture block is played up.
10. according to the optimization device described in claim 6~9 any one, it is characterized in that,
Described picture block is 2D skeleton cartoon.
CN201410177995.9A 2014-04-29 2014-04-29 Optimization method and device for rendering on same screen Pending CN103927184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410177995.9A CN103927184A (en) 2014-04-29 2014-04-29 Optimization method and device for rendering on same screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410177995.9A CN103927184A (en) 2014-04-29 2014-04-29 Optimization method and device for rendering on same screen

Publications (1)

Publication Number Publication Date
CN103927184A true CN103927184A (en) 2014-07-16

Family

ID=51145416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410177995.9A Pending CN103927184A (en) 2014-04-29 2014-04-29 Optimization method and device for rendering on same screen

Country Status (1)

Country Link
CN (1) CN103927184A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468353A (en) * 2015-11-06 2016-04-06 网易(杭州)网络有限公司 Implementation method and apparatus for interface animation, mobile terminal, and computer terminal
CN111462283A (en) * 2020-03-27 2020-07-28 厦门梦加网络科技股份有限公司 Method, medium, device and apparatus for playing a large number of animations of the same character

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289798A1 (en) * 2009-05-13 2010-11-18 Seiko Epson Corporation Image processing method and image processing apparatus
CN102723093A (en) * 2011-12-28 2012-10-10 新奥特(北京)视频技术有限公司 Caching method of image file
CN103606180A (en) * 2013-11-29 2014-02-26 广州菲动软件科技有限公司 Rendering method and device of 3D skeletal animation
CN103617643A (en) * 2013-11-29 2014-03-05 广州菲动软件科技有限公司 Rendering method and system of bone animation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100289798A1 (en) * 2009-05-13 2010-11-18 Seiko Epson Corporation Image processing method and image processing apparatus
CN102723093A (en) * 2011-12-28 2012-10-10 新奥特(北京)视频技术有限公司 Caching method of image file
CN103606180A (en) * 2013-11-29 2014-02-26 广州菲动软件科技有限公司 Rendering method and device of 3D skeletal animation
CN103617643A (en) * 2013-11-29 2014-03-05 广州菲动软件科技有限公司 Rendering method and system of bone animation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张姮: "《大规模虚拟人群运动绘制技术研究》", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468353A (en) * 2015-11-06 2016-04-06 网易(杭州)网络有限公司 Implementation method and apparatus for interface animation, mobile terminal, and computer terminal
CN105468353B (en) * 2015-11-06 2020-06-09 网易(杭州)网络有限公司 Method and device for realizing interface animation, mobile terminal and computer terminal
CN111462283A (en) * 2020-03-27 2020-07-28 厦门梦加网络科技股份有限公司 Method, medium, device and apparatus for playing a large number of animations of the same character
CN111462283B (en) * 2020-03-27 2023-03-03 厦门梦加网络科技股份有限公司 Method, medium, device and apparatus for playing large number of same character animations

Similar Documents

Publication Publication Date Title
US10311548B2 (en) Scaling render targets to a higher rendering resolution to display higher quality video frames
JP7296978B2 (en) Providing incentives to players to engage in competitive gameplay
US8830245B2 (en) Load balancing between general purpose processors and graphics processors
US9610501B2 (en) Delivery of projections for rendering
CN103164839B (en) A kind of drawing practice, device and terminal
CN109756766B (en) Virtual gift display method, storage medium, electronic device and system of live broadcast platform
JP5559445B1 (en) Drawing system, control method, program, and recording medium
JP2012527676A5 (en)
CN102982159A (en) Three-dimensional webpage multi-scenario fast switching method
WO2015147815A1 (en) Atlas generation based on client video configuration
CN112860944A (en) Video rendering method, device, equipment, storage medium and computer program product
CN115861498A (en) Redirection method and device for motion capture
CN114339069B (en) Video processing method, video processing device, electronic equipment and computer storage medium
CN103927184A (en) Optimization method and device for rendering on same screen
CN113470092B (en) Terrain rendering method and device, electronic equipment and storage medium
CN104185087A (en) Switching method based on different video streams of one video file
CN115471592A (en) Dynamic image processing method and system
JP6265337B2 (en) Program, recording medium, and drawing apparatus determination method
US9396573B2 (en) Image generating device, image generating method, and information storage medium
CN113082720A (en) Prompt message determination method and device and electronic equipment
CN111107425B (en) Method, system, and storage medium for acquiring computing resources based on rendering component elements
Lai et al. A QoS aware resource allocation strategy for mobile graphics rendering with cloud support
CN106331834A (en) Multimedia data processing method and equipment
CN116758252A (en) Model expression adjustment method and device, electronic equipment and storage medium
CN114882156A (en) Animation generation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161020

Address after: Unit B2-B5 16 building 518000 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant after: Shenzhen 7road Technology Co.,Ltd.

Address before: Nanshan District Shenzhen City, Guangdong province 518057 Shennan Road No. 9996 building, 7 storey main building height of song

Applicant before: Shenzhen Diqidadao Network Technology Co., Ltd.

CB02 Change of applicant information

Address after: Nanshan District Keyuan Road Shenzhen city Guangdong province 518057 No. 15 Kexing Science Park Building 2 unit A 17

Applicant after: Shenzhen 7road Technology Co.,Ltd.

Address before: Unit B2-B5 16 building 518000 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant before: Shenzhen 7road Technology Co.,Ltd.

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20180425

Address after: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen Qianhai illusion Network Technology Co., Ltd.

Address before: 518057, 17 unit, 2 unit, A building, Kexing Science Park, 15 Keyuan Road, Nanshan District, Shenzhen, Guangdong.

Applicant before: Shenzhen 7road Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20140716

RJ01 Rejection of invention patent application after publication