Virtual scene display method and device, storage medium and electronic equipment

By optimizing the display order of virtual regions in a virtual scene and determining the display order based on the number of root nodes and child nodes, the problem of screen stuttering caused by poor rendering performance of virtual scenes is solved, improving rendering efficiency and user experience.

CN121197799APending Publication Date: 2025-12-26TENCENT TECH SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410825907.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

The rendering performance of virtual scenes in existing technologies is poor, resulting in screen stuttering, especially when there are many virtual areas and the account's field of view is updated frequently, rendering efficiency is low and stuttering and latency issues occur.

Method used

Display N virtual regions in the application interface of the target application, including Ni virtual regions already occupied by the first account and i virtual regions not occupied. Respond to the interaction operation of the first account, control the first virtual region to occupy it, and when the second virtual region is occupied by the second account, determine the display order of Z virtual regions according to the number of root nodes and child nodes of the virtual region to optimize the rendering process.

Benefits of technology

By optimizing the display order of virtual areas, screen stuttering and latency are reduced, rendering efficiency of virtual scenes is improved, and users can obtain the occupancy status of virtual areas in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121197799A_ABST
    Figure CN121197799A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual scene display method and device, a storage medium and electronic equipment. The method comprises the steps of displaying N virtual areas in an application interface of a target application, in response to the first account executing the first interaction operation, controlling the first account to occupy the first virtual area; in response to the situation that the first account occupies the first virtual area and the second virtual area is occupied by the second account, Z virtual areas are displayed in the application interface, and the Z virtual areas comprise N virtual areas and M virtual areas, the M virtual areas comprise M-j virtual areas occupied by the second account number and j virtual areas not occupied by the second account number. The technical problem that due to the fact that the rendering performance of the virtual scene is poor, the lagging condition of the display picture occurs frequently is solved, and the method and device can be applied to various scenes such as games, cloud technologies, artificial intelligence, intelligent traffic and auxiliary driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a method and apparatus for displaying virtual scenes, a storage medium, and an electronic device. Background Technology

[0002] Currently, when rendering virtual scenes, related technologies typically involve sequentially traversing each virtual region in the virtual scene to determine the virtual region that the account's field of view can access. However, due to the large number of virtual regions, the traversal of the virtual scene is time-consuming, and the high frequency of updates to the account's field of view results in low rendering efficiency of the virtual scene. As a result, the screen display often exhibits stuttering and latency. In other words, related technologies suffer from the technical problem of frequent screen stuttering due to poor rendering performance of the virtual scene.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a method and apparatus for displaying virtual scenes, a storage medium and an electronic device, to at least solve the technical problem of frequent screen stuttering caused by poor rendering performance of virtual scenes.

[0005] According to one aspect of the embodiments of this application, a method for displaying a virtual scene is provided, comprising: displaying N virtual areas in the application interface of a target application, wherein the N virtual areas include Ni virtual areas already occupied by a first account and i virtual areas not occupied by the first account, the first account being used to log in to the target application, i and N being positive integers, i≤N; responding to the first account performing a first interactive operation, controlling the first account to occupy a first virtual area, wherein the Ni virtual areas include the first virtual area, and the first virtual area is connected to a second virtual area; responding to the first account occupying the first virtual area and the second virtual area being occupied by a second account, displaying Z virtual areas in the application interface, wherein the Z virtual areas are... The virtual regions include the N virtual regions and M virtual regions. The M virtual regions include Mj virtual regions that have been occupied by the second account and j virtual regions that have not been occupied by the second account. The Mj virtual regions include the second virtual region. The Z virtual regions are determined by traversing the N virtual regions based on the number of the first root node and the number of the first child nodes corresponding to the N virtual regions and the number of the second root node and the number of the second child nodes corresponding to the M virtual regions. When the number of the first child nodes is greater than or equal to the number of the second child nodes, the second root node is considered as a child node of the first root node. When the number of the first child nodes is less than the number of the second child nodes, the first root node is considered as a child node of the second root node. Z, j, and M are all positive integers, and j ≤ M.

[0006] According to another aspect of the embodiments of this application, a virtual scene display device is also provided, comprising: a first display module, configured to display N virtual areas in the application interface of a target application, wherein the N virtual areas include Ni virtual areas already occupied by a first account and i virtual areas not occupied by the first account, the first account being used to log in to the target application, i and N being positive integers, i≤N; a control module, configured to control the first account to occupy a first virtual area in response to the first account performing a first interactive operation, wherein the Ni virtual areas include the first virtual area, and the first virtual area is connected to a second virtual area; and a second display module, configured to display Z virtual areas in the application interface in response to the first account occupying the first virtual area and the second virtual area being occupied by a second account. Z virtual regions, wherein the Z virtual regions include the N virtual regions and the M virtual regions, the M virtual regions include Mj virtual regions already occupied by the second account and j virtual regions not occupied by the second account, the Mj virtual regions include the second virtual region, the Z virtual regions are determined by traversing the first root node and the number of first child nodes corresponding to the N virtual regions and the number of second root nodes and the number of second child nodes corresponding to the M virtual regions. When the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is regarded as a child node of the first root node. When the number of first child nodes is less than the number of second child nodes, the first root node is regarded as a child node of the second root node. Z, j, and M are all positive integers, j≤M.

[0007] Optionally, the device is configured to display Z virtual regions in the application interface in response to the first account occupying the first virtual region and the second virtual region being occupied by the second account, in the following manner: in response to the first account occupying the first virtual region, the occupation status of the first virtual region is adjusted from unoccupied to occupied; when the first virtual region and the second virtual region are connected and the second virtual region is occupied by the second account, the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes are displayed; the Z virtual regions are determined and displayed based on the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes, wherein the number of the first child nodes and the number of the second child nodes are used to indicate that the root node corresponding to the Z virtual regions is the first root node or the second root node, and the first root node and the second root node are used to determine Z-2 virtual regions among the Z virtual regions, wherein the Z-2 virtual regions represent the virtual regions corresponding to other nodes besides the first root node and the second root node.

[0008] Optionally, the device is configured to determine and display the Z virtual regions based on the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes in the following manner: starting from the first root node, traversing each child node sequentially to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the first root node as the Z virtual regions, and displaying the Z virtual regions; or, if the target root node is the second root node, starting from the second root node, traversing each child node sequentially to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the second root node as the Z virtual regions, and displaying the Z virtual regions.

[0009] Optionally, the device is configured to determine Z-1 child nodes by sequentially traversing each child node starting from the first root node in the following manner: starting from the first root node, sequentially traversing each child node to determine a first group of child nodes and a second root node, wherein the first group of child nodes represents the child nodes corresponding to the virtual areas occupied by the first account, and the first group of child nodes corresponds to the Ni virtual areas; starting from the second root node, traversing each child node to determine a second group of child nodes, wherein the second group of child nodes represents the child nodes corresponding to the virtual areas occupied by the second account, and the second group of child nodes corresponds to the Mj virtual areas; and determining the second root node, the first group of child nodes, and the second group of child nodes as the Z-1 child nodes.

[0010] Optionally, the device is configured to display N virtual regions in the application interface of the target application in the following manner: In response to the first account entering the target virtual scene, a birth virtual region and a first adjacent virtual region are displayed in the application interface, wherein the birth virtual region represents the virtual region occupied by the first account by default, the Ni virtual regions include the birth virtual region, the first adjacent virtual region represents a virtual region connected to the birth virtual region and not occupied by the first account, and the i virtual regions include the first adjacent virtual region; In response to the first account occupying a third virtual region from the first adjacent virtual region in the target virtual scene, the birth virtual region, the third virtual region, and a second adjacent virtual region are displayed in the application interface, wherein the Ni virtual regions include the third virtual region, the second adjacent virtual region represents a virtual region connected to the birth virtual region and the third virtual region and not occupied by the first account, and the i virtual regions include the second adjacent virtual region.

[0011] Optionally, the device is further configured to: in response to the first account entering the target virtual scene, display the birth virtual area in the application interface according to a first display mode and display the first adjacent virtual area according to a second display mode; in response to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, display the birth virtual area in the application interface according to the first display mode, display the third virtual area according to a third display mode, and display the second adjacent virtual area according to the second display mode, wherein the third display mode is the same as or different from the first display mode.

[0012] Optionally, the device is configured to respond to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene in the following manner: displaying the birth virtual area in the application interface according to the first display method, displaying the third virtual area according to the third display method, and displaying the second adjacent virtual area according to the second display method; responding to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, displaying the birth virtual area in the application interface according to the first display method; adjusting the display method of the third virtual area from the second display method to the third display method, wherein the third virtual area represents a virtual area occupied by the first account for a duration that meets a preset condition, and the third display method is different from the second display method; and displaying the second adjacent virtual area according to the second display method.

[0013] Optionally, the device is further configured to: in response to the first account occupying the first virtual area and the second virtual area being occupied by the second account, before displaying Z virtual areas in the application interface, display the ownership of the second virtual area connected to the first virtual area; in response to the first account occupying the first virtual area, display the Z virtual areas in the application interface if the ownership of the second virtual area indicates that the second virtual area has been occupied by the second account through a second interactive operation; and in response to the first account occupying the first virtual area, display P virtual areas in the application interface if the ownership of the second virtual area indicates that the second virtual area is not occupied, wherein the P virtual areas include N-i+1 virtual areas already occupied by the first account and i-1+Q virtual areas not occupied by the first account, and the Q virtual areas represent virtual areas connected to the first virtual area and not occupied before the first account occupied the first virtual area, where P and Q are both positive integers and N < P.

[0014] Optionally, the device is further configured to: determine the birth node of the first account as the first root node, and determine the birth node of the second account as the second root node; whenever the first account occupies an unoccupied first target virtual region, determine the first target node corresponding to the first target virtual region as a child node of the first root node, and update the number of the first child nodes; whenever the second account occupies an unoccupied second target virtual region, determine the second target node corresponding to the second target virtual region as a child node of the second root node, and update the number of the second child nodes; whenever the virtual regions occupied by the first account and the second account are connected, determine a target root node based on the number of the first child nodes and the number of the second child nodes, and starting from the target root node, traverse each child node sequentially to determine the shared field of view of the first account and the second account.

[0015] Optionally, the device is configured to determine the shared field of view of the first account and the second account by determining a target root node based on the number of the first child nodes and the number of the second child nodes whenever the virtual areas occupied by the first account and the second account are connected, and starting from the target root node, sequentially traversing each child node: whenever the virtual areas occupied by the first account and the second account are connected, comparing the number of the first child nodes and the number of the second child nodes; if the number of the first child nodes is greater than or equal to the number of the second child nodes, determining the first root node as the target root node and determining the second node as a child node of the first root node; if the number of the first child nodes is less than the number of the second child nodes, determining the second root node as the target root node and determining the first node as a child node of the second node; starting from the target root node, sequentially traversing each child node to determine the shared field of view of the first account and the second account.

[0016] Optionally, the device is configured to determine the shared field of view of the first account and the second account by traversing each child node sequentially from the target root node in the following manner: starting from the target root node, traversing each child node sequentially, determining each virtual region corresponding to each child node; determining each virtual region corresponding to each child node as the shared field of view, and displaying it sequentially on the application interface.

[0017] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described virtual scene display method when running.

[0018] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes 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 virtual scene display method described above.

[0019] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described virtual scene display method through the computer program.

[0020] In this embodiment, N virtual regions are displayed in the application interface of the target application. These N virtual regions include Ni virtual regions already occupied by a first account and i virtual regions not occupied by the first account. The first account is used to log in to the target application, and i and N are both positive integers, i ≤ N. In response to the first account performing a first interactive operation, the first account is controlled to occupy the first virtual region. The Ni virtual regions include the first virtual region, and the first virtual region is connected to the second virtual region. In response to the first account occupying the first virtual region and the second virtual region being occupied by a second account, Z virtual regions are displayed in the application interface. These Z virtual regions include N virtual regions and M virtual regions. The M virtual regions include Mj virtual regions already occupied by the second account and j virtual regions not occupied by the second account. The Mj virtual regions include the second virtual region. The Z virtual regions are determined by traversing the first root node and the number of first child nodes corresponding to the N virtual regions and the second root node and the number of second child nodes corresponding to the M virtual regions. If the number of second child nodes is greater than or equal to the number of first child nodes, the second root node is considered a child node of the first root node. If the number of first child nodes is less than the number of second child nodes, the first root node is considered a child node of the second root node. Z, j, and M are all positive integers, with j ≤ M. That is, N virtual regions are displayed in the application interface, including Ni virtual regions already occupied by the first account and i virtual regions not occupied by the first account. After the first account performs the first interactive operation, it occupies the first virtual region connected to the second virtual region. When the first account occupies the first virtual region and the second virtual region is occupied by the second account, Z virtual regions are displayed in the application interface. Based on the number of nodes in the N and M virtual regions of the Z regions, the display status of the Z virtual regions is further determined. Based on this, the dynamic changes of virtual regions can be better displayed, effectively reducing screen stuttering and latency issues, allowing users to obtain the occupancy status of virtual regions in a timely manner. Thus, it solves the technical problem of frequent screen stuttering caused by poor rendering performance of virtual scenes. Attached Figure Description

[0021] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0022] Figure 1 This is a schematic diagram of an application environment for an optional virtual scene display method according to an embodiment of this application;

[0023] Figure 2This is a flowchart illustrating an optional virtual scene display method according to an embodiment of this application;

[0024] Figure 3 This is a schematic diagram of an optional virtual scene display method according to an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0029] Figure 8 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0030] Figure 9 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0031] Figure 10 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0032] Figure 11 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0033] Figure 12 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0034] Figure 13 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0035] Figure 14 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0036] Figure 15 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0037] Figure 16 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0038] Figure 17 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0039] Figure 18 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0040] Figure 19 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0041] Figure 20 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0042] Figure 21 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0043] Figure 22 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0044] Figure 23 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0045] Figure 24 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0046] Figure 25 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0047] Figure 26 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0048] Figure 27 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0049] Figure 28 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application;

[0050] Figure 29 This is a schematic diagram of the structure of an optional virtual scene display device according to an embodiment of this application;

[0051] Figure 30 This is a schematic diagram of the structure of an optional virtual scene display product according to an embodiment of this application;

[0052] Figure 31 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application. Detailed Implementation

[0053] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0054] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0055] The present application will be described below with reference to embodiments:

[0056] According to one aspect of the embodiments of this application, a method for displaying a virtual scene is provided. Optionally, in this embodiment, the above-described method for displaying a virtual scene can be applied to, for example... Figure 1 The hardware environment shown consists of server 101 and terminal device 103. For example... Figure 1As shown, server 101 is connected to terminal device 103 via a network and can be used to provide services to terminal device or application 107 installed on terminal device. The application can be video application, instant messaging application, browser application, educational application, game application, etc. Database 105 can be set up on the server or independently of the server to provide data storage services for server 101, such as a game data storage server. The network mentioned above can include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks, metropolitan area networks, and wide area networks. The wireless network includes Bluetooth, WIFI, and other networks that enable wireless communication. Terminal device 103 can be a terminal configured with an application, and can include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, handheld computers, MID (Mobile Internet Devices), PADs, desktop computers, smart TVs, smart voice interaction devices, smart home appliances, vehicle terminals, aircraft, virtual reality (VR) terminals, augmented reality (AR) terminals, mixed reality (MR) terminals, and other computer devices. The server mentioned above can be a single server, a server cluster composed of multiple servers, or a cloud server.

[0057] Combination Figure 1 As shown, the above-mentioned virtual scene display method can be executed by an electronic device, which can be a terminal device or a server. The above-mentioned virtual scene display method can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.

[0058] The above is merely an example, and this embodiment does not impose any specific limitations.

[0059] Alternatively, as an alternative implementation method, such as Figure 2 As shown, the methods for displaying the virtual scene described above include:

[0060] S202, Display N virtual areas in the application interface of the target application. The N virtual areas include Ni virtual areas that have been occupied by the first account and i virtual areas that have not been occupied by the first account. The first account is used to log in to the target application. i and N are both positive integers, i≤N.

[0061] For example, the embodiments of this application can be applied to various scenarios such as games, cloud technology, artificial intelligence, smart transportation, and assisted driving.

[0062] Optionally, in this embodiment, the target application may include, but is not limited to, game applications, social media applications, fitness applications, educational applications, business applications, music applications, etc. The target application can run on terminal devices such as mobile phones, tablets, or computers, providing users with functions such as interaction with other users, entertainment, learning, or business activities; the application interface refers to the user interface of the target application, which may include, but is not limited to, various virtual controls, such as the arrangement and display of buttons, text boxes, images, etc.; the virtual area refers to the area divided on the application interface, which may include, but is not limited to, rectangular, circular, irregularly shaped areas, used to display specific interface content, business functions, etc.

[0063] Specifically, let's take board strategy games as an example to illustrate the above-mentioned application. Figure 3 This is a schematic diagram of an optional virtual scene display method according to an embodiment of this application, wherein the application interface of the target application is displayed as follows. Figure 3 As shown, it includes several virtual areas, such as the chessboard squares and the scene area outside the chessboard. Figure 3 (Ships, etc. shown), the various virtual areas can be connected or disconnected.

[0064] Optionally, in this embodiment of the application, the first account refers to an account that can log in to the target application. The first account may include, but is not limited to, an account registered in the target application or an account registered in a third-party application. The third-party application can be understood as having a cooperative relationship with the target application or allowing the first account to log in to the target application through the third-party application, so as to realize the purpose of the first account accessing and using the various business functions and services of the target application, and to achieve the technical effect of account interoperability and sharing between different applications.

[0065] In one exemplary embodiment, Figure 4 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 4 As shown, there are 5 virtual areas. The first account has already occupied 3 virtual areas (virtual area A, virtual area B, and virtual area C), which are the aforementioned Ni virtual areas. The remaining 2 virtual areas (virtual area D and virtual area E) have not been occupied by the first account, which are the aforementioned i virtual areas. At this time, the first account's field of vision includes, but is not limited to, these 5 virtual areas, and the first account can move freely within these 3 virtual areas.

[0066] It should be noted that the first account may include, but is not limited to, occupying the aforementioned N virtual areas. That is, the field of view of the first account can be the entire application interface, and this application does not limit this.

[0067] S204, in response to the first account performing the first interactive operation, control the first account to occupy the first virtual area, wherein Ni virtual areas include the first virtual area, and the first virtual area is connected to the second virtual area;

[0068] For example, after the first account logs into the target application, the first account can occupy NI virtual areas. Furthermore, if the first account performs the first interactive operation, it will occupy the second virtual area, displaying the occupation status of each virtual area intuitively and conveniently, which facilitates the first account to make corresponding business function decisions, etc.

[0069] Optionally, in the embodiments of this application, the first interactive operation may include, but is not limited to, a touch operation implemented on a touch screen, or a touch operation performed by an input device such as a mouse, keyboard, or stylus. The first virtual area and the second virtual area can be understood as areas divided on the application interface, and the second virtual area and the first virtual area are different virtual areas.

[0070] It should be noted that the aforementioned second virtual area is connected to the first virtual area. Taking the target application as a game as an example, the first account can move or interact between these two areas to explore a wider game world. The first virtual area is the virtual area occupied by the first account, so the first account's field of vision includes the first virtual area. The first account can move freely in the first virtual area. The second virtual area may include, but is not limited to, the virtual area occupied by the first account and the virtual area not occupied by the first account.

[0071] For example, if the second virtual area is a virtual area occupied by the first account, then the field of vision of the first account includes the first virtual area and the second virtual area, and the first account can move freely in the first virtual area and the second virtual area; conversely, if the second virtual area is a virtual area not occupied by the first account, then the field of vision of the first account only includes the first virtual area, and the first account can move freely in the first virtual area but cannot move in the second virtual area.

[0072] In one exemplary embodiment, a game is used as an example of the target application. Figure 5 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. The operation of the first account entering the game and selecting to enter the chessboard mode for the game can be determined as the first interactive operation. The chessboard 502 is the first virtual area, and the chessboard 504 and chessboard 506 adjacent to the chessboard 502 are both regarded as the second virtual areas.

[0073] It should be noted that, in cases such as Figure 5In the example shown, the spawn point of the first account may be, but is not limited to, randomly determined by the game's backend server, or... Figure 6 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 6 As shown, the first account selects a virtual area available on the application interface as the first spawn point to stimulate players' interest in the game and increase their engagement and satisfaction.

[0074] For example, Figure 7 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 7 As shown, in addition to the first virtual area, the application interface may also include virtual areas occupied by teammates who are in the same camp as the first account, virtual areas occupied by enemies who are in a different camp from the first account, virtual areas occupied by non-player characters, virtual areas where virtual items are located, etc.

[0075] In yet another exemplary embodiment, a game is used as an example of the target application. Figure 8 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. The first account is playing a game in chessboard mode. The first account is located on chessboard 802. The game mechanism is as follows: when a player defeats a non-player character on a chessboard, the player occupies the chessboard. Therefore, the first account can initiate a battle request to the non-player character on chessboard 804, which is adjacent to chessboard 802. The operation of defeating the non-player character is determined as the first interaction operation mentioned above. At this time, chessboard 804 is occupied by the first account, and chessboard 804 is the first virtual area mentioned above.

[0076] It is understandable that, in cases like Figure 8 In the example shown, the game's backend server could also automatically detect that the chessboard 802, which is adjacent to chessboard 804, has been occupied by the first account. Therefore, the non-player character on chessboard 804 could initiate a battle request to the first account on chessboard 802, thereby increasing the fun and competitiveness of the game and enabling players to participate in the game more actively. This application does not limit this.

[0077] In yet another exemplary embodiment, a game is used as an example of the target application. Figure 9This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. The first account is playing a game in chessboard mode. The first account is located at chess square 902. The game mechanism is as follows: when a player picks up a virtual item on a chess square, the player occupies the chess square. Therefore, the first account can pick up a virtual item on chess square 904 adjacent to chess square 902. This picking up operation is determined as the first interaction operation mentioned above. At this time, chess square 904 is occupied by the first account, and chess square 904 is the first virtual area mentioned above.

[0078] S206, in response to the situation where the first account has occupied the first virtual area and the second virtual area has been occupied by the second account, Z virtual areas are displayed in the application interface. The Z virtual areas include N virtual areas and M virtual areas. The M virtual areas include Mj virtual areas that have been occupied by the second account and j virtual areas that have not been occupied by the second account. The Mj virtual areas include the second virtual area. The Z virtual areas are determined by traversing the first root node and the number of first child nodes corresponding to the N virtual areas and the number of second root nodes and the number of second child nodes corresponding to the M virtual areas. If the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is regarded as a child node of the first root node. If the number of first child nodes is less than the number of second child nodes, the first node is regarded as a child node of the second node. Z, j, and M are all positive integers, and j≤M.

[0079] For example, after the first account occupies the first virtual region by performing the first interactive operation, Z virtual regions are determined by traversing based on the number of first root nodes and first child nodes corresponding to the N virtual regions and the number of second root nodes and second child nodes corresponding to the M virtual regions.

[0080] Optionally, in this embodiment of the application, the second account may include, but is not limited to, an account registered in the target application, or an account registered in a third-party application.

[0081] In one exemplary embodiment, Figure 10 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 10 As shown, there are 6 virtual areas. The second account has already occupied 3 virtual areas (virtual area A, virtual area B, and virtual area C). These 3 virtual areas are the aforementioned Mj virtual areas. Virtual area A is the aforementioned second virtual area. The remaining 3 virtual areas (virtual area D, virtual area E, and virtual area F) have not been occupied by the second account. These 3 virtual areas are the aforementioned j virtual areas. At this time, the second account's field of vision includes, but is not limited to, these 6 virtual areas, and the second account can move freely within these 6 virtual areas.

[0082] Specifically, in the embodiments of this application... Figure 11 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 11 As shown, the Z virtual regions mentioned above include, but are not limited to, the M virtual regions mentioned above and the N virtual regions mentioned above. If there exists a virtual region B and a virtual region E that are both virtual regions among the i virtual regions and virtual regions among the j virtual regions, then there is only one virtual region B and one virtual region E among the Z virtual regions mentioned above.

[0083] For example, each of the above N virtual regions can be a child node, and there are corresponding N child nodes. Among these N child nodes, one child node is the first root node. Similarly, each of the above M virtual regions can be a child node, and there are corresponding M child nodes. Among these M child nodes, one child node is the second root node.

[0084] In one exemplary embodiment, Figure 12 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 12 As shown, N takes the value 100 and includes x1, x2, x3...x100 child nodes. Assuming the first account is born on the x1 square, the first virtual region is x1, and the parent node of x1 is itself, that is, father(x1) = x1. The adjacent virtual region of x1 is x2. When the first account does not occupy x2, the parent node of x2 is itself, that is, father(x2) = x2. If the first account occupies x2, the parent node of x2 is changed to x1, that is, father(x2) = x1. Similarly, if the first account continues to occupy the virtual region x3 adjacent to x2, the parent node of x3 is also changed to x1, that is, father(x3) = x1, until the first account occupies the virtual region x100. At this time, the parent node of x100 is also changed to x1, resulting in father(x100) = x1. Furthermore, the child node corresponding to the first virtual region is the first root node mentioned above.

[0085] In another exemplary embodiment, M is 100, including y1, y2, y3...y100 child nodes. Assuming the second account is born on the y1 square, the second virtual region is y1, and the parent node of y1 is itself, that is, father(y1) = y1. The adjacent virtual region of y1 is y2. When the second account does not occupy y2, the parent node of y2 is itself, that is, father(y2) = y2. If the second account occupies y2, the parent node of y2 is changed to y1, that is, father(y2) = y1. Similarly, if the second account continues to occupy the virtual region y3 adjacent to y2, the parent node of y3 is also changed to y1, that is, father(y3) = y1, until the second account occupies the virtual region y100. At this time, the parent node of y100 is also changed to y1, resulting in father(y100) = y1. Furthermore, the child node corresponding to the second virtual region is the second root node mentioned above.

[0086] In yet another exemplary embodiment, a game is used as an example of the target application. Figure 13 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 13 As shown, there are N virtual regions from x1 to x100 and M virtual regions from y1 to y3. The first account occupies x1 to x100 in sequence, and the second account occupies y1 to y3 in sequence. After traversing x1 to x100, the first virtual region x1 on the application interface displays "First root node, number of first child nodes: 99". Similarly, after traversing y1 to y3, the second virtual region y1 on the application interface displays "Second root node, number of second child nodes: 2".

[0087] In yet another exemplary embodiment, a game is used as an example of the target application. Figure 14 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 14 As shown, there are N virtual regions from x1 to x100 and M virtual regions from y1 to y3. The first account occupies x1 to x100 sequentially, and the second account occupies y1 to y3 sequentially. After traversing x1 to x100, the relevant information of the first and second nodes can be displayed at a specified location on the application interface, such as... Figure 14 As shown, the text box displayed at the top of the application interface reads: "First root node: x1, Number of first child nodes: 99; Second root node: y1, Number of second child nodes: 2".

[0088] For example, Figure 15This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. It can also display the root nodes corresponding to each virtual region in real time, and update the first root node, second child node, number of first child nodes, and number of second child nodes in real time. Figure 15 As shown, at time t1, the birthplace of the first account is virtual region x1, so the first virtual region is x1, and the child nodes corresponding to x1 are the first root node mentioned above. Since the first account only occupies the x1 virtual region at this time, the number of first child nodes is 1. After a period of time, the first account occupies virtual regions x2 to x5. At this time, at time t2, virtual regions x2 to x5 are all child nodes under the first root node mentioned above, and the number of first child nodes is 4. Similarly, at time t1, the birthplace of the second account is virtual region y1, so the second virtual region is y1, and the child nodes corresponding to y1 are the second root node mentioned above. Since the second account only occupies the y1 virtual region at this time, the number of second child nodes is 1. After a period of time, the second account occupies virtual regions y2 to y5. At this time, virtual regions y2 to y5 are all child nodes under the second root node mentioned above, and the number of second child nodes is 4.

[0089] It should be noted that, Figure 16 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application, which can be as follows: Figure 12 , Figure 13 The unified display shown above shows the information related to the first child node, the first root node, and the second child node and the second root node. It can also be displayed as follows: Figure 16 As shown, the first child node, the first root node, the second child node, and the second root node are displayed respectively. When any one of the N virtual areas is selected, the number of the first child nodes and the first root node are displayed.

[0090] In one exemplary embodiment, Figure 17 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 17 As shown, when any one of the M virtual regions is selected, the number of the second child nodes and the second root node are displayed.

[0091] It should be noted that the display methods of the first child node, the first root node, the second child node, and the second root node can be the same or different. For example, in the same application interface, the number of the first child nodes and the first root node are displayed in the virtual area corresponding to the first root node, and the number of the second child nodes and the second root node are displayed in the area above the application interface. Different colors, text formats, and other styles can be used to distinguish the first child node, the first root node, the second child node, and the second root node.

[0092] For example, Figure 18 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. The above-mentioned M virtual regions and N virtual regions can be as follows: Figure 18 As shown, these are adjacent virtual regions. Based on this, Figure 19 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 19 As shown, there are N virtual regions x1 to x5, with 99 first child nodes and x1 as the first root node. There are M virtual regions y1 to x5, with 4 second child nodes and y1 as the second root node. Since the number of first child nodes is greater than the number of second child nodes, the second root node can be determined as a child node of the first node. That is, the second node y1 can be determined as a child node of the first node x1.

[0093] In one exemplary embodiment, Figure 20 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 20 As shown, the number of the first child nodes is 99, the first root node is x1, the number of the second child nodes is 199, and the second root node is y1. Since the number of the first child nodes is less than the number of the second child nodes, the first root node can be determined as a child node of the second root node.

[0094] Furthermore, Figure 21 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 21 As shown, the first root node x1 is determined as a child node of the second root node y1.

[0095] For example, Figure 22 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 22 As shown, after the first root node x1 is determined as a child node of the second root node y1, the updated second root node y1 and the number of second child nodes will be displayed on the application interface. For example, before the update, the number of second child nodes is 4. After the update, a new child node (the aforementioned first root node) is added, so the number of second child nodes is 5, while the number of first child nodes and the display of the first root node remain unchanged.

[0096] In one exemplary embodiment, Figure 23 This is a schematic diagram of another optional virtual scene display method according to an embodiment of this application. The virtual scene display method proposed in this application can be applied to the game field and may include, but is not limited to, methods such as... Figure 23 As shown:

[0097] S2302, the player enters the game;

[0098] S2304, The player selects the spawn point as the first virtual region mentioned above, and the first virtual region corresponds to the first root node;

[0099] S2306, A player defeats a non-player character in a virtual area adjacent to the first virtual area and occupies the adjacent virtual area;

[0100] S2308, Update the root node of the adjacent virtual region to the root node corresponding to the first virtual region;

[0101] S2310 displays the first root node and the number of the first child nodes on the application interface, indicating the game field of view that the player can obtain;

[0102] S2312, determine the relationship between the number of the first child nodes and the number of the second child nodes determined by the virtual area occupied by other players. If the number of the first child nodes is greater than or equal to the number of the second child nodes, proceed to step S2314. If the number of the first child nodes is less than the number of the second child nodes, proceed to step S2316.

[0103] S2314 updates the first root node to a child node of the second root node, and displays the updated second root node and the number of second root nodes in the application interface;

[0104] S2316 updates the second root node to be a child node of the first root node, and displays the updated first root node and the number of first root nodes in the application interface.

[0105] In yet another exemplary embodiment, the virtual scene display method proposed in this application can be applied to e-commerce shopping scenarios to accelerate the rendering efficiency of displaying various products in e-commerce shopping applications, avoid problems such as screen lag and delays caused by too many products, and ensure the customer's shopping experience. This method may include, but is not limited to:

[0106] S1, the customer enters the e-commerce shopping application;

[0107] S2, the customer selects the clothing type product area as the first virtual area mentioned above, and the adjacent virtual area is the first root node;

[0108] S3, the customer selects to browse the adjacent virtual area of ​​the clothing category (e.g., the jewelry category), occupying the adjacent virtual area;

[0109] S4, update the root node of the adjacent virtual region to the root node corresponding to the first virtual region;

[0110] S5 displays the first root node and the number of the first child nodes on the application interface, indicating the products that the customer has already viewed;

[0111] S6, determine the relationship between the number of first child nodes and the number of second child nodes determined by the virtual area occupied by other customers. If the number of first child nodes is greater than or equal to the number of second child nodes, proceed to step S7. If the number of first child nodes is less than the number of second child nodes, proceed to step S8.

[0112] S7 updates the first root node to a child node of the second root node, and displays the updated second root node and the number of second root nodes in the application interface;

[0113] S8 updates the second root node to a child node of the first root node, and displays the updated first root node and the number of first root nodes in the application interface.

[0114] In this embodiment, N virtual regions are displayed in the application interface of the target application. These N virtual regions include Ni virtual regions already occupied by a first account and i virtual regions not occupied by the first account. The first account is used to log in to the target application, and i and N are both positive integers, i ≤ N. In response to the first account performing a first interactive operation, the first account is controlled to occupy the first virtual region. The Ni virtual regions include the first virtual region, and the first virtual region is connected to the second virtual region. In response to the first account occupying the first virtual region and the second virtual region being occupied by a second account, Z virtual regions are displayed in the application interface. These Z virtual regions include N virtual regions and M virtual regions. The M virtual regions include Mj virtual regions already occupied by the second account and j virtual regions not occupied by the second account. The Mj virtual regions include the second virtual region. The Z virtual regions are determined by traversing the first root node and the number of first child nodes corresponding to the N virtual regions and the second root node and the number of second child nodes corresponding to the M virtual regions. When the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is considered a child node of the first root node. When the number of first child nodes is less than the number of second child nodes, the first root node is considered a child node of the second root node. Z, j, and M are all positive integers, with j ≤ M. That is, N virtual regions are displayed in the application interface, including Ni virtual regions already occupied by the first account and i virtual regions not occupied by the first account. After the first account performs the first interactive operation, it occupies the first virtual region connected to the second virtual region. When the first account occupies the first virtual region and the second virtual region is occupied by the second account, Z virtual regions are displayed in the application interface. Based on the number of nodes in the N and M virtual regions of the Z regions, the display status of the Z virtual regions is further determined. Based on this, the dynamic changes of virtual regions can be better displayed, effectively reducing screen stuttering and latency issues, allowing users to obtain the occupancy status of virtual regions in a timely manner, thereby solving the technical problem of frequent screen stuttering caused by poor rendering performance of virtual scenes.

[0115] As an optional solution, in response to the first account occupying the first virtual region and the second virtual region being occupied by the second account, displaying Z virtual regions in the application interface includes: in response to the first account occupying the first virtual region, adjusting the occupation status of the first virtual region from unoccupied to occupied; when the first virtual region and the second virtual region are connected and the second virtual region is occupied by the second account, displaying the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes; determining and displaying the Z virtual regions based on the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes, wherein the number of the first child nodes and the number of the second child nodes are used to indicate that the root node corresponding to the Z virtual regions is the first root node or the second root node, and the first root node and the second root node are used to determine Z-2 virtual regions among the Z virtual regions, where the Z-2 virtual regions represent the virtual regions corresponding to other nodes besides the first root node and the second root node.

[0116] For example, in the application interface, if the first account occupies the first virtual area and the second account occupies the second virtual area, the occupancy status of the first virtual area can be adjusted as shown in the embodiments of this application. Furthermore, it is determined whether the first virtual area and the second virtual area are connected. Based on the determination result, the first root node, the number of first child nodes, the second root node, and the number of second child nodes are displayed. In this way, the Z virtual areas are determined and displayed.

[0117] Optionally, in this embodiment of the application, the aforementioned Z-2 virtual regions can be understood as the remaining virtual regions in the Z virtual regions excluding the virtual regions corresponding to the first root node and the virtual regions corresponding to the second root node, which may include, but are not limited to, being occupied by the aforementioned first account and the aforementioned second account.

[0118] In an exemplary embodiment, taking a game as an example, suppose the first virtual area is area A in a virtual game map, the first account is player A, the second virtual area is area B in the virtual game map adjacent to area A, and the second account is player B; player A has occupied the first virtual area, and player B has occupied the second virtual area. The occupation status of both the first and second virtual areas is adjusted from unoccupied to occupied, ensuring that players can explore different game maps or areas through connected virtual areas, increasing the fun and challenge of the game.

[0119] In yet another exemplary embodiment, such as Figure 13As shown, the first root node x1 has 100 corresponding first child nodes; the second root node y1 has 3 corresponding first child nodes; and the virtual region y1 is connected to the virtual region x1. Therefore, the field of view that the first account and the second account can receive is x1 to x100 and y1 to y3. The above Z regions are the 103 virtual regions x1 to x100 and y1 to y3.

[0120] As an optional approach, determining and displaying the Z virtual regions based on the first root node, the number of first child nodes, the second root node, and the number of second child nodes includes: when the target root node is the first root node, starting from the first root node, sequentially traversing each child node to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the first root node as the Z virtual regions, and displaying the Z virtual regions; or when the target root node is the second root node, starting from the second root node, sequentially traversing each child node to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the second root node as the Z virtual regions, and displaying the Z virtual regions.

[0121] For example, after obtaining the first root node, the number of first child nodes, the number of second root nodes and the number of second child nodes, Z-1 child nodes can be determined using the first child nodes, and then Z virtual regions can be displayed, as in the embodiments of this application; or Z-1 child nodes can be determined using the second child nodes, and then Z virtual regions can be displayed.

[0122] In one exemplary embodiment, such as Figure 18 As shown, the first account is located in the virtual area corresponding to the first root node x1. The first root node x1 has 99 child nodes x2 to x100. First, starting from the root node x1, each child node is traversed in turn to determine the 99 child nodes. Z takes the value of 100. Therefore, after the first account occupies the virtual area corresponding to x2 to x100, it is determined that the above Z areas include the 100 virtual areas corresponding to x1 to x100.

[0123] In yet another exemplary embodiment, such as Figure 18 As shown, the second account is located in the virtual area corresponding to the second root node y1. The second root node y1 has 199 child nodes y2 to y200. First, starting from the root node y1, each child node is traversed in turn to determine the 199 child nodes. Z takes the value of 200. Therefore, after the second account occupies the virtual area corresponding to y2 to y200, it is determined that the above Z areas include the 200 virtual areas corresponding to y1 to y200.

[0124] As an optional approach, starting from the first root node, the process traverses each child node sequentially to determine Z-1 child nodes, including: starting from the first root node, traversing each child node sequentially to determine a first group of child nodes and the second root node, wherein the first group of child nodes represents the child nodes corresponding to the virtual areas already occupied by the first account, and the first group of child nodes corresponds to the Ni virtual areas; starting from the second root node, traversing each child node to determine a second group of child nodes, wherein the second group of child nodes represents the child nodes corresponding to the virtual areas already occupied by the second account, and the second group of child nodes corresponds to the Mj virtual areas; and determining the second root node, the first group of child nodes, and the second group of child nodes as the Z-1 child nodes.

[0125] For example, after determining the first root node and the child nodes corresponding to each virtual region, the determination of the Z-1 child nodes can be performed as in the embodiments of this application, starting from the first root node, traversing each child node in sequence, and after determining the first group of child nodes and the second root node, continuing to traverse each child node starting from the second root node to determine the second group of child nodes, and finally obtaining the Z-1 child nodes.

[0126] In one exemplary embodiment, such as Figure 21 As shown, first, the first root node is determined to be x1, and then iterated through... Figure 21 For each child node from x2 to x100 shown, the root node of each child node is determined to be the first root node x1 mentioned above. At this time, the first group of child nodes mentioned above are x2 to x100.

[0127] In yet another exemplary embodiment, such as Figure 21 As shown, the virtual region corresponding to the first root node x1 is connected to the virtual region corresponding to the second root node y1, and the child nodes under the second root node y1 are y1 to y200. It is determined that the root node of each child node is the aforementioned second root node y1, and the number of the first child nodes is less than the number of the second child nodes. Therefore, the first root node x1 is determined as a child node under the second root node y1. At this time, the aforementioned second group of child nodes are y2 to y200 and x1.

[0128] Through the embodiments of this application, starting from the first root node, each child node is traversed sequentially to determine the first group of child nodes and the second root node. Then, starting from the second root node, each child node is traversed to determine the second group of child nodes. Finally, the purpose of determining Z-1 child nodes through the second root node, the first group of child nodes, and the second group of child nodes is achieved. Thus, Z virtual areas are determined for display based on these Z-1 child nodes, thereby improving the display efficiency of virtual areas.

[0129] As an optional solution, the above-mentioned display of N virtual regions in the application interface of the target application includes: in response to the first account entering the target virtual scene, displaying a birth virtual region and a first adjacent virtual region in the application interface, wherein the birth virtual region represents the virtual region occupied by the first account by default, the Ni virtual regions include the birth virtual region, the first adjacent virtual region represents the virtual region connected to the birth virtual region and not occupied by the first account, and the i virtual regions include the first adjacent virtual region; in response to the first account occupying a third virtual region from the first adjacent virtual region in the target virtual scene, displaying the birth virtual region, the third virtual region and the second adjacent virtual region in the application interface, wherein the Ni virtual regions include the third virtual region, the second adjacent virtual region represents the virtual region connected to the birth virtual region and the third virtual region and not occupied by the first account, and the i virtual regions include the second adjacent virtual region.

[0130] For example, when displaying the above N virtual areas in the above application interface, the specific implementation steps can be as in the embodiments of this application: display the above-mentioned birth virtual area and the above-mentioned first adjacent virtual area corresponding to the first account; after the first account occupies the third virtual area in the first adjacent virtual area, the birth virtual area, the third virtual area and the second adjacent virtual area can be displayed in the application interface.

[0131] Optionally, in the embodiments of this application, the above-mentioned target virtual scene refers to a virtual scene in the target application, the above-mentioned birth virtual region and the first adjacent virtual region are both virtual regions in the above-mentioned target virtual scene, and the first adjacent virtual region and the birth virtual region are two adjacent virtual regions.

[0132] It should be noted that, taking the game as an example, the aforementioned virtual spawn area can be understood as the virtual area corresponding to the starting position of the first account after entering the target virtual scene. This virtual spawn area is the virtual area that the first account occupies by default. The aforementioned first adjacent virtual area refers to the virtual area that is adjacent to the virtual spawn area and has not yet been occupied by the first account.

[0133] In one exemplary embodiment, such as Figure 5 As shown, the virtual birth area includes grid 502, and the first adjacent virtual area includes grids 504 and 506.

[0134] Optionally, in this embodiment of the application, the third virtual region is any virtual region among the first adjacent virtual regions, and the second adjacent virtual region refers to the virtual region in the target virtual scene that is adjacent to the third virtual region and the birth virtual region, and the second adjacent virtual region is not occupied by the first account.

[0135] In yet another exemplary embodiment, such as Figure 5 As shown, grid 502 is the virtual birth area, the first adjacent virtual area includes grid 504 and grid 506. If the first account occupies grid 504, then grid 504 is the third virtual area mentioned above. The second adjacent virtual area includes grid 506.

[0136] As an optional solution, the above method further includes: in response to the first account entering the target virtual scene, displaying the birth virtual area in the application interface according to a first display method and displaying the first adjacent virtual area in a second display method; in response to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, displaying the birth virtual area in the application interface according to the first display method, displaying the third virtual area in a third display method, and displaying the second adjacent virtual area in the second display method, wherein the third display method is the same as or different from the first display method.

[0137] For example, in the process of displaying N virtual regions in the application interface of the target application, the first display method can be used to display the new virtual region, and the second display method can be used to display the first adjacent virtual region, as in the embodiments of this application. Furthermore, the third display method can be used to display the third virtual region, so as to more clearly and obviously show the connection and occupancy between the virtual regions.

[0138] Optionally, in the embodiments of this application, the first display method, the second display method, and the third display method may be the same or different. If all three are different, they may be reflected in different styles such as area color and area logo.

[0139] In one exemplary embodiment, Figure 24 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 24 As shown, if the first account enters the target virtual scene, the first display method is to display the virtual area in red, and the second display method is to display the virtual area in blue. In the application interface, the birth virtual area x1 is displayed according to the first display method, and the first adjacent virtual areas x2 and x3 are displayed according to the second display method.

[0140] In another exemplary embodiment, such as Figure 24 As shown, the first account occupies the third virtual area x2. At this time, the third virtual area can be displayed in the third display mode described above. For example, the third display mode is to display the virtual area in green. At this time, the corresponding second adjacent virtual area x3 is displayed using the second display mode, that is, the second adjacent virtual area is displayed in blue.

[0141] As an optional solution, the above response to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, displaying the birth virtual area in the application interface according to the first display method, displaying the third virtual area according to the third display method, and displaying the second adjacent virtual area according to the second display method includes: responding to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, displaying the birth virtual area in the application interface according to the first display method; adjusting the display method of the third virtual area from the second display method to the third display method, wherein the third virtual area represents a virtual area occupied by the first account for a duration that meets a preset condition, and the third display method is different from the second display method; and displaying the second adjacent virtual area according to the second display method.

[0142] For example, in the process of displaying the third virtual area in the third display mode and the second adjacent virtual area in the second display mode, as in the embodiments of this application, it can be determined whether the duration of the first account occupying the third virtual area meets the above-mentioned preset conditions. If it does, the display mode of the third virtual area is adjusted from the second display mode to the third display mode.

[0143] Optionally, in the embodiments of this application, the above-mentioned preset conditions may include, but are not limited to, flexibly set by humans. For example, the preset condition is that the duration for which the first account occupies the third virtual area is greater than or equal to 30ms.

[0144] In one exemplary embodiment, Figure 25 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 25 As shown, the first display mode is that the virtual area is displayed in red, the second display mode is that the virtual area is displayed in blue, and the third display mode is that the virtual area is displayed in green. The first account occupies the third virtual area, and the preset condition is that the first account occupies the third virtual area for a duration greater than or equal to 30ms. When the first account occupies the third virtual area for a duration less than 30ms, the third virtual area is still displayed in blue. When the first account occupies the third virtual area for a duration greater than or equal to 30ms, the third virtual area that was originally displayed in blue is changed to be displayed in green.

[0145] In this application embodiment, the system determines whether the duration of the first account's occupation of the third virtual area meets the aforementioned preset conditions. If it does, the display mode of the third virtual area is adjusted from the second display mode to the third display mode. This achieves an intuitive and convenient display of the changes in the virtual area occupied by the first account, facilitating the first account to make corresponding decisions based on the occupation status and improving the accuracy of subsequent business function decisions.

[0146] As an optional solution, in response to the first account occupying the first virtual region and the second virtual region being occupied by the second account, before displaying Z virtual regions in the application interface, the method further includes: displaying the ownership of the second virtual region connected to the first virtual region; if the ownership of the second virtual region indicates that the second virtual region has been occupied by the second account through a second interactive operation, in response to the first account occupying the first virtual region, displaying the Z virtual regions in the application interface; if the ownership of the second virtual region indicates that the second virtual region is not occupied, in response to the first account occupying the first virtual region, displaying P virtual regions in the application interface, wherein the P virtual regions include N-i+1 virtual regions already occupied by the first account and i-1+Q virtual regions not occupied by the first account, and the Q virtual regions represent the virtual regions connected to the first virtual region that were not occupied before the first account occupied the first virtual region, where P and Q are both positive integers and N < P.

[0147] For example, before displaying the Z virtual areas, the ownership of the second virtual area connected to the first virtual area can be displayed as in the embodiments of this application. Further, based on the ownership, it can be determined whether the second virtual area is occupied by the second account. If the second virtual area is occupied by the second account and the first account occupies the first virtual area, then the Z virtual areas can be displayed; otherwise, if the second virtual area is not occupied by the second account and the first account occupies the first virtual area, then the aforementioned P virtual areas are displayed.

[0148] Optionally, in this embodiment of the application, the ownership of the aforementioned second virtual area may be displayed through icons, numbers, or other means.

[0149] In one exemplary embodiment, Figure 26 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 26As shown, the ownership of the second virtual area is displayed as a white flag icon, indicating that the second virtual area has been occupied by the second account. It is understandable that different accounts may use different icons to occupy virtual areas. For example, if the second virtual area is subsequently occupied by the first account, a black flag icon may be displayed in the second virtual area.

[0150] Optionally, in the embodiments of this application, the above-mentioned second interactive operation may include, but is not limited to, a touch operation implemented on a touch screen, or a touch operation performed by an input device such as a mouse, keyboard, or stylus.

[0151] For example, the ownership of the second virtual area is used to determine the possession of the second virtual area. If it is determined that the second account defeated the non-player character in the second virtual area (the second interaction operation mentioned above) and possessed the second virtual area, and the first account possessed the first virtual area, then the Z virtual areas mentioned above can be displayed in the application interface.

[0152] In another exemplary embodiment, if it is determined through the ownership of the second virtual area that the second account does not occupy the second virtual area, and the first account occupies the first virtual area, then the above P virtual areas can be displayed in the application interface. These P virtual areas include the virtual areas occupied by the first account, namely the above N-i+1 virtual areas, and the virtual areas not occupied by the first account, namely the above i-1+Q virtual areas.

[0153] It should be noted that the aforementioned N-i+1 virtual regions can be understood as follows: assuming N is 10, and the first account occupies 5 of these virtual regions, then Ni virtual regions in these N-i+1 virtual regions represent the 5 virtual regions already occupied by the first account. The remaining 1 region in the N-i+1 virtual regions represents the first virtual region occupied by the first account. The i-1 regions in the aforementioned i-1+Q virtual regions refer to the 5 unoccupied virtual regions among the N virtual regions, one of which is the first virtual region. The i-1 regions represent the 4 remaining virtual regions not occupied by the first account after the first account occupies the first virtual region. The Q regions in the aforementioned i-1+Q virtual regions refer to the regions connected to the first virtual region after the first account occupies the first virtual region, and not occupied by the first account. These Q regions are distinct from the aforementioned i-1 regions.

[0154] Specifically, Figure 27 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 27As shown, the first account is in virtual region A. Before the first account occupies the first virtual region, the aforementioned i-1 virtual regions are virtual regions B to D. The application interface displays the first account's field of view as virtual regions A to D. The aforementioned first virtual region is virtual region B. After the first account occupies virtual region B, since virtual region B is connected to virtual region E, the application interface displays the first account's field of view as virtual regions B to E. This virtual region E is the aforementioned Q regions, where Q is 1. In other words, when the first account does not occupy the first virtual region, the application interface does not display the aforementioned Q regions; when the first account occupies the first virtual region, the application interface displays the aforementioned Q regions.

[0155] As an optional approach, the method further includes: determining the birth node of the first account as the first root node and the birth node of the second account as the second root node; whenever the first account occupies an unoccupied first target virtual region, determining the first target node corresponding to the first target virtual region as a child node of the first root node and updating the number of first child nodes; whenever the second account occupies an unoccupied second target virtual region, determining the second target node corresponding to the second target virtual region as a child node of the second root node and updating the number of second child nodes; whenever the virtual regions occupied by the first account and the second account are connected, determining a target root node based on the number of first child nodes and the number of second child nodes, and starting from the target root node, sequentially traversing each child node to determine the shared field of view of the first account and the second account.

[0156] For example, after determining the first root node, the number of first child nodes, the second root node, and the number of second child nodes, the number of first child nodes and the number of second child nodes can be updated based on the first target node and the second target node, as in the embodiments of this application. Thus, the target root node is determined based on the number of first child nodes and the number of second child nodes, and the shared field of view of the first account and the second account is obtained.

[0157] Optionally, in this embodiment of the application, the birth node of the first account corresponds to the birth virtual region of the first account, the birth node of the second account corresponds to the birth virtual region of the second account, the first target node corresponds to the virtual region not occupied by the first account, the second target node corresponds to the virtual region not occupied by the second account, and the target root node may include, but is not limited to, the first root node, the second root node, etc.

[0158] In an exemplary embodiment, there is a first account and a first target virtual region. The first account occupies an unoccupied first target virtual region. The first target node corresponding to the first target virtual region will be determined as a child node of the first root node. For example, the number of first child nodes corresponding to the first root node was originally 10. After the above operation, the number of first child nodes corresponding to the first root node increases by 1 and is updated to 11.

[0159] In another exemplary embodiment, there is a second account and a second target virtual region. The second account occupies an unoccupied second target virtual region. The second target node corresponding to the second target virtual region will be determined as a child node of the aforementioned second root node. For example, the original number of second child nodes corresponding to the aforementioned second root node was 5. After the above operation, the number of second child nodes corresponding to the second root node increases by 3, updating to 8.

[0160] It should be noted that the aforementioned first target virtual region and second target virtual region may include, but are not limited to, several virtual regions, and this application does not limit them.

[0161] For example, the first account and the second account can continuously occupy the idle virtual area over time. In other words, the virtual area occupied by the first account and the virtual area occupied by the second account can be connected multiple times. Each time the virtual area occupied by the first account and the virtual area occupied by the second account are connected, the target root node can be determined according to the number of first child nodes and the number of second child nodes corresponding to the current connection. If there are multiple connections, the target root node will be determined multiple times.

[0162] In yet another exemplary embodiment, Figure 28 This is a schematic diagram illustrating another optional virtual scene display method according to an embodiment of this application, such as... Figure 28 As shown, the field of view corresponding to the first account is field of view A, and the field of view corresponding to the second account is field of view B. When the second account occupies the virtual area of ​​the second target, the virtual area occupied by the first account is connected to the virtual area occupied by the second account. At this time, the shared field of view of the first and second accounts is as follows: Figure 27 As shown.

[0163] In this embodiment, the spawn node of the first account is determined as the first root node, and the spawn node of the second account is determined as the second root node. Whenever the first account occupies an unoccupied first target virtual area, the node corresponding to that area is determined as a child node of the first root node, and the number of child nodes is updated. Whenever the second account occupies an unoccupied second target virtual area, the node corresponding to that area is determined as a child node of the second root node, and the number of child nodes is updated. When the two accounts occupy connected virtual areas, the target root node is determined based on the number of child nodes. This effectively determines the positional relationship between the two accounts in the virtual world and enables shared vision between the two accounts.

[0164] As an optional approach, whenever the virtual regions occupied by the first account and the second account are connected, a target root node is determined based on the number of the first child nodes and the number of the second child nodes. Starting from the target root node, each child node is traversed sequentially to determine the shared field of view of the first account and the second account. This includes: whenever the virtual regions occupied by the first account and the second account are connected, comparing the number of the first child nodes and the number of the second child nodes; if the number of the first child nodes is greater than or equal to the number of the second child nodes, the first root node is determined as the target root node, and the second node is determined as a child node of the first root node; if the number of the first child nodes is less than the number of the second child nodes, the second root node is determined as the target root node, and the first node is determined as a child node of the second node; starting from the target root node, each child node is traversed sequentially to determine the shared field of view of the first account and the second account.

[0165] As an optional solution, the above method, starting from the target root node, sequentially traverses each child node to determine the shared field of view of the first account and the second account, including: starting from the target root node, sequentially traversing each child node to determine each virtual region corresponding to each child node; determining each virtual region corresponding to each child node as the shared field of view, and displaying them sequentially in the application interface.

[0166] For example, in the process of determining the shared field of view by traversing each child node, as in the embodiments of this application, the quantitative relationship between the number of the first child node and the number of the second child node can be determined to determine the target root node. Further, based on the target root node, each child node is traversed to determine the shared field of view.

[0167] In an exemplary embodiment, assuming the number of first child nodes is 10 and the number of second child nodes is 20, the number of first child nodes is less than the number of second child nodes. Therefore, the first root node corresponding to the number of first child nodes can be determined as a child node of the second root node. Accordingly, the number of first child nodes remains unchanged, and the number of second child nodes is increased by 1 and adjusted to 21. The target root node is the second root node.

[0168] In another exemplary embodiment, assuming the number of first child nodes is 20 and the number of second child nodes is 10, the number of first child nodes is greater than the number of second child nodes. Therefore, the second root node corresponding to the number of second child nodes can be determined as a child node of the first root node. Accordingly, the number of second child nodes remains unchanged, and the number of first child nodes is increased by 1 and adjusted to 21. The target root node is the first root node.

[0169] Furthermore, such as Figure 21 As shown, the target root node is traversed to determine the target root node, its child nodes, and the virtual regions corresponding to each child node. The field of view corresponding to these virtual regions is then determined as the shared field of view of the first and second accounts.

[0170] In one exemplary embodiment, such as Figure 21 As shown, the target root node is y1, and the child nodes under y1 are x1, y2 to y200. Further, the virtual regions corresponding to these 200 child nodes x1, y2 to y200 are traversed in turn to determine the above-mentioned shared field of view. Since x1 is also the root node of x2 to x100, the above-mentioned shared field of view also includes the virtual regions corresponding to x2 to x100.

[0171] In this embodiment, the target root node is determined by judging the quantitative relationship between the number of the first child node and the number of the second child node. Furthermore, based on the target root node, each child node is traversed to determine the shared field of view. This avoids the tedious process of repeatedly querying the corresponding root node for each child node to determine its corresponding virtual area, and simplifies the steps for determining the shared field of view. Thus, the technical effect of improving the efficiency of determining the shared field of view is achieved while effectively improving the display performance of the application interface.

[0172] For example, in a game application, at the beginning of the game, each player is restricted to only seeing their own spawn point (the aforementioned virtual spawn area), while other players are unable to directly observe other areas. This adds a certain degree of strategy and exploration to the game. Players can gradually reveal more information about the game world by moving and exploring, such as acquiring virtual items. Players can search for clues in an uncertain environment, unlock new areas, and gradually expand their field of vision.

[0173] Specifically, each player starts from their spawn point and begins to challenge the surrounding squares, specifically the monsters (non-player characters) on those squares. When a player defeats a monster, they successfully occupy that square and gain a view of it, allowing them to observe more unknown terrain and obstacles. As the game progresses, if the squares occupied by different players are connected, they can gain a view of the other player's entire field of vision, a process known as merging fields of vision.

[0174] In an exemplary embodiment, firstly, the 10,000 cells are numbered from 1 to 10,000. At the same time, it is assumed that each cell forms a tree, and the parent node of the i-th cell is denoted as father(i). In the initial state, the parent node of each cell is itself, that is, father(i) = i, which is called the root node.

[0175] Next, the search tree structure of the grid is determined through the following steps:

[0176] S1, a player occupies a cell. After defining an occupied cell, the steps to update the parent node (update_father) include, but are not limited to:

[0177] S1-1, the player spawns in cell x1, father(x1) = x1; the adjacent cell is x2, father(x2) = x2;

[0178] S1-2, the player occupies x2, and modifies father(x2) = x1;

[0179] S1-3, the player continues to occupy x3, and modifies father(x3) = x2;

[0180] Furthermore, if the player occupies x100, then father(100) can be modified to x99.

[0181] S2, Merging Views, defines the steps for merging two nodes, merge_root, including but not limited to:

[0182] S2-1, Suppose player x occupies grid (x1, x2, x3 to x100) and player y occupies grid (y1, y2, y3 to y200), where grids x100 and y200 are adjacent. In this case, the field of view can be merged. Player x and player y are different players.

[0183] S2-2, determine that the root node of x100 is x1 and the root node of y200 is y1;

[0184] S2-3, update the parent node of y1 to x1, that is, update father(y1) to x1;

[0185] S2-4, determine the root node of both (x1, x2, x3 to x100) and (y1, y2, y3 to y200) as x1.

[0186] S3, Grid Visibility, defines a procedure for finding the root node find_root, including but not limited to:

[0187] S3-1, Suppose we need to find the root node of cell x100, first determine the parent node of cell x100, father(x100);

[0188] S3-2, if father(x100) equals x100, it means that x100 is the root node, and the result x100 is returned; if father(x100) is not equal to x100, for example, father(x100) equals x99, then continue to search for the parent node of cell x99;

[0189] Furthermore, until father(x2) is found to be equal to x2, it indicates that x2 is the root node, and the result x2 is returned. Otherwise, if father(x2) is not equal to x2, for example, if father(x2) is equal to x1, then the search continues to find the parent node of cell x1. Finally, if father(x1) = x1, then the root node of cell x100 is determined to be x1. At this time, the player whose spawn point is x1 can see cells 1 to 100.

[0190] S4, optimize find_root. In related technologies, if the number of nodes is too large, find_root needs to search upwards cell by cell to find the parent node and determine the root node, resulting in a long time consumption for the root node search process. However, S1 and S2 can be optimized to improve search performance, including but not limited to:

[0191] S4-1, define the number of nodes under the root node i as root_size(i), and assume that player x occupies the grid in the order of x1, x2, x3 to x100, and player y occupies the grid in the order of y1, y2 to y200;

[0192] S4-2, taking player x as an example, in the initial state, father(x1) is x1 and root_size(x1) is 1. At this time, the search tree structure of cell x1 only has the root node x1. Therefore, the data is recorded in cell x1.

[0193] S4-3, after capturing x2, confirm:

[0194] father(x2) = father(father(x1)) = father(x1) = x1, root_size(x1) = 2. Therefore, x2 is connected under the root node x1, and the data is recorded on x2.

[0195] S4-4, after capturing x3, confirm:

[0196] father(x3) = father(father(x2)) = father(x1) = x1, root_size(x1) = 3. Therefore, x2 is connected under the root node x1, and x3 is connected under x2. The data is recorded on x3.

[0197] S4-5, and so on, determine father(x100)=father(father(x99))=father(x1)=x1;

[0198] S4-6, determine that the root node of (x2 to x100) is x1, root_size(x1) = 100.

[0199] Similarly, after searching, it was determined that the root node of (y2, y3 to y200) is y1, and root_size(y1) = 200.

[0200] For example, when merging the views of nodes x1 and y1, since root_size(x1) = 100 and root_size(y1) = 200, we can let y1, which has the larger root_size, be the new root node. That is, let father(x1) = y1, and add the number of nodes in the tree to get root_size(x1) = 100 + 200 = 300.

[0201] It is understood that in this embodiment of the application, when merging the visibility of nodes, only one operation is needed to modify the root node, which greatly improves the efficiency of finding and updating the root node. Specifically, when determining the visibility of a grid, two searches are required to determine the root node y1 of the 99 nodes from x2 to x100. However, for the 199 nodes from y2 to y200, only one search is needed to determine the root node y1. This means that seeing more nodes consumes one less search step, thus improving the efficiency of visibility determination.

[0202] The embodiments of this application solve the problem of low performance faced by related technologies when dealing with large-sized virtual chessboards. By abstracting the process of occupying squares on the chessboard into the process of building a tree, and the process of merging the field of view into the process of merging a tree, the game performance is greatly improved and the lag phenomenon of the game client is reduced.

[0203] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0204] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0205] According to another aspect of the embodiments of this application, a display device for a virtual scene for implementing the above-described virtual scene display method is also provided. For example... Figure 29 As shown, the device includes:

[0206] The first display module 2902 is used to display N virtual areas in the application interface of the target application. The N virtual areas include Ni virtual areas that have been occupied by the first account and i virtual areas that have not been occupied by the first account. The first account is used to log in to the target application. i and N are both positive integers, and i≤N.

[0207] Control module 2904 is used to control the first account to occupy the first virtual area in response to the first account performing the first interactive operation, wherein Ni virtual areas include the first virtual area and the first virtual area is connected to the second virtual area;

[0208] The second display module 2906 is used to display Z virtual areas in the application interface in response to the situation where the first account occupies the first virtual area and the second virtual area is occupied by the second account. The Z virtual areas include N virtual areas and M virtual areas. The M virtual areas include Mj virtual areas occupied by the second account and j virtual areas not occupied by the second account. The Mj virtual areas include the second virtual area. The Z virtual areas are determined by traversing the number of first root nodes and first child nodes corresponding to the N virtual areas and the number of second root nodes and second child nodes corresponding to the M virtual areas. When the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is regarded as a child node of the first root node. When the number of first child nodes is less than the number of second child nodes, the first node is regarded as a child node of the second node. Z, j, and M are all positive integers, and j≤M.

[0209] As an optional solution, the above-mentioned device is used to display Z virtual regions in the application interface in response to a first account occupying a first virtual region and a second virtual region being occupied by a second account, in the following manner: in response to the first account occupying the first virtual region, the occupation status of the first virtual region is changed from unoccupied to occupied; when the first virtual region and the second virtual region are connected and the second virtual region is occupied by the second account, the first root node, the number of first child nodes, the second root node, and the number of second child nodes are displayed; the Z virtual regions are determined and displayed based on the first root node, the number of first child nodes, the second root node, and the number of second child nodes, wherein the number of first child nodes and the number of second child nodes are used to indicate whether the root node corresponding to the Z virtual regions is the first root node or the second root node, and the first root node and the second root node are used to determine Z-2 virtual regions among the Z virtual regions, where Z-2 virtual regions represent the virtual regions corresponding to other nodes besides the first root node and the second root node.

[0210] As an optional solution, the above-mentioned device is used to determine and display Z virtual regions based on the first root node, the number of first child nodes, the second root node, and the number of second child nodes in the following manner: starting from the first root node, traversing each child node sequentially to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the first root node as Z virtual regions, and displaying Z virtual regions; or, if the target root node is the second root node, starting from the second root node, traversing each child node sequentially to determine Z-1 child nodes; determining the virtual regions corresponding to the Z-1 child nodes and the second root node as Z virtual regions, and displaying Z virtual regions.

[0211] As an optional approach, the above-mentioned device is used to determine Z-1 child nodes by traversing each child node sequentially from the first root node in the following manner: starting from the first root node, traversing each child node sequentially to determine a first group of child nodes and a second root node, wherein the first group of child nodes represents the child nodes corresponding to the virtual areas occupied by the first account, and the first group of child nodes corresponds to Ni virtual areas; starting from the second root node, traversing each child node to determine a second group of child nodes, wherein the second group of child nodes represents the child nodes corresponding to the virtual areas occupied by the second account, and the second group of child nodes corresponds to Mj virtual areas; the second root node, the first group of child nodes, and the second group of child nodes are determined as Z-1 child nodes.

[0212] As an optional solution, the above-mentioned device is used to display N virtual regions in the application interface of the target application in the following manner: In response to the first account entering the target virtual scene, the application interface displays the birth virtual region and the first adjacent virtual region, wherein the birth virtual region represents the virtual region occupied by the first account by default, Ni virtual regions include the birth virtual region, the first adjacent virtual region represents the virtual region connected to the birth virtual region and not occupied by the first account, and i virtual regions include the first adjacent virtual region; In response to the first account occupying the third virtual region from the first adjacent virtual region in the target virtual scene, the application interface displays the birth virtual region, the third virtual region and the second adjacent virtual region, wherein Ni virtual regions include the third virtual region, the second adjacent virtual region represents the virtual region connected to the birth virtual region and the third virtual region and not occupied by the first account, and i virtual regions include the second adjacent virtual region.

[0213] As an optional solution, the above-mentioned device is further configured to: in response to the first account entering the target virtual scene, display the birth virtual area in the application interface according to the first display method and display the first adjacent virtual area according to the second display method; in response to the first account occupying the third virtual area from the first adjacent virtual area in the target virtual scene, display the birth virtual area in the application interface according to the first display method, display the third virtual area according to the third display method, and display the second adjacent virtual area according to the second display method, wherein the third display method is the same as or different from the first display method.

[0214] As an optional solution, the above-mentioned device is used to respond to a first account occupying a third virtual area from a first adjacent virtual area in a target virtual scene in the following manner: displaying the birth virtual area in the application interface according to a first display method, displaying the third virtual area according to a third display method, and displaying the second adjacent virtual area according to a second display method: responding to a first account occupying a third virtual area from a first adjacent virtual area in a target virtual scene, displaying the birth virtual area in the application interface according to the first display method; adjusting the display method of the third virtual area from the second display method to the third display method, wherein the third virtual area represents a virtual area occupied by the first account for a duration that meets a preset condition, and the third display method is different from the second display method; and displaying the second adjacent virtual area according to the second display method.

[0215] As an optional solution, the above-mentioned device is further configured to: in response to the first account occupying the first virtual area and the second virtual area being occupied by the second account, before displaying Z virtual areas in the application interface, display the ownership of the second virtual area connected to the first virtual area; in response to the first account occupying the first virtual area, display Z virtual areas in the application interface when the ownership of the second virtual area indicates that the second virtual area has been occupied by the second account through a second interactive operation; in response to the first account occupying the first virtual area, display P virtual areas in the application interface when the ownership of the second virtual area indicates that the second virtual area has not been occupied, and in response to the first account occupying the first virtual area, display P virtual areas in the application interface, wherein the P virtual areas include N-i+1 virtual areas already occupied by the first account and i-1+Q virtual areas not occupied by the first account, and the Q virtual areas represent the virtual areas connected to the first virtual area that were not occupied before the first account occupied the first virtual area, where P and Q are both positive integers and N < P.

[0216] As an optional solution, the above-mentioned device is further configured to: determine the birth node of the first account as the first root node, and determine the birth node of the second account as the second root node; whenever the first account occupies an unoccupied first target virtual region, determine the first target node corresponding to the first target virtual region as a child node of the first root node, and update the number of first child nodes; whenever the second account occupies an unoccupied second target virtual region, determine the second target node corresponding to the second target virtual region as a child node of the second root node, and update the number of second child nodes; whenever the virtual regions occupied by the first account and the second account are connected, determine the target root node according to the number of first child nodes and the number of second child nodes, and starting from the target root node, traverse each child node in sequence to determine the shared field of view of the first account and the second account.

[0217] As an optional solution, the above-mentioned device is used to determine the shared field of view of the first account and the second account by determining the target root node based on the number of first child nodes and the number of second child nodes whenever the virtual areas occupied by the first account and the second account are connected, and starting from the target root node, traversing each child node in turn: whenever the virtual areas occupied by the first account and the second account are connected, comparing the number of first child nodes and the number of second child nodes; if the number of first child nodes is greater than or equal to the number of second child nodes, determining the first root node as the target root node and determining the second node as a child node of the first root node; if the number of first child nodes is less than the number of second child nodes, determining the second root node as the target root node and determining the first node as a child node of the second node; starting from the target root node, traversing each child node in turn, determining the shared field of view of the first account and the second account.

[0218] As an optional solution, the above-mentioned device is used to determine the shared field of view of the first account and the second account by starting from the target root node and traversing each child node in sequence: starting from the target root node, traversing each child node in sequence, determining each virtual area corresponding to each child node; determining each virtual area corresponding to each child node as the shared field of view, and displaying it in sequence on the application interface.

[0219] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0220] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0221] According to one aspect of this application, a computer program product is provided, the computer program product comprising a computer program.

[0222] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0223] Figure 30 A schematic block diagram of a computer system architecture for implementing an electronic device according to embodiments of the present application is shown.

[0224] It should be noted that, Figure 30The computer system 3000 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0225] like Figure 30 As shown, the computer system 3000 includes a central processing unit (CPU) 3001, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 3002 or programs loaded from storage section 3008 into random access memory (RAM). The RAM 3003 also stores various programs and data required for system operation. The CPU 3001, ROM 3002, and RAM 3003 are interconnected via a bus 3004. An input / output interface 3005 (I / O interface) is also connected to the bus 3004.

[0226] The following components are connected to the input / output interface 3005: an input section 3006 including a keyboard, mouse, etc.; an output section 3007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 3008 including a hard disk, etc.; and a communication section 3009 including a network interface card such as a local area network card, modem, etc. The communication section 3009 performs communication processing via a network such as the Internet. A drive 3010 is also connected to the input / output interface 3005 as needed. A removable medium 3011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 3010 as needed so that computer programs read from it can be installed into the storage section 3008 as needed.

[0227] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 3009, and / or installed from removable medium 3011. When the computer program is executed by central processing unit 3001, it performs various functions defined in the system of this application.

[0228] In such an embodiment, the computer program can be downloaded and installed from a network via communication section 3009, and / or installed from removable media 3011. When the computer program is executed by central processing unit 3001, it performs various functions provided in the embodiments of this application.

[0229] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described virtual scene display method is also provided. This electronic device may be... Figure 1 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 31 As shown, the electronic device includes a memory 3102 and a processor 3104. The memory 3102 stores a computer program, and the processor 3104 is configured to execute the steps of any of the above method embodiments through the computer program.

[0230] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0231] Optionally, in this embodiment, the processor may be configured to execute the methods in the embodiments of this application via a computer program.

[0232] Alternatively, as those skilled in the art will understand, Figure 31 The structure shown is for illustrative purposes only. Figure 31 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 31 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 31 The different configurations shown.

[0233] The memory 3102 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual scene display method and device in this embodiment. The processor 3104 executes various functional applications and data processing by running the software programs and modules stored in the memory 3102, thereby realizing the virtual scene display method described above. The memory 3102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 3102 may further include memory remotely located relative to the processor 3104, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 3102 may be used, but is not limited to, to store information such as virtual areas. As an example, such as... Figure 31As shown, the memory 3102 may include, but is not limited to, the first display module 2902, control module 2904, and second display module 2906 of the virtual scene display device. Furthermore, it may include, but is not limited to, other module units of the virtual scene display device, which will not be elaborated upon in this example.

[0234] Optionally, the transmission device 3106 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 3106 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 3106 is a radio frequency (RF) module, used for wireless communication with the Internet.

[0235] In addition, the above-mentioned electronic device also includes: a display 3108 for displaying the above-mentioned application interface; and a connection bus 3110 for connecting the various module components in the above-mentioned electronic device.

[0236] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0237] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of an electronic device reads computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the electronic device to perform a virtual scene display method provided in various alternative implementations of the virtual scene display aspect described above.

[0238] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store methods for performing the embodiments of this application.

[0239] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0240] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0241] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more electronic devices to execute all or part of the steps of the methods described in the various embodiments of this application.

[0242] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0243] In the several embodiments provided in this application, it should be understood that the disclosed application can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0244] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0245] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0246] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for displaying a virtual scene, characterized in that, include: N virtual areas are displayed in the application interface of the target application. The N virtual areas include Ni virtual areas that have been occupied by the first account and i virtual areas that have not been occupied by the first account. The first account is used to log in to the target application. i and N are both positive integers and i≤N. In response to the first account performing the first interactive operation, the first account is controlled to occupy the first virtual area, wherein the Ni virtual areas include the first virtual area and the first virtual area is connected to the second virtual area; In response to the first account occupying the first virtual area and the second virtual area being occupied by the second account, Z virtual areas are displayed in the application interface. The Z virtual areas include the N virtual areas and M virtual areas. The M virtual areas include Mj virtual areas occupied by the second account and j virtual areas not occupied by the second account. The Mj virtual areas include the second virtual area. The Z virtual areas are determined by traversing the first root node and the number of first child nodes corresponding to the N virtual areas and the number of second root nodes and the number of second child nodes corresponding to the M virtual areas. When the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is considered a child node of the first root node. When the number of first child nodes is less than the number of second child nodes, the first root node is considered a child node of the second root node. Z, j, and M are all positive integers, and j ≤ M.

2. The method according to claim 1, characterized in that, In response to the situation where the first account has occupied the first virtual area and the second virtual area has been occupied by the second account, Z virtual areas are displayed in the application interface, including: In response to the first account occupying the first virtual area, the possession status of the first virtual area is changed from unoccupied to occupied; When the first virtual region and the second virtual region are connected, and the second virtual region has been occupied by the second account, the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes are displayed. The Z virtual regions are determined and displayed based on the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes. The number of the first child nodes and the number of the second child nodes are used to indicate that the root node corresponding to the Z virtual regions is either the first root node or the second root node. The first root node and the second root node are used to determine Z-2 virtual regions among the Z virtual regions. The Z-2 virtual regions represent the virtual regions corresponding to other nodes besides the first root node and the second root node.

3. The method according to claim 2, characterized in that, The step of determining and displaying the Z virtual regions based on the first root node, the number of the first child nodes, the second root node, and the number of the second child nodes includes: Starting from the first root node, traverse each child node sequentially to determine Z-1 child nodes; define the virtual regions corresponding to the Z-1 child nodes and the first root node as the Z virtual regions, and display the Z virtual regions; or If the target root node is the second root node, starting from the second root node, traverse each child node sequentially to determine Z-1 child nodes; determine the virtual regions corresponding to the Z-1 child nodes and the second root node as the Z virtual regions, and display the Z virtual regions.

4. The method according to claim 3, characterized in that, Starting from the first root node, traversing each child node sequentially to determine Z-1 child nodes includes: Starting from the first root node, each child node is traversed sequentially to determine the first group of child nodes and the second root node. The first group of child nodes represents the child nodes corresponding to the virtual areas occupied by the first account, and the first group of child nodes corresponds to the Ni virtual areas. Starting from the second root node, traverse each child node to determine the second group of child nodes, where the second group of child nodes represents the child nodes corresponding to the virtual areas already occupied by the second account, and the second group of child nodes corresponds to the Mj virtual areas; The second root node, the first group of child nodes, and the second group of child nodes are determined as the Z-1 child nodes.

5. The method according to claim 1, characterized in that, The process of displaying N virtual areas in the application interface of the target application includes: In response to the first account entering the target virtual scene, the application interface displays the birth virtual area and the first adjacent virtual area. The birth virtual area represents the virtual area that the first account occupies by default, and the Ni virtual areas include the birth virtual area. The first adjacent virtual area represents the virtual area connected to the birth virtual area and not occupied by the first account, and the i virtual areas include the first adjacent virtual area. In response to the first account occupying a third virtual region from the first adjacent virtual region in the target virtual scene, the application interface displays the birth virtual region, the third virtual region, and the second adjacent virtual region, wherein the Ni virtual regions include the third virtual region, the second adjacent virtual region represents a virtual region connected to the birth virtual region and the third virtual region that is not occupied by the first account, and the i virtual regions include the second adjacent virtual region.

6. The method according to claim 5, characterized in that, The method further includes: In response to the first account entering the target virtual scene, the birth virtual area is displayed in the application interface in a first display mode, and the first adjacent virtual area is displayed in a second display mode; In response to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, the birth virtual area is displayed in the application interface according to the first display method, the third virtual area is displayed according to the third display method, and the second adjacent virtual area is displayed according to the second display method, wherein the third display method is the same as or different from the first display method.

7. The method according to claim 6, characterized in that, The response to the first account occupying a third virtual region from the first adjacent virtual region in the target virtual scene, displaying the birth virtual region in the application interface according to the first display method, displaying the third virtual region according to the third display method, and displaying the second adjacent virtual region according to the second display method, includes: In response to the first account occupying a third virtual area from the first adjacent virtual area in the target virtual scene, the birth virtual area is displayed in the application interface according to the first display method; The display mode of the third virtual area is adjusted from the second display mode to the third display mode, wherein the third virtual area represents a virtual area that has been occupied by the first account for a duration that meets a preset condition, and the third display mode is different from the second display mode; The second adjacent virtual region is displayed according to the second display method.

8. The method according to claim 1, characterized in that, In response to the situation where the first account has occupied the first virtual area and the second virtual area has been occupied by the second account, before displaying Z virtual areas in the application interface, the method further includes: Displays the ownership of the second virtual region connected to the first virtual region; If the ownership indication of the second virtual area is that the second virtual area has been occupied by the second account through the second interactive operation, in response to the first account occupying the first virtual area, the Z virtual areas are displayed in the application interface; If the ownership of the second virtual area indicates that the second virtual area is not occupied, in response to the first account occupying the first virtual area, P virtual areas are displayed in the application interface. The P virtual areas include N-i+1 virtual areas that have been occupied by the first account and i-1+Q virtual areas that have not been occupied by the first account. The Q virtual areas represent the virtual areas that were connected to the first virtual area and were not occupied before the first account occupied the first virtual area. P and Q are both positive integers, and N < P.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: The birth node of the first account is determined as the first root node, and the birth node of the second account is determined as the second root node; Whenever the first account occupies an unoccupied first target virtual area, the first target node corresponding to the first target virtual area is determined as a child node of the first root node, and the number of the first child nodes is updated. Whenever the second account occupies an unoccupied second target virtual area, the second target node corresponding to the second target virtual area is determined as a child node of the second root node, and the number of the second child nodes is updated; Whenever the virtual areas occupied by the first account and the second account are connected, a target root node is determined based on the number of the first child nodes and the number of the second child nodes. Starting from the target root node, each child node is traversed sequentially to determine the shared field of view of the first account and the second account.

10. The method according to claim 9, characterized in that, Whenever the virtual areas occupied by the first account and the second account are connected, a target root node is determined based on the number of the first child nodes and the number of the second child nodes. Starting from the target root node, each child node is traversed sequentially to determine the shared field of view of the first account and the second account, including: Whenever the virtual regions occupied by the first account and the second account are connected, compare the number of the first child nodes and the number of the second child nodes; If the number of the first child nodes is greater than or equal to the number of the second child nodes, the first root node is determined as the target root node, and the second node is determined as a child node of the first root node. If the number of the first child nodes is less than the number of the second child nodes, the second root node is determined as the target root node, and the first node is determined as a child node of the second root node. Starting from the target root node, traverse each child node in turn to determine the shared field of view of the first account and the second account.

11. The method according to claim 10, characterized in that, The step of traversing each child node sequentially from the target root node to determine the shared field of view between the first account and the second account includes: Starting from the target root node, traverse each child node sequentially to determine each virtual region corresponding to each child node; Each virtual region corresponding to each child node is defined as the shared field of view and displayed sequentially on the application interface.

12. A display device for a virtual scene, characterized in that, include: The first display module is used to display N virtual areas in the application interface of the target application, wherein the N virtual areas include Ni virtual areas that have been occupied by the first account and i virtual areas that have not been occupied by the first account. The first account is used to log in to the target application, and i and N are both positive integers, i≤N; A control module is configured to control the first account to occupy a first virtual area in response to the first account performing a first interactive operation, wherein the Ni virtual areas include the first virtual area and the first virtual area is connected to a second virtual area; The second display module is configured to display Z virtual regions in the application interface in response to the situation where the first account has occupied the first virtual region and the second virtual region has been occupied by the second account. The Z virtual regions include the N virtual regions and M virtual regions. The M virtual regions include Mj virtual regions already occupied by the second account and j virtual regions not occupied by the second account. The Mj virtual regions include the second virtual region. The Z virtual regions are determined by traversing the N virtual regions based on the number of first root nodes and first child nodes corresponding to the N virtual regions and the number of second root nodes and second child nodes corresponding to the M virtual regions. When the number of first child nodes is greater than or equal to the number of second child nodes, the second root node is considered a child node of the first root node. When the number of first child nodes is less than the number of second child nodes, the first root node is considered a child node of the second root node. Z, j, and M are all positive integers, where j ≤ M.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 11.

14. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program performs the steps of the method described in any one of claims 1 to 11.

15. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 11 through the computer program.