Data processing method and device, electronic equipment and storage medium

By receiving and cacheing the attribute data of critical virtual objects frame by frame, and sending them uniformly within the field of view of the target virtual object, the problem of excessive network traffic caused by data synchronization across scene servers is solved, and the stability of the terminal field of view is improved.

CN119056045APending Publication Date: 2024-12-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310621986.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When data synchronization is performed across scene servers, the scene server network traffic is too large, causing the scene server to be overloaded, and reducing the stability of the terminal when displaying the field of view.

Method used

By receiving and buffering the attribute data of the critical virtual object sent by the second scene server frame by frame, and when the critical virtual object is within the target virtual object field of view controlled by the terminal, the attribute data of the current frame is read and sent from the cache area. Avoid repeated synchronization of the same data, realize unified collection and batch distribution of data, and reduce the number of data interactions.

Benefits of technology

Reduces the number of data interactions between scene servers, reduces network traffic, avoids overloading of scene servers, and improves the stability of the terminal when displaying the field of view.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119056045A_ABST
    Figure CN119056045A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and device, electronic equipment and a storage medium, the data processing method can be applied to a first scene server, and the first scene server can receive first attribute data of a critical virtual object sent by a second scene server frame by frame and cache the first attribute data. The first attribute data is sent to the corresponding terminal, and the first attribute data is acquired by the second scene server according to the position of the critical virtual object in the critical area, so that the first attribute data can be layered according to the position of the critical virtual object in the critical area, and the clipping effect of the first attribute data is achieved; according to the method, the data size of the first attribute data synchronized between the first scene server and the second scene server is reduced, the network flow of synchronizing the first attribute data is reduced, the stability of a follow-up terminal during view image display is improved, and the method can be widely applied to the technical fields of cloud technologies, games, simulation training and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] With the development of computer technology, the application of virtual scenes has become more and more extensive. Taking games as an example, a large world map is usually composed of multiple game virtual scenes, and different game virtual scenes are hosted by different scene servers. When the game virtual scene hosted by any scene server is within the field of view of the game virtual object corresponding to other scene servers, data synchronization will be performed across scene servers, so that the game virtual scenes in different scene servers can be displayed in the terminal's field of view.

[0003] At present, when data is synchronized across scene servers, a large amount of game data will be synchronized between different scene servers, which may easily lead to excessive network traffic on the scene servers, causing the scene servers to be overloaded, thereby reducing the stability of the terminal when displaying the field of view. Summary of the invention

[0004] The following is a summary of the subject matter described in detail in this application. This summary is not intended to limit the scope of the claims.

[0005] The embodiments of the present application provide a data processing method, device, electronic device and storage medium, which can reduce the network traffic of the scene server and avoid overloading the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0006] On the one hand, an embodiment of the present application provides a data processing method, which is applied to a first scene server, where the first scene server is used to host a first virtual scene. The data processing method includes:

[0007] Receiving first attribute data of a critical virtual object sent by a second scene server frame by frame, and caching the first attribute data in a cache area, wherein the second scene server is used to carry a second virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, the critical area is an area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area;

[0008] When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, reading the first attribute data of the current frame from the buffer area;

[0009] The first attribute data of the current frame is sent to the terminal, so that the terminal refreshes the field of view of the target virtual object according to the first attribute data.

[0010] On the other hand, an embodiment of the present application further provides a data processing method, which is applied to a second scene server, where the second scene server is used to host a second virtual scene, and the data processing method includes:

[0011] According to the position of the critical virtual object in the critical area, collecting first attribute data of the critical virtual object frame by frame;

[0012] sending the first attribute data to a first scene server, so that the first scene server caches the first attribute data in a cache area;

[0013] Among them, the first scene server is used to host a first virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, and the critical area is an area in the second virtual scene adjacent to the first virtual scene. The first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is within the field of view of the target virtual object controlled by the terminal.

[0014] On the other hand, an embodiment of the present application further provides a data processing device, which is applied to a first scene server, where the first scene server is used to host a first virtual scene, and the data processing device includes:

[0015] A receiving module, used for receiving first attribute data of a critical virtual object sent by a second scene server frame by frame, and caching the first attribute data in a cache area, wherein the second scene server is used for carrying a second virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, the critical area is an area of ​​the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area;

[0016] A reading module, configured to read the first attribute data of the current frame from the buffer area when the critical virtual object is within the field of view of the target virtual object controlled by the terminal;

[0017] The first sending module is used to send the first attribute data of the current frame to the terminal, so that the terminal can refresh the field of view of the target virtual object according to the first attribute data.

[0018] Furthermore, the receiving module is specifically used for:

[0019] When the first attribute data of the critical virtual object sent by the second scene server is not received within the reception time of the current frame, the first attribute data of the previous frame in the buffer area is used as reference attribute data;

[0020] The first attribute data of the current frame is predicted according to the reference attribute data to obtain predicted attribute data, and the predicted attribute data is used as the first attribute data of the current frame.

[0021] Furthermore, the reference attribute data includes historical position, direction and moving speed, and the predicted attribute data includes current position. The receiving module is specifically used for:

[0022] Determine a time interval between the current frame and the previous frame, and determine a moving distance of the critical virtual object according to the moving speed and the time interval;

[0023] The current position is predicted based on the historical positions, the orientation and the movement distance.

[0024] Furthermore, the receiving module is also used for:

[0025] Acquire area range information of the critical area;

[0026] Determining a positional relationship between the critical virtual object and the critical area according to the area range information and the current position;

[0027] When the position relationship indicates that the critical virtual object leaves the critical area, the first attribute data in the buffer area is deleted.

[0028] Furthermore, the reference attribute data has multiple dimensions, and the receiving module is specifically used for:

[0029] Convert the reference attribute data of various dimensions into a first feature vector, and concatenate a plurality of the first feature vectors to obtain a target feature vector;

[0030] The target feature vector is input into a prediction model for predicting the first attribute data of the current frame to obtain predicted attribute data.

[0031] Furthermore, the above prediction model is trained through the following steps:

[0032] Acquire sample attribute data of a sample frame and reference attribute data of a next frame of the sample frame, convert the sample attribute data of various dimensions into a second feature vector, and concatenate a plurality of the second feature vectors to obtain a sample feature vector;

[0033] Inputting the sample feature vector into the prediction model to obtain training attribute data;

[0034] A model loss value of the prediction model is determined according to the training attribute data and the benchmark attribute data, and the prediction model is trained according to the model loss value.

[0035] Furthermore, there are multiple target virtual objects, each of which is controlled by a different terminal, and the first sending module is specifically used for:

[0036] Encoding the first attribute data of the current frame to obtain encoded data;

[0037] Obtaining an attribute delivery list corresponding to each of the target virtual objects, and adding the encoded data to the attribute delivery list corresponding to each of the target virtual objects;

[0038] The attribute delivery list is sent to the corresponding terminal.

[0039] Furthermore, the first sending module is specifically used for:

[0040] If the current frame is a key frame, using the first attribute data of the current frame as encoding data;

[0041] Alternatively, if the current frame is a non-key frame, the first attribute data of the current frame is differentially encoded based on the first attribute data of a previous frame of the current frame to obtain the encoded data.

[0042] Furthermore, the first sending module is further used for:

[0043] Determining at least one target frame, wherein the target frame is a non-key frame;

[0044] Acquire the first attribute data of the target frame, and replace the encoded data of the target frame with the first attribute data of the target frame;

[0045] The encoding data of each non-key frame between the target frame and the next key frame is updated according to the first attribute data of the target frame.

[0046] On the other hand, an embodiment of the present application further provides a data processing device, which is applied to a second scene server, wherein the first scene server is used to host a second virtual scene, and the data processing device includes:

[0047] A collection module, used for collecting first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area;

[0048] a second sending module, configured to send the first attribute data to a first scene server, so that the first scene server caches the first attribute data in a cache area;

[0049] Among them, the first scene server is used to host a first virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, and the critical area is an area in the second virtual scene adjacent to the first virtual scene. The first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is within the field of view of the target virtual object controlled by the terminal.

[0050] Furthermore, the acquisition module is specifically used for:

[0051] Determine a target distance between the critical virtual object and a target boundary according to a position of the critical virtual object in the critical region, and collect first attribute data of the critical virtual object frame by frame according to the target distance;

[0052] The target boundary is a boundary between the first virtual scene and the second virtual scene.

[0053] Furthermore, the acquisition module is specifically used for:

[0054] When the target distance is greater than or equal to a first distance threshold, collecting object dynamic data of the critical virtual object frame by frame, and using the object dynamic data as first attribute data of the critical virtual object;

[0055] Alternatively, when the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, object dynamic data and object appearance data of the critical virtual object are collected frame by frame, and the object dynamic data and the object appearance data are used as first attribute data of the critical virtual object;

[0056] Alternatively, when the target distance is less than the second distance threshold, object dynamic data, object appearance data and prop appearance data of the critical virtual object are collected frame by frame, and the object dynamic data, the object appearance data and the prop appearance data are used as first attribute data of the critical virtual object, wherein the prop appearance data is used to display the virtual props equipped on the critical virtual object in the field of view;

[0057] The first distance threshold is greater than the second distance threshold.

[0058] Furthermore, the acquisition module is also used for:

[0059] In response to the critical virtual object entering the critical area, collecting second attribute data of the critical virtual object, wherein the second attribute data is other attribute data other than the first attribute data, and a change frequency of the second attribute data is lower than a change frequency of the first attribute data;

[0060] The second attribute data is sent to the first scene server, so that the first scene server caches the second attribute data in the cache area.

[0061] On the other hand, an embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned data processing method when executing the computer program.

[0062] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the above-mentioned data processing method.

[0063] On the other hand, the embodiment of the present application further provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned data processing method.

[0064] The embodiment of the present application includes at least the following beneficial effects: since the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area, the first attribute data can be layered according to the position of the critical virtual object in the critical area to achieve the clipping effect of the first attribute data, reduce the amount of the first attribute data synchronized between the first scene server and the second scene server, reduce the network traffic for synchronizing the first attribute data, and thus improve the stability of the subsequent terminal when displaying the field of view; on this basis, the first scene server no longer synchronizes the first attribute data in the second scene server for the field of view of a single target virtual object, but receives and caches the first attribute data sent by the second scene server frame by frame. When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, the first attribute data of the current frame is read from the cache area and sent to the terminal, avoiding repeated synchronization of the same first attribute data from the second scene server, realizing unified collection and batch distribution of the first attribute data, and effectively reducing the number of data interactions between different scene servers. It can be seen that the data processing method provided in the embodiment of the present application can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0065] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0067] Figure 1 A schematic diagram of an optional implementation environment provided for an embodiment of the present application;

[0068] Figure 2 An optional flowchart of a data processing method provided in an embodiment of the present application;

[0069] Figure 3 A schematic diagram of an optional architecture of a scene server in the related technology provided in an embodiment of the present application;

[0070] Figure 4 A schematic diagram of another optional architecture of a scene server in the related technology provided in an embodiment of the present application;

[0071] Figure 5 A schematic diagram of an optional architecture of a scene server based on map grids provided in an embodiment of the present application;

[0072] Figure 6 A schematic diagram of another optional architecture of a scene server based on map grids provided in an embodiment of the present application;

[0073] Figure 7 A schematic diagram of an optional application architecture of the prediction model provided in the embodiment of the present application;

[0074] Figure 8 Another optional flowchart of the data processing method provided in the embodiment of the present application;

[0075] Fig. 9 A schematic diagram of an optional architecture of the attribute delivery list provided in the embodiment of the present application;

[0076] Fig.10 Another optional flow chart of the attribute delivery list provided in the embodiment of the present application;

[0077] Fig.11 Another optional flowchart of the data processing method provided in the embodiment of the present application;

[0078] Fig.12An optional structural diagram of a virtual scene provided in an embodiment of the present application;

[0079] Fig.13 Another optional structural diagram of a virtual scene provided in an embodiment of the present application;

[0080] Fig.14 A schematic diagram of an optional display interface of a terminal provided in an embodiment of the present application;

[0081] Fig.15 An optional structural diagram of a first data processing device provided in an embodiment of the present application;

[0082] Fig.16 An optional structural diagram of a second data processing device provided in an embodiment of the present application;

[0083] Fig.17 A partial structural block diagram of a terminal provided in an embodiment of the present application;

[0084] Fig.18 A partial structural block diagram of the server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0085] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0086] It should be noted that in each specific embodiment of the present application, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present application needs to obtain the target object attribute information, the target object's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page, etc., and after the separate permission or separate consent of the target object is clearly obtained, the necessary target object-related data for enabling the normal operation of the embodiment of the present application will be obtained.

[0087] To facilitate understanding of the technical solutions provided in the embodiments of the present application, some key terms used in the embodiments of the present application are explained here:

[0088] Games may include electronic games. Electronic games refer to interactive games that run on electronic equipment platforms. Electronic games may include online games and stand-alone games. Online games may also be called online games, which generally refer to sustainable individual multi-player online games that use the Internet as a communication medium, game servers and player terminals as game processing devices, and game clients running in player terminals as information interaction windows, aiming to achieve entertainment, leisure, communication and virtual achievements; game clients refer to programs that correspond to game servers and provide local game services to players participating in online games; game servers refer to service devices that provide data calculation, verification, storage and forwarding functions to game clients.

[0089] Online games can be cloud games or ordinary online games. Among them, ordinary online games refer to games that are directly run in the game client installed in the player's terminal. Cloud gaming (Cloud Gaming), also known as gaming on demand (Gaming on Demand), refers to games that run in the game server; that is, in the cloud gaming scenario, all cloud games are not run in the game client of the player's terminal, but in the game server; the game server compresses and encodes the game screen and game audio in the cloud game into a media stream, and then transmits the media stream to the game client in the user terminal through the network for image display and audio playback; it can be seen that the game client does not need to have powerful graphics processing and data computing capabilities, but only needs to have basic streaming media playback capabilities, and the ability to obtain the operation instructions entered by the game player and send the operation instructions entered by the game player to the game server; when the game player performs various operations in the game interface of the game client, the game client will report the operation data generated by these operations to the game server, and the game server will refresh the game screen of the cloud game according to the operation data in the corresponding cloud game, and then return the refreshed game screen to the game client for display, so as to realize the play of cloud games. In other words, the difference between ordinary online games and cloud games is that ordinary online games are run in the game client installed in the player's terminal, while cloud games are run in the game server, and the game client is responsible for presenting the game screen, playing the game audio, and receiving the operation instructions input by the game player. This application does not specifically limit the game type of online games.

[0090] A virtual scene refers to a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene may be a purely fictitious virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, a virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Players can control virtual objects to carry out activities in the virtual scene, and the activities include but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. At least one of the virtual scene can be displayed from a first-person perspective (for example, the player's own perspective is used to play the virtual object in the game); it can also be displayed from a third-person perspective (for example, the player chases the virtual object in the game to play the game); it can also be displayed from a bird's-eye view perspective; wherein the above perspectives can be switched arbitrarily.

[0091] Taking the first-person perspective to display a virtual scene as an example, the virtual scene displayed in the human-computer interaction interface may include: according to the viewing position and field of view of the virtual object in the complete virtual scene, the field of view area of ​​the virtual object is determined, and the partial virtual scene in the field of view area of ​​the complete virtual scene is presented, that is, the displayed virtual scene may be a partial virtual scene relative to the panoramic virtual scene. Because the first-person perspective is the viewing perspective that can most impact the player, in this way, the player can achieve an immersive perception of being in the scene during the operation. Taking the bird's-eye view of the virtual scene as an example, the interface of the virtual scene presented in the human-computer interaction interface may include: in response to the zoom operation of the panoramic virtual scene, the partial virtual scene corresponding to the zoom operation is presented in the human-computer interaction interface, that is, the displayed virtual scene may be a partial virtual scene relative to the panoramic virtual scene. In this way, the operability of the player during the operation can be improved, thereby improving the efficiency of human-computer interaction.

[0092] Virtual objects refer to the images of various people and objects that can interact in a virtual scene, or inactive objects in a virtual scene. The active objects can be virtual characters, virtual animals, etc., such as people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the player. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0093] For example, the virtual object may be a player character controlled by operations on the client, an artificial intelligence (AI) object set in a virtual scene through training, or a non-player character (NPC) set in a virtual scene interaction. For example, the virtual object may be a virtual character that performs adversarial interactions in a virtual scene. For example, the number of virtual objects participating in the interaction in the virtual scene may be pre-set or dynamically determined according to the number of clients joining the interaction.

[0094] For example, players can control virtual objects to freely fall, glide, or open a parachute to fall in the sky of the virtual scene, run, jump, crawl, bend forward, etc. on land, or control virtual objects to swim, float, or dive in the ocean.

[0095] Virtual props refer to props that can be used by virtual objects in a virtual environment. For example, virtual props can be vehicle-type virtual props, for example, the vehicle-type virtual props can be virtual cars, virtual aircraft, etc., and players can control virtual objects to move in the virtual scene by riding vehicle-type virtual props; virtual props can also be attack-type virtual props, and players can control virtual objects to interact with other virtual objects in a confrontational manner through virtual props; virtual props can also be auxiliary virtual props, and the auxiliary virtual props can be virtual pendants, for example, the virtual pendant can be a sight, or the auxiliary virtual props can also be virtual object decorations, for example, the virtual object decorations can be glasses, watches, necklaces, cloaks, etc. mounted on the virtual object. The above scenarios are only used as examples here, and the embodiments of the present application do not specifically limit this.

[0096] Scene data represents various characteristics of objects in the virtual scene during the interaction process, for example, it may include the position of the object in the virtual scene. Different types of characteristics may be included according to the type of virtual scene. For example, in a virtual scene of a game, scene data may include the waiting time required for various functions configured in the virtual scene (depending on the number of times the same function can be used within a specific time). Scene data may also include attribute data for indicating attribute values ​​of various states of game characters. For example, attribute values ​​include but are not limited to at least one of life value (also called red volume), magic value (also called blue volume), and state value.

[0097] Massively Multiplayer Online Role-Playing Game (MMORPG): is a type of online game. In all MMORPGs, players can play one or more virtual objects and control the activities and behaviors of the virtual objects in the virtual scene.

[0098] In MMPRPG, players can control virtual objects to run, jump, crawl, bend forward, etc. on land, and can also control virtual objects to swim, float or dive in the ocean, etc. Of course, players can also control virtual objects to move in the virtual scene by riding virtual vehicles. For example, the virtual vehicle can be a virtual horse, a virtual ship, a virtual carriage, etc. The above scenes are only used as examples for illustration, and the embodiments of the present application do not specifically limit this. Players can also control virtual objects to interact with other virtual objects through interactive props, such as fighting. For example, the interactive props can be throwing interactive props such as spears, stones, torches, etc., or shooting interactive props such as bows and arrows and slingshots. The present application does not specifically limit the types of interactive props.

[0099] At present, when data is synchronized across scene servers, a large amount of game data will be synchronized between different scene servers, which may easily lead to excessive network traffic on the scene servers, causing the scene servers to be overloaded, thereby reducing the stability of the terminal when displaying the field of view.

[0100] Based on this, the embodiments of the present application provide a data processing method, device, electronic device and storage medium, which can reduce the network traffic of the scene server and avoid overloading the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0101] Reference Figure 1 , Figure 1A schematic diagram of an optional implementation environment provided for an embodiment of the present application, the implementation environment includes a terminal 101, a terminal 102, a first scene server 103 and a second scene server 104, the terminal 101 and the first scene server 103 are connected via a communication network, the terminal 102 and the second scene server 104 are connected via a communication network, and the terminal 101 and the terminal 102 each run a client of a target game application, wherein the terminal 101 runs a first game client for controlling a target virtual object 110, and the terminal 102 runs a second game client for controlling a critical virtual object 120. The terminal 101 includes a human-computer interaction screen, a processor and a memory. The human-computer interaction screen is used to display the game screen in the racing game application; it is also used to provide a human-computer interaction interface to receive a human-computer interaction operation for controlling a controlled virtual object, and the virtual object will complete the racing game task set in the virtual scene. The processor is used to generate an interaction instruction in response to the above human-computer interaction operation, and send the interaction instruction to the server. The memory is used to store relevant attribute data, such as the attribute data of the target virtual object 110 and other virtual objects participating in the game task. like Figure 1 As shown, in the visual field of the terminal 101 display interface, a target virtual object 110 and two other virtual objects are playing a racing game task, and the other two virtual objects may include a critical virtual object 120. The terminal 102 also includes a human-computer interaction screen, a processor and a memory. The functions of each component can refer to the description of the terminal 101, which will not be repeated here.

[0102] The number of the first scenario server 103 and the second scenario server 104 may be one or more, and the number of the terminal 101 and the terminal 102 may also be one or more, which is not limited in the embodiment of the present application.

[0103] Exemplarily, the first scene server 121 is used to carry the first virtual scene. The first scene server 121 can receive the first attribute data of the critical virtual object 120 sent by the second scene server 122 frame by frame, and cache the first attribute data to the cache area, wherein the second scene server 122 is used to carry the second virtual scene, and the critical virtual object 120 is in the critical area of ​​the second virtual scene, and the critical area is the area in the second virtual scene adjacent to the first virtual scene. The first attribute data is collected by the second scene server 122 according to the position of the critical virtual object 120 in the critical area; when the critical virtual object 120 is within the field of view of the target virtual object 110 controlled by the terminal, the first attribute data of the current frame is read from the cache area; the first attribute data of the current frame is sent to the terminal so that the terminal can refresh the field of view of the target virtual object 110 according to the first attribute data.

[0104] The first scene server 121 can receive and cache the first attribute data. Since the first attribute data is collected by the second scene server 122 according to the position of the critical virtual object 120 in the critical area, the first attribute data can be layered according to the position of the critical virtual object 120 in the critical area to achieve a clipping effect of the first attribute data, reduce the amount of the first attribute data synchronized between the first scene server 121 and the second scene server 122, reduce the network traffic for synchronizing the first attribute data, and thus improve the stability of subsequent terminals when displaying the field of view; on this basis, the first scene server 121 no longer synchronizes the first attribute data in the second scene server 122 for the field of view of a single target virtual object 110. Data is not received, but by receiving and caching the first attribute data sent by the second scene server 122 frame by frame, when the critical virtual object 120 is in the field of view of the target virtual object 110 controlled by the terminal, the first attribute data of the current frame is read from the cache area and sent to the terminal, so as to avoid repeated synchronization of the same first attribute data from the second scene server 122, thereby realizing the unified collection and batch distribution of the first attribute data, and being able to effectively reduce the number of data interactions between different scene servers. It can be seen that the data processing method provided in the embodiment of the present application can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overloading of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0105] The first scenario server 121 and the second scenario server 122 are both servers, which can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the server provides background services for applications running on the terminal 101.

[0106] Terminal 101 can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, etc., but is not limited to this. Terminal 101 and server can be directly or indirectly connected by wired or wireless communication, and the embodiments of the present application are not limited here. In some embodiments, terminal 101 installs and runs an application that supports virtual scene display. For example, the application can be any one of MMPRPG, role-playing game (Role-Playing Game, RPG), and education simulation game (Education Simulation, ES). Terminal 101 refers to the device used by the player, and the player can use terminal 101 to control the virtual objects in the virtual scene to carry out activities.

[0107] The method provided in the embodiments of the present application can be applied to various technical fields, including but not limited to cloud technology, games, simulation training and other technical fields.

[0108] Reference Figure 2 , Figure 2 An optional flow chart of a data processing method provided in an embodiment of the present application, the data processing method can be executed by a first scene server, the first scene server is used to host a first virtual scene, and the data processing method includes but is not limited to the following steps 201 to 203.

[0109] Step 201: Receive first attribute data of a critical virtual object sent by a second scene server frame by frame, and cache the first attribute data in a cache area.

[0110] Among them, the second scene server is used to host the second virtual scene, the critical virtual object is in the critical area of ​​the second virtual scene, the critical area is the area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area.

[0111] Among them, when the target virtual object, as the controlled object, needs to display other virtual objects within the field of view of the controlled object through the display interface of the terminal, in an interactive scene involving a large number of objects, the field of view of the controlled object may have a large number of other objects that need to be displayed on the display screen, and the correct display of these objects requires obtaining corresponding object state data, such as the object's model, action, interactive operation, etc. The first attribute data belongs to the object state data of the critical virtual object. Receiving the first attribute data frame by frame means receiving the first attribute data of each frame of the critical virtual object. By receiving the first attribute data frame by frame, the terminal can refresh each frame of the field of view of the displayed target virtual object frame by frame.

[0112] Exemplarily, object state data refers to data used to display the state of the corresponding virtual object, which may include movement, appearance change, action, and other states that can be perceived by the player at the display level. For example, in a game scene, the state may include movement, jumping, releasing skills, changing outfits, attacking, defending, health, and the like.

[0113] In the related art, due to limitations on machine computing power and game logic, the single-machine carrying capacity of a machine is limited. Therefore, in order to meet the game needs of players, it is necessary to avoid overloading the scene server, for example, improving the single-machine carrying capacity of the scene server, or reducing the single-machine carrying capacity of the scene server.

[0114] Specifically, refer to Figure 3 , Figure 3 A schematic diagram of an optional architecture of a scene server in the related technology provided in an embodiment of the present application.

[0115] At present, the single-machine carrying capacity of the scene server can be improved through logic tailoring. Specifically, the logic of the scene service is separated and optimized, and some business logic that is irrelevant to the scene and has a low interaction frequency is separated from the scene logic. For example, the first service, the second service and other services are separated, and the backend architecture is transformed from a single scene server cluster to multiple service clusters such as scene service clusters, mail service clusters, mall service clusters, and activity service clusters. By reducing the burden on the logic of the main process, computing power is saved and the single-machine carrying capacity is improved.

[0116] However, as the operation time increases, more and more services are separated, which increases the complexity of background service management. In addition, as the operation time increases, the logic of the scene server increases, and the upper limit of logic tailoring on the carrying capacity of a single machine will gradually decrease.

[0117] Specifically, refer to Figure 4 , Figure 4 A schematic diagram of another optional architecture of a scene server in the related technology provided in an embodiment of the present application.

[0118] At present, the single-machine load of the scene server can be reduced through a branching mechanism. Specifically, by establishing multiple mirror scene servers, for example, creating scene server branch-1, scene server branch-2 and other scene server branches, after the player controls the virtual object to enter the virtual scene, the virtual object is allocated to one of the mirror scene servers according to the preset allocation rules, thereby reducing the single-machine load of a single mirror scene server. Different mirror scene servers share a part of the scene data. The shared scene data is synchronously updated in real time for all virtual objects carried by the same mirror scene server, which is equivalent to the field of view displayed by the terminal can synchronously display part of the scene content, but the field of view of players in different scene instances is not interoperable, which is equivalent to the field of view cannot display virtual objects controlled by other players. For example, in a game task of jointly attacking monsters, monster data (such as health value, position, etc.) is shared between different instances, and each player's terminal can synchronously display the monster's health value and position, but cannot display virtual objects controlled by other players.

[0119] It can be seen that the line division mechanism provides a poor interactive experience for players and is not suitable for games with strong interactive experience for players.

[0120] Reference Figure 5 , Figure 5 A schematic diagram of an optional architecture of a scene server based on map grids provided in an embodiment of the present application.

[0121] Based on this, the embodiments of the present application can improve the single-machine carrying capacity of the scene server through map grids. Since a single scene server cannot carry a virtual scene with a large area, for a large world map with a large area, the large world map can be divided into multiple blocks, each block can correspond to a virtual scene, so the large world map can be composed of multiple virtual scenes. For example, the large world map is composed of virtual scenes such as virtual scene 1 and virtual scene 2, and different virtual scenes are carried by different scene servers. For example, scene server 1 is used to carry virtual scene 1, and scene server 2 is used to carry virtual scene 2, thereby reducing the single-machine carrying capacity of a single scene server.

[0122] Specifically, refer to Figure 6 , Figure 6 A schematic diagram of another optional architecture of a scene server based on map grids provided in an embodiment of the present application.

[0123] Among them, virtual scene 1 and virtual scene 2 are adjacent to each other. The partial area of ​​virtual scene 1 adjacent to virtual scene 2 is used as the critical area of ​​virtual scene 1, and the other areas of virtual scene 1 are used as the regular area of ​​virtual scene 1. Similarly, the partial area of ​​virtual scene 2 adjacent to virtual scene 1 is used as the critical area of ​​virtual scene 2, and the other areas of virtual scene 2 are used as the regular area of ​​virtual scene 2.

[0124] In a possible implementation, the large world map can be divided into multiple blocks, each block can correspond to a virtual scene, and there will be adjacent virtual scenes in the large world map. One of the virtual scenes in the large world map is used as the first virtual scene, and the virtual scene adjacent to the first virtual scene is used as the second virtual scene. There is no overlapping area between the first virtual scene and the second virtual scene. Then, the scene server carrying the first virtual scene is used as the first scene server, and the scene server carrying the second virtual scene is used as the second scene server. In the mutually adjacent first virtual scene and second virtual scene, the partial area of ​​the first virtual scene adjacent to the second virtual scene can be used as the critical area of ​​the first virtual scene, and the partial area of ​​the second virtual scene adjacent to the first virtual scene can also be used as the critical area of ​​the second virtual scene. For example, the boundary between the first virtual scene and the second virtual scene is used as the first critical boundary of the critical area, and any point on the first critical boundary is used as the first reference point of the critical area. The second reference point corresponding to each first reference point is determined based on a preset critical distance, and the second critical boundary of the critical area is determined according to all second reference points. The area between the first critical boundary and the second critical boundary is used as the critical area.

[0125] Specifically, the first critical boundary can be a closed surface, and the closed surface where the first critical boundary is located is taken as the first closed surface. When determining the critical area of ​​the second virtual scene, any point on the first closed surface is taken as the first reference point, and each first reference point is traversed to determine the normal of the first closed surface on the first reference point, and the direction of the normal toward the second virtual scene is taken as the reference direction of the first reference point. By limiting the distance between the second reference point and the first reference point to be the critical distance, and the direction from the first reference point to the second reference point is the same as the reference direction of the first reference point, and limiting the second reference point to be within the second virtual scene, the second reference point corresponding to each first reference point can be determined, and another closed surface can be formed by the second reference points. The other closed surface is taken as the second critical boundary, and the area between the first critical boundary and the second critical boundary is taken as the critical area.

[0126] Among them, the critical distance can be the maximum viewing distance of the target virtual object. The maximum viewing distance of the target virtual object refers to the farthest distance that the target virtual object can observe in the large world map. Assuming that the target virtual object is located at the boundary between the first virtual scene and the second virtual scene, the farthest distance that the target virtual object can observe the second virtual scene is the maximum viewing distance of the target virtual object. Therefore, the critical distance can be taken as the maximum viewing distance of the target virtual object. Assuming that there are multiple target virtual objects, the maximum value of the maximum viewing distances of each target virtual object is taken as the critical distance.

[0127] In another possible implementation, referring to the above-mentioned first virtual scene and second virtual scene, the difference is that there is an overlapping area between the first virtual scene and the second virtual scene. Specifically, the first virtual scene and the second virtual scene will share all scene data in the overlapping area. Similarly, the critical area can also be determined in the non-overlapping area of ​​the second virtual scene. The boundary between the overlapping area and the non-overlapping area of ​​the second virtual scene can be used as the first critical boundary of the critical area, and then the second critical boundary can be determined in combination with the critical distance, and then the area between the first critical boundary and the second critical boundary can be used as the critical area.

[0128] Among them, the first virtual scene and the second virtual scene can both include multiple virtual objects. The virtual object in the first virtual scene is used as the target virtual object, and the virtual object in the critical area of ​​the second virtual scene is used as the critical virtual object. The terminal can display the field of view of the controlled target virtual object. The field of view range of the target virtual object will affect the content of the field of view picture. The larger the field of view range, the more content of the field of view picture is usually. On the contrary, the smaller the field of view range, the less content of the field of view picture is usually. Since the second virtual scene is adjacent to the first virtual scene, and the first attribute data of the critical virtual object is collected by the second scene server, when the critical virtual object is within the field of view of the target virtual object In order to effectively display the critical virtual object in the field of view displayed by the terminal, the second scene server needs to send the collected first attribute data to the first scene server, so that the first scene server can send the first attribute data to the terminal. Since the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area, the first attribute data can be layered according to the position of the critical virtual object in the critical area to achieve the clipping effect of the first attribute data, reduce the amount of the first attribute data synchronized between the first scene server and the second scene server, reduce the network traffic for synchronizing the first attribute data, and thus improve the stability of subsequent terminals when displaying the field of view.

[0129] Among them, the large world map composed of multiple virtual scenes mentioned in this embodiment can be used in the game field as well as in other technical fields. The embodiment of the present application does not make specific limitations on this. For example, in the field of simulated flight technology, the pilot can control the virtual aircraft through the terminal to conduct flight training in the virtual world. In order to improve the training effect, it is necessary to ensure that the virtual world has a sufficiently large area. Therefore, the virtual world can be spliced ​​together by multiple virtual scenes. The virtual world used for flight training is equivalent to a large world map. In the large world map, it can be achieved without waiting for the virtual scene to be loaded, thereby effectively enhancing the pilot's sense of reality during the training process.

[0130] Among them, the area range of the virtual scene carried by the scene server can be changed dynamically. In the big world map, the area range of the virtual scene carried by the scene server can be adjusted through dynamic load balancing, so as to timely reduce the load of the scene server and effectively avoid overloading the scene server. Correspondingly, the area range of the critical area in the virtual scene can also change dynamically. Assuming that the area range of the first virtual scene and the second virtual scene changes, the boundary between the first virtual scene and the second virtual scene will also change accordingly. Based on the changed boundary, the area range of the critical area in the second virtual scene can be re-determined. Based on the critical area after the area range is re-determined, the critical virtual object in the critical area can be re-determined, and then the second scene server collects the first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area.

[0131] Specifically, the load status of each scene server is obtained at regular intervals or in real time. Generally speaking, the more virtual objects a scene server carries, the greater the load on the scene server will be. Then, the area range of the virtual scenes carried by each scene server is adjusted according to the load status. After the adjustment, part of the scene data of the scene server with a larger load is transferred to other scene servers with a smaller load. This is equivalent to adjusting a part of the virtual scenes carried by the scene server with a larger load to be carried by other adjacent scene servers, thereby avoiding overloading of the scene server.

[0132] For example, in a game, one part of the virtual scenes in the seamless map can be set as a task scene, and the other part of the virtual scenes can be set as a non-task scene. Virtual objects can complete game tasks in the task scene, but virtual objects cannot complete game tasks in the non-task scene. Generally speaking, most players will control virtual objects to complete game tasks in the task scene to obtain game rewards. The scene server that carries the task scene is used as the task scene server, and the scene server that carries the non-task scene is used as the non-task scene server. Assuming that the task scene carried by the task scene server has the same area range as the non-task scene carried by the non-task scene server, the number of virtual objects carried by the task scene server is usually greater than the number of virtual objects carried by the non-task scene server. Therefore, in order to balance the load between the scene servers, the area range of the virtual scene carried by the scene server can be adjusted so that the area range of the task scene carried by the task scene server is smaller than the area range of the non-task scene carried by the non-task scene server, which can effectively reduce the number of virtual objects carried by the task scene server, thereby avoiding overloading of the task scene server.

[0133] For example, in the game, you can also set a time-limited task, stipulating that the time-limited task needs to be completed within a limited time period and in a limited task scene. The scene server that carries the limited task scene is used as a limited scene server, and the remaining scene servers are used as non-limited scene servers. Within the limited time period, the number of virtual objects carried by the limited scene server will usually surge. Through dynamic load balancing, a part of the virtual scenes of the limited task scene carried by the limited task scene server can be adjusted to be carried by other adjacent non-limited task scene servers, thereby avoiding overloading of the limited task scene server.

[0134] Among them, after receiving the first attribute data, the first scene server will cache the first attribute data in the cache area. In the subsequent process of sending the first attribute data to the terminal, when the critical area is searched, the first attribute data can be directly read from the cache area, and the critical virtual object will not be unable to be included in the field of view due to cross-scene server reasons.

[0135] In one possible implementation, the first attribute data of the critical virtual object sent by the second scene server is received frame by frame. Specifically, when the first attribute data of the critical virtual object sent by the second scene server is not received within the receiving time of the current frame, the first attribute data of the previous frame in the cache area is used as reference attribute data; the first attribute data of the current frame is predicted according to the reference attribute data to obtain predicted attribute data, and the predicted attribute data is used as the first attribute data of the current frame.

[0136] Among them, when the network fluctuates or the scene server is overloaded in a short time, message delays will occur. Therefore, when the first attribute data of the critical virtual object sent by the second scene server is not received within the receiving time of the current frame, it can be regarded as a message delay. In order to avoid the field of view being stuck, it is necessary to predict the state of the critical virtual object in the current frame. The state of the critical virtual object in the current frame can be predicted based on the state of the critical virtual object in the previous frame. Specifically, the first attribute data of the previous frame in the cache area is used as reference attribute data. The first attribute data of the current frame can be predicted based on the reference attribute data, that is, the predicted attribute data is predicted, and the predicted attribute data can be subsequently sent to the terminal. In subsequent frames, if the first attribute data can be received in real time, the first attribute data received in real time can be re-sent to the terminal. During the message delay, the predicted attribute data can be sent to the terminal through interpolation prediction, thereby achieving a smooth transition of the field of view, thereby improving the stability of subsequent terminals when displaying the field of view.

[0137] In one possible implementation, the reference attribute data includes historical position, direction and moving speed, the predicted attribute data includes current position, and the first attribute data of the current frame is predicted based on the reference attribute data to obtain the predicted attribute data. Specifically, the time interval between the current frame and the previous frame can be determined, and the moving distance of the critical virtual object can be determined based on the moving speed and the time interval; the current position is predicted based on the historical position, direction and moving distance.

[0138] Among them, the reference attribute data can indicate the motion state of the critical virtual object in the previous frame. Therefore, the reference attribute data may include historical position, direction and moving speed. The historical position refers to the position of the critical virtual object in the critical area in the previous frame, the direction refers to the moving direction of the virtual object in the previous frame, and the moving speed refers to the moving speed of the virtual object in the previous frame. Then, the moving distance of the virtual object can be determined in combination with the time interval between the two frames, and then the current position used to indicate the position of the virtual object in the current frame can be predicted.

[0139] Exemplarily, a spatial rectangular coordinate system is established with a point in the critical area as the origin. It is assumed that the historical coordinates corresponding to the position of the critical virtual object in the critical area in the previous frame are (10,10,10), that is, the historical position is (10,10,10), and the moving direction of the virtual object in the previous frame is the positive direction of the y-axis, that is, the direction is the positive direction of the y-axis. The moving speed of the virtual object in the previous frame is 10 units per second, and the time interval between the previous frame and the current frame is 0.1 seconds. The moving distance of the critical virtual object is determined to be 1 unit based on the moving speed and the time interval. Based on the historical position, direction and moving distance, it is predicted that the position of the virtual object in the current frame is (10,11,10), that is, the current position is (10,11,10). During the message delay, the predicted attribute data can be sent to the terminal through interpolation prediction, thereby achieving a smooth transition of the field of view, thereby improving the stability of subsequent terminals when displaying the field of view.

[0140] In one possible implementation, when the predicted attribute data is predicted, the predicted current position of the critical virtual object can be used as the first attribute data. After the first attribute data is cached in the cache area, the positional relationship between the critical virtual object and the critical area can be determined based on the area range information and the current position by obtaining the area range information of the critical area. When the positional relationship indicates that the critical virtual object leaves the critical area, the first attribute data in the cache area is deleted.

[0141] Among them, when the first attribute data of the critical virtual object sent by the second scene server is not received within the receiving time of the current frame, it can be regarded as a message delay. Through prediction processing, the current position of the critical virtual object in the current frame can be predicted, and then combined with the area range information of the critical area, the positional relationship between the critical virtual object and the critical area is determined. The positional relationship can indicate that the critical virtual object is in the critical area, for example, the coordinates corresponding to the current position are within the range indicated by the critical area. The positional relationship can also indicate that the critical virtual object leaves the critical area, for example, the coordinates corresponding to the current position are outside the range indicated by the critical area; when the positional relationship indicates that the critical virtual object leaves the critical area, the virtual object no longer belongs to the critical virtual object after leaving the critical area. Therefore, when it is determined that the critical virtual object is in a state of leaving the critical area in the current frame, it is necessary to delete the first attribute data in the cache area, and the field of view of the current frame involving the critical area no longer displays the virtual object leaving the critical area.

[0142] In one possible implementation, the reference attribute data has multiple dimensions, and the first attribute data of the current frame is predicted based on the reference attribute data to obtain predicted attribute data. Specifically, the reference attribute data of various dimensions may be converted into a first feature vector, and multiple first feature vectors may be concatenated to obtain a target feature vector. The target feature vector may be input into a prediction model for predicting the first attribute data of the current frame to obtain predicted attribute data.

[0143] Specifically, refer to Figure 7 , Figure 7 A schematic diagram of an optional application architecture of the prediction model provided in an embodiment of the present application.

[0144] Among them, reference attribute data of different dimensions are used to indicate different states of critical virtual objects. For example, the reference attribute data of one dimension include life value, which is used to indicate the life state of the critical virtual object. The reference attribute data of another dimension include position, direction and moving speed, which are used to indicate the motion state of the critical virtual object. First, the reference attribute data are extracted by using an encoder, and the reference attribute data of different dimensions are respectively converted into first feature vectors. Then, the first feature vectors of each dimension can be sequentially spliced, and multiple shorter first feature vectors can be spliced ​​into a longer target feature vector. Then, the target feature vector is input into the prediction model, and the prediction attribute data is predicted by the prediction model.

[0145] In a possible implementation, the prediction model is a pre-trained neural network model. The prediction model can predict the first attribute data of the next frame according to the feature vector of the first attribute data of any input frame. The prediction model can be trained by the following steps:

[0146] Acquire sample attribute data of the sample frame and reference attribute data of the next frame of the sample frame, convert the sample attribute data of various dimensions into a second feature vector, and concatenate multiple second feature vectors to obtain a sample feature vector;

[0147] Input the sample feature vector into the prediction model to obtain training attribute data;

[0148] The model loss value of the prediction model is determined according to the training attribute data and the benchmark attribute data, and the prediction model is trained according to the model loss value.

[0149] Among them, the sample frame used to train the prediction model and the next frame of the sample frame are all historical frames. The historical frame refers to the frame before the current frame. Therefore, the sample attribute data and the benchmark attribute data are all historical attribute data. The historical attribute data refers to the first attribute data sent from the second scene server to the first scene server before the current frame. During the training process, the sample attribute data of different dimensions are converted into second feature vectors respectively, and then the second feature vectors of each dimension can be sequentially spliced, and multiple shorter second feature vectors can be spliced ​​into a longer sample feature vector. Then, the sample feature vector is input into the prediction model, and the training attribute data is predicted by the prediction model. The model loss value is determined according to the predicted training attribute data and the actual benchmark attribute data. The prediction model is trained by the model loss value, which can effectively improve the accuracy of the prediction model.

[0150] Among them, multiple groups of sample attribute data and benchmark attribute data can be used to train the prediction model, thereby improving the accuracy of the prediction model.

[0151] Step 202: When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, first attribute data of the current frame is read from the buffer.

[0152] The terminal for controlling the target virtual object refers to a terminal connected to the first scene server, and the player can control the target virtual object to move in the first virtual scene through the terminal.

[0153] Taking the first-person perspective display of a virtual scene as an example, the field of view area of ​​the target virtual object is determined according to the viewing position and field of view angle of the target virtual object in the first virtual scene, that is, the field of view range of the target virtual object is determined. Some critical areas of the second virtual scene can be located within the field of view of the target virtual object. In order to ensure the integrity of the field of view, when the critical virtual object is within the field of view of the target virtual object controlled by the terminal, the state of the critical virtual object in this part of the critical area needs to be sent to the terminal. Therefore, by reading the cache area, the first attribute data of the current frame is obtained, and the first attribute data is used to indicate the state of the critical virtual object in this part of the critical area.

[0154] Step 203: Send the first attribute data of the current frame to the terminal, so that the terminal can refresh the field of view of the target virtual object according to the first attribute data.

[0155] Among them, the message multicast of the first attribute data is realized, and the first scene server no longer synchronizes the first attribute data in the second scene server according to the field of view of a single target virtual object, but receives and caches the first attribute data sent by the second scene server frame by frame. When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, the first attribute data of the current frame is read from the cache area and sent to the terminal, so that the terminal can refresh the field of view of the target virtual object to ensure the integrity of the field of view, avoid repeated synchronization of the same first attribute data from the second scene server, realize the unified collection and batch distribution of the first attribute data, effectively reduce the number of data interactions between different scene servers, and thus avoid overloading of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0156] In one possible implementation, there are multiple target virtual objects, each of which is controlled by a different terminal. The first attribute data of the current frame is sent to the terminal. Specifically, the first attribute data of the current frame may be encoded to obtain encoded data, and an attribute delivery list corresponding to each target virtual object is obtained. The encoded data is added to the attribute delivery list corresponding to each target virtual object, and the attribute delivery list is sent to the corresponding terminal.

[0157] Specifically, refer to Figure 8 , Figure 8 Another optional flowchart of the data processing method provided in the embodiment of the present application.

[0158] Among them, before sending the first attribute data, the first attribute data can be encoded by a coding method with a reduced bit rate to obtain encoded data, and the encoded data is sent to the terminal, which can improve data transmission efficiency, reduce the amount of transmitted data, and reduce the network traffic for synchronizing the first attribute data, thereby improving the stability of subsequent terminals when displaying the field of view; for multiple terminals connected to the first scene server, the target virtual object controlled by each terminal can correspond to an attribute delivery list. Before sending the encoded data, the attribute delivery list that meets the field of view requirements is first determined according to the encoded data. Specifically, when the encoded data is within the field of view of the target virtual object corresponding to the attribute delivery list, the attribute delivery list meets the field of view requirements, and then the encoded data is added in batches to each attribute delivery list that meets the field of view requirements, thereby realizing batch delivery of the first attribute data, which can effectively reduce the number of data interactions between different scene servers, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0159] Specifically, refer to Fig. 9 , Fig. 9 A schematic diagram of an optional architecture of an attribute delivery list provided in an embodiment of the present application.

[0160] Among them, the first virtual scene may include multiple target virtual objects, and different target virtual objects may be controlled by different terminals. In order to realize batch delivery of the first attribute data, a corresponding attribute delivery list may be set for each target virtual object. After obtaining the first attribute data of the critical virtual object, it is necessary to determine the visual relationship between the critical virtual object and each target virtual object based on the field of view of each target virtual object. The visual relationship may indicate that the critical virtual object is within the field of view of the target virtual object, and the visual relationship may also indicate that the critical virtual object is outside the field of view of the target virtual object. For any target virtual object, when the visual relationship indicates that the critical virtual object is within the field of view of the target virtual object, the encoded data obtained by encoding the first attribute data of the critical virtual object is added to the corresponding attribute delivery list of the target virtual object.

[0161] Exemplarily, the first virtual scene may include target virtual objects such as target virtual object 1, target virtual object 2, and target virtual object k. Target virtual object 1 corresponds to attribute delivery list 1, target virtual object 2 corresponds to attribute delivery list 2, and target virtual object k corresponds to attribute delivery list k. The coded data A1 is obtained by encoding the first attribute data of critical virtual object 1, the coded data A2 is obtained by encoding the first attribute data of critical virtual object 2, and the coded data A3 is obtained by encoding the first attribute data of critical virtual object 3. Critical virtual object 1 is located within the field of view of target virtual object 1 and target virtual object 2, critical virtual object 2 is located within the field of view of target virtual object 2 and target virtual object k, and critical virtual object 3 is located within the field of view of target virtual object k. Therefore, the coded data A1 is distributed in batches to attribute delivery list 1 and attribute delivery list 2, the coded data A2 is distributed in batches to attribute delivery list 2 and attribute delivery list k, and the coded data A3 is distributed to attribute delivery list k.

[0162] In actual situations, the coded data A1, coded data A2 and coded data A3 may also be distributed to other attribute delivery lists, which is not limited in this embodiment.

[0163] In another possible implementation, in addition to adding the encoded data in batches to each attribute delivery list that meets the field of view requirement, the first attribute data may also be directly added in batches to each attribute delivery list that meets the field of view requirement.

[0164] Specifically, refer to Fig.10 , Fig.10 Another optional flow chart of the attribute delivery list provided in the embodiment of the present application.

[0165] Among them, the coded data A1 of the previous frame is obtained by encoding the first attribute data of different dimensions such as the first attribute data attr1, the first attribute data attr2, and the first attribute data attr3; the coded data A2 of the previous frame is obtained by encoding the first attribute data of different dimensions such as the first attribute data attr4, the first attribute data attr5, and the first attribute data attr6; the coded data A3 of the previous frame is obtained by encoding the first attribute data of different dimensions such as the first attribute data attr7, the first attribute data attr8, and the first attribute data attr9. In the previous frame, the critical virtual objects corresponding to the coded data A1, the coded data A2, the coded data A3, etc. are all located within the field of view of the target virtual object 1, so the coded data A1, the coded data A2, the coded data A3, etc. of the previous frame are all added to the attribute delivery list 1.

[0166] In the current frame, there is a network fluctuation or the scene server is overloaded for a short time, which is equivalent to not receiving the first attribute data of the critical virtual object sent by the second scene server within the receiving time of the current frame. Therefore, it is necessary to predict the first attribute data of the current frame based on the first attribute data of the previous frame to obtain the predicted attribute data.

[0167] Predicted attribute data attr1' is obtained according to the first attribute data attr1, predicted attribute data attr2' is obtained according to the first attribute data attr2, predicted attribute data attr3' is obtained according to the first attribute data attr3, and then attribute data of different dimensions such as predicted attribute data attr1', predicted attribute data attr2', predicted attribute data attr3' are encoded to obtain encoded data A1 of the current frame;

[0168] Predicted attribute data attr4' is obtained according to the first attribute data attr4, predicted attribute data attr5' is obtained according to the first attribute data attr5, predicted attribute data attr6' is obtained according to the first attribute data attr6, and then attribute data of different dimensions such as predicted attribute data attr4', predicted attribute data attr5', predicted attribute data attr6' are encoded to obtain encoded data A2 of the current frame;

[0169] Predicted attribute data attr7' is predicted according to the first attribute data attr7, predicted attribute data attr8' is predicted according to the first attribute data attr8, predicted attribute data attr9' is predicted according to the first attribute data attr9, and then attribute data of different dimensions such as predicted attribute data attr7', predicted attribute data attr8', predicted attribute data attr9' are encoded to obtain encoded data A3 of the current frame;

[0170] In the current frame, the critical virtual objects corresponding to the coding data A1, coding data A2, coding data A3 and other coding data are all within the field of view of the target virtual object 1, so the coding data A1, coding data A2, coding data A3 and other coding data of the current frame are all added to the attribute delivery list 1.

[0171] In a possible implementation, encoding the first attribute data of the current frame to obtain the encoded data may be:

[0172] If the current frame is a key frame, the first attribute data of the current frame is used as the encoding data;

[0173] Alternatively, if the current frame is a non-key frame, the first attribute data of the current frame is differentially encoded based on the first attribute data of the previous frame of the current frame to obtain encoded data.

[0174] Among them, the key frames and non-key frames can be determined first. Since the state of a critical virtual object usually does not change significantly in a short period of time, for example, the virtual object is stationary in the current frame, and the virtual object is likely to be stationary in the next frame of the current frame. Therefore, the bit rate can be compressed by a differential coding encoding method. For example, the current frame is taken as a key frame, and the data of the key frame is directly used as the encoding data. Then, the difference between the next frame of the key frame and the key frame is determined, and the difference is used as the encoding data of the next frame. Therefore, the next frame of the key frame can be regarded as a non-key frame, and so on, the encoding data of each frame can be determined.

[0175] When the terminal receives the encoded data of a key frame, since the first attribute data of the key frame is used as the encoded data, the terminal refreshes the field of view according to the encoded data of the key frame, which is equivalent to the terminal refreshing the field of view according to the first attribute data of the key frame; when the terminal receives the encoded data of the next frame of the key frame, it is assumed that the next frame of the key frame is a non-key frame. Since the encoded data of the non-key frame is obtained by differentially encoding the first attribute data of the previous frame, the terminal will superimpose the first attribute data of the key frame and the encoded data of the non-key frame to obtain the first attribute data of the non-key frame, and then refresh the field of view according to the first attribute data of the non-key frame; therefore, when the terminal receives the encoded data of the key frame, the field of view can be refreshed according to the first attribute data of the key frame. When the terminal receives the encoded data of the non-key frame, it is necessary to first superimpose the encoded data of the non-key frame and the first attribute data of the previous frame of the non-key frame to obtain the first attribute data of the non-key frame, and then refresh the field of view according to the first attribute data of the non-key frame.

[0176] Based on this, since differential encoding has errors, in order to avoid error accumulation offset, it is necessary to determine the current frame as a key frame again every certain number of non-key frames and eliminate the errors by inserting key frames.

[0177] In a possible implementation, the first attribute data of the current frame is encoded to obtain encoded data. The first attribute data of the target frame can be obtained by determining at least one target frame, and the encoded data of the target frame can be replaced with the first attribute data of the target frame; based on the first attribute data of the target frame, the encoded data of each non-key frame between the target frame and the next key frame is updated.

[0178] Among them, the target frame is a non-key frame.

[0179] Among them, after determining the selection rules of key frames and non-key frames for differential coding, the target frame can be inserted at any time to eliminate errors. For example, in the selection rules, it is stipulated that a key frame is inserted every 10 frames, which is equivalent to containing 10 non-key frames between two adjacent key frames. The fifth non-key frame among the 10 non-key frames can be used as the target frame. Before the coding data of the target frame is replaced, the coding data of the target frame is determined based on the coding data of the fourth non-key frame. After the coding data of the target frame is replaced, the coding data of the target frame is updated to the first attribute data of the target frame, which is equivalent to taking the target frame as a key frame. Therefore, the error can be eliminated by inserting the target frame.

[0180] Reference Fig.11 , Fig.11 Another optional flow chart of the data processing method provided in the embodiment of the present application, the data processing method can be executed by the second scene server, the second scene server is used to host the second virtual scene, the data processing method includes but is not limited to the following steps 1101 to 1102.

[0181] Step 1101: According to the position of the critical virtual object in the critical area, first attribute data of the critical virtual object is collected frame by frame.

[0182] Step 1102: Send the first attribute data to the first scene server, so that the first scene server caches the first attribute data in a cache area.

[0183] Among them, the first scene server is used to carry the first virtual scene, the critical virtual object is in the critical area of ​​the second virtual scene, the critical area is the area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is in the field of view of the target virtual object controlled by the terminal, and the first attribute data is collected frame by frame, that is, the first attribute data of each frame of the critical virtual object is collected.

[0184] The data processing method executed by the second scene server and the data processing method executed by the first scene server are based on the same inventive concept, which can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0185] In one possible implementation, first attribute data of the critical virtual object is collected frame by frame based on the position of the critical virtual object in the critical area. Specifically, a target distance between the critical virtual object and the target boundary may be determined based on the position of the critical virtual object in the critical area, and the first attribute data of the critical virtual object may be collected frame by frame based on the target distance.

[0186] The target boundary is the boundary between the first virtual scene and the second virtual scene.

[0187] Among them, there will be virtual scenes adjacent to each other in the big world map. Taking the first virtual scene and the second virtual scene adjacent to each other as an example, the boundary between the first virtual scene and the second virtual scene can be used as the target boundary, and then the partial area of ​​the second virtual scene adjacent to the first virtual scene can be used as the critical area of ​​the second virtual scene. After determining the critical area, the virtual object in the critical area is used as the critical virtual object, and then the position of the critical virtual object in the critical area can be determined, and then according to the position of the critical virtual object in the critical area, the target distance between the critical virtual object and the target boundary can be determined, and then the first attribute data can be layered according to the target distance to achieve the clipping effect of the first attribute data, reduce the amount of first attribute data synchronized between the first scene server and the second scene server, reduce the network traffic for synchronizing the first attribute data, and thus improve the stability of subsequent terminals when displaying the field of view.

[0188] In a possible implementation, the first attribute data of the critical virtual object is collected frame by frame according to the target distance, which may be:

[0189] When the target distance is greater than or equal to a first distance threshold, collecting object dynamic data of the critical virtual object frame by frame, and using the object dynamic data as first attribute data of the critical virtual object;

[0190] Alternatively, when the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, object dynamic data and object appearance data of the critical virtual object are collected frame by frame, and the object dynamic data and object appearance data are used as first attribute data of the critical virtual object;

[0191] Alternatively, when the target distance is less than the second distance threshold, the object dynamic data, object appearance data and prop appearance data of the critical virtual object are collected frame by frame, and the object dynamic data, object appearance data and prop appearance data are used as the first attribute data of the critical virtual object.

[0192] Among them, the prop appearance data is used to display the virtual props equipped on the critical virtual object in the field of view;

[0193] The first distance threshold is greater than the second distance threshold.

[0194] Specifically, refer to Fig.12 , Fig.12 An optional structural diagram of a virtual scene provided in an embodiment of the present application.

[0195] Among them, the first virtual scene and the second virtual scene are adjacent to each other, and the boundary between the first virtual scene and the second virtual scene can be used as the target boundary, and then the partial area of ​​the second virtual scene adjacent to the first virtual scene can be used as the critical area of ​​the second virtual scene. After determining the critical area, the virtual object in the critical area is used as the critical virtual object, and then the position of the critical virtual object in the critical area can be determined, and then according to the position of the critical virtual object in the critical area, the target distance between the critical virtual object and the target boundary is determined, and then the first attribute data is layered according to the target distance, specifically, first determining the size relationship between the target distance and a preset first distance threshold, and the size relationship between the target distance and a preset second distance threshold, wherein, in the critical area, the first distance threshold is used to separate the middle distance area and the long distance area, and the second distance threshold is used to separate the middle distance area and the close distance area.

[0196] When the target distance is greater than or equal to the first distance threshold, it is equivalent to that the distance between the critical virtual object and the first virtual scene is far, and the critical virtual object is in a long-distance area, and only the object dynamic data of the critical virtual object needs to be synchronized. Therefore, the second scene server only needs to collect the object dynamic data of the critical virtual object frame by frame. The object dynamic data refers to the data with high demand from players, for example, the object dynamic data can be attribute data such as the position, direction, moving speed, and health value of the critical virtual object;

[0197] When the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, it is equivalent to that the distance between the critical virtual object and the first virtual scene is moderate, and the critical virtual object is in the medium distance area. It is necessary to synchronize the object dynamic data and object appearance data of the critical virtual object. Therefore, the second scene server needs to collect the object dynamic data and object appearance data of the critical virtual object frame by frame. The object appearance data refers to the data with moderate player demand. For example, the object appearance data can be the attribute data of the clothes, pants, hat, backpack, etc. of the critical virtual object. It can be seen that when the critical virtual object is in the long distance area, it is not necessary to display the virtual item corresponding to the object appearance data in the field of view, and when the critical virtual object is in the medium distance area, it is necessary to display the virtual item corresponding to the object appearance data in the field of view.

[0198] When the target distance is less than the second distance threshold, it is equivalent to that the distance between the critical virtual object and the first virtual scene is closer, and the critical virtual object is in the close distance area. It is necessary to synchronize the object dynamic data, object appearance data and prop appearance data of the critical virtual object. Therefore, the second scene server needs to collect the object dynamic data, object appearance data and prop appearance data of the critical virtual object frame by frame. The prop appearance data refers to data with lower player demand. For example, the prop appearance data can be attribute data such as glasses, watches, necklaces, cloaks, etc. equipped on the critical virtual object, and specifically can be accessories equipped on the critical virtual object. It can be seen that when the critical virtual object is in the long-distance area and the medium-distance area, there is no need to display the virtual props corresponding to the prop appearance data in the field of view, and when the critical virtual object is in the close distance area, it is necessary to display the virtual props corresponding to the object appearance data in the field of view.

[0199] In one possible implementation, the first attribute data may be one type of attribute data of the critical virtual object, and other types of attribute data of the critical virtual object may also be obtained. Therefore, according to the position of the critical virtual object in the critical area, before collecting the first attribute data of the critical virtual object frame by frame, the second attribute data of the critical virtual object may be collected in response to the critical virtual object entering the critical area, and the second attribute data may be sent to the first scene server so that the first scene server can cache the second attribute data in the cache area.

[0200] The second attribute data is other attribute data other than the first attribute data, and the change frequency of the second attribute data is lower than the change frequency of the first attribute data.

[0201] Among them, the attribute data of the critical virtual object may include first attribute data and second attribute data, and the change frequency of the second attribute data is lower than the change frequency of the first attribute data. Specifically, the second attribute data is data that does not change frequently, for example, the object name, object gender, object facial shape and other attribute data of the critical virtual object. When the critical virtual object just enters the critical area, the second scene server can collect the second attribute data of the critical virtual object and send the second attribute data to the first scene server. The first scene server will cache the second attribute data. Because the second scene server has collected the second attribute data of the critical virtual object when the critical virtual object enters the critical area, and the second attribute data is data that does not change frequently, therefore, when the critical virtual object continues to be in the critical area, the second scene server does not need to collect the second attribute data again, which can reduce the number of data interactions between different scene servers, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0202] Specifically, refer to Fig.13 , Fig.13 Another optional structural diagram of a virtual scene provided in an embodiment of the present application.

[0203] Among them, the first virtual scene and the second virtual scene are adjacent to each other, and the third virtual scene and the second virtual scene are also adjacent to each other. The partial area of ​​the second virtual scene adjacent to the first virtual scene is used as the critical area 1 of the second virtual scene, and the partial area of ​​the second virtual scene adjacent to the third virtual scene is used as the critical area 2 of the second virtual scene. The overlapping part of critical area 1 and critical area 2 and the overlapping part of critical area 1 and critical area 2 are used as the overlapping area.

[0204] When the critical virtual object is in the critical area 1, the second scene server needs to send the first attribute data of the critical virtual object to the first scene server;

[0205] When the critical virtual object is in the critical area 2, the second scene server needs to send the first attribute data of the critical virtual object to the third scene server;

[0206] When the critical virtual object is in the overlapping area, the second scene server needs to send the first attribute data of the critical virtual object to the first scene server and the third scene server to ensure the integrity of the field of view.

[0207] Specifically, refer to Fig.14 , Fig.14 A schematic diagram of an optional display interface of a terminal provided in an embodiment of the present application.

[0208] Among them, in the display interface of the terminal, the terminal can display the field of view of the target virtual object. In the field of view, virtual objects P1, P2 and P3 are all in the critical area. Therefore, virtual objects P1, P2 and P3 are all critical virtual objects.

[0209] Specifically, the virtual object P1 is in a close-range state, and the object dynamic data, object appearance data and prop appearance data of the critical virtual object need to be synchronized; the object dynamic data may include the position, orientation, moving speed, health value and other data of the virtual object P1, and the position of the virtual object P1 is displayed in the field of view according to the position data of the virtual object P1. Therefore, the state of the virtual health bar H1 of the virtual object P1 is displayed in the field of view according to the health value data of the virtual object P1; the object appearance data may include the hat, backpack and other data of the virtual object P1. Therefore, the virtual hat C1 of the virtual object P1 is displayed in the field of view according to the hat data of the virtual object P1, and the virtual backpack B1 of the virtual object P1 is displayed in the field of view according to the backpack data of the virtual object P1; the prop appearance data may include the accessory data of the virtual object P1. Therefore, the virtual accessory A1 of the virtual object P1 is displayed in the field of view according to the accessory data of the virtual object P1.

[0210] The virtual object P2 is in a medium-distance state, and it is necessary to synchronize the object dynamic data and object appearance data of the critical virtual object; the object dynamic data may include data such as the position, orientation, moving speed, and health value of the virtual object P2. The position of the virtual object P2 is displayed in the field of view according to the position data of the virtual object P2. Therefore, the state of the virtual health bar H2 of the virtual object P2 is displayed in the field of view according to the health value data of the virtual object P2; the object appearance data may include data such as the backpack of the virtual object P2. Therefore, the virtual backpack B2 of the virtual object P2 is displayed in the field of view according to the backpack data of the virtual object P2.

[0211] The virtual object P3 is in a long-distance state and needs to synchronize the object dynamic data of the critical virtual object; the object dynamic data may include data such as the position, direction, moving speed, and health value of the virtual object P3. The position of the virtual object P3 is displayed in the field of view according to the position data of the virtual object P3. Therefore, the state of the virtual health bar H3 of the virtual object P3 is displayed in the field of view according to the health value data of the virtual object P3.

[0212] The following describes in detail the interaction process between the first scenario server, the second scenario server, and the terminal.

[0213] The first scene server is used to carry the first virtual scene, and the second scene server is used to carry the second virtual scene. The first scene server can establish a connection relationship with multiple terminals through a communication network, and use the virtual object in the first virtual scene as the target virtual object. The target virtual object can be controlled by the terminal connected to the first scene server, and the corresponding target virtual object can be controlled by the terminal to move in the first virtual scene. The area adjacent to the first virtual scene in the second virtual scene is used as a critical area, and the virtual object in the critical area is used as a critical virtual object. The critical virtual object can be controlled by other terminals connected to the second scene server.

[0214] The second scene server can determine the target distance between the critical virtual object and the target boundary according to the position of the critical virtual object in the critical area, wherein the target boundary is the boundary between the first virtual scene and the second virtual scene; when the target distance is greater than or equal to the first distance threshold, the object dynamic data of the critical virtual object is collected frame by frame, and the object dynamic data is used as the first attribute data of the critical virtual object; when the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, the object dynamic data and object appearance data of the critical virtual object are collected frame by frame, and the object dynamic data and object appearance data are used as the first attribute data of the critical virtual object; when the target distance is less than the second distance threshold, the object dynamic data, object appearance data and prop appearance data of the critical virtual object are collected frame by frame, and the object dynamic data, object appearance data and prop appearance data are used as the first attribute data of the critical virtual object, wherein the prop appearance data is used to display the virtual props equipped on the critical virtual object in the field of view; wherein the first distance threshold is greater than the second distance threshold.

[0215] Then the second scene server sends the collected first attribute data to the first scene server. The first scene server can receive the first attribute data of the critical virtual object sent by the second scene server frame by frame. It can be seen that the second scene server can layer the first attribute data according to the position of the critical virtual object in the critical area to achieve the clipping effect of the first attribute data, reduce the amount of the first attribute data synchronized between the first scene server and the second scene server, reduce the network traffic of the synchronized first attribute data, and thus improve the stability of the subsequent terminal when displaying the field of view; on this basis, the first scene server no longer synchronizes the first attribute data in the second scene server for the field of view of a single target virtual object, but receives and caches the first attribute data sent by the second scene server frame by frame. When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, the first attribute data of the current frame is read from the cache area and sent to the terminal, avoiding repeated synchronization of the same first attribute data from the second scene server, realizing the unified collection and batch distribution of the first attribute data, and can effectively reduce the number of data interactions between different scene servers. It can be seen that the data processing method provided in the embodiment of the present application can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0216] When the first scene server does not receive the first attribute data of the critical virtual object sent by the second scene server within the receiving time of the current frame, the first scene server can predict the first attribute data of the current frame based on the first attribute data of the previous frame, and then the first scene server caches the received first attribute data or the predicted first attribute data to the cache area. It can be seen that during the message delay, the first scene server can use interpolation prediction to send the predicted attribute data to the terminal, thereby achieving a smooth transition of the field of view, thereby improving the stability of subsequent terminals when displaying the field of view.

[0217] When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, the first scene server reads the first attribute data of the current frame from the buffer area, and then the first scene server encodes the first attribute data of the current frame to obtain encoded data. The first scene server can obtain the attribute delivery list corresponding to each target virtual object, and the first scene server adds the encoded data to the attribute delivery list corresponding to each target virtual object, and sends the attribute delivery list to the corresponding terminal. It can be seen that the first scene server can encode the first attribute data by a coding method with a reduced bit rate to obtain the encoded data, and send the encoded data to the terminal, which can improve data transmission efficiency, reduce the amount of transmitted data, and reduce the network flow of synchronizing the first attribute data. amount, thereby improving the stability of subsequent terminals when displaying the field of view; for multiple terminals connected to the first scene server, the target virtual object controlled by each terminal can correspond to an attribute delivery list. Before sending the encoded data, the attribute delivery list that meets the field of view requirements is determined according to the encoded data. Specifically, when the encoded data is within the field of view of the target virtual object corresponding to the attribute delivery list, the attribute delivery list meets the field of view requirements, and then the encoded data is added in batches to each attribute delivery list that meets the field of view requirements, thereby realizing the batch delivery of the first attribute data, which can effectively reduce the number of data interactions between different scene servers, thereby avoiding overload of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0218] After the terminal receives the attribute delivery list sent by the first scene server, it can obtain the first attribute data of the critical virtual object through the attribute delivery list, and then refresh the field of view of the target virtual object according to the first attribute data. The terminal can refresh each frame of the displayed field of view frame by frame.

[0219] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.

[0220] Reference Fig.15 , Fig.15An optional structural diagram of a first data processing device provided in an embodiment of the present application is applied to a first scene server, and the first scene server is used to host a first virtual scene. The first data processing device 1500 includes:

[0221] The receiving module 1501 is used to receive the first attribute data of the critical virtual object sent by the second scene server frame by frame, and cache the first attribute data in the cache area, wherein the second scene server is used to carry the second virtual scene, the critical virtual object is in the critical area of ​​the second virtual scene, the critical area is the area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area;

[0222] The reading module 1502 is used to read the first attribute data of the current frame from the buffer area when the critical virtual object is within the field of view of the target virtual object controlled by the terminal;

[0223] The first sending module 1503 is used to send the first attribute data of the current frame to the terminal, so that the terminal can refresh the field of view of the target virtual object according to the first attribute data.

[0224] Furthermore, the receiving module 1501 is specifically used for:

[0225] When the first attribute data of the critical virtual object sent by the second scene server is not received within the reception time of the current frame, the first attribute data of the previous frame in the buffer area is used as the reference attribute data;

[0226] Predict the first attribute data of the current frame according to the reference attribute data to obtain predicted attribute data, and use the predicted attribute data as the first attribute data of the current frame.

[0227] Further, the reference attribute data includes historical position, direction and moving speed, and the predicted attribute data includes current position. The receiving module 1501 is specifically used for:

[0228] Determine the time interval between the current frame and the previous frame, and determine the moving distance of the critical virtual object according to the moving speed and the time interval;

[0229] Predict current location based on historical location, heading, and distance traveled.

[0230] Furthermore, the receiving module 1501 is also used for:

[0231] Get the area range information of the critical area;

[0232] Determine the positional relationship between the critical virtual object and the critical area according to the area range information and the current position;

[0233] When the position relationship indicates that the critical virtual object leaves the critical area, the first attribute data in the buffer area is deleted.

[0234] Furthermore, the reference attribute data has multiple dimensions, and the receiving module 1501 is specifically used for:

[0235] Converting reference attribute data of various dimensions into first feature vectors, and concatenating multiple first feature vectors to obtain a target feature vector;

[0236] The target feature vector is input into a prediction model for predicting first attribute data of the current frame to obtain predicted attribute data.

[0237] Furthermore, the above prediction model is trained through the following steps:

[0238] Acquire sample attribute data of the sample frame and reference attribute data of the next frame of the sample frame, convert the sample attribute data of various dimensions into a second feature vector, and concatenate multiple second feature vectors to obtain a sample feature vector;

[0239] Input the sample feature vector into the prediction model to obtain training attribute data;

[0240] The model loss value of the prediction model is determined according to the training attribute data and the benchmark attribute data, and the prediction model is trained according to the model loss value.

[0241] Furthermore, there are multiple target virtual objects, each of which is controlled by a different terminal. The first sending module 1503 is specifically used for:

[0242] Encoding the first attribute data of the current frame to obtain encoded data;

[0243] Obtain the attribute delivery list corresponding to each target virtual object, and add the encoded data to the attribute delivery list corresponding to each target virtual object;

[0244] Send the attribute delivery list to the corresponding terminal.

[0245] Further, the first sending module 1503 is specifically used for:

[0246] If the current frame is a key frame, the first attribute data of the current frame is used as the encoding data;

[0247] Alternatively, if the current frame is a non-key frame, the first attribute data of the current frame is differentially encoded based on the first attribute data of the previous frame of the current frame to obtain encoded data.

[0248] Furthermore, the first sending module 1503 is further configured to:

[0249] Determine at least one target frame, wherein the target frame is a non-key frame;

[0250] Acquire first attribute data of a target frame, and replace the encoded data of the target frame with the first attribute data of the target frame;

[0251] According to the first attribute data of the target frame, the encoding data of each non-key frame between the target frame and the next key frame is updated.

[0252] The above-mentioned first data processing device 1500 and data processing method are based on the same inventive concept, which can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overloading of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0253] Reference Fig.16 , Fig.16 An optional structural diagram of a second data processing device provided in an embodiment of the present application is applied to a second scene server, and the second scene server is used to carry a second virtual scene. The second data processing device 1300 includes:

[0254] The acquisition module 1601 is used to acquire first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area;

[0255] The second sending module 1602 is used to send the first attribute data to the first scene server, so that the first scene server caches the first attribute data in a cache area;

[0256] Among them, the first scene server is used to host the first virtual scene, the critical virtual object is in the critical area of ​​the second virtual scene, the critical area is the area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is in the field of view of the target virtual object controlled by the terminal.

[0257] Furthermore, the acquisition module 1601 is specifically used for:

[0258] Determine a target distance between the critical virtual object and a target boundary according to a position of the critical virtual object in the critical region, and collect first attribute data of the critical virtual object frame by frame according to the target distance;

[0259] The target boundary is a boundary between the first virtual scene and the second virtual scene.

[0260] Furthermore, the acquisition module 1601 is specifically used for:

[0261] When the target distance is greater than or equal to a first distance threshold, collecting object dynamic data of the critical virtual object frame by frame, and using the object dynamic data as first attribute data of the critical virtual object;

[0262] Alternatively, when the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, object dynamic data and object appearance data of the critical virtual object are collected frame by frame, and the object dynamic data and object appearance data are used as first attribute data of the critical virtual object;

[0263] Alternatively, when the target distance is less than the second distance threshold, object dynamic data, object appearance data and prop appearance data of the critical virtual object are collected frame by frame, and the object dynamic data, object appearance data and prop appearance data are used as first attribute data of the critical virtual object, wherein the prop appearance data is used to display the virtual props equipped on the critical virtual object in the field of view;

[0264] The first distance threshold is greater than the second distance threshold.

[0265] Furthermore, the acquisition module 1601 is also used for:

[0266] In response to the critical virtual object entering the critical area, collecting second attribute data of the critical virtual object, wherein the second attribute data is other attribute data other than the first attribute data, and a change frequency of the second attribute data is lower than a change frequency of the first attribute data;

[0267] The second attribute data is sent to the first scene server, so that the first scene server caches the second attribute data in a cache area.

[0268] The above-mentioned second data processing device 1600 and data processing method are based on the same inventive concept, which can reduce the number of data interactions between different scene servers while reducing the network traffic of the scene server, thereby avoiding overloading of the scene server, thereby effectively improving the stability of the terminal when displaying the field of view.

[0269] The electronic device for executing the above data processing method provided in the embodiment of the present application may be a terminal. Fig.17 , Fig.17 This is a partial structural block diagram of a terminal provided in an embodiment of the present application. The terminal includes: a camera assembly 1710, a memory 1720, an input unit 1730, a display unit 1740, a sensor 1750, an audio circuit 1760, a wireless fidelity (WiFi) module 1770, a processor 1780, and a power supply 1790. Those skilled in the art can understand that Fig.17The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0270] The camera assembly 1710 can be used to capture images or videos. Optionally, the camera assembly 1710 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and the VR (Virtual Reality) shooting function or other fusion shooting functions.

[0271] The memory 1720 may be used to store software programs and modules. The processor 1780 executes various functional applications and data processing of the terminal by running the software programs and modules stored in the memory 1720 .

[0272] The input unit 1730 may be used to receive input digital or character information and generate key signal input related to the terminal's settings and function control. Specifically, the input unit 1730 may include a touch panel 1731 and other input devices 1732 .

[0273] The display unit 1740 may be used to display input information or provided information and various menus of the terminal. The display unit 1740 may include a display panel 1741 .

[0274] The audio circuit 1760 , the speaker 1761 , and the microphone 1762 may provide an audio interface.

[0275] The power source 1790 may be alternating current, direct current, a disposable battery, or a rechargeable battery.

[0276] The number of sensors 1750 may be one or more, and the one or more sensors 1750 include but are not limited to: acceleration sensors, gyroscope sensors, pressure sensors, optical sensors, etc. Among them:

[0277] The acceleration sensor can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1780 can control the display unit 1740 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor. The acceleration sensor can also be used for collecting game or user motion data.

[0278] The gyroscope sensor can detect the body direction and rotation angle of the terminal. The gyroscope sensor can work with the acceleration sensor to collect the user's 3D actions on the terminal. The processor 1780 can implement the following functions based on the data collected by the gyroscope sensor: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0279] The pressure sensor can be set in the side frame of the terminal and / or the lower layer of the display unit 1740. When the pressure sensor is set in the side frame of the terminal, the user's holding signal of the terminal can be detected, and the processor 1780 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor. When the pressure sensor is set in the lower layer of the display unit 1740, the processor 1780 controls the operability controls on the UI interface according to the user's pressure operation on the display unit 1740. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0280] The optical sensor is used to collect the ambient light intensity. In one embodiment, the processor 1780 can control the display brightness of the display unit 1740 according to the ambient light intensity collected by the optical sensor. Specifically, when the ambient light intensity is high, the display brightness of the display unit 1740 is increased; when the ambient light intensity is low, the display brightness of the display unit 1740 is reduced. In another embodiment, the processor 1780 can also dynamically adjust the shooting parameters of the camera assembly 1710 according to the ambient light intensity collected by the optical sensor.

[0281] In this embodiment, the processor 1780 included in the terminal can execute the data processing method of the previous embodiment.

[0282] The electronic device for executing the above data processing method provided in the embodiment of the present application may also be a server. Fig.18 , Fig.18This is a partial structural block diagram of a server provided in an embodiment of the present application. The server 1800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 1822 (for example, one or more processors) and a memory 1832, and one or more storage media 1830 (for example, one or more mass storage devices) storing application programs 1842 or data 1844. Among them, the memory 1832 and the storage medium 1830 can be short-term storage or permanent storage. The program stored in the storage medium 1830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server 1800. Furthermore, the central processing unit 1822 can be configured to communicate with the storage medium 1830 and execute a series of instruction operations in the storage medium 1830 on the server 1800.

[0283] The server 1800 may also include one or more power supplies 1826, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1858, and / or, one or more operating systems 1841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0284] The processor in the server 1800 can be used to execute the data processing method.

[0285] An embodiment of the present application also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the data processing methods of the aforementioned embodiments.

[0286] The embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned data processing method.

[0287] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0288] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0289] It should be understood that in the description of the embodiments of the present application, the meaning of multiple (or multiple items) is more than two, greater than, less than, exceed, etc. are understood to not include the number, and above, below, within, etc. are understood to include the number.

[0290] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0292] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0293] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0294] It should also be understood that the various implementations provided in the embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0295] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions under the shared conditions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A data processing method, characterized in that: Applied to a first scene server, the first scene server is used to host a first virtual scene, and the data processing method includes: Receiving first attribute data of a critical virtual object sent by a second scene server frame by frame, and caching the first attribute data in a cache area, wherein the second scene server is used to carry a second virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, the critical area is an area in the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area; When the critical virtual object is within the field of view of the target virtual object controlled by the terminal, reading the first attribute data of the current frame from the buffer area; The first attribute data of the current frame is sent to the terminal, so that the terminal refreshes the field of view of the target virtual object according to the first attribute data.

2. The data processing method according to claim 1, characterized in that: The step of receiving the first attribute data of the critical virtual object sent by the second scene server frame by frame includes: When the first attribute data of the critical virtual object sent by the second scene server is not received within the reception time of the current frame, the first attribute data of the previous frame in the buffer area is used as reference attribute data; The first attribute data of the current frame is predicted according to the reference attribute data to obtain predicted attribute data, and the predicted attribute data is used as the first attribute data of the current frame.

3. The data processing method according to claim 2, characterized in that: The reference attribute data includes a historical position, a direction, and a moving speed, the predicted attribute data includes a current position, and the predicting the first attribute data of the current frame according to the reference attribute data to obtain the predicted attribute data includes: Determine a time interval between the current frame and the previous frame, and determine a moving distance of the critical virtual object according to the moving speed and the time interval; The current position is predicted based on the historical positions, the orientation and the movement distance.

4. The data processing method according to claim 3, characterized in that: After caching the first attribute data in the cache area, the data processing method further includes: Obtaining area range information of the critical area; Determining a positional relationship between the critical virtual object and the critical area according to the area range information and the current position; When the position relationship indicates that the critical virtual object leaves the critical area, the first attribute data in the buffer area is deleted.

5. The data processing method according to claim 2, characterized in that: The reference attribute data has multiple dimensions, and predicting the first attribute data of the current frame according to the reference attribute data to obtain predicted attribute data includes: Convert the reference attribute data of various dimensions into a first feature vector, and concatenate a plurality of the first feature vectors to obtain a target feature vector; The target feature vector is input into a prediction model for predicting the first attribute data of the current frame to obtain predicted attribute data.

6. The data processing method according to claim 5, characterized in that: The prediction model is trained by the following steps: Acquire sample attribute data of a sample frame and reference attribute data of a next frame of the sample frame, convert the sample attribute data of various dimensions into a second feature vector, and concatenate a plurality of the second feature vectors to obtain a sample feature vector; Inputting the sample feature vector into the prediction model to obtain training attribute data; A model loss value of the prediction model is determined according to the training attribute data and the benchmark attribute data, and the prediction model is trained according to the model loss value.

7. The data processing method according to claim 1, characterized in that: There are multiple target virtual objects, each of which is controlled by a different terminal, and sending the first attribute data of the current frame to the terminal includes: Encoding the first attribute data of the current frame to obtain encoded data; Obtaining an attribute delivery list corresponding to each of the target virtual objects, and adding the encoded data to the attribute delivery list corresponding to each of the target virtual objects; The attribute delivery list is sent to the corresponding terminal.

8. The data processing method according to claim 7, characterized in that: The encoding of the first attribute data of the current frame to obtain encoded data includes: If the current frame is a key frame, using the first attribute data of the current frame as encoding data; Alternatively, if the current frame is a non-key frame, the first attribute data of the current frame is differentially encoded based on the first attribute data of a previous frame of the current frame to obtain the encoded data.

9. The data processing method according to claim 8, characterized in that: The encoding of the first attribute data of the current frame to obtain encoded data further includes: Determining at least one target frame, wherein the target frame is a non-key frame; Acquire the first attribute data of the target frame, and replace the encoded data of the target frame with the first attribute data of the target frame; The encoding data of each non-key frame between the target frame and the next key frame is updated according to the first attribute data of the target frame.

10. A data processing method, characterized in that: Applied to a second scene server, the second scene server is used to host a second virtual scene, and the data processing method includes: According to the position of the critical virtual object in the critical area, collecting first attribute data of the critical virtual object frame by frame; sending the first attribute data to a first scene server, so that the first scene server caches the first attribute data in a cache area; Among them, the first scene server is used to host a first virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, and the critical area is an area in the second virtual scene adjacent to the first virtual scene. The first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is within the field of view of the target virtual object controlled by the terminal.

11. A data processing method according to claim 10, characterized in that: The collecting the first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area includes: Determine a target distance between the critical virtual object and a target boundary according to a position of the critical virtual object in the critical region, and collect first attribute data of the critical virtual object frame by frame according to the target distance; The target boundary is a boundary between the first virtual scene and the second virtual scene.

12. A data processing method according to claim 11, characterized in that: The collecting the first attribute data of the critical virtual object frame by frame according to the target distance includes: When the target distance is greater than or equal to a first distance threshold, collecting object dynamic data of the critical virtual object frame by frame, and using the object dynamic data as first attribute data of the critical virtual object; Alternatively, when the target distance is less than the first distance threshold and greater than or equal to the second distance threshold, object dynamic data and object appearance data of the critical virtual object are collected frame by frame, and the object dynamic data and the object appearance data are used as first attribute data of the critical virtual object; Alternatively, when the target distance is less than the second distance threshold, object dynamic data, object appearance data and prop appearance data of the critical virtual object are collected frame by frame, and the object dynamic data, the object appearance data and the prop appearance data are used as first attribute data of the critical virtual object, wherein the prop appearance data is used to display the virtual props equipped on the critical virtual object in the field of view; The first distance threshold is greater than the second distance threshold.

13. A data processing method according to any one of claims 10 to 12, characterized in that: Before collecting the first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area, the data processing method further includes: In response to the critical virtual object entering the critical area, collecting second attribute data of the critical virtual object, wherein the second attribute data is other attribute data other than the first attribute data, and a change frequency of the second attribute data is lower than a change frequency of the first attribute data; The second attribute data is sent to the first scene server, so that the first scene server caches the second attribute data in the cache area.

14. A data processing device, characterized in that: Applied to a first scene server, the first scene server is used to host a first virtual scene, and the data processing device includes: A receiving module, used for receiving first attribute data of a critical virtual object sent by a second scene server frame by frame, and caching the first attribute data in a cache area, wherein the second scene server is used for carrying a second virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, the critical area is an area of ​​the second virtual scene adjacent to the first virtual scene, and the first attribute data is collected by the second scene server according to the position of the critical virtual object in the critical area; A reading module, configured to read the first attribute data of the current frame from the buffer area when the critical virtual object is within the field of view of the target virtual object controlled by the terminal; The first sending module is used to send the first attribute data of the current frame to the terminal, so that the terminal can refresh the field of view of the target virtual object according to the first attribute data.

15. A data processing device, characterized in that: Applied to a second scene server, the second scene server is used to host a second virtual scene, and the data processing device includes: A collection module, used for collecting first attribute data of the critical virtual object frame by frame according to the position of the critical virtual object in the critical area; a second sending module, configured to send the first attribute data to a first scene server, so that the first scene server caches the first attribute data in a cache area; Among them, the first scene server is used to host a first virtual scene, the critical virtual object is in a critical area of ​​the second virtual scene, and the critical area is an area in the second virtual scene adjacent to the first virtual scene. The first attribute data is used to be read from the cache area by the first scene server and sent to the terminal to refresh the field of view of the target virtual object when the critical virtual object is within the field of view of the target virtual object controlled by the terminal.

16. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the data processing method according to any one of claims 1 to 13 is implemented.

17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 13 is implemented.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 13 is implemented.