Virtual scene data processing method and device, electronic equipment and storage medium

By delaying updating the model of the virtual object in the virtual scene of the strategy game, the high overhead problem caused by model synchronization changes during virtual scene area switching is solved, and the stability of the game is improved.

CN119701342APending Publication Date: 2025-03-28YIDIAN LINGXI INFORMATION TECHNOLOGY (GUANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510013207.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In strategy games, when switching scene areas of virtual scenes, the model of virtual objects needs to be synchronized, resulting in a large overhead for game running.

Method used

When presenting in the first scene area of ​​the virtual scene, the initial model of the first object is determined, and when the detail level corresponding to the first model is different from the detail level set by the scene area, the model is updated in a time-lapse manner to reduce the frequency of model synchronous update.

Benefits of technology

It effectively reduces the synchronous update of model caused by scene area changes during virtual scene display, reduces game overhead, and improves the stability of game operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119701342A_ABST
    Figure CN119701342A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual scene data processing method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to a display instruction of a first scene region of a virtual scene, and determining that a first object is displayed as a first model when a first image frame of the first scene region is displayed; when a first detail level corresponding to the first model is different from a second detail level set in the first scene area, determining a second model of the first object corresponding to the second detail level; and when a second image frame of the first scene area is displayed, setting the first object in the first scene area to be updated from the first model to a second model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and more specifically, to a data processing method, device, electronic device and storage medium for a virtual scene. Background Art

[0002] With the rapid development of the gaming industry, players have higher and higher requirements for game visuals, and strategy games (SLG) are one of the most popular games among players. Among the multiple virtual scenes constructed in strategy games, some virtual scenes need to provide players with game information of the entire game for players to make the next decision, and other virtual scenes require more refined graphics to enhance the visual effects of the game screen. However, when players switch from one scene area to another in a virtual scene, the models of some virtual objects being displayed need to change synchronously, which makes the game operation costly. Summary of the invention

[0003] One purpose of the embodiments of the present disclosure is to provide a new technical solution for data processing of a virtual scene.

[0004] According to a first aspect of the present disclosure, a method for processing data of a virtual scene is provided, the method comprising:

[0005] In response to a display instruction of a first scene area of ​​a virtual scene, determining that a first object is displayed as a first model when displaying a first image frame of the first scene area;

[0006] When a first detail level corresponding to the first model is different from a second detail level set for the first scene area, determining a second model of the second detail level corresponding to the first object;

[0007] When displaying the second image frame of the first scene area, the first object in the first scene area is set to be updated from the first model to the second model.

[0008] In a possible implementation, the first model corresponds to a first display perspective of the virtual scene, the second model corresponds to a second display perspective of the virtual scene, and a display range of the virtual scene displayed at the first display perspective is different from a display range displayed at the second display perspective; the first model and the second model differ in at least one of model texture, model outline, material and resolution.

[0009] In a possible implementation, the method further includes:

[0010] Obtaining a model component corresponding to a first object in the virtual scene through a resource loading interface;

[0011] Through the engine interface, set the grouping identifiers corresponding to the various models in the model component;

[0012] In response to a call indication of a first grouping identifier, obtaining a first detail level corresponding to the first model; wherein the grouping identifier includes a first grouping identifier, and the first grouping identifier is associated with the first scene area;

[0013] Determining a second level of detail corresponding to the first grouping identifier of the first object;

[0014] A determination is made as to whether the first level of detail is different from the second level of detail.

[0015] In a possible implementation, the method further includes:

[0016] Inputting the first feature identifier of the first object into a preset update queue;

[0017] According to the update frequency set in the update queue and the first order of the first object in the update queue, it is determined to update the first object when the second image frame is displayed in the first scene area.

[0018] In a possible implementation manner, inputting the first feature identifier of the first object into a preset update queue includes:

[0019] Registering the first feature identifier of the first object in a preset virtual manager, so that the virtual manager registers the first feature identifier in a preset update queue.

[0020] In a possible implementation, the method further includes:

[0021] In response to the uninstall instruction of the virtual scene, the model component corresponding to the first object in the virtual scene and the update queue are instructed to perform deletion processing.

[0022] According to a second aspect of the present disclosure, a data processing device for a virtual scene is also provided, the device comprising:

[0023] a response module, configured to respond to a display instruction of a first scene area of ​​a virtual scene and determine that a first object is displayed as a first model when displaying a first image frame of the first scene area;

[0024] a determination module, configured to determine, when a first detail level corresponding to the first model is different from a second detail level set for the first scene area, a second model of the first object corresponding to the second detail level;

[0025] A setting module is used to set the first object in the first scene area to be updated from the first model to the second model when displaying the first image frame of the first scene area.

[0026] According to a third aspect of the present disclosure, a computer system is also provided, the computer system includes a processor, when the processor executes a program instruction or code, the computer system implements the game scene control method in the first aspect. Exemplarily, the computer system also includes a memory, the memory is used to store the program instruction or code.

[0027] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned virtual scene data processing method when running.

[0028] According to a fifth aspect of the present disclosure, there is also provided a computer program product, comprising a game program, wherein when the game program is executed, the computer executes the steps of the above-mentioned virtual scene data processing method.

[0029] According to a sixth aspect of the present disclosure, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the data processing method of the virtual scene through the computer program.

[0030] A beneficial effect of the embodiments of the present disclosure is that the data processing method of the virtual scene provided by the embodiments of the present disclosure can determine the first model of the first object in the first image frame in the first scene area when the first scene area of ​​the virtual scene needs to be displayed, and when the first detail level corresponding to the first model is different from the second detail level set for the first scene area, the first model is updated to the second model in the second image frame of the first scene area, thereby effectively reducing the occurrence of synchronous updates of the models of virtual objects when the scene area displayed by the virtual scene changes, thereby reducing the overhead of the game and improving the stability during the game operation.

[0031] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.

[0033] Figure 1 A schematic diagram showing the hardware structure of an electronic device that can be used to implement the data processing method for a virtual scene according to an embodiment of the present disclosure;

[0034] Figure 2 A schematic flow chart of a method for processing data of a virtual scene according to some embodiments is shown;

[0035] Figure 3 A schematic diagram showing the structure of a virtual scene according to some embodiments is shown;

[0036] Figure 4 A schematic diagram showing the structure of a data processing device for a virtual scene according to some embodiments;

[0037] Figure 5 A schematic diagram of the hardware structure of an electronic device according to some embodiments is shown. DETAILED DESCRIPTION

[0038] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.

[0039] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present specification and its application or uses.

[0040] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0041] It should be noted that all actions of acquiring signals, information or data in the embodiments of the present disclosure are performed in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.

[0042] The disclosed embodiment provides a new data processing solution for virtual scenes, which allows delayed updating of models of some objects in the virtual scene when a scene area of ​​the virtual scene is displayed, so as to effectively reduce the occurrence of high overhead at a certain time node of the client while ensuring the quality of the game picture.

[0043] Figure 1 A schematic diagram of the hardware structure of an electronic device that can be used to implement the data processing method for a virtual scene according to an embodiment of the present disclosure is shown.

[0044] The electronic device 1000 is a device capable of running a game, i.e., a client. The game may be a local application installed on the electronic device, or a web game, a light application, or a small program, etc., which is not limited here. The electronic device 1000 may be a mobile phone, a tablet computer, a PC, etc., which is not limited here.

[0045] like Figure 1As shown, the electronic device 1000 may include a processor 1101, a memory 1102, an interface device 1103, a communication device 1104, an output device 1105, an input device 1106, and the like. Figure 1 The hardware configuration shown is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.

[0046] The processor 1101 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1102 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1103 includes, for example, a USB interface, a network cable interface, a headphone interface, etc. The communication device 1104 is capable of wired or wireless communication, for example, and the communication device 1104 may include at least one short-range communication module, for example, any module for short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 1104 may also include a remote communication module, for example, any module for WLAN, GPRS, 2G / 3G / 4G / 5G remote communication. The output device 1105 may include, for example, a liquid crystal display or a touch display, a speaker, etc. The input device 1106 may include, for example, a touch screen, a keyboard, a microphone, various sensors, etc.

[0047] In this embodiment, the memory 1102 of the electronic device 1000 is used to store a computer program, and the computer program is used to control the processor 1101 to operate so as to execute the data processing method of the virtual scene according to any embodiment of the present disclosure.

[0048] Next, Figure 1 Taking the electronic device 1000 as an example of an implementation subject, various embodiments of the data processing method of the virtual scene are explained.

[0049] <First Embodiment>

[0050] Figure 2 A data processing method for a virtual scene according to some embodiments is shown. The data processing method for a virtual scene may include the following steps S210 to S230:

[0051] Step S210 , in response to a display instruction of a first scene area of ​​a virtual scene, determining that a first object is displayed as a first model when displaying a first image frame of the first scene area.

[0052] In this embodiment, the display instruction can be triggered by the user's operation, for example, the user triggers the display instruction by performing a drag gesture operation on the touch screen of the electronic device, or it can be triggered when the game process reaches a set game node, for example, the game system triggers the display instruction after the user completes a game task.

[0053] In this embodiment, the first scene area of ​​the virtual scene may be the scene area displayed after switching from the previous second scene area on the user interface, or may be the initial scene area of ​​the virtual scene when the user starts the game.

[0054] In this embodiment, the first scene area may be displayed through multiple image frames, and when the first image frame of the first scene area is displayed, the first object may be presented on the user interface as a first model. In addition, the first model may represent the first object through one or more features such as an outline, a texture, hair, and a texture. For example, the first model is a human outline to represent the first object, and for another example, the first model adds a human texture and a human texture to the area where the human outline is located to represent the first object.

[0055] Step S220 , when the first detail level corresponding to the first model is different from the second detail level set for the first scene area, determining a second model of the second detail level corresponding to the first object.

[0056] In some examples, the virtual scene is pre-set with one or more detail levels, and different detail levels may correspond to different display ranges or display perspectives of the virtual scene. Figure 3 As shown, the virtual scene includes scene area A1 to scene area A9, and the detail level L0D2 of the virtual scene corresponds to a wider display range, that is, a 3×3 display range, such as scene area A1 to scene area A9; the detail level L0D1 of the virtual scene corresponds to a moderate display range, that is, a 2×2 display range, such as scene area A1, scene area A2, scene area A4 and scene area A5; the detail level L0D0 of the virtual scene corresponds to a narrower display range, that is, a 1×1 display range, such as scene area A1. Taking different detail levels as an example, different display perspectives of the virtual scene can be corresponded, such as Figure 3As shown, the virtual scene is configured with scene areas A1 to A9, and the detail level L0D2 of the virtual scene corresponds to a top-down display perspective, that is, when the display perspective is a top-down perspective, the scene areas displayed by the user interface are scene areas A1 to A9; the detail level L0D1 of the virtual scene corresponds to a head-on downward angle of 60°, that is, when the display perspective is a head-on downward angle of 60°, the scene areas displayed by the user interface are, for example, scene areas A2 and A3, and the detail level L0D0 of the virtual scene corresponds to a head-on downward angle of 30°, that is, when the display perspective is a head-on downward angle of 30°, the scene area displayed by the user interface is, for example, scene area A1.

[0057] In some examples, the first object has at least one model, and each model corresponds to a different level of detail. For example, the first object corresponds to three character models, namely model B0, model B1 and model B2, model B0 is a high-precision model, which can be used in a display range with a very close user perspective or a narrow display range, and the high-precision model contains the complete details of the character, delicate textures, complex geometric features and high-resolution maps; model B1 is a medium-precision model, which reduces some details of the character relative to the high-precision model, and is used in a display range with a medium or moderate user perspective, and model B2 is a low-precision model, which can be used in a display range with a very far user perspective or a wide display range, and the low-precision model greatly reduces polygons and details, and can usually remove small geometric features and complex textures.

[0058] In some examples, the second detail level set for the first scene area is detail level L0D2, and the first detail level corresponding to the first model of the first object is detail level L0D1. Then, the first detail level is different from the second detail level, and the model of the first object at detail level L0D2 can be determined.

[0059] Step S230: When displaying the second image frame of the first scene area, the first object in the first scene area is updated from the first model to the second model.

[0060] In this embodiment, the second image frame may be an image frame that is later in time than the first image frame. Furthermore, when the second image frame is displayed, the first object in the first scene area is presented as a second model.

[0061] In some embodiments, in order to achieve a user interface that maintains a relatively reasonable operating overhead when displaying different display ranges, the first model corresponds to a first display perspective of the virtual scene, the second model corresponds to a second display perspective of the virtual scene, and the display range of the virtual scene displayed at the first display perspective is different from the display range displayed at the second display perspective; the first model and the second model differ in at least one of model texture, model outline, material and resolution.

[0062] In some examples, the virtual scene includes scene area A1-scene area A9, and the first display perspective corresponding to the first model is a narrower perspective, that is, the display range of the virtual scene displayed with the first display perspective is a 1×1 display range, and the first model presents the complete details, delicate textures, complex geometric features and high-resolution maps of the first object; the second model corresponds to a moderate display perspective, that is, the display range of the virtual scene displayed with the second display perspective is a 2×2 display range, and the second model hides the hair details of the first object relative to the first model. In this way, when the first scene area is a wider display range, the models displayed in the first scene area can be presented as low-precision models. When the first scene area is a narrower display range, the models displayed in the first scene area can be presented as high-precision models, effectively maintaining a reasonable overhead during the operation of the game.

[0063] The data processing method for a virtual scene according to the first embodiment of the present invention solves the problem in the prior art that when a scene area of ​​a virtual scene switches to another scene area, the models of some virtual objects being displayed need to change synchronously, which makes the game operation costly. Based on this method, when the first scene area of ​​the virtual scene needs to be displayed, the first model of the first object in the first image frame in the first scene area is determined, and when the first detail level corresponding to the first model is different from the second detail level set for the first scene area, the first model is updated to the second model in the second image frame of the first scene area, which effectively reduces the occurrence of synchronous updates of the models of virtual objects when the scene area displayed by the virtual scene changes, thereby reducing the game overhead and improving the stability during the game operation.

[0064] <Second Embodiment>

[0065] In this embodiment, in order to further reduce the overhead during game runtime, after the scene area changes, it can be determined whether the first detail level of the first object is the same as the second detail level set in the first scene area after the change.

[0066] In these embodiments, relative to the first embodiment, before step S220, the method further includes the following steps S310 to S350:

[0067] Step S310: obtaining a model component corresponding to a first object in a virtual scene through a resource loading interface.

[0068] In some examples, the first object may be a prefab created by an editor of the Ejoy2dx engine, and the prefab may contain basic information of an object to be described, such as accessories, attributes, and sub-objects. The prefab may be configured with a model component lod_group, and the model B0-model B2 of the prefab may be added to the model component lod_group, and then the model B0-model B2 may be associated with the corresponding detail level L0D0-detail level L0D2. When the game is running, the client obtains the model component corresponding to the first object in the virtual scene, i.e., the model component lod_group, through the resource loading interface.

[0069] Step S320: Setting the grouping identifiers corresponding to the various models in the model component through the engine interface.

[0070] In some examples, the client sets the group identifiers corresponding to the models B0-B2 in the model component lod_group through the engine interface. For example, the group identifier of the model B0 is T0, the group identifier of the model B1 is T1, and the group identifier of the model B2 is T2.

[0071] Step S330, in response to the call indication of the first grouping identifier, obtaining the first detail level corresponding to the first model; wherein the grouping identifier includes the first grouping identifier, and the first grouping identifier is associated with the first scene area.

[0072] In this embodiment, the association relationship between the first grouping identifier and the first scene area can be pre-set. For example, the first grouping identifier is identifier D, the display range of the first scene area is a display range of 2×2, and the second detail level corresponding to the first grouping identifier is detail level L0D1.

[0073] Step S340: Determine a second detail level corresponding to the first grouping identifier of the first object.

[0074] Step S350 , determining whether the first level of detail is different from the second level of detail.

[0075] In this embodiment, when the first scene area is displayed, the first grouping identifier is called, and the client can respond to the call indication of the first grouping identifier, first query the grouping identifier of the first model of the first object in the first image frame displaying the first scene area to determine the first detail level corresponding to the first model, and then query the second detail level of the first grouping identifier. Moreover, when the first detail level and the second detail level are the same, the first model of the first object does not need to be updated. When the first detail level and the second detail level are different, the first model of the first object needs to be updated to the second model.

[0076] <Third Embodiment>

[0077] In this embodiment, in order to reasonably allocate the first objects in the first scene area for updating, an update queue is set to update the first model of the first object to the second model in the second image frame corresponding to the first sequence according to the first sequence of the first objects in the update queue.

[0078] In these embodiments, relative to the first embodiment, before step S230, the method further includes the following steps S410 and S420:

[0079] Step S410: input a first feature identifier of a first object into a preset update queue.

[0080] In some examples, the first feature identifier is G1, and the feature identifiers in the update queue are G2-G3-G4-G5 in sequence. Then, when the first feature identifier is input into the update queue, the update queue is G2-G3-G4-G5-G1.

[0081] Step S420: determining to update the first object when the second image frame is displayed in the first scene area according to the update frequency set in the update queue and the first order of the first object in the update queue.

[0082] In this embodiment, the update frequency is, for example, a model in which five objects are updated per frame, that is, the client can determine to update the first object in the second image frame displayed in the first scene area according to the first order of the first object in the update queue. For example, if the first order is the sixth in the update queue, then the first object is updated in the next frame after the current frame.

[0083] <Fourth Embodiment>

[0084] In this embodiment, in order to improve the stability during the running of the game, the objects in the virtual scene are uniformly managed through a preset virtual manager.

[0085] In these embodiments, relative to the third embodiment, step S410 may include the following step S510:

[0086] Step S510: registering a first characteristic identifier of a first object into a preset virtual manager, so that the virtual manager registers the first characteristic identifier into a preset update queue.

[0087] In this embodiment, the virtual manager is, for example, a LOD module manager (LOD manager, LOD_MGR), which can take out N objects from the update queue for updating every frame, so that the first object displayed in the first scene area is at a correct level of detail. Here, N can be 5, 10, or 15, etc.

[0088] <Fifth Embodiment>

[0089] In this embodiment, in order to further release the storage resources of the client, when the game is uninstalled for a long time, the model component and the update queue of the first object will also be deleted.

[0090] In these embodiments, relative to the third embodiment, after step S230, the method further includes the following step S610:

[0091] Step S610 , in response to the uninstall instruction of the virtual scene, instructing the model component and the update queue corresponding to the first object in the virtual scene to perform deletion processing.

[0092] In this embodiment, after the user triggers the uninstall control of the game, the client responds to the uninstall instruction of each virtual scene of the game, and instructs the model component and update queue corresponding to the first object in the virtual scene to be destroyed from the client.

[0093] <Device Example>

[0094] Figure 4 FIG. 2 shows a schematic diagram of the structure of a data processing device for a virtual scene according to an embodiment of the present disclosure. Figure 4 As shown, the data processing device 400 of the virtual scene includes a response module 410 , a determination module 420 and a setting module 430 .

[0095] The response module 410 is used to respond to a display instruction of a first scene area of ​​a virtual scene, and determine that the first object is displayed as a first model when displaying a first image frame of the first scene area;

[0096] The determination module 420 is used to determine the second model of the second detail level corresponding to the first object when the first detail level corresponding to the first model is different from the second detail level set in the first scene area;

[0097] The setting module 430 is used to set the first object in the first scene area to be updated from the first model to the second model when displaying the first image frame of the first scene area.

[0098] In some embodiments, the data processing device 400 of the virtual scene also includes a determination module, which is used to obtain a model component corresponding to a first object in the virtual scene through a resource loading interface; set group identifiers corresponding to each model in the model component through an engine interface; obtain a first detail level corresponding to the first model in response to a call indication of the first group identifier; wherein the group identifier includes a first group identifier, and the first group identifier has an association with the first scene area; determine a second detail level corresponding to the first group identifier of the first object; and determine whether the first detail level is different from the second detail level.

[0099] In some embodiments, the data processing device 400 of the virtual scene also includes an input module, which is used to input the first feature identifier of the first object into a preset update queue; according to the update frequency set by the update queue and the first order of the first object in the update queue, determine to update the first object when the second image frame is displayed in the first scene area.

[0100] In some embodiments, the input module is further used to register the first feature identifier of the first object into a preset virtual manager, so that the virtual manager registers the first feature identifier into a preset update queue.

[0101] In some embodiments, the data processing device 400 of the virtual scene further includes an unloading module, which is used to respond to an unloading instruction of the virtual scene and instruct the model component and the update queue corresponding to the first object in the virtual scene to perform deletion processing.

[0102] <Equipment Embodiment>

[0103] Figure 5 FIG. 1 shows a schematic diagram of the hardware structure of an electronic device according to some other embodiments. Figure 5 As shown, the electronic device 500 includes a processor 510 and a memory 520, wherein the memory 520 is used to store a computer program, and the computer program is used to control the processor 510 to operate so as to control the electronic device 500 to execute the data processing method of the virtual scene according to any embodiment of the present disclosure.

[0104] An embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the computer program implements the data processing method of the virtual scene according to any embodiment of the present disclosure.

[0105] The disclosed embodiment also provides a computer program product, which includes a computer program or an instruction, and when the computer program or the instruction is executed by a processor, the data processing method of the virtual scene according to any disclosed embodiment is implemented. The computer program product is, for example, a client.

[0106] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0107] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0108] The embodiments of the present specification may be devices, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present specification.

[0109] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0110] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0111] The computer program instructions for executing the operation of the embodiments of this specification may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or first code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the embodiments of this specification.

[0112] Various aspects of the embodiments of the present specification are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (equipment) and computer program products according to the embodiments of the present specification. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0113] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0114] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0115] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0116] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for processing data of a virtual scene, the method comprising: In response to a display instruction of a first scene area of ​​a virtual scene, determining that a first object is displayed as a first model when displaying a first image frame of the first scene area; When a first detail level corresponding to the first model is different from a second detail level set for the first scene area, determining a second model of the second detail level corresponding to the first object; When displaying the second image frame of the first scene area, the first object in the first scene area is set to be updated from the first model to the second model.

2. The method according to claim 1, wherein: The first model corresponds to a first display perspective of the virtual scene, the second model corresponds to a second display perspective of the virtual scene, and a display range of the virtual scene displayed at the first display perspective is different from a display range displayed at the second display perspective; the first model and the second model differ in at least one of model texture, model outline, material and resolution.

3. The method according to claim 2, wherein: The method further comprises: Obtaining a model component corresponding to a first object in the virtual scene through a resource loading interface; Through the engine interface, set the grouping identifiers corresponding to the various models in the model component; In response to a call indication of a first grouping identifier, a first detail level corresponding to the first model is acquired; wherein the grouping identifier includes a first grouping identifier, and the first grouping identifier is associated with the first scene area; Determining a second level of detail corresponding to the first grouping identifier of the first object; A determination is made as to whether the first level of detail is different from the second level of detail.

4. The method according to claim 1, wherein: The method further comprises: Inputting the first feature identifier of the first object into a preset update queue; According to the update frequency set in the update queue and the first order of the first object in the update queue, it is determined to update the first object when the second image frame is displayed in the first scene area.

5. The method according to claim 4, wherein: The step of inputting the first feature identifier of the first object into a preset update queue includes: Registering the first feature identifier of the first object in a preset virtual manager, so that the virtual manager registers the first feature identifier in a preset update queue.

6. The method according to claim 4, wherein: The method further comprises: In response to the uninstall instruction of the virtual scene, the model component corresponding to the first object in the virtual scene and the update queue are instructed to perform deletion processing.

7. A data processing device for a virtual scene, wherein: The device comprises: a response module, configured to respond to a display instruction of a first scene area of ​​a virtual scene and determine that a first object is displayed as a first model when displaying a first image frame of the first scene area; a determination module, configured to determine, when a first detail level corresponding to the first model is different from a second detail level set for the first scene area, a second model of the first object corresponding to the second detail level; A setting module is used to set the first object in the first scene area to be updated from the first model to the second model when displaying the first image frame of the first scene area.

8. An electronic device, wherein: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the method steps according to any one of claims 1 to 6 under the control of the computer program.

9. A computer-readable storage medium, the computer-readable storage medium comprising a stored computer program, wherein: When the computer program is executed, the method steps of any one of claims 1 to 6 are performed.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.