Element display method and apparatus, and device, medium and program product

By determining the importance level of virtual elements in the virtual scene and adjusting the display performance data, the problem of processor performance degradation caused by the rendering of virtual elements in the virtual scene is solved, and efficient allocation of computing resources and optimization of display performance are achieved.

WO2024174586A1PCT designated stage expired Publication Date: 2024-08-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/130353
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2023-11-08
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

When rendering a large number of complex virtual elements in a virtual scene, the performance of the computer processor will decrease, making it impossible to efficiently allocate computing resources to ensure the normal display of the scene.

Method used

By obtaining the position information and field of view information of the main virtual character in the virtual scene, combined with the position information of the virtual elements, the importance level is determined, and the display performance data is adjusted based on this level to optimize the display control of the virtual elements and reasonably allocate computing resources.

Benefits of technology

It improves the performance optimization rate of the computer processor, ensures the normal display of virtual scenes, and improves the accuracy and optimization rate of display performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023130353_29082024_PF_FP_ABST
    Figure CN2023130353_29082024_PF_FP_ABST
Patent Text Reader

Abstract

An element display method and apparatus, and a device, a medium and a program product, which relate to the technical field of computers. The method comprises: acquiring first position information and field-of-view information of a main control virtual character in a virtual scene (201); acquiring second position information of a virtual element in the virtual scene (202); determining a scene distance between the first position information and the second position information in the virtual scene (203); determining the level of importance of the virtual element on the basis of the scene distance and the field-of-view information (204); and determining display performance data for the virtual element on the basis of the level of importance of the virtual element, and performing display control on the virtual element on the basis of the display performance data (205).
Need to check novelty before this filing date? Find Prior Art

Description

Element display method, device, equipment, medium and program product

[0001] This application claims priority to Chinese patent application No. 202310203196.3, filed on February 23, 2023, entitled “Element Display Method, Device, Equipment, Medium and Program Product,” the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of computer technology, and in particular to an element display method, device, equipment, medium, and program product. Background Art

[0003] With the development of computer technology and the Internet, the realism and richness of games have been greatly improved. Most games provide simulated virtual scenes, which include a large number and variety of virtual elements, such as: sky, grass, vehicles, wild monsters, etc.

[0004] In related technologies, when developing such games, a virtual engine can be used to render virtual elements in real time, so that the rendered virtual scene can be displayed in real time on the terminal interface.

[0005] However, when the elements in the virtual scene are numerous and complex, rendering these virtual elements simultaneously will consume a large amount of computer computing resources and reduce the performance of the processor in the computer.

[0006] Summary of the Invention

[0007] The present invention provides an element display method, apparatus, device, medium, and program product that can optimize the performance of a processor in a computer while rendering elements in a virtual scene. The technical solution is as follows:

[0008] In one aspect, a method for displaying an element is provided, the method being executed by a computer device, the method comprising:

[0009] Acquire first position information and field of view information of a controlling virtual character in a virtual scene, wherein the field of view information is used to indicate a field of view range of the virtual scene observed from the perspective of the controlling virtual character;

[0010] Acquiring second position information of a virtual element in the virtual scene;

[0011] determining a scene distance between the first position information and the second position information in the virtual scene;

[0012] determining an importance level of the virtual element based on the scene distance and the field of view information, wherein the importance level of the virtual element is obtained by rating the inclusion of the virtual element in the field of view using at least one of at least two rating methods;

[0013] Based on the importance level of the virtual element, display performance data of the virtual element is determined, and display control of the virtual element is performed based on the display performance data, where the display performance data corresponds to a presentation effect of the display element in the virtual scene.

[0014] In another aspect, an element display device is provided, the device comprising:

[0015] An acquisition module, configured to acquire first position information and field of view information of a controlling virtual character in a virtual scene, wherein the field of view information indicates a field of view range of the controlling virtual character observing the virtual scene from a perspective of the controlling virtual character;

[0016] The acquisition module is further configured to acquire second position information of the virtual element in the virtual scene;

[0017] a determination module, configured to determine a scene distance between the first position information and the second position information in the virtual scene;

[0018] The determining module is configured to determine an importance level of the virtual element based on the scene distance and the field of view information, wherein the importance level of the virtual element is obtained by rating the virtual element in the field of view using at least one of at least two rating methods;

[0019] The determination module is further used to determine the display performance data of the virtual element based on the importance level of the virtual element, and to perform display control on the virtual element based on the display performance data, wherein the display performance data corresponds to the presentation effect of the display element in the virtual scene.

[0020] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the element display method as described in any of the above embodiments.

[0021] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the element display method as described in any of the above embodiments.

[0022] In another aspect, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the element display method described in any of the above embodiments.

[0023] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:

[0024] By determining the scene distance between the first position information of the controlling virtual character and the second position information of the virtual element in the virtual scene, as well as the field of view information corresponding to the controlling virtual character, the importance level of the virtual element is determined, thereby determining the display performance data of the virtual element, and then controlling the display of the virtual element based on the display performance data. On the one hand, the virtual elements in the virtual scene are displayed differently based on the importance level, and the computer's computing resources are reasonably allocated. While ensuring the normal display of the virtual scene, the performance of the processor in the computer is optimized. On the other hand, the importance level is determined by the dual conditions of position and field of view, which improves the granularity of the importance condition, making the final display performance data more accurate and improving the optimization rate of the computer's display performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] FIG1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

[0026] FIG2 is a flow chart of an element display method provided by an exemplary embodiment of the present application;

[0027] FIG3 is a schematic diagram of the hierarchy of importance levels provided by an exemplary embodiment of the present application;

[0028] FIG4 is a flow chart of an element display method provided by another exemplary embodiment of the present application;

[0029] FIG5 is a flowchart of an element display method provided by another exemplary embodiment of the present application;

[0030] FIG6 is a registration flow chart of importance rating provided by an exemplary embodiment of the present application;

[0031] FIG7 is a rating flow chart of importance rating provided by an exemplary embodiment of the present application;

[0032] FIG8 is a schematic diagram showing the performance of virtual elements after importance system classification according to an exemplary embodiment of the present application;

[0033] FIG9 is a structural block diagram of an element display device provided by an exemplary embodiment of the present application;

[0034] FIG10 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0035] The present application provides an element display method applicable to applications providing virtual scenes, such as first-person shooters, third-person shooters, multiplayer online tactical competitive games, and massively multiplayer online role-playing games. The present application provides an importance rating-optimization solution that determines the importance level of elements within a scene by determining the distance between a character and elements within the scene and the inclusion relationship between the elements and the character's field of view. This solution optimizes display performance data that can be optimized within the system based on the importance level, displays each element within the scene in a differentiated manner, and rationally allocates computing resources. This ensures the normal display of the virtual scene while optimizing the performance of the computer's processor.

[0036] FIG1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. As shown in FIG1 , the implementation environment involves a terminal 110 and a server 120, and the terminal 110 and the server 120 are connected via a communication network 130. The communication network 130 can be a wired network or a wireless network, which is not limited in the present embodiment.

[0037] In some optional embodiments, a target application supporting a virtual scene is installed and running in the terminal 110. The target application can be implemented as any one of a virtual reality application, a first-person shooter (FPS) game, a third-person shooter (TPS) game, a multiplayer online battle arena game (MOBA), a massively multiplayer online role-playing game (MMORPG), etc., and the embodiments of the present application are not limited thereto.

[0038] In some optional embodiments, the server 120 is used to provide background services for the target application installed in the terminal 110. Schematically, a first account corresponding to a master virtual character is logged in to the target application installed in the terminal 110. When the target application is running, the target application virtual scene is displayed in the terminal 110, and the terminal 110 can control the master virtual character; when it is necessary to display elements in the virtual scene displayed in the terminal 110, the server 120 will obtain the first position information and field of view information of the master virtual character in the virtual scene, and obtain the second position information of multiple virtual elements in the virtual scene; secondly, the server 120 will determine the scene distance between the first position information and the second position information in the virtual scene, and determine the importance level of the virtual element based on the scene distance and field of view information; finally, the server 120 determines the display performance data of the virtual element according to the importance level of the virtual element, and controls the display of the virtual element based on the display performance data. Optionally, the server 120 sends the display performance data to the terminal 110. After receiving the data, the terminal 110 renders and displays the virtual element according to the display performance data. Thus, the server 120 can display each virtual element in the virtual scene in a differentiated manner from the perspective of optimizing processor performance, thereby maximizing the processor's benefits.

[0039] Among them, the terminal 110 includes at least one of a smart phone, a tablet computer, a portable laptop computer, a desktop computer, a smart speaker, a smart wearable device, a smart voice interaction device, a smart home appliance, a car terminal, etc.

[0040] It is worth noting that server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0041] Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to enable data computing, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology, all based on the cloud computing business model. It can form a resource pool for on-demand, flexible, and convenient use. Cloud computing technology will become a crucial support. Backend services in technical network systems, such as those for video websites, image websites, and more portals, require significant computing and storage resources. With the rapid development and application of the internet industry, every item will likely have its own unique identifier, requiring transmission to backend systems for logical processing. Data of varying levels will be processed separately, requiring robust system support for all types of industry data, which can only be achieved through cloud computing. Alternatively, server 120 can also be implemented as a node in a blockchain system.

[0042] It should be noted that this application can display a prompt interface, pop-up window or output voice prompt information before collecting relevant user data (for example: first location information, field of view information, etc.) and during the process of collecting relevant user data. The prompt interface, pop-up window or voice prompt information is used to remind the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window. Otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of the relevant region.

[0043] In conjunction with the above introduction and implementation environment, FIG2 is a flowchart of an element display method provided in an embodiment of the present application. The method can be executed by a server or a terminal, or by both the server and the terminal. In the embodiment of the present application, the method is executed by the server as an example. As shown in FIG2, the method includes:

[0044] Step 201: Acquire first position information and field of view information of a controlling virtual character in a virtual scene.

[0045] Optionally, the above-mentioned virtual scene includes at least one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, a three-dimensional virtual scene, etc.; the virtual scene includes at least one of a virtual sky, a virtual land, a virtual ocean, etc., which is not limited in the embodiment of the present application.

[0046] The aforementioned master virtual character refers to a virtual object controlled by a designated account, and the virtual scene refers to the scene displayed when a designated application logged into the designated account is running on the terminal. The designated application may include any of first-person shooter games, third-person shooter games, multiplayer online tactical competitive games, and massively multiplayer online role-playing games, and the present embodiment is not limited thereto.

[0047] Illustratively, a target game is installed and running on a first terminal, and a first account is logged into the target game. Specifically, a controlling virtual character controlled by the first account and other display elements are displayed in a virtual game scene provided by the target game. In this embodiment of the present application, the server needs to assign importance ratings to various elements in the virtual game scene corresponding to the first account. The server may first obtain first position information and field of view information of the controlling virtual character controlled by the first account.

[0048] Optionally, the first position information includes the current coordinate position of the master virtual character in the virtual scene. Schematically, the virtual scene corresponds to a world coordinate system, and the coordinates of the master virtual character in the world coordinate system are the first position information.

[0049] The field of view information is used to indicate the field of view of the virtual scene from the perspective of the controlling virtual character. The perspective of the controlling virtual character can be a first-person perspective or a third-person perspective, which is not limited in this embodiment of the application. For example, the field of view corresponding to the first virtual character controlled by the first account can be represented by the range of the virtual scene displayed on the terminal screen corresponding to the first account, that is, the window range through which the player observes the virtual scene.

[0050] Step 202: Acquire second position information of a virtual element in the virtual scene.

[0051] Optionally, the virtual element refers to other display elements in the virtual scene except the master virtual character, wherein the virtual element includes at least one of the following elements:

[0052] 1. Character-related virtual elements.

[0053] Optionally, the character-type virtual elements include virtual monsters, non-player characters (NPCs), and virtual objects controlled by other accounts except the main virtual character.

[0054] 2. Scene-related virtual elements.

[0055] Schematically, scene-type virtual elements refer to environmental elements that constitute a virtual scene, including natural landscape elements, building elements, etc.

[0056] 3. Props-type virtual elements.

[0057] Indicatively, prop-type virtual elements include virtual vehicles, virtual attack props, virtual defense props, virtual gems, virtual gold coins, etc.

[0058] It should be noted that the above examples of virtual elements are merely illustrative, and the embodiments of the present application do not limit the element types of virtual elements.

[0059] Optionally, the second position information includes the current coordinate position of the virtual element in the virtual scene. Schematically, the coordinates of the virtual element in the world coordinate system are the second position information.

[0060] Step 203: Determine the scene distance between the first position information and the second position information in the virtual scene.

[0061] That is, the distance between the host virtual character and the virtual elements in the virtual scene is determined.

[0062] Schematically, the first coordinate of the main virtual character in the world coordinate system is obtained, and the second coordinate of the virtual element in the world coordinate system is obtained, and the coordinate distance between the first coordinate and the second coordinate is calculated. The coordinate distance is the distance between the main virtual character and the virtual element, that is, the scene distance.

[0063] Optionally, the number of the above-mentioned virtual elements can be one or more; if the number of virtual elements in the virtual scene is multiple, the server needs to obtain the second position information of each virtual element and calculate the scene distance between each second position information and the first position information in the virtual scene respectively.

[0064] Step 204 : Determine the importance level of the virtual element based on the scene distance and the field of view information.

[0065] The importance level is used to indicate the importance of the virtual elements in the virtual scene to the main virtual character.

[0066] The importance level of the above-mentioned virtual element is used to indicate the importance of the virtual element to the controlling virtual character in the current virtual scene. In the embodiment of the present application, the importance level of the virtual element is determined by the dual conditions of scene distance and field of view information.

[0067] Optionally, the higher the importance level of the virtual element, the more important the virtual element is to the controlling virtual character; or, the lower the importance level of the virtual element, the more important the virtual element is to the controlling virtual character.

[0068] Optionally, the importance is reflected in the following aspects:

[0069] 1. Related to the field of view of the controlling virtual object. For example, the closer the distance to the controlling virtual object is within the field of view of the controlling virtual object, the higher the importance, while the farther the distance is, the lower the importance.

[0070] 2. Related to the interaction process. For example, during the interaction of the master virtual object in the virtual scene, the entire interaction process lasts 10 minutes. Among them, the interaction process from the 3rd minute to the 8th minute is the most important, followed by the 1st minute to the 2nd minute, and the 9th minute to the 10th minute is the least important.

[0071] In some embodiments, the importance level of the virtual element is obtained by rating the virtual element based on the visual field using at least one of at least two rating methods.

[0072] Optionally, when the virtual element is within the field of view, the importance of the virtual element is rated in a first rating method based on the scene distance to determine the importance level of the virtual element; when the virtual element is outside the field of view, the importance of the virtual element is rated in a second rating method based on the scene distance to determine the importance level of the virtual element.

[0073] Among them, the distance intervals corresponding to the first rating method and the second rating method are determined based on the distance between the virtual element and the main virtual character, and the distance span corresponding to the distance interval of the importance level in the first rating method is greater than the distance span corresponding to the distance interval of the importance level in the second rating method.

[0074] Schematically, the importance levels corresponding to the first rating method are level 1, level 2, and level 3, and the corresponding distance intervals (the distance within the interval is the distance between the virtual element and the main virtual character) are (0, 20], (20, 40], and (40, 60]); the importance levels corresponding to the second rating method are level 1, level 2, and level 3, and the corresponding distance intervals are (0, 10], (10, 20], and (20, 30], respectively.

[0075] Optionally, the distance span corresponding to at least one importance level in the first rating method is greater than the distance span corresponding to at least one importance level in the second rating method.

[0076] In some embodiments, under the first rating method and the second rating method, the scene distance and the importance level of the virtual element indicated to the master virtual character are both negatively correlated, that is, the smaller the scene distance, the higher the importance of the virtual element to the master virtual character. In other words, whether in the field of view or out of the field of view, the closer the virtual element is to the master virtual character, the higher the importance level.

[0077] Optionally, when the higher the importance level of the virtual element is, the more important the virtual element is to the controlling virtual character, the importance level obtained by rating the virtual element in the first rating method is greater than the importance level obtained by rating the virtual element in the second rating method, that is, the higher the importance level of all virtual elements within the field of view to the controlling virtual character is, the greater the importance level of any virtual element outside the field of view to the controlling virtual character.

[0078] For illustration, please refer to Figure 3. Taking the example of a virtual element with a higher importance level, the virtual element has a higher importance to the controlling virtual character, Figure 3 shows a schematic diagram of importance level grading. As shown in Figure 3, circular area 301 is the virtual scene corresponding to controlling virtual character 302, sector area 303 is the area within the field of view corresponding to controlling virtual character 302, and sector area 304 is the area outside the field of view corresponding to controlling virtual character 302. The importance levels within sector area 303 are: area 3031 > area 3032 > area 3033 > area 3034; the importance levels within sector area 304 are: area 3041 > area 3042 > area 3043 > area 3044; and all importance levels in area 3034 are greater than any importance level in area 3041. That is, if virtual element A is within sector area 303 and virtual element B is within sector area 304, then the importance level of virtual element A is greater than the importance level of virtual element B.

[0079] Optionally, when the importance level of the virtual element is higher and the importance of the virtual element to the controlling virtual character is higher, under the same scene distance, the importance level obtained by rating the virtual element in the first rating method is greater than the importance level obtained by rating the virtual element in the second rating method.

[0080] Illustratively, if virtual element A is within the field of view and virtual element B is outside the field of view, and virtual element A and virtual element B are at the same distance from the controlling virtual character, then the importance level of virtual element A is greater than that of virtual element B.

[0081] In some embodiments, whether the field of view includes a virtual element may be determined by determining whether an element boundary corresponding to the virtual element intersects with the field of view. The method for determining the importance level of the virtual element based on the scene distance and field of view information further includes:

[0082] Based on the second position information, the element boundary corresponding to the virtual element is determined; when there is an intersection between the element boundary and the field of view, the importance of the virtual element is rated in a first rating method based on the scene distance to determine the importance level of the virtual element; when there is no intersection between the element boundary and the field of view, the importance of the virtual element is rated in a second rating method based on the scene distance to determine the importance level of the virtual element.

[0083] In some embodiments, for the controlling virtual character, virtual elements within their field of view may be obscured by other virtual elements. For example, when the controlling virtual character observes a virtual scene from a first-person perspective, a virtual prop is blocked by a virtual wall. This means that although the virtual prop is within the controlling virtual character's field of view, it cannot be observed by the controlling virtual character. Therefore, the virtual prop can be rated using the same rating method as virtual elements outside the field of view. If the virtual element is within the field of view and obscured, the virtual element is rated using a second rating method based on scene distance to determine its importance level.

[0084] Step 205 : determining display performance data of the virtual element based on the importance level of the virtual element, and performing display control on the virtual element based on the display performance data.

[0085] The display performance data corresponds to the presentation effect of the display elements in the virtual scene.

[0086] In principle, after obtaining the importance level of the virtual element, the server can synchronize the importance level to each system of the game. Each system contains multiple performance data, and these performance data contain some optimizable items (data that can be adjusted to improve the performance of the processor in the computer). These optimizable items are the display performance data that need to be determined; through the importance level, these display performance data are determined, thereby adjusting the presentation effect of the display element in the virtual scene displayed on the terminal screen.

[0087] Optionally, the display performance data includes at least one of the following categories:

[0088] 1. Display performance data includes element refresh rate.

[0089] The element refresh frequency is used to indicate the refresh frequency of the virtual elements when they are displayed in the virtual scene.

[0090] Optionally, the element refresh frequency of the virtual element is determined based on the importance level of the virtual element, and the importance level is positively correlated with the element refresh frequency.

[0091] Specifically, when the importance level of a virtual element is higher and the importance of the virtual element to the controlling virtual character is higher, there is a positive correlation between the importance level and the element refresh frequency.

[0092] Schematically, after obtaining the importance level of a virtual element, the server will configure an element refresh frequency for the virtual element based on the virtual element's importance level. The higher the virtual element's importance level, the higher the element refresh frequency configured by the server. When the virtual element refresh frequency is high, the virtual element is rendered on the terminal screen at shorter intervals, resulting in more coherent changes and a smoother display. When the virtual element refresh frequency is low, the virtual element is rendered on the terminal screen at longer intervals, resulting in less coherent changes and a less smooth display.

[0093] 2. Display performance data including element synchronization rate.

[0094] Optionally, the virtual element is implemented as at least two sub-elements of the same type, and the element synchronization rate is used to indicate the number of sub-elements of the at least two sub-elements of the same type that are synchronously displayed in the virtual scene.

[0095] Optionally, based on the importance level of the virtual element, the element synchronization rate corresponding to at least two sub-elements of the same type is determined, and the importance level is positively correlated with the element synchronization rate.

[0096] Specifically, when the importance level of the virtual element is higher and the importance of the virtual element to the controlling virtual character is higher, the importance level is positively correlated with the element synchronization rate.

[0097] Schematically, after obtaining the importance level of a virtual element, the server will configure an element synchronization rate for the virtual element based on the importance level of the virtual element. The higher the importance level of the virtual element, the higher the element synchronization rate configured by the server. If a virtual element is implemented as n (n is a positive integer greater than 1) sub-elements of the same type, then when the element synchronization rate of the virtual element is high, the synchronization rate of the n sub-elements of the same type is high. For example, if 10 identical monsters appear close to the main virtual character, and the monsters need to wave, a picture of the 10 monsters waving synchronously can be displayed. When the element synchronization rate of the virtual element is low, the synchronization rate of the n sub-elements of the same type is low. For example, if 10 identical monsters appear far from the main virtual character, and the monsters need to wave, a picture of only 4 monsters waving synchronously can be displayed.

[0098] 3. Display performance data including collision detection frequency.

[0099] The collision detection frequency is used to indicate the frequency of performing collision detection on virtual elements in the virtual scene.

[0100] Optionally, the collision detection frequency of the virtual element is determined based on the importance level of the virtual element, and the importance level is positively correlated with the collision detection frequency.

[0101] Specifically, when the importance level of the virtual element is higher and the importance of the virtual element to the controlling virtual character is higher, the importance level is positively correlated with the collision detection frequency.

[0102] Schematically, after obtaining the importance level of a virtual element, the server will configure a collision detection frequency for the virtual element based on the virtual element's importance level. The higher the importance level of the virtual element, the higher the collision detection frequency configured by the server. A higher collision detection frequency for a virtual element indicates a higher degree of physical realism, such as a lower probability of a character walking through a wall or leaving the ground. A lower collision detection frequency indicates a lower degree of physical realism, such as a higher probability of a character walking through a wall or leaving the ground.

[0103] It should be noted that the above examples of display performance data are only for illustrative purposes, and the embodiments of the present application do not limit the types and data of display performance data.

[0104] In summary, the element display method provided in the embodiment of the present application determines the scene distance between the first position information of the master virtual character and the second position information of the virtual element in the virtual scene, as well as the field of view information corresponding to the master virtual character, to determine the importance level of the virtual element, thereby determining the display performance data of the virtual element, and performing display control on the virtual element based on the display performance data. On the one hand, the virtual elements in the virtual scene are displayed differently according to the importance level, and the computing resources of the computer are reasonably allocated. While ensuring the normal display of the virtual scene, the performance of the processor in the computer is optimized; on the other hand, the importance level is determined by the dual conditions of position and field of view, which improves the granularity of the importance condition, making the final display performance data more accurate and improving the optimization rate of the computer's display performance.

[0105] The method provided in the embodiment of the present application considers the dual conditions of distance and field of view when rating the importance of virtual elements, adopts different rating methods for the situations where the virtual elements are within the field of view and outside the field of view, differentiates the rating levels of elements within the field of view and elements outside the field of view, increases the rationality and granularity of the importance levels of the elements obtained by rating, and adopts multiple rating methods to evaluate the importance of virtual elements, which can improve the accuracy of the importance levels of virtual elements.

[0106] The method provided in the embodiment of the present application adopts the same importance rating method for virtual elements blocked within the field of view as for virtual elements outside the field of view, thereby more finely determining the rating method for virtual elements, further improving the rationality of the importance level of the elements obtained by rating, and evaluating the importance of virtual elements blocked within the field of view according to the second rating method, which is also more in line with the actual situation of the location of the virtual element.

[0107] The method provided in the embodiment of the present application, after determining the importance level corresponding to the virtual element, will adjust at least one of the element refresh frequency, element synchronization rate, etc. of the virtual element according to the importance level corresponding to the element type, so as to maximize the utilization of the hardware performance presentation effect; optionally, in the game, the player can refer to the element level determined by the importance system and selectively increase or decrease the element presentation effect, thereby affecting the device performance corresponding to the game and increasing the player's ability to regulate the device performance.

[0108] In some optional embodiments, different types of virtual elements correspond to different rating rules. Optionally, FIG4 is a flowchart of an element display method provided in an embodiment of the present application. The method can be executed by a server or a terminal, or by both the server and the terminal. In the embodiment of the present application, the method is described by taking the server as an example. As shown in FIG4, the method includes:

[0109] Step 401: Acquire first position information and field of view information of a controlling virtual character in a virtual scene.

[0110] Optionally, the first position information includes the current coordinate position of the master virtual character in the virtual scene. Schematically, the virtual scene corresponds to a world coordinate system, and the coordinates of the master virtual character in the world coordinate system are the first position information.

[0111] The field of view information is used to indicate the field of view of the virtual scene from the perspective of the controlling virtual character. The perspective of the controlling virtual character can be a first-person perspective or a third-person perspective, which is not limited in this embodiment of the application. For example, the field of view corresponding to the first virtual character controlled by the first account can be represented by the range of the virtual scene displayed on the terminal screen corresponding to the first account, that is, the window range through which the player observes the virtual scene.

[0112] Step 402: Obtain a first element type corresponding to a virtual element in a virtual scene.

[0113] Optionally, the virtual element refers to other display elements in the virtual scene except the master virtual character, wherein the virtual element includes at least one of the following elements:

[0114] 1. Character-based virtual elements, including virtual monsters, non-player characters (NPCs), and virtual objects controlled by accounts other than the main virtual character.

[0115] 2. Scene-type virtual elements. Scene-type virtual elements refer to the environmental elements that constitute the virtual scene, including natural landscape elements, building elements, etc.

[0116] 3. Prop-type virtual elements include virtual vehicles, virtual attack props, virtual defense props, virtual gems, virtual gold coins, etc.

[0117] It should be noted that the above examples of virtual elements are merely illustrative, and the embodiments of the present application do not limit the element types of virtual elements.

[0118] Illustratively, different virtual elements have different element types. For example, if the virtual element is an NPC, the first element type is an NPC type; if the virtual element is a virtual car, the first element type is a vehicle type.

[0119] Step 403 : When the first element type is within the specified type range, obtain second position information of the virtual element in the virtual scene.

[0120] The specified type range includes element types that require importance rating.

[0121] Alternatively, when the first element type is outside a specified type range, second position information of the virtual element in the virtual scene is obtained, wherein the specified type range includes element types that do not require importance rating.

[0122] Illustratively, when the first element type corresponding to the virtual element does not exist in the target type range, it means that the virtual element needs to be rated in importance, and the virtual element can be added to the rating element list. When all virtual elements in the virtual scene have been screened by element type, the server can rate the virtual elements included in the rating element list at this time, that is, start to obtain the second position information of the virtual elements included in the rating element list.

[0123] Optionally, the second position information includes the current coordinate position of the virtual element in the virtual scene. Schematically, the coordinates of the virtual element in the world coordinate system are the second position information.

[0124] Optionally, when the first element type corresponding to the virtual element exists in the element type list, it indicates that the virtual element does not need to be rated for importance, and thus the second position information of the virtual element does not need to be obtained.

[0125] Step 404: Determine the scene distance between the first position information and the second position information in the virtual scene.

[0126] Schematically, the first coordinate of the main virtual character in the world coordinate system is obtained, and the second coordinate of the virtual element in the world coordinate system is obtained, and the coordinate distance between the first coordinate and the second coordinate is calculated. The coordinate distance is the distance between the main virtual character and the virtual element, that is, the scene distance.

[0127] Step 405 : Determine the importance level of the virtual element based on the scene distance, the field of view information, and the target rating rule corresponding to the virtual element.

[0128] The target rating rule corresponding to the virtual element is a rule determined according to the first element type corresponding to the virtual element.

[0129] It should be noted that the rating rules and rating methods are different. The rating rules are rules determined based on the attributes of the virtual elements themselves (element type), while the rating method of virtual elements is determined based on the position and field of view relationship between the virtual elements and the controlling virtual character.

[0130] For all virtual elements, one of at least two rating methods is followed; and on this basis, different types of virtual elements have different rating rules. Optionally, the method for determining the importance level of the virtual element includes at least one of the following methods:

[0131] Method 1: Based on the first element type, determine the initial importance level corresponding to the virtual element; based on the scene distance and field of view information, adjust the initial importance level to determine the importance level of the virtual element.

[0132] Optionally, when the virtual element is within the field of view, a first importance level of the virtual element is determined based on the scene distance in a first rating manner; and the initial importance level is adjusted based on the first importance level to determine the importance level of the virtual element.

[0133] Optionally, when the virtual element is out of the field of view, a second importance level of the virtual element is determined based on the scene distance in a second rating manner; and the initial importance level is adjusted based on the second importance level to determine the importance level of the virtual element.

[0134] Schematically, different types of virtual elements have different initial importance levels. For example, the initial importance level of virtual element 1 (character-type virtual element) is level 2 (assuming level 10 is the highest level), and the initial importance level of virtual element 2 (scene-type virtual element) is level 1. Assume that the highest importance level is level 10 and the lowest is level 1.

[0135] When the virtual elements are within the field of view, the first rating method is adopted to divide the importance levels into four levels according to the distance between the virtual elements and the controlling virtual character: level 5 (distance interval 1), level 6 (distance interval 2), level 7 (distance interval 3), and level 8 (distance interval 4), among which the distance value within distance interval 1 > the distance value within distance interval 2 > the distance value within distance interval 3 > the distance value within distance interval 4. Assuming that the distances between virtual elements 1 and 2 and the controlling virtual character are both within distance interval 1, the first importance levels corresponding to virtual elements 1 and 2 are both level 5; then, the final importance level of virtual element 1 is level 7, and the importance level of virtual element 2 is level 6.

[0136] When the virtual element is out of the field of view, the second rating method is adopted, and the importance level is divided into four levels according to the distance between the virtual element and the main controlling virtual character: Level 1 (distance interval 5), Level 2 (distance interval 6), Level 3 (distance interval 7), and Level 4 (distance interval 8), among which the distance value within distance interval 5 > the distance value within distance interval 6 > the distance value within distance interval 7 > the distance value within distance interval 8. Assuming that the distance between virtual element 1 and the main controlling virtual character is in distance interval 7, the second importance level corresponding to virtual element 1 is level 3. Assuming that the distance between virtual element 2 and the main controlling virtual character is in distance interval 8, the second importance level corresponding to virtual element 2 is level 4. Therefore, the final importance level of virtual element 1 is level 5, and the importance level of virtual element 2 is level 5.

[0137] Method 2: Based on the first element type, determine the importance adjustment weight corresponding to the virtual element; based on the scene distance and field of view information, determine the importance level of the virtual element according to the importance adjustment weight.

[0138] Optionally, when the virtual element is within the field of view, the first importance level of the virtual element is determined based on the scene distance in a first rating manner; the first importance level is weighted according to the importance adjustment weight, and the weighted first importance level is determined as the importance level of the virtual element.

[0139] Optionally, when the virtual element is outside the field of view, the second importance level of the virtual element is determined based on the scene distance in a second rating method; the second importance level is weighted according to the importance adjustment weight, and the weighted second importance level is determined as the importance level of the virtual element.

[0140] Among them, the method for determining the first importance level can refer to the method for determining the first importance level in the above method 1, and the method for determining the second importance level can refer to the method for determining the second importance level in the above method 1, which will not be repeated here.

[0141] Optionally, different types of virtual elements have corresponding importance adjustment weights that are different, and the importance adjustment weight of character-type virtual elements is greater than the importance adjustment weight of scene-type virtual elements.

[0142] Method 3: Based on the first element type, determine the importance level comparison table corresponding to the virtual element; based on the scene distance and field of view information, determine the importance level corresponding to the virtual element from the importance level comparison table.

[0143] Different types of virtual elements correspond to different importance level comparison tables. For a virtual element of a specified type, the importance level comparison table is a table determined based on the virtual element of that type.

[0144] Schematically, the importance level comparison table can be shown in Table 1 below:

[0145] Table 1

[0146] It should be noted that the above distances in the importance level comparison table are merely illustrative and are not limited in this embodiment of the present application.

[0147] Step 406 : Determine display performance data of the virtual element based on the importance level of the virtual element, and perform display control on the virtual element based on the display performance data.

[0148] The display performance data corresponds to the presentation effect of the display elements in the virtual scene.

[0149] In principle, after obtaining the importance level of the virtual element, the server can synchronize the importance level to each system of the game. Each system contains multiple performance data, and these performance data contain some optimizable items (data that can be adjusted to improve the performance of the processor in the computer). These optimizable items are the display performance data that need to be determined; through the importance level, these display performance data are determined, thereby adjusting the presentation effect of the display element in the virtual scene displayed on the terminal screen.

[0150] In summary, the element display method provided in the embodiment of the present application determines the scene distance between the first position information of the master virtual character and the second position information of the virtual element in the virtual scene, as well as the field of view information corresponding to the master virtual character, to determine the importance level of the virtual element, thereby determining the display performance data of the virtual element, and performing display control on the virtual element based on the display performance data. On the one hand, the virtual elements in the virtual scene are displayed differently according to the importance level, and the computing resources of the computer are reasonably allocated. While ensuring the normal display of the virtual scene, the performance of the processor in the computer is optimized; on the other hand, the importance level is determined by the dual conditions of position and field of view, which improves the granularity of the importance condition, making the final display performance data more accurate and improving the optimization rate of the computer's display performance.

[0151] The method provided in the embodiment of the present application screens virtual elements based on their element types, thereby determining the virtual elements that need to be rated for importance, reducing the virtual elements involved in the importance rating, thereby reducing the amount of data processed by the computer, and the initial screening of virtual elements based on element types can improve the accuracy of subsequent virtual element importance levels.

[0152] The method provided in the embodiment of the present application assigns different initial importance levels to virtual elements based on their element types, thereby enabling level adjustments based on different initial importance levels to improve the accuracy of importance rating.

[0153] In some optional embodiments, before rating the importance of a virtual element, it is necessary to determine whether the virtual element meets the rating conditions. FIG5 is a flowchart of an element display method provided in an embodiment of the present application. The method can be executed by a server or a terminal, or by both the server and the terminal. In the embodiment of the present application, the method is described as being executed by a server. As shown in FIG5, the method includes:

[0154] Step 501: Acquire first position information and field of view information of a controlling virtual character in a virtual scene.

[0155] Optionally, the first position information includes the current coordinate position of the master virtual character in the virtual scene. Schematically, the virtual scene corresponds to a world coordinate system, and the coordinates of the master virtual character in the world coordinate system are the first position information.

[0156] The field of view information is used to indicate the field of view of the virtual scene from the perspective of the controlling virtual character. The perspective of the controlling virtual character can be a first-person perspective or a third-person perspective, which is not limited in this embodiment of the application. For example, the field of view corresponding to the first virtual character controlled by the first account can be represented by the range of the virtual scene displayed on the terminal screen corresponding to the first account, that is, the window range through which the player observes the virtual scene.

[0157] Step 502: Obtain a first element type corresponding to a virtual element in a virtual scene.

[0158] Optionally, the virtual element refers to other display elements in the virtual scene except the master virtual character, wherein the virtual element includes at least one of the following elements:

[0159] 1. Character-based virtual elements, including virtual monsters, non-player characters (NPCs), and virtual objects controlled by accounts other than the main virtual character.

[0160] 2. Scene-type virtual elements. Scene-type virtual elements refer to the environmental elements that constitute the virtual scene, including natural landscape elements, building elements, etc.

[0161] 3. Prop-type virtual elements include virtual vehicles, virtual attack props, virtual defense props, virtual gems, virtual gold coins, etc.

[0162] It should be noted that the above examples of virtual elements are merely illustrative, and the embodiments of the present application do not limit the element types of virtual elements.

[0163] Illustratively, different virtual elements have different element types. For example, if the virtual element is an NPC, the first element type is an NPC type; if the virtual element is a virtual car, the first element type is a vehicle type.

[0164] Step 503: When the first element type is within the specified type range, the most recent importance rating moment of the virtual element is obtained.

[0165] The specified type range includes element types that require importance rating.

[0166] Illustratively, when the first element type is within the specified type range, it indicates that the virtual element needs to be rated for importance. At this time, the most recent importance rating moment of the virtual element is obtained, that is, the moment when the importance level was last determined.

[0167] Step 504: Obtain the importance rating time interval corresponding to the virtual element.

[0168] Schematically, each virtual element corresponds to an importance rating time interval, and the importance rating time interval is used to indicate the frequency of the importance rating of the virtual element.

[0169] In some embodiments, each virtual element has the same importance rating time interval, that is, the rating frequencies of all virtual elements in the virtual scene that need to be rated for importance are the same.

[0170] Alternatively, in some embodiments, the importance rating time interval corresponding to the virtual element is determined according to the first element type corresponding to the virtual element.

[0171] Optionally, when the virtual element belongs to a character-type virtual element, the importance rating time interval corresponding to the virtual element is determined to be a first time interval; when the virtual element belongs to a scene-type virtual element, the importance rating time interval corresponding to the virtual element is determined to be a second time interval.

[0172] The first time interval is smaller than the second time interval.

[0173] That is to say, the rating frequency of character-related virtual elements is higher, while the rating frequency of scene-related virtual elements is lower.

[0174] Step 505 : In response to the time interval between the most recent importance rating moment of the virtual element and the current moment being greater than the importance rating time interval, obtaining second position information of the virtual element in the virtual scene.

[0175] Schematically, the time interval between the most recent importance rating moment of the virtual element and the current moment is calculated, assuming it is 0.2 seconds. If it is less than the importance rating time interval of 0.8 seconds, then no importance rating is required at the current moment, that is, there is no need to obtain the second position information of the virtual element in the virtual scene.

[0176] Assuming it is 1 second, which is greater than the importance rating time interval of 0.8 seconds, importance rating needs to be performed at the current moment, that is, the second position information of the virtual element in the virtual scene is obtained.

[0177] Step 506: Determine the scene distance between the first position information and the second position information in the virtual scene.

[0178] Schematically, the first coordinate of the main virtual character in the world coordinate system is obtained, and the second coordinate of the virtual element in the world coordinate system is obtained, and the coordinate distance between the first coordinate and the second coordinate is calculated. The coordinate distance is the distance between the main virtual character and the virtual element, that is, the scene distance.

[0179] Step 507: Determine the importance level of the virtual element based on the scene distance and the field of view information.

[0180] The importance level of the virtual element is the importance of the virtual element to the controlling virtual character in the current virtual scene. In the embodiment of the present application, the importance level of the virtual element is determined by the dual conditions of scene distance and field of view information.

[0181] Step 508 : determining display performance data of the virtual element based on the importance level of the virtual element, and performing display control on the virtual element based on the display performance data.

[0182] The display performance data corresponds to the presentation effect of the display elements in the virtual scene.

[0183] In principle, after obtaining the importance level of the virtual element, the server can synchronize the importance level to each system of the game. Each system contains multiple performance data, and these performance data contain some optimizable items (data that can be adjusted to improve the performance of the processor in the computer). These optimizable items are the display performance data that need to be determined; through the importance level, these display performance data are determined, thereby adjusting the presentation effect of the display element in the virtual scene displayed on the terminal screen.

[0184] In some embodiments, if the virtual element is not within the field of view of the controlling virtual character at the first moment, the importance level of the virtual element is determined as the target importance level according to the second rating method; when the virtual element appears within the field of view of the controlling virtual character at the second moment (the interval between the second moment and the first moment is shorter, and the second moment is chronologically later than the first moment), if the second moment does not reach the importance rating moment of the virtual element, then the system still determines the display performance data of the virtual element according to the target importance level determined previously.

[0185] In summary, the element display method provided in the embodiment of the present application determines the scene distance between the first position information of the master virtual character and the second position information of the virtual element in the virtual scene, as well as the field of view information corresponding to the master virtual character, to determine the importance level of the virtual element, thereby determining the display performance data of the virtual element, and performing display control on the virtual element based on the display performance data. On the one hand, the virtual elements in the virtual scene are displayed differently according to the importance level, and the computing resources of the computer are reasonably allocated. While ensuring the normal display of the virtual scene, the performance of the processor in the computer is optimized; on the other hand, the importance level is determined by the dual conditions of position and field of view, which improves the granularity of the importance condition, making the final display performance data more accurate and improving the optimization rate of the computer's display performance.

[0186] In this embodiment, the importance rating time intervals corresponding to different virtual elements are determined according to different types of virtual elements, so that the importance rating time intervals of each virtual element can meet the rating requirements, avoid unnecessary rating processes, and save computer data overhead.

[0187] The method provided in the embodiment of the present application has different importance rating frequencies for different types of virtual elements. Optionally, character-type virtual elements with higher importance have a higher rating frequency, while character-type virtual elements with lower importance have a lower rating frequency. This rationally allocates the computer's data processing resources and improves the computer's data processing efficiency during the importance rating process.

[0188] Schematically, the registration flow chart of importance rating provided by this application is described below. As shown in FIG6 , the flow chart includes the following steps:

[0189] S601: Start.

[0190] Optionally, taking the Unreal Engine as an example for implementation of the development platform of the designated application, when the player logs in to the first account corresponding to the master virtual character in the designated application in the terminal, the master virtual character enters the virtual scene and triggers the importance rating event of all virtual elements in the virtual scene except the master virtual character. From the perspective of the program, this triggers the importance system registration event of the object corresponding to the virtual element.

[0191] S602: The object is registered into the importance system.

[0192] Illustratively, for a specified virtual element, when the importance system in the server receives a registration event of an object corresponding to the specified virtual element, it will accept the object and determine whether the specified virtual element meets the importance rating condition.

[0193] S603: Determine whether the object implements the importance system interface.

[0194] Schematically, first, the importance system will determine whether the object corresponding to the specified virtual element implements the importance system interface, for example: checking whether the object implements the importance interface INGRCSignificanceInterface function, that is, checking whether the object corresponding to the specified virtual element declares the method INGRCSignificanceInterface().

[0195] S604: If the object does not implement the importance system interface, end.

[0196] Illustratively, if the object corresponding to the designated virtual element does not implement the importance interface INGRCSignificanceInterface function, it is determined that the designated virtual element does not meet the importance rating condition, and the importance rating event of the designated virtual element is terminated.

[0197] S605: If the object implements the importance system interface, determine whether the object is a type in the importance ignore list.

[0198] Indicatively, if the object corresponding to the specified virtual element implements the importance system interface, continue to determine whether the type corresponding to the specified virtual element is a type in the importance ignore list, for example: determine whether the type corresponding to the object (obtained through the GetClass() system interface) is included in the IgnoreList (importance ignore list) of SignificanceSetting.

[0199] The element types included in the importance ignore list are element types that are ignored when performing importance rating, that is, element types that do not need to be rated for importance.

[0200] S604: If the object is a type in the importance ignore list, end.

[0201] Illustratively, if the type corresponding to the designated virtual element is a type in the importance-ignored list, it means that the designated virtual element is an element that does not require importance rating, and the importance rating of the designated virtual element is terminated.

[0202] S606: If the object is not of a type in the importance-ignored list, create a group based on the object type.

[0203] Indicatively, if the type corresponding to the specified virtual element is not a type in the importance ignore list, it means that the specified virtual element is an element that needs to be rated for importance, that is, the object corresponding to the specified virtual element is successfully registered in the importance system.

[0204] Objects that have successfully registered into the importance system will be created in groups. Objects in different groups have different importance rating frequencies. For example, objects corresponding to character-type virtual elements have high-frequency importance rating frequencies, while objects corresponding to scene-type virtual elements have low-frequency importance rating frequencies. After grouping is completed, multi-threaded importance rating calculations are enabled according to different categories.

[0205] For example: determine whether the object category is Character or SceneItem type, create different calculation group tags according to different types, and the group tag is equal to ENGRCSignificanceType_Character (group tag of character class virtual element) or ENGRCSignificanceType_Item (group tag of scene class virtual element).

[0206] S607: Create an importance proxy object, bind a rating callback function, and bind a function update callback function.

[0207] Indicatively, after the group is created, a proxy object of the real object is created, and the proxy object Tag is set, where the proxy object Tag is the object type (Character or SceneItem); and the proxy object importance rating function OnSignificanceFunction() is bound to the proxy object, and the proxy object function update function OnPostSignificanceFunction() is bound to the proxy object.

[0208] S608: The importance proxy object is created and waits for importance rating calculation.

[0209] Indicatively, after completing the creation and initialization of the proxy object, you can wait for the importance rating calculation to complete the object registration.

[0210] S604: End.

[0211] Indicatively, after completing the object registration step, the process ends.

[0212] Schematically, please refer to FIG7 , which shows a schematic diagram of a rating process for importance rating provided in an embodiment of the present application. As shown in FIG7 , the process includes the following steps:

[0213] S701: Start.

[0214] This is when the importance rating process begins.

[0215] S702: Obtain the position of the virtual character.

[0216] Indicatively, the Transform information corresponding to the virtual character, including position, rotation, and scale, is obtained through the system interface provided in the virtual engine.

[0217] S703: Obtaining the virtual character's field of view information.

[0218] Indicatively, the field of view information corresponding to the ViewPort (i.e. the display area of ​​the terminal screen, i.e. the visual window of the virtual character) in the protagonist Controller (i.e. the control module corresponding to the virtual character) is obtained through the system interface provided in the virtual engine.

[0219] S704: Acquire all objects that need to be rated.

[0220] Illustratively, all ManagedObjects (agent object data set) that need to be rated are obtained, that is, the set of proxy objects determined according to the above S601 - S608 .

[0221] S705: Grouping proxy objects of different categories to obtain corresponding calculation frequencies.

[0222] Illustratively, after S607, each proxy object in ManagedObjects (proxy object data set) has its corresponding proxy object Tag. The object type corresponding to the proxy object Tag is the grouping of the proxy object. The importance calculation frequency of the proxy object is determined according to different groups.

[0223] For example: traverse all proxy objects ManagedObjects, obtain the last calculation time LastUpdateTime of a single object, and obtain the calculation time interval TagCheckTime corresponding to a single proxy object Tag through the proxy object Tag attribute and the TagCheckTimeMap in the global configuration SignificanceSetting (used to store the importance calculation frequency of proxy objects in different groups, different proxy object tags are different groups). Optionally, the optimal TagCheckTime corresponding to the Character type object is equal to 0.1s, and the optimal TagCheckTime corresponding to the SceneItem type object is equal to 0.8s. Calculate whether the current time CurrentTimeSeconds minus LastUpdateTime (the last importance calculation time of the proxy object) is greater than TagCheckTime. If it is greater, add it to the calculation data set ObjArray (that is, the proxy object data set that meets the importance level calculation conditions). Otherwise, skip the proxy object.

[0224] S706: Enable multi-threaded distance and field of view calculation.

[0225] Indicatively, multi-threaded computing is enabled to calculate the distance between all objects in ObjArray and the virtual character. IntersectBox intersection calculation is performed between the player's field of view and the object's Bound to determine whether the object is within the player's field of view. Then, through the object's WasRecentlyRendered(), the obscured objects in the field of view are excluded to complete the field of view status calculation and update.

[0226] S707: Classify the objects based on the distance and whether they are within the field of view.

[0227] Objects that are obscured within the field of view are considered out-of-field objects. The calculated distance value and field of view status are used to retrieve the importance level from the SignificanceCharacterConfig (character importance level configuration) and SignificanceItemConfig (scene importance level configuration) in SignificanceSetting. The importance rating binding function OnSignificanceFunction() is called to bind the importance level to the proxy object.

[0228] S708: Calling rating completion notification.

[0229] In an illustrative example, a rating completion notification is called to send an importance rating completion notification to multiple functional systems, wherein each functional system includes an optimizable system parameter that can be adjusted according to the importance level.

[0230] S709: Call the function update function. Different functions can be added or reduced through the returned level in the update function.

[0231] Indicatively, after receiving the rating completion notification, multiple functional systems call the function update binding function OnPostSignificanceFunction() to update the latest importance level to each functional system. Different functional systems can increase or decrease functions according to the returned importance level within the update function. For example, the display refresh rate system increases or decreases the display refresh rate of the corresponding virtual elements according to the importance level.

[0232] S710: End.

[0233] Indicatively, the importance rating ends.

[0234] Optionally, after the importance rating is performed, the importance level of each virtual element in the virtual scene can be sent to the refresh rate configuration system. For example, please refer to FIG8 , which shows a schematic diagram of the performance of virtual elements after the importance system is graded, as shown in FIG8 :

[0235] It is determined that the importance level of the virtual element 801 is greater than the importance level of the virtual element 802 , and their refresh frequencies are set based on their respective corresponding importance levels.

[0236] In scene 800 , virtual element 801 and virtual element 802 disappear simultaneously. After a time period of T, virtual element 801 is displayed in scene 810 . After a time period of T+1, virtual element 802 is displayed in scene 820 .

[0237] Please refer to FIG9 , which shows a structural block diagram of an element display device provided by an exemplary embodiment of the present application. The device includes the following modules:

[0238] An acquisition module 900 is configured to acquire first position information and field of view information of a controlling virtual character in a virtual scene, wherein the field of view information indicates a field of view of the controlling virtual character observing the virtual scene from a perspective of the controlling virtual character;

[0239] The acquisition module 900 is further configured to acquire second position information of the virtual element in the virtual scene;

[0240] A determination module 910 is configured to determine a scene distance between the first position information and the second position information in the virtual scene;

[0241] The determining module 910 is configured to determine an importance level of the virtual element based on the scene distance and the field of view information, wherein the importance level of the virtual element is obtained by rating the inclusion of the virtual element in the field of view using at least one of at least two rating methods;

[0242] The determination module 910 is also used to determine the display performance data of the virtual element based on the importance level of the virtual element, and to control the display of the virtual element based on the display performance data, wherein the display performance data corresponds to the presentation effect of the display element in the virtual scene.

[0243] In some embodiments, the determination module 910 is further used to rate the importance of the virtual element in a first rating method based on the scene distance when the virtual element is within the field of view, and determine the importance level of the virtual element; the determination module 910 is further used to rate the importance of the virtual element in a second rating method based on the scene distance when the virtual element is outside the field of view, and determine the importance level of the virtual element; the distance intervals corresponding to the first rating method and the second rating method are respectively determined based on the distance between the virtual element and the main virtual character, and the distance span corresponding to the distance interval of the importance level in the first rating method is greater than the distance span corresponding to the distance interval of the importance level in the second rating method.

[0244] In some embodiments, the determination module 910 is further used to rate the importance of the virtual element in the second rating method based on the scene distance to determine the importance level of the virtual element when the virtual element is within the field of view and is blocked.

[0245] In some embodiments, the display performance data includes an element refresh frequency, which is used to indicate the refresh frequency of the virtual element when it is displayed in the virtual scene; the determination module 910 is also used to determine the element refresh frequency of the virtual element based on the importance level of the virtual element, and the importance level is positively correlated with the element refresh frequency.

[0246] In some embodiments, the virtual element is implemented as at least two sub-elements of the same type, and the element synchronization rate is used to indicate the number of sub-elements corresponding to at least two sub-elements of the same type that are synchronously displayed in the virtual scene; the determination module 910 is also used to determine the element synchronization rate corresponding to the at least two sub-elements of the same type based on the importance level of the virtual element, and the importance level is positively correlated with the element synchronization rate.

[0247] In some embodiments, the acquisition module 900 is also used to obtain a first element type corresponding to the virtual element in the virtual scene; the acquisition module 900 is also used to obtain second position information of the virtual element in the virtual scene when the first element type is within a specified type range, and the specified type range includes element types that need to be rated in importance.

[0248] In some embodiments, the acquisition module 900 is further used to obtain the most recent importance rating moment of the virtual element when the first element type is within the specified type range; the acquisition module 900 is further used to obtain the importance rating time interval corresponding to the virtual element; the acquisition module 900 is further used to obtain the second position information of the virtual element in the virtual scene in response to the time interval between the most recent importance rating moment of the virtual element and the current moment being greater than the importance rating time interval.

[0249] In some embodiments, the acquisition module 900 is further used to determine that the importance rating time interval corresponding to the virtual element is a first time interval when the virtual element belongs to a character-type virtual element; the acquisition module 900 is further used to determine that the importance rating time interval corresponding to the virtual element is a second time interval when the virtual element belongs to a scene-type virtual element; wherein the first time interval is smaller than the second time interval.

[0250] In some embodiments, the determination module 910 is further used to determine the initial importance level corresponding to the virtual element based on the first element type; the determination module 910 is further used to adjust the initial importance level based on the scene distance and the field of view information to determine the importance level of the virtual element.

[0251] In summary, the element display device provided in the embodiment of the present application determines the importance level of the virtual element by determining the scene distance between the first position information of the master virtual character and the second position information of the virtual element in the virtual scene, as well as the field of view information corresponding to the master virtual character, thereby determining the display performance data of the virtual element, and performing display control on the virtual element based on the display performance data. On the one hand, the virtual elements in the virtual scene are displayed differently according to the importance level, and the computing resources of the computer are reasonably allocated. While ensuring the normal display of the virtual scene, the performance of the processor in the computer is optimized; on the other hand, the importance level is determined by the dual conditions of position and field of view, which improves the granularity of the importance condition, making the final display performance data more accurate and improving the optimization rate of the computer's display performance.

[0252] It should be noted that the element display device provided in the above embodiment is merely an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the element display device and element display method embodiments provided in the above embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0253] FIG10 shows a block diagram of a computer device 1000 according to an exemplary embodiment of the present application. Computer device 1000 may be a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, or a desktop computer. Computer device 1000 may also be referred to as a user device, a portable computer device, a laptop computer device, a desktop computer device, or other similar names.

[0254] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .

[0255] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0256] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the element display method provided in the method embodiment of the present application.

[0257] Schematically, the computer device 1000 also includes other components. Those skilled in the art will understand that the structure shown in Figure 10 does not constitute a limitation on the computer device 1000, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0258] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium, which can be the computer-readable storage medium contained in the memory in the above embodiments; or it can be a separate computer-readable storage medium that is not assembled into the computer device. The computer-readable storage medium stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the element display method described in any of the above embodiments.

[0259] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

Claims

1. A method for displaying an element, the method being executed by a computer device, the method comprising: Acquire first position information and field of view information of a master virtual character in a virtual scene, wherein the field of view information is used to indicate a field of view range of observing the virtual scene from the perspective of the master virtual character; Acquire second position information of the virtual element in the virtual scene; Determining a scene distance between the first position information and the second position information in the virtual scene; Determining the importance level of the virtual element based on the scene distance and the field of view information, wherein the importance level of the virtual element is obtained by rating the virtual element in at least one of at least two rating methods based on the inclusion of the virtual element in the field of view; Based on the importance level of the virtual element, display performance data of the virtual element is determined, and display control of the virtual element is performed based on the display performance data, wherein the display performance data corresponds to a presentation effect of the display element in the virtual scene.

2. The method according to claim 1, wherein: The determining the importance level of the virtual element based on the scene distance and the field of view information includes: When the virtual element is within the field of view, rating the importance of the virtual element in a first rating manner based on the scene distance to determine the importance level of the virtual element; In the case where the virtual element is outside the field of view, rating the importance of the virtual element in a second rating manner based on the scene distance to determine the importance level of the virtual element; Among them, the distance intervals corresponding to the first rating method and the second rating method are respectively determined based on the distance between the virtual element and the main virtual character, and the distance span corresponding to the distance interval of the importance level in the first rating method is greater than the distance span corresponding to the distance interval of the importance level in the second rating method.

3. The method according to claim 2, wherein: The method further comprises: When the virtual element is within the field of view and is blocked, the importance of the virtual element is rated in the second rating manner based on the scene distance to determine the importance level of the virtual element.

4. The method according to claim 1, wherein: The display performance data includes an element refresh frequency, and the element refresh frequency is used to indicate a refresh frequency of the virtual element when it is displayed in the virtual scene; The determining, based on the importance level of the virtual element, display performance data of the virtual element includes: Based on the importance level of the virtual element, an element refresh frequency of the virtual element is determined, and the importance level is positively correlated with the element refresh frequency.

5. The method according to claim 1, wherein: The virtual element is implemented as at least two sub-elements of the same type, and the display performance data includes an element synchronization rate, and the element synchronization rate is used to indicate the number of sub-elements corresponding to the at least two sub-elements of the same type synchronously displayed in the virtual scene; The determining, based on the importance level of the virtual element, display performance data of the virtual element includes: Based on the importance level of the virtual element, an element synchronization rate corresponding to the at least two sub-elements of the same type is determined, and the importance level is positively correlated with the element synchronization rate.

6. The method according to any one of claims 1 to 5, wherein: The obtaining of second position information of the virtual element in the virtual scene further includes: Obtaining a first element type corresponding to a virtual element in the virtual scene; In a case where the first element type is within a specified type range, second position information of the virtual element in the virtual scene is acquired, and the specified type range includes element types that need to be rated for importance.

7. The method according to claim 6, wherein: The acquiring, when the first element type is within a specified type range, second position information of the virtual element in the virtual scene includes: When the first element type is within the specified type range, obtaining the most recent importance rating moment of the virtual element; Obtaining the importance rating time interval corresponding to the virtual element; In response to the time interval between the most recent importance rating moment of the virtual element and the current moment being greater than the importance rating time interval, second position information of the virtual element in the virtual scene is acquired.

8. The method according to claim 7, wherein: The obtaining of the importance rating time interval corresponding to the virtual element includes: In the case where the virtual element is a character-type virtual element, determining the importance rating time interval corresponding to the virtual element as a first time interval; In the case where the virtual element is a scene-type virtual element, determining the importance rating time interval corresponding to the virtual element as a second time interval; The first time interval is smaller than the second time interval.

9. The method according to claim 6, wherein: The determining the importance level of the virtual element based on the scene distance and the field of view information includes: Based on the first element type, determining an initial importance level corresponding to the virtual element; Based on the scene distance and the field of view information, the initial importance level is adjusted to determine the importance level of the virtual element.

10. An element display device, comprising: An acquisition module, used to acquire first position information and field of view information of a master virtual character in a virtual scene, wherein the field of view information is used to indicate a field of view range of observing the virtual scene from the perspective of the master virtual character; The acquisition module is further used to acquire second position information of the virtual element in the virtual scene; A determination module, configured to determine a scene distance between the first position information and the second position information in the virtual scene; The determining module is used to determine the importance level of the virtual element based on the scene distance and the field of view information, wherein the importance level of the virtual element is obtained by rating the inclusion of the virtual element in the field of view using at least one of at least two rating methods; The determination module is further used to determine display performance data of the virtual element based on the importance level of the virtual element, and to perform display control on the virtual element based on the display performance data, wherein the display performance data corresponds to the presentation effect of the display element in the virtual scene.

11. The device according to claim 10, wherein: The determination module is further used to, when the virtual element is within the field of view, rate the importance of the virtual element in a first rating method based on the scene distance to determine the importance level of the virtual element; when the virtual element is outside the field of view, rate the importance of the virtual element in a second rating method based on the scene distance to determine the importance level of the virtual element; wherein the distance intervals corresponding to the first rating method and the second rating method are respectively determined based on the distance between the virtual element and the main controlling virtual character, and the distance span corresponding to the distance interval of the importance level in the first rating method is greater than the distance span corresponding to the distance interval of the importance level in the second rating method.

12. The device according to claim 11, wherein The determination module is further configured to, when the virtual element is within the field of view and is blocked, rate the importance of the virtual element in the second rating method based on the scene distance to determine the importance level of the virtual element.

13. The device according to claim 10, wherein: The display performance data includes an element refresh frequency, and the element refresh frequency is used to indicate a refresh frequency of the virtual element when it is displayed in the virtual scene; The determination module is further configured to determine an element refresh frequency of the virtual element based on the importance level of the virtual element, wherein the importance level is positively correlated with the element refresh frequency.

14. The device according to claim 10, wherein: The virtual element is implemented as at least two sub-elements of the same type, and the display performance data includes an element synchronization rate, wherein the element synchronization rate is used to indicate the number of sub-elements corresponding to the at least two sub-elements of the same type that are synchronously displayed in the virtual scene. The determination module is further configured to determine, based on the importance level of the virtual element, an element synchronization rate corresponding to the at least two sub-elements of the same type, wherein the importance level is positively correlated with the element synchronization rate.

15. The device according to any one of claims 10 to 14, wherein: The acquisition module is also used to acquire a first element type of a target element type corresponding to the virtual element in the virtual scene; and when the first element type of the target element type is within a specified type range, acquire second position information of the virtual element in the virtual scene, wherein the specified type range includes element types that need to be rated in importance.

16. The device according to claim 15, wherein: The acquisition module is also used to obtain the most recent importance rating moment of the virtual element when the first element type is within the specified type range; obtain the importance rating time interval corresponding to the virtual element; and in response to the time interval between the most recent importance rating moment of the virtual element and the current moment being greater than the importance rating time interval, obtain the second position information of the virtual element in the virtual scene.

17. A computer device, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the element display method according to any one of claims 1 to 9.

18. A computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the element display method according to any one of claims 1 to 9.

19. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the element display method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Rendering and displaying method and device in three-dimensional virtual environment

    CN106910236A

  • Visual field control method and device for virtual objects, storage medium and computer equipment

    CN111589115A

  • Object information display control method and device, equipment and storage medium

    CN115591232A