CN109499059A - The rendering method and device of object, storage medium, electronic device - Google Patents
The rendering method and device of object, storage medium, electronic device Download PDFInfo
- Publication number
- CN109499059A CN109499059A CN201811361069.1A CN201811361069A CN109499059A CN 109499059 A CN109499059 A CN 109499059A CN 201811361069 A CN201811361069 A CN 201811361069A CN 109499059 A CN109499059 A CN 109499059A
- Authority
- CN
- China
- Prior art keywords
- objects
- rendering
- priority grade
- interaction
- interaction priority
- 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
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 123
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000003860 storage Methods 0.000 title claims abstract description 21
- 230000003993 interaction Effects 0.000 claims abstract description 121
- 230000000007 visual effect Effects 0.000 claims abstract description 50
- 230000015654 memory Effects 0.000 claims description 24
- 230000033001 locomotion Effects 0.000 claims description 20
- 230000002452 interceptive effect Effects 0.000 claims description 8
- 230000009467 reduction Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 241000406668 Loxodonta cyclotis Species 0.000 claims description 2
- 230000032258 transport Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 15
- 238000012544 monitoring process Methods 0.000 description 12
- 239000000047 product Substances 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 230000002776 aggregation Effects 0.000 description 5
- 238000004220 aggregation Methods 0.000 description 5
- 239000003814 drug Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000004040 coloring Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006641 stabilisation Effects 0.000 description 2
- 238000011105 stabilization Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004043 dyeing Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 210000000697 sensory organ Anatomy 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
- A63F13/355—Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an encoded video stream for transmitting to a mobile phone or a thin client
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/822—Strategy games; Role-playing games
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/53—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
- A63F2300/538—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing for performing operations on behalf of the game client, e.g. rendering
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/807—Role playing or strategy games
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of rendering methods of object and device, storage medium, electronic device.Wherein, this method comprises: during terminal operating target application, from all objects to be shown in the visual range for identifying the first object in the virtual scene of target application, the first object is manipulated by the client of target application;Interaction priority grade based on all objects to be shown searches the second object in all objects to be shown, the interaction priority grade of object to be shown is used to indicate the priority interacted between object to be shown and the first object, and the interaction priority grade of the second object is not less than the interaction priority grade of the object in all objects to be shown in addition to the second object;The second object is rendered in the picture that client is shown, and cancels the rendering to the object in all objects to be shown in addition to the second object.The present invention solves the higher technical problem of performance resources occupation rate rendered in the related technology to terminal.
Description
Technical field
The present invention relates to internet areas, rendering method and device, storage medium in particular to a kind of object,
Electronic device.
Background technique
With the development of internet science and technology, electronic game has been the indispensable component part of people's daily entertainment.Especially
It is for instantly popular intelligent terminal class product, with perfect and hardware configuration continuous soaring, the institute of operating system
The scale of the electronic game of carrying is also quickly increasing always.Electronic game no matter visual effect or interactive operation mode,
All ceaselessly upgrade.Correspondingly, performance resource consumed by electronic game is also inevitable more and more.
The display image of electronic game is in a kind of render process of circulation, even if user does not do any operation, is also wanted
Image rendering is carried out frame by frame, and a large amount of player angle is related in each render process with the display for maintaining game image coherent
(abbreviation of Non-Player Character refers generally to " non-player role ", refers in game not by player by color, NPC role
The game role of manipulation) rendering maintain game image that must account for for a long time so that when running electronic game
With a large amount of performance resources.
Similar, in AR (full name is Augmented Reality, i.e. augmented reality) application, VR, (full name is
Virtual Reality, i.e. virtual reality) application in there is a problem of it is similar, when a large amount of object appears in some object
In the case where in visual range, maintain image that must also occupy a large amount of performance resources for a long time.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of rendering methods of object and device, storage medium, electronic device, at least to solve
The higher technical problem of performance resources occupation rate to terminal is certainly rendered in the related technology.
According to an aspect of an embodiment of the present invention, a kind of rendering method of object is provided, comprising: in terminal operating mesh
During mark application, from all to be shown right in the visual range for identifying the first object in the virtual scene of target application
As, wherein the first object is manipulated by the client of target application;Interaction priority grade based on all objects to be shown is being needed
The second object is searched in display object, wherein the interaction priority grade of object to be shown is used to indicate object to be shown and first pair
The priority interacted as between, the interaction priority grade of the second object not less than in all objects to be shown except the second object with
The interaction priority grade of outer object;The second object is rendered in the picture that client is shown, and is cancelled to all to be shown right
The rendering of object as in addition to the second object.
According to another aspect of an embodiment of the present invention, a kind of rendering device of object is additionally provided, comprising: recognition unit,
For identifying the visual range of the first object from the virtual scene of target application during terminal operating target application
Interior all objects to be shown, wherein the first object is manipulated by the client of target application;Searching unit, for based on all
The interaction priority grade of object to be shown searches the second object in all objects to be shown, wherein the interaction of object to be shown is excellent
First grade is used to indicate the priority interacted between object to be shown and the first object, and the interaction priority grade of the second object is not low
The interaction priority grade of object in all objects to be shown in addition to the second object;Rendering unit, for being shown in client
Picture in render the second object, and cancel the rendering to the object in all objects to be shown in addition to the second object.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, program execute above-mentioned method when running.
According to another aspect of an embodiment of the present invention, it additionally provides a kind of electronic device, including memory, processor and deposits
The computer program that can be run on a memory and on a processor is stored up, processor executes above-mentioned side by computer program
Method.
In embodiments of the present invention, during terminal operating target application, know from the virtual scene of target application
Not Chu all objects to be shown in the visual range of the first object, the first object manipulates by the client of target application;It is based on
The interaction priority grade of all objects to be shown searches the second object, the interaction priority of object to be shown in all objects to be shown
Grade is used to indicate the priority interacted between object to be shown and the first object, and the interaction priority grade of the second object is not less than
The interaction priority grade of object in all objects to be shown in addition to the second object;Is rendered in the picture that client is shown
Two objects, and cancel the rendering to the object in all objects to be shown in addition to the second object, this preferential rendering is high preferential
On the one hand the mode of the object of grade is protected compared to disposably rendering of the completion to all objects to be shown is needed in the related technology
The display for having demonstrate,proved important high priority object will not influence the interbehavior of the first object, and on the other hand only rendering part is right
Smooth operation as also ensuring picture, can solve the higher skill of performance resources occupation rate rendered in the related technology to terminal
Art problem, and then reach the technical effect for reducing the occupied performance resource of image rendering.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of the rendering method of object according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the rendering method of optional object according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram in optional visual field according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional visible space according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of optional picture frame per second curve according to an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of optional picture frame per second curve according to an embodiment of the present invention;
Fig. 8 is a kind of flow chart of optional terminal load monitoring according to an embodiment of the present invention;
Fig. 9 is a kind of flow chart of the rendering method of optional object according to an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Figure 12 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Figure 13 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Figure 14 is a kind of schematic diagram of optional game picture according to an embodiment of the present invention;
Figure 15 is a kind of schematic diagram of optional picture frame per second curve according to an embodiment of the present invention;
Figure 16 is a kind of schematic diagram of optional picture frame per second curve according to an embodiment of the present invention;
Figure 17 is a kind of schematic diagram of the rendering device of optional object according to an embodiment of the present invention;
And
Figure 18 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
One side according to an embodiment of the present invention provides a kind of embodiment of the method for the rendering method of object.
Optionally, in the present embodiment, the rendering method of above-mentioned object can be applied to as shown in Figure 1 by server
101 and the hardware environment that is constituted of user terminal 103 in.As shown in Figure 1, server 101 is connected by network with terminal 103
It connects, can be used for providing service (such as game services, application service) in terminal or terminal for the client installed, it can be in server
It is upper or database 105 is set independently of server, for providing data storage service for server 101, above-mentioned network include but
Be not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 103 are not limited to PC, mobile phone, tablet computer etc..
The rendering method of the object of the embodiment of the present invention can be executed by terminal 103, and terminal 103 executes implementation of the present invention
The rendering method of the object of example is also possible to be executed by client mounted thereto.The applicable field of the technical solution of the application
Scape includes but is not limited to following scene:
1) in the social application using AR, VR, after a user logs in, if (referring to the user within sweep of the eye at it
Visual range, in this range, other users can visually see this user and can interact with, exceed this range,
This user is invisible to other users) there are the objects such as a large amount of other users, user pets, to a large amount of other users, Yong Huchong
The objects such as object carry out image rendering to maintain image to need to occupy a large amount of performance resources for a long time, can then use this Shen at this time
Technical solution please renders the objects such as other users, user pet, maintains image rendering to occupy to reach reduction
Performance resource (such as its central processor CPU, memory, image processor GPU) purpose.
2) in game application, during player is in game, may occur suddenly in its visual range a large amount of
The roles such as other player roles, NPC role are limited to the performance resource of terminal, at this time the performance resource of terminal can in large quantities by
It is terminal Caton, sound in the sense organ of user side so that the availability performance resource of terminal be caused largely to decline occupied by Rendering operations
Should slowly, fall frame etc., the technical solution of the application can be then used at this time, to roles such as a large amount of other player roles, NPC roles
Middle interaction priority grade it is high show, thus achieve the purpose that reduce maintain image rendering occupy performance resource.
3) in the Simulation Applications such as military war class, medicine, by taking the application of military simulative war as an example, when visual range memory
When the objects such as a large amount of army personnels, military equipment are to be rendered, the available each object of terminal (uses eventually with existing object
The object at end) between interaction priority grade, selection wherein the high object priority of interaction priority grade rendered, in this way one side can
To guarantee the display (being unlikely to influence the interbehavior of existing object) of important object, the smoothness of picture is on the other hand also ensured
Operation, reduces the occupied performance resource of image rendering.
Fig. 2 is a kind of flow chart of the rendering method of optional object according to an embodiment of the present invention, as shown in Fig. 2, should
Method may comprise steps of:
Step S202, during terminal operating target application, terminal is identified from the virtual scene of target application
All objects to be shown in the visual range of first object, the first object is by the client manipulation of target application namely first
The object that the client of target application of the object by installation at the terminal manipulates in virtual scene.
Above-mentioned target application can be for using the social application of AR, VR, game application, military war class, medicine emulation
Using etc. application;Client can be formed after target application installation at the terminal.
Above-mentioned virtual scene is the scene that target application provides, the social activity as provided by the social application using AR, VR
AR scene, VR scene, the scene of game that game application provides are imitated provided by the Simulation Applications such as military war class, medicine
True scene.
The first above-mentioned object is object corresponding with user in reality, as role, the army personnel of player exercises operate
Military object etc.;Object to be shown can be object corresponding with user in reality, be controlled by the Lower level logical of target application
To as etc., military equipment etc. such as the NPC role in game, scenario objects, in Military Simulation.
Step S204, interaction priority grade of the terminal based on all objects to be shown search second in all objects to be shown
Object, the interaction priority grade of object to be shown are used to indicate the priority interacted between object to be shown and the first object,
Interaction priority grade of the interaction priority grade of second object not less than the object in all objects to be shown in addition to the second object.
Above-mentioned interaction priority grade is determined based on factor relevant to priority, and factor relevant to priority includes
But be not limited to the direction of the first object, the direction of motion of the first object, the movement velocity of the first object, the first object wait hold
Row task, the direction of object to be shown, the direction of object to be shown, the direction of motion of object to be shown, the fortune of object to be shown
At least one of dynamic speed, the pending task of object to be shown, factors such as attribute of object to be shown.Interaction herein can
Think the communication of spoken and written languages class, stage property transaction, belligerent confrontation etc..
Step S206, terminal renders the second object in the picture that client is shown, and cancels to all to be shown right
The rendering of object as in addition to the second object.
The rendering method of the object of the embodiment of the present invention can be executed by terminal 103, can also be by server 101 and end
End 103 executes jointly, and as server executes a part of step therein, (such as step S202 to step S204), terminal execute residue
Step (such as step S206).
S202 to step S206 through the above steps, during terminal operating target application, for the first object
All objects to be shown in visual range, the interaction priority grade based on all objects to be shown are looked into all objects to be shown
Higher second object of priority is found, so that the second object of high priority is rendered in the picture that client is shown, and
Cancel the rendering to the object in all objects to be shown in addition to the second object, the object of this preferential rendering high priority
On the one hand mode ensure that important compared to disposably rendering of the completion to all objects to be shown is needed in the related technology
The display of high priority object will not influence the interbehavior of the first object, and on the other hand only rendering partial objects also ensure
The smooth operation of picture, can solve the higher technical problem of performance resources occupation rate rendered in the related technology to terminal, into
And reach the technical effect for reducing the occupied performance resource of image rendering.
In the embodiment of the present application, it is described in detail for the technical solution of the application is applied to game application, for
Social application scene, military war class, medicine using AR, VR etc. emulate class application, similar therewith.
In the technical solution that step S202 is provided, during terminal operating target application, terminal is from target application
Virtual scene in identify all objects to be shown in the visual range of the first object, the first object by target application visitor
The manipulation of family end.
In an alternative embodiment, the technical solution of the application can be run always at the terminal, in other words, this Shen
Step S202 to step S208 please can recycle execution at the terminal.
In another optional embodiment, the technical solution of the application can trigger when terminal needs, and such as exist
The case where inevitably will appear a large amount of roles aggregation in many game, a large amount of roles need to show at this time, while rendering (this
The rendering at place includes to establish game role this object model, being object model coloring etc. by tinter) go out it is so polygonal
Color brings very big performance pressures to system, and bring result is exactly the frame per second reduction run and unstable, the user of product
It is poor to experience;Therefore the operation load that terminal can be monitored, can trigger the present processes when the load too high of terminal.
For example, whether the operation load for detecting terminal reaches first threshold during terminal operating target application, the
One threshold value is to execute the operation that all objects to be shown in the visual range of the first object are carried out with part rendering for triggering;
In the case where the operation of terminal load is greater than first threshold, execution " identifies first pair from the virtual scene of target application
The step for all objects to be shown in the visual range of elephant ", i.e., it can trigger the application's when the load too high of terminal
Method.
Optionally, the load for the image processor that above-mentioned operation load mainly considers, such as by the hardware of image processor
Resource is divided into N number of part, and targets threshold can be specific numerical value, for example be less than the M of N, and targets threshold can be proportional numerical value,
Such as 70% (executing the present processes if indicating that current occupied resource reaches 70%).
For another example, frame per second FPS (full name in English is Frames Per Second, i.e., transmission frame number per second) can be in certain journey
On degree indicate loading condition under, therefore, detect terminal operation load whether reach first threshold can be by frame per second FPS's
Judgement is realized, is such as calculated each second FPS mean value, is then done variance calculating to the accumulative equal value sequence of FPS, obtain n seconds nearest
The frame per second variation degree of (i.e. before n second) can determine load too high when variance is more than first threshold, on the contrary then do not have.
Optionally, above-mentioned " whether the operation load of detection terminal reaches first threshold " can periodically carry out, with
Under the loading condition of real-time monitoring terminal, after completing the execution to a circulation of the present processes, i.e., answered from target
After identifying all objects to be shown in the visual range of the first object in virtual scene, in " the fortune of detection terminal
Row load whether reach first threshold " the step for implementing result be terminal operation load be less than second threshold the case where
Under, stop executing the operation for carrying out all objects to be shown in the visual range of the first object part rendering, second threshold
Less than or equal to first threshold, in other words, there are enough resources to execute Rendering operations at this time, so when can execute complete wash with watercolours
Dye.
Terminal is from all objects to be shown in the visual range for identifying the first object in the virtual scene of target application
Mode can refer to Fig. 3 and Fig. 4, terminal first read the association attributes of the first object, position as where the first object, visually
The distance between proximal end and position, visually the distance between distal end and position, and then determine the first object virtual
Visual proximal end (the distance between visual proximal end and current location are added with the coordinate of current location) and visual distal end in scene
(with the coordinate of current location plus the distance between visual distal end and current location), then with visual proximal end and visual distal end
Between space be visible space, by be located at visible space in object (such as other players, NPC role) be used as object to be shown.
In the technical solution that step S204 is provided, the first object is identified from the virtual scene of target application in terminal
Visual range in all objects to be shown after, interaction priority grade of the terminal based on all objects to be shown is needing to be shown
Show and search the second object in object, the interaction priority grade of the second object is not less than in all objects to be shown in addition to the second object
Object interaction priority grade.
In the above-described embodiments, the interaction priority grade based on all objects to be shown searches in all objects to be shown
Two objects may include step 1- step 2 as follows:
Step 1, the interaction priority grade of each object to be shown in all objects to be shown is obtained.
In the optional embodiment of a step 1, the friendship of each object to be shown in obtaining all objects to be shown
When mutual priority, the interaction priority grade of available each of precalculated object to be shown, specific calculation can be with
With reference to following embodiments.
In the optional embodiment of another step 1, each object to be shown in obtaining all objects to be shown
Interaction priority grade constantly, can calculate each interaction priority grade to be shown: according to object to be shown as follows
Object type (such as player role, NPC role), object to be shown in virtual scene between the first object distance,
Object to be shown whether be the interactive objects of the first object and the second account number for identifying object to be shown with for identifying
Account number relationship (such as friend relation, positioned at same World War I team, for the war team of opposition) between first account number of the first object etc. because
Element determines the interaction priority grade of object to be shown.
For example, i-th above-mentioned of factor can be XiIndicate, as object type be player role when XiNumerical value be " 1 ",
NPC is " 0.5 ", account number relationship be friend relation, positioned at same World War I team, be the war team of opposition when for " 1 ", non-friend relation and
Not being located at World War I team, not also being located at when opposing war team is " 0.1 ", and i-th of factor can have corresponding weight Ki, then can be with
The corresponding numerical value Y of P factor is calculated accordingly, the sum of weight of all factors is 1,(Xi*Ki), for taking for P
Value, each value range correspond to a priority, and [0,1] corresponds to high priority, (1,10] correspond to middle priority, (10,
100] correspond to low priority.
Need to illustrate when, for above-mentioned priority other than being calculated in the manner described above, which can also be by outer
The influence of portion's factor, it can real-time change, for example, the interaction of each object to be shown is excellent in determining all objects to be shown
When first grade, in the case where the direction of the first object being oriented where object to be shown, i.e. in face of to be shown when the first object
When object, the interaction priority grade of object to be shown is promoted;Direction where not being object to be shown in the direction of the first object
In the case of, i.e., in the first object by being when not facing object to be shown, to reduce object to be shown in face of object variation to be shown
Interaction priority grade.
For another example, in determining all objects to be shown when the interaction priority grade of each object to be shown, if in the first object
The direction of motion be object to be shown where direction in the case where, i.e. the first object be proximate to object to be shown movement when, mention
Rise the interaction priority grade of object to be shown;The case where the direction of motion of the first object is not the direction where object to be shown
Under, i.e. when the first object is far from object to be shown movement, reduce the interaction priority grade of object to be shown.
Step 2, interaction priority grade in all objects to be shown is higher than the object to be shown of target priority as second
Object.
It is excellent interaction priority grade in all objects to be shown is higher than target in the embodiment of an optional step 2
When the object to be shown of first grade is as the second object, can by the interaction priority grade of all objects to be shown one by one with target priority
Grade is compared, so that it is determined that the second object.
In the embodiment of another optional step 2, interaction priority grade in all objects to be shown is being higher than target
It, can be by all objects to be shown according to interaction priority grade from high to low suitable when the object to be shown of priority is as the second object
Sequence is arranged in one end of object queue between the other end;It is high that interaction priority grade is begun looking for from another end of object queue
It is higher than in the object to be shown of target priority, and by the interaction priority grade begun looking for from another end of object queue
The object to be shown of target priority, object to be shown and therebetween to be shown positioned at an end of object queue
Object is as the second object.Above-mentioned one end and the other end is for the head of the queue of queue and to tail, and when one end is head of the queue, the other end is
To tail, vice versa.
In the technical solution that step S206 is provided, terminal renders the second object in the picture that client is shown, and
Cancel the rendering to the object in all objects to be shown in addition to the second object.
In the scheme of the application, the rendering period can be executed according to above-mentioned steps 202 to step S206 every time, for working as
Preceding rendering period (being denoted as the first rendering period), what terminal can identify to the first object from the virtual scene of target application can
It is considered as first object object depending on all objects to be shown in range, in the interaction priority grade based on all objects to be shown in institute
Have when searching the second object in object to be shown, can be looked into first object object based on the interaction priority grade of first object object
The second object is looked for, specific lookup mode is referred to the embodiment in step S204.
It renders the second object in the picture that client is shown, and cancels to removing the second object in all objects to be shown
When the rendering of object in addition, the second object can be rendered in the picture in the first rendering period that client is shown, and cancel
To the object to be shown in first object object in addition to the second object in the picture in the first rendering period that client is shown
Rendering, i.e., do not handle model foundation, coloring of the object of low priority etc. rendering process.
Optionally, the second object is rendered in the picture in the first rendering period that client is shown, and cancelled in client
End display first rendering the period picture in the rendering of the object in all objects to be shown in addition to the second object after,
In next rendering period (being denoted as the second rendering period), can the interaction priority grade based on the second target object in the second target
Third object is searched in object, the second target object is in first object object in addition to the second object and in the second rendering
Period is still located on the object to be shown in the visual range of the first object;In the picture in the second rendering period that client is shown
In render third object, and cancel in the picture in the second rendering period that client show to removing the in the second target object
The rendering of object to be shown other than three objects.
From the foregoing it can be that by the technical solution of the application, when having a large amount of roles aggregation, it is contemplated that player
It is contemplated that interactive, only wherein very small part may be generated therewith;So guarantee important role obtain it is preferential and
Instant display (such as being shown in the first rendering period above-mentioned), hides or delays other roles (as the aforementioned second
The rendering period is shown), it will not have much impact to the experience of game, and can get a promotion on the fluency of game,
Game experiencing can be promoted instead.
In the embodiment of the present application, it is described in detail for the technical solution of the application is applied to game application, for
Social application scene, military war class, medicine using AR, VR etc. emulate class application, similar therewith.
As a kind of optional embodiment, continues with and carried out in detail for the technical solution of the application is applied to game
It states.
Referring to Fig. 3 and Fig. 4, visual field Managed Solution in the related technology is generally basede on visibility judge, by being to role
The no view in itself cuts body, and (i.e. visible space indicates the range in a space, and the object in this space can be seen
To) within, judge whether role needs to show with this.
Visual field Managed Solution in the related technology because be based on visibility, there is no the logical attribute for considering role,
All roles within visual range complete display within a rendering period;And many game can not be kept away in playing method
That exempts from will appear the case where a large amount of roles assemble, and rely solely on visibility judge at this time, a large amount of roles within a rendering period
Very big performance pressures can be brought to system by needing to render, and bring result is exactly the frame per second reduction run and unstable, production
The poor user experience of product.
In game products, as shown in figure 5, the case where often having the aggregation of a large amount of game roles occurs (in such as Fig. 5
A large amount of roles and its title in white box), in the case where a large amount of visible roles exist simultaneously, show these roles,
Including loading and creating corresponding resource, very big load can be brought to system, when being more than the ability of system, will lead to transport
The decline of row frame per second is exactly picture jump, Caton to the impression of user's bring.
System excess load caused by above-mentioned role can be divided into two kinds of situations: one is role's quantity is excessive, beyond setting
Standby ability, bring long term overloading are product drawing jumps in performance, not smooth, and frame per second curve at this time is referring to Fig. 6;Separately
Although one is quantity without departing from capacity of equipment, intensively occur in a short time, caused instantaneous overload, is picture in performance
Caton, frame per second curve at this time refer to Fig. 7 from time to time in face.
The technical solution of the application supplements on the basis of the visibility judge of related art scheme from role's logic
The priority that attribute dimensions are set out is considered, while joined the real-time monitoring and smoothing techniques to system current loads, is solved
The system overload situation that relevant programme will appear in many cases reduces the demand to system performance to the greatest extent, excellent
The user experience of product is changed.
The not smooth of picture will be greatly reduced game experiencing, this needs will be avoided strongly, while cannot be influenced again just
Normal game flow and game;Typical role playing game is analyzed, when having a large amount of roles aggregation, player institute in fact
Being concerned with may generate interactive therewith, this part role is very small part in all roles to be shown, is adopted based on this
It can guarantee that important role obtains preferential and instant display with the scheme of the application, hide or delay other roles, it is right
The experience of game will not have much impact, and can be highly improved on the fluency of game.
Using the technical solution of the application, the mode for having used delay to show in role's flow for displaying receives server
Display role instruction when do not execute at once, but role is put into character list to be shown.Increase performance prison in major cycle
Control, the current system loading situation of real-time monitoring, when detecting overload, to role by and player relationship, distance etc. do
Priority ranking according to priority reduces display number from low to high, guarantees the stabilization of frame per second;Meanwhile it can be according to the direction of player
And the direction of motion, prediction player are more likely to the role interacted and improve its priority.
A kind of process of the optional performance monitoring for realizing technical scheme is as shown in Figure 8:
Step S801, starting performance monitoring, the effect of performance monitoring is the current system load condition of monitoring, to be directed to
The strategy of property.
Generally according to current frame per second FPS, (full name in English is Frames Per for the assessment of common load condition
Second, i.e., transmission frame number per second), when picture Caton, frame per second can be significantly reduced, but assessment band is simply made of frame per second
The problem come is that jumping characteristic is too big, and many situations are had in game running may bring the unexpected reduction of frame per second, such as input behaviour
Work, system notice, player's interaction etc.;Directly rely on frame per second, game not smooth enough according to will lead to of doing the strategy that role shows
It experiences bad.
Step S802, in order to overcome defect above-mentioned, the scheme of the application is calculated each second in each monitoring frame
FPS mean value.
Calculated FPS is put into frame per second queue by step S803.
Then step S804 does variance calculating to the accumulative equal value sequence of FPS (i.e. frame per second queue), obtains nearest n seconds
Frame per second variation degree calculates the variance of frame per second queue.
Step S805 judges whether variance is more than threshold value.It is no to then follow the steps S806 if so then execute step S807.
Step S806, when variance is less than threshold value, judgement current system is less than load.
Step S807, when variance is more than threshold value, i.e., it is believed that system current loads are overweight, there is Caton in picture.
A kind of process of the optional optimization display for realizing technical scheme is as shown in Figure 9:
Step S901 receives the data of role to be developed the color.
Role to be shown is put into character list to be shown (i.e. object queue) by step S902.
Step S903 carries out priority ranking.
When having role to enter list to be shown, priority ranking can be periodically carried out, it is excellent in order to guarantee game experiencing
The role that first grade sequence will allow player to pay close attention to preferentially shows that, to typical role playing game, priority is contemplated that more
A dimension: 1) role category, the role are player or monster or other players or non-player role (NPC), and user is not to
The degree of generic role concern is different, and for game the characteristics of will be distinguish;2) the sight focus of distance, usual user is
It is placed on the player of oneself operation, then the display that role closer with a distance from player will be more instant;3) interactivity, to role
For game for play, many times user is to need to interact with the role in scene, for example user obtains a task, needs
Talk with non-player role, this role to interact with user will display more preferably;4) social networks, more people
Social networks are a critically important component parts in online role playing game, and user may have teammate, foe, alliance etc.
Deng these also should display more preferably relative to strange player.
Above multiple dimensions can be comprehensively considered when sequence, adjusted for the characteristics of going game.
Step S904, performance monitoring module judge whether otherwise excess load if so then execute step S906 executes step to system
Rapid S905.
Step S905 judges whether there is role to be shown, no to then follow the steps S910 if so then execute step S909.
Step S906 judges whether there is suppressible low priority role, otherwise executes step if so then execute step S907
Rapid S910.
Step S907 hides low priority role.
Step S908, if there is the role to be shown of superthreshold, it is no to then follow the steps if so then execute step S909
S910。
Step S909 renders role.
Step S910 terminates rendering.
As shown in Figure 10, in role playing game, the player role most of the time of user is to locate during the motion,
And the role that player really pays close attention in fact in this process will be far fewer than the role encountered, the focus of user usually exists first
Around player role and in the direction of motion, concern is not likely to away from the role of the direction of motion;Next many angle encountered
Color and the current target of user are not inconsistent, for example user will arrive some place and another part dialog, although can pass through many angles
Color, but them can't be paid close attention to.Considering these factors, this programme gives higher priority to the role in the direction of motion,
Priority is reduced to the role in the direction of motion (and the distance of player role is widening);The current behaviour of user is considered simultaneously
Make target, improves the priority of target roles.
By taking one typically be easy to cause the scene of game of Caton as an example, there is a large amount of trip as shown in figure 11, in picture
Play role, when display effect when using relevant programme, when player enters the scene, and instantaneous a large amount of roles request of loading wound simultaneously
It builds and shows, cause system overload, frame per second decline is obvious and very unstable;It is had just enter on user experience in the short time of the scene
Shown almost without role, then random to there is role to be revealed successively, the lasting Caton of whole process, in experience compared with
Difference.
Display process when using traditional scheme is as shown in Figure 12 and Figure 13, when player enters the scene, instantaneous big angulation
Color request of loading creation simultaneously and display, cause system overload, and frame per second decline is obvious and very unstable;It is had just enter on user experience
Show there are a large amount of roles to be revealed then almost without role in the short time of the scene, the lasting Caton of whole process,
It is poor in experience.
Effect when using this programme is as shown in figure 14, and when player enters the scene, whole roles enter queue to be shown,
Then according to the direction of motion of player and mode of entrance and the attribute of each role, priority ranking is carried out to queue to be shown,
Subsequent framing is according to performance monitoring module as a result, selecting certain roles of highest priority to show in queue to be shown
Show.
The frame per second curve of scheme is as shown in figure 15 in the related technology, and the frame per second curvilinear motion of the application is as shown in figure 16, adopts
With the technical solution of the application, whole process is more smooth on user experience, will be more likely to the role's quilt interacted with current player
It shows faster, frame rate stable, picture smoothness not Caton.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the rendering method of above-mentioned object
The rendering device of object.Figure 17 is a kind of schematic diagram of the rendering device of optional object according to an embodiment of the present invention, is such as schemed
Shown in 17, the apparatus may include: recognition unit 1701, searching unit 1703 and rendering unit 1705.
Recognition unit 1701, for being known during terminal operating target application from the virtual scene of target application
It Chu all objects to be shown in the visual range of the first object, wherein the first object is manipulated by the client of target application;
Searching unit 1703 is searched in all objects to be shown for the interaction priority grade based on all objects to be shown
Second object, wherein the interaction priority grade of object to be shown is used to indicate between object to be shown and the first object and interacts
Priority, the interaction of the interaction priority grade of the second object not less than the object in all objects to be shown in addition to the second object
Priority;
Rendering unit 1705 for rendering the second object in the picture that client is shown, and is cancelled to needing to be shown
Show the rendering of the object in object in addition to the second object.
It should be noted that the recognition unit 1701 in the embodiment can be used for executing the step in the embodiment of the present application
S202, the searching unit 1703 in the embodiment can be used for executing the step S204 in the embodiment of the present application, in the embodiment
Rendering unit 1705 can be used for executing the step S206 in the embodiment of the present application.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
By above-mentioned module, during terminal operating target application, for the institute in the visual range of the first object
There is object to be shown, it is higher that the interaction priority grade based on all objects to be shown finds priority in all objects to be shown
The second object, to render the second object of high priority in the picture that client is shown, and cancel to needing to be shown
Show the rendering of the object in object in addition to the second object, the mode of the object of this preferential rendering high priority, compared to phase
It needs disposably to complete the rendering to all objects to be shown in the technology of pass, on the one hand ensure that important high priority object
Display will not influence the interbehavior of the first object, and on the other hand only rendering partial objects also ensure that the smooth of picture is run,
It can solve the higher technical problem of performance resources occupation rate rendered in the related technology to terminal, and then reach reduction image wash with watercolours
Contaminate the technical effect of occupied performance resource.
Optionally, searching unit can include: module is obtained, for obtaining each object to be shown in all objects to be shown
Interaction priority grade;Searching module, for interaction priority grade in all objects to be shown to be higher than the to be shown of target priority
Object is as the second object.
Optionally, searching module can include: arrangement submodule, for by all objects to be shown according to interaction priority grade from
High to Low one end for being arranged sequentially object queue is between the other end;Submodule is searched, for from the another of object queue
A end begins looking for the object to be shown that interaction priority grade is higher than target priority, and will be from another end of object queue
The interaction priority grade begun looking for is higher than the object to be shown of target priority, positioned at an end of object queue to aobvious
Show object and object to be shown between the two as the second object.
Optionally, obtaining module can also be used in: according to the object type of object to be shown, object to be shown in virtual scene
In between the first object distance, object to be shown whether be interactive objects of the first object and for identifying to aobvious
Show that the account number relationship between the second account number of object and the first account number for identifying the first object determines the friendship of object to be shown
Mutual priority.
Optionally, module is obtained in obtaining all objects to be shown when the interaction priority grade of each object to be shown, it can
In the case where the direction of the first object being oriented where object to be shown, the interaction priority grade of object to be shown is promoted;?
The direction of first object in the case where the direction where object to be shown, does not reduce the interaction priority grade of object to be shown.
Optionally, module is obtained in obtaining all objects to be shown when the interaction priority grade of each object to be shown, it can
In the case where the direction where the direction of motion of the first object is object to be shown, the interaction priority of object to be shown is promoted
Grade;In the case where the direction where the direction of motion of the first object is not object to be shown, the interaction of object to be shown is reduced
Priority.
Optionally, recognition unit is identified from the virtual scene of target application during terminal operating target application
Out when all objects to be shown in the visual range of the first object, it can be detected eventually during terminal operating target application
Whether the operation load at end reaches first threshold, wherein first threshold is for triggering the visual range executed to the first object
Interior all objects to be shown carry out the operation of part rendering;In the case where the operation of terminal load is greater than first threshold, from
All objects to be shown in the visual range of the first object are identified in the virtual scene of target application.
Optionally, the device of the application may also include that identifies the first object in the virtual scene from target application
After all objects to be shown in visual range, stop unit is less than the second threshold for the operation load reduction in terminal
In the case where value, stop executing the operation for carrying out all objects to be shown in the visual range of the first object part rendering,
Wherein, second threshold is less than or equal to first threshold.
Optionally, searching unit is searched in all objects to be shown in the interaction priority grade based on all objects to be shown
When the second object, the second object can be searched in first object object based on the interaction priority grade of first object object, wherein the
One target object is the object to be shown positioned at the first object in the visual range in the first rendering period.Rendering unit is in client
It holds and renders the second object in the picture of display, and cancel the wash with watercolours to the object in all objects to be shown in addition to the second object
When dye, the second object can be rendered in the picture in the first rendering period that client is shown, and cancel and showing in client
Rendering in the picture in the first rendering period to the object to be shown in first object object in addition to the second object.
Optionally, searching unit can also be used to render second pair in the picture in the first rendering period that client is shown
As, and cancel client show first render the period picture in in all objects to be shown in addition to the second object
After the rendering of object, third object is searched in the second target object based on the interaction priority grade of the second target object, wherein
Second target object is in first object object in addition to the second object and is still located on the first object in the second rendering period
Visual range in object to be shown;Rendering unit can also be used in the wash with watercolours in the picture in the second rendering period that client is shown
Dye third object, and cancel in the picture in the second rendering period that client show in the second target object except third pair
As the rendering of object to be shown in addition.
The not smooth of picture will be greatly reduced game experiencing, this needs will be avoided strongly, while cannot be influenced again just
Normal game flow and game;Typical role playing game is analyzed, when having a large amount of roles aggregation, player institute in fact
Being concerned with may generate interactive therewith, this part role is very small part in all roles to be shown, is adopted based on this
It can guarantee that important role obtains preferential and instant display with the scheme of the application, hide or delay other roles, it is right
The experience of game will not have much impact, and can be highly improved on the fluency of game.
Using the technical solution of the application, the mode for having used delay to show in role's flow for displaying receives server
Display role instruction when do not execute at once, but role is put into character list to be shown.Increase performance prison in major cycle
Control, the current system loading situation of real-time monitoring, when detecting overload, to role by and player relationship, distance etc. do
Priority ranking according to priority reduces display number from low to high, guarantees the stabilization of frame per second;Meanwhile it can be according to the direction of player
And the direction of motion, prediction player are more likely to the role interacted and improve its priority.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to above-described embodiment disclosure of that.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization, wherein hardware environment includes network
Environment.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the rendering method of above-mentioned object
Server or terminal.
Figure 18 is a kind of structural block diagram of terminal according to an embodiment of the present invention, and as shown in figure 18, which may include:
One or more (one is only shown in Figure 18) processors 1801, memory 1803 and transmitting device 1805, such as Figure 18 institute
Show, which can also include input-output equipment 1807.
Wherein, memory 1803 can be used for storing software program and module, such as the wash with watercolours of the object in the embodiment of the present invention
Dyeing method and the corresponding program instruction/module of device, the software journey that processor 1801 is stored in memory 1803 by operation
Sequence and module realize the rendering method of above-mentioned object thereby executing various function application and data processing.Memory
1803 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 1803 can further comprise relative to processing
The remotely located memory of device 1801, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 1805 is used to that data to be received or sent via network, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 1805 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress
1805 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 1803 is for storing application program.
The application program that processor 1801 can call memory 1803 to store by transmitting device 1805, it is following to execute
Step:
During terminal operating target application, the visual of the first object is identified from the virtual scene of target application
All objects to be shown in range, wherein the first object is manipulated by the client of target application;
Interaction priority grade based on all objects to be shown searches the second object in all objects to be shown, wherein to
The interaction priority grade of display object is used to indicate the priority interacted between object to be shown and the first object, the second object
Interaction priority grade not less than the object in all objects to be shown in addition to the second object interaction priority grade;
It renders the second object in the picture that client is shown, and cancels to removing the second object in all objects to be shown
The rendering of object in addition.
Processor 1801 is also used to execute following step:
By all objects to be shown according to interaction priority grade one end for being arranged sequentially object queue from high to low to another
Between one end;
The object to be shown that interaction priority grade is higher than target priority is begun looking for from another end of object queue, and
The interaction priority grade begun looking for from another end of object queue is higher than the object to be shown of target priority, is located at
The object to be shown of one end of object queue and object to be shown between the two are as the second object.
In embodiments of the present invention, during terminal operating target application, know from the virtual scene of target application
Not Chu all objects to be shown in the visual range of the first object, the first object manipulates by the client of target application;It is based on
The interaction priority grade of all objects to be shown searches the second object, the interaction priority of object to be shown in all objects to be shown
Grade is used to indicate the priority interacted between object to be shown and the first object, and the interaction priority grade of the second object is not less than
The interaction priority grade of object in all objects to be shown in addition to the second object;Is rendered in the picture that client is shown
Two objects, and cancel the rendering to the object in all objects to be shown in addition to the second object, this preferential rendering is high preferential
On the one hand the mode of the object of grade is protected compared to disposably rendering of the completion to all objects to be shown is needed in the related technology
The display for having demonstrate,proved important high priority object will not influence the interbehavior of the first object, and on the other hand only rendering part is right
Smooth operation as also ensuring picture, can solve the higher skill of performance resources occupation rate rendered in the related technology to terminal
Art problem, and then reach the technical effect for reducing the occupied performance resource of image rendering.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
It will appreciated by the skilled person that structure shown in Figure 18 is only to illustrate, terminal can be smart phone
(such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Figure 18 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
May include than shown in Figure 18 more perhaps less component (such as network interface, display device) or have and Figure 18 institute
Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With the program code of the rendering method for executing object.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S12 identifies the first object during terminal operating target application from the virtual scene of target application
All objects to be shown in visual range, wherein the first object is manipulated by the client of target application;
S14, the interaction priority grade based on all objects to be shown search the second object in all objects to be shown,
In, the interaction priority grade of object to be shown is used to indicate the priority interacted between object to be shown and the first object, the
Interaction priority grade of the interaction priority grade of two objects not less than the object in all objects to be shown in addition to the second object;
S16, renders the second object in the picture that client is shown, and cancels to removing second in all objects to be shown
The rendering of object other than object.
Optionally, storage medium is also configured to store the program code for executing following steps:
S22, one end for being arranged sequentially object queue by all objects to be shown according to interaction priority grade from high to low
To between the other end;
It is to be shown right higher than target priority to begin looking for interaction priority grade from another end of object queue by S24
As, and the interaction priority grade begun looking for from another end of object queue is higher than the to be shown right of target priority
As, the object to be shown positioned at an end of object queue and object to be shown between the two are as the second object.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment
Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (15)
1. a kind of rendering method of object characterized by comprising
During terminal operating target application, the visual of the first object is identified from the virtual scene of the target application
All objects to be shown in range, wherein first object is manipulated by the client of the target application;
Interaction priority grade based on all objects to be shown searches the second object in all objects to be shown,
In, the interaction priority grade of the object to be shown is used to indicate between the object to be shown and first object and interacts
Priority, the interaction priority grade of second object not less than in all objects to be shown in addition to second object
Object interaction priority grade;
It renders second object in the picture that the client is shown, and cancels to being removed in all objects to be shown
The rendering of object other than second object.
2. the method according to claim 1, wherein the interaction priority grade based on all objects to be shown exists
Searching the second object in all objects to be shown includes:
Obtain the interaction priority grade of each object to be shown in all objects to be shown;
Interaction priority grade in all objects to be shown is higher than the object to be shown of target priority as described the
Two objects.
3. according to the method described in claim 2, it is characterized in that, interaction priority grade in all objects to be shown is higher than
The object to be shown of target priority includes: as second object
By all objects to be shown according to interaction priority grade one end for being arranged sequentially object queue from high to low to another
Between one end;
Interaction priority grade is begun looking for from another end of the object queue to be higher than described in the target priority to aobvious
Show object, and the interaction priority grade begun looking for from another end of the object queue is higher than the target priority
The object to be shown, positioned at an end of the object queue the object to be shown and therebetween described in
Object to be shown is as second object.
4. according to the method described in claim 2, it is characterized in that, obtaining each described to aobvious in all objects to be shown
The interaction priority grade for showing object includes:
According to the object type of the object to be shown, the object to be shown in the virtual scene with first object
Between distance, the object to be shown whether be the interactive objects of first object and described to aobvious for identifying
It is described to be shown to show that the account number relationship between the second account number of object and the first account number for identifying first object determines
The interaction priority grade of object.
5. according to the method described in claim 4, it is characterized in that, obtaining each described to aobvious in all objects to be shown
Show the interaction priority grade of object further include:
In the case where the direction of first object being oriented where the object to be shown, the object to be shown is promoted
Interaction priority grade;
In the case where the direction where the direction of first object is not the object to be shown, it is described to be shown right to reduce
The interaction priority grade of elephant.
6. according to the method described in claim 4, it is characterized in that, obtaining each described to aobvious in all objects to be shown
Show the interaction priority grade of object further include:
In the case where the direction where the direction of motion of first object is the object to be shown, promoted described to be shown
The interaction priority grade of object;
In the case where the direction where the direction of motion of first object is not the object to be shown, reduce described to aobvious
Show the interaction priority grade of object.
7. the method according to claim 1, wherein
During terminal operating target application, the visual of the first object is identified from the virtual scene of the target application
During all objects to be shown in range include: the target application described in the terminal operating, the terminal is detected
Whether operation load reaches first threshold, wherein the first threshold is used to trigger the visual model executed to first object
All objects to be shown in enclosing carry out the operation of part rendering;It is greater than the first threshold in the operation load of the terminal
In the case of, from all objects to be shown in the visual range for identifying the first object in the virtual scene of the target application;
Identified in the virtual scene from the target application all objects to be shown in the visual range of the first object it
Afterwards, in the case where being less than second threshold the method also includes the operation of: the terminal after reduction load, stop executing pair
All objects to be shown in the visual range of first object carry out the operation of part rendering, wherein the second threshold
Less than or equal to the first threshold.
8. the method according to claim 1, wherein
Interaction priority grade based on all objects to be shown searches the second object in all objects to be shown
Second object is searched in the first object object based on the interaction priority grade of first object object, wherein described
One target object is the object to be shown positioned at first object in the visual range in the first rendering period;
It renders second object in the picture that the client is shown, and cancels to being removed in all objects to be shown
The rendering of object other than second object includes: the wash with watercolours in the picture in the first rendering period that the client is shown
Dye second object, and cancel in the picture in the first rendering period in the first object object except described the
The rendering of object other than two objects.
9. according to the method described in claim 8, it is characterized in that, the first rendering period shown in the client
Second object is rendered in picture, and is cancelled in the picture in the first rendering period in the first object object
After the rendering of object in addition to second object, the method also includes:
Third object is searched in second target object based on the interaction priority grade of the second target object, wherein described
Two target objects in the first object object in addition to second object and second rendering the period be still located on institute
State the object to be shown in the visual range of the first object;
The third object is rendered in the picture in the second rendering period that the client is shown, and is cancelled described
Rendering in the picture in the second rendering period to the object in second target object in addition to the third object.
10. a kind of rendering device of object characterized by comprising
Recognition unit, for being identified from the virtual scene of the target application during terminal operating target application
All objects to be shown in the visual range of first object, wherein first object by the target application client
Manipulation;
Searching unit is searched in all objects to be shown for the interaction priority grade based on all objects to be shown
Second object, wherein the interaction priority grade of the object to be shown is used to indicate the object to be shown and first object
Between the priority that interacts, the interaction priority grade of second object not less than in all objects to be shown except described
The interaction priority grade of object other than second object;
Rendering unit for rendering second object in the picture that the client is shown, and is cancelled to described all
The rendering of object in object to be shown in addition to second object.
11. device according to claim 10, which is characterized in that the searching unit includes:
Module is obtained, for obtaining the interaction priority grade of each object to be shown in all objects to be shown;
Searching module, for interaction priority grade in all objects to be shown to be higher than the described to be shown right of target priority
As second object.
12. device according to claim 11, which is characterized in that the searching module includes:
Arrange submodule, for by all objects to be shown according to interaction priority grade from high to low be arranged sequentially target
One end of queue is between the other end;
Submodule is searched, it is excellent higher than the target for beginning looking for interaction priority grade from another end of the object queue
The object to be shown of first grade, and the interaction priority grade begun looking for from another end of the object queue is higher than
The object to be shown of the target priority, positioned at an end of the object queue the object to be shown and
The object to be shown between the two is as second object.
13. device according to claim 11, which is characterized in that the acquisition module is also used to:
According to the object type of the object to be shown, the object to be shown in the virtual scene with first object
Between distance, the object to be shown whether be the interactive objects of first object and described to aobvious for identifying
It is described to be shown to show that the account number relationship between the second account number of object and the first account number for identifying first object determines
The interaction priority grade of object.
14. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run
Execute method described in 1 to 9 any one of the claims.
15. a kind of electronic device, including memory, processor and it is stored on the memory and can transports on the processor
Capable computer program, which is characterized in that the processor executes the claims 1 to 9 by the computer program
Method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811361069.1A CN109499059B (en) | 2018-11-15 | 2018-11-15 | Object rendering method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811361069.1A CN109499059B (en) | 2018-11-15 | 2018-11-15 | Object rendering method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109499059A true CN109499059A (en) | 2019-03-22 |
CN109499059B CN109499059B (en) | 2020-08-11 |
Family
ID=65748671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811361069.1A Active CN109499059B (en) | 2018-11-15 | 2018-11-15 | Object rendering method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109499059B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459591A (en) * | 2020-03-31 | 2020-07-28 | 杭州海康威视数字技术股份有限公司 | To-be-rendered object processing method and device and terminal |
CN111494955A (en) * | 2020-04-20 | 2020-08-07 | 上海米哈游天命科技有限公司 | Game-based role interaction method, device, server and medium |
CN112562065A (en) * | 2020-12-17 | 2021-03-26 | 深圳市大富网络技术有限公司 | Rendering method, system and device of virtual object in virtual world |
CN112598568A (en) * | 2020-12-28 | 2021-04-02 | 航天科技控股集团股份有限公司 | Dynamic rendering method for full liquid crystal instrument |
CN112657197A (en) * | 2020-12-21 | 2021-04-16 | 北京像素软件科技股份有限公司 | Game role data processing method and device, electronic equipment and storage medium |
CN113181644A (en) * | 2021-04-29 | 2021-07-30 | 广州三七极耀网络科技有限公司 | Rendering method and device of game role and electronic equipment |
CN113476839A (en) * | 2021-07-23 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Entity display method and device in game application, storage medium and electronic equipment |
CN113655880A (en) * | 2021-08-03 | 2021-11-16 | Oppo广东移动通信有限公司 | Interface rendering method and device, terminal equipment and computer readable storage medium |
CN114880258A (en) * | 2022-05-26 | 2022-08-09 | 重庆长安汽车股份有限公司 | Intelligent driving interaction arbitration method, system, vehicle and storage medium |
WO2024051420A1 (en) * | 2022-09-08 | 2024-03-14 | 腾讯科技(深圳)有限公司 | Data processing method and apparatus for virtual scene, and electronic device and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6072498A (en) * | 1997-07-31 | 2000-06-06 | Autodesk, Inc. | User selectable adaptive degradation for interactive computer rendering system |
CN103778656A (en) * | 2014-02-12 | 2014-05-07 | 腾讯科技(深圳)有限公司 | Image rendering method and device and electronic equipment |
CN107952241A (en) * | 2017-12-05 | 2018-04-24 | 北京像素软件科技股份有限公司 | Render control method, device and readable storage medium storing program for executing |
CN108022286A (en) * | 2017-11-30 | 2018-05-11 | 腾讯科技(深圳)有限公司 | Picture rendering intent, device and storage medium |
CN108339270A (en) * | 2018-02-09 | 2018-07-31 | 网易(杭州)网络有限公司 | The processing method of static component, rendering intent and device in scene of game |
-
2018
- 2018-11-15 CN CN201811361069.1A patent/CN109499059B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6072498A (en) * | 1997-07-31 | 2000-06-06 | Autodesk, Inc. | User selectable adaptive degradation for interactive computer rendering system |
CN103778656A (en) * | 2014-02-12 | 2014-05-07 | 腾讯科技(深圳)有限公司 | Image rendering method and device and electronic equipment |
CN108022286A (en) * | 2017-11-30 | 2018-05-11 | 腾讯科技(深圳)有限公司 | Picture rendering intent, device and storage medium |
CN107952241A (en) * | 2017-12-05 | 2018-04-24 | 北京像素软件科技股份有限公司 | Render control method, device and readable storage medium storing program for executing |
CN108339270A (en) * | 2018-02-09 | 2018-07-31 | 网易(杭州)网络有限公司 | The processing method of static component, rendering intent and device in scene of game |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459591A (en) * | 2020-03-31 | 2020-07-28 | 杭州海康威视数字技术股份有限公司 | To-be-rendered object processing method and device and terminal |
CN111494955B (en) * | 2020-04-20 | 2023-09-19 | 上海米哈游天命科技有限公司 | Character interaction method, device, server and medium based on game |
CN111494955A (en) * | 2020-04-20 | 2020-08-07 | 上海米哈游天命科技有限公司 | Game-based role interaction method, device, server and medium |
CN112562065A (en) * | 2020-12-17 | 2021-03-26 | 深圳市大富网络技术有限公司 | Rendering method, system and device of virtual object in virtual world |
CN112657197A (en) * | 2020-12-21 | 2021-04-16 | 北京像素软件科技股份有限公司 | Game role data processing method and device, electronic equipment and storage medium |
CN112598568A (en) * | 2020-12-28 | 2021-04-02 | 航天科技控股集团股份有限公司 | Dynamic rendering method for full liquid crystal instrument |
CN112598568B (en) * | 2020-12-28 | 2024-05-31 | 航天科技控股集团股份有限公司 | Dynamic rendering method of full liquid crystal instrument |
CN113181644A (en) * | 2021-04-29 | 2021-07-30 | 广州三七极耀网络科技有限公司 | Rendering method and device of game role and electronic equipment |
CN113181644B (en) * | 2021-04-29 | 2024-02-27 | 广州三七极耀网络科技有限公司 | Game role rendering method and device and electronic equipment |
CN113476839A (en) * | 2021-07-23 | 2021-10-08 | 腾讯科技(深圳)有限公司 | Entity display method and device in game application, storage medium and electronic equipment |
CN113476839B (en) * | 2021-07-23 | 2023-10-24 | 腾讯科技(深圳)有限公司 | Entity display method and device in game application, storage medium and electronic equipment |
CN113655880A (en) * | 2021-08-03 | 2021-11-16 | Oppo广东移动通信有限公司 | Interface rendering method and device, terminal equipment and computer readable storage medium |
CN114880258A (en) * | 2022-05-26 | 2022-08-09 | 重庆长安汽车股份有限公司 | Intelligent driving interaction arbitration method, system, vehicle and storage medium |
CN114880258B (en) * | 2022-05-26 | 2024-05-07 | 重庆长安汽车股份有限公司 | Intelligent driving interaction arbitration method, system, vehicle and storage medium |
WO2024051420A1 (en) * | 2022-09-08 | 2024-03-14 | 腾讯科技(深圳)有限公司 | Data processing method and apparatus for virtual scene, and electronic device and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109499059B (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109499059A (en) | The rendering method and device of object, storage medium, electronic device | |
US11318390B2 (en) | Systems and methods for hardware-based matchmaking | |
US8858314B1 (en) | Video game with expedited combat | |
US20080090659A1 (en) | Virtual world event notification from a persistent world game server in a logically partitioned game console | |
CN111760267B (en) | Information sending method and device in game, storage medium and electronic equipment | |
US20210268382A1 (en) | Information display method and apparatus, electronic device, and computer storage medium | |
US20240082734A1 (en) | In-game resource surfacing platform | |
CN109731330A (en) | The display methods and device of picture, storage medium, electronic device | |
US20240269556A1 (en) | Method for interaction in game, device, and non-transitory computer-readable storage medium | |
JP7389902B2 (en) | Server-based mechanics help determination from aggregated user data | |
JP7395734B2 (en) | Generating server-based help maps in video games | |
US20230293992A1 (en) | Game replay control method and apparatus, device, and storage medium | |
CN114288639A (en) | Picture display method, providing method, device, equipment and storage medium | |
JP2024072870A (en) | Server-based video help in video game | |
CN114911558A (en) | Cloud game starting method, device and system, computer equipment and storage medium | |
JP2021069646A (en) | Video game processing program and video game processing system | |
CN110325965A (en) | Object processing method, equipment and storage medium in virtual scene | |
US9474971B2 (en) | Emulation and facilitation of purchase of game programs | |
CN112138411A (en) | Accompanying playing control method, device, equipment and storage medium based on cloud game | |
KR101171717B1 (en) | Method and server of preventing automatic program for item auction site of on-line game | |
JP6959267B2 (en) | Generate challenges using a location-based gameplay companion application | |
US20240123344A1 (en) | Method and apparatus for game role interaction control, storage medium, and electronic device | |
US20240115948A1 (en) | Method and system for auto-playing portions of a video game | |
JP7372071B2 (en) | Information processing program, information processing device, information processing system, and information processing method | |
KR20130083080A (en) | Method and server of displaying detailed information of user in detailed information comparison window in on-line game |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |