Game running method and device, electronic device and storage medium

By establishing binding relationships between game scene objects and multiple scene computing service processes in game technology, data synchronization is achieved, which solves the resource concentration problem caused by game scene segmentation and improves the stability and fluency of game operation.

CN112657180BActive Publication Date: 2024-10-22BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011516612.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-10-22
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

In existing game technology, the segmentation of game scenes leads to the problem of lagging when game characters are concentrated, especially when resources are insufficient.

Method used

By establishing binding relationships between multiple game scene objects and multiple pre-configured scene computing service processes, data synchronization is achieved between each scene computing service process and the problem of resource concentration caused by game scene division is avoided.

Benefits of technology

It has improved the stability of the game running process, avoided the lag problem caused by resource concentration, and made the game run more smoothly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112657180B_ABST
    Figure CN112657180B_ABST
Patent Text Reader

Abstract

The game operation method and device, electronic device and storage medium provided by the present application relate to the field of game technology. In the present application, firstly, a plurality of game scene objects are respectively bound to a plurality of scene computing service processes. Secondly, game operations are performed based on the game data of the bound game scene object through each scene computing service process, and game processing data corresponding to each game scene object is obtained. Then, the object identification data and game-related data of each game scene object are sent to each other scene computing service process through the scene computing service process bound to the game scene object. Based on the above method, the problem of jamming during game operation in the existing game technology can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In existing game technologies, a game scene (such as a map) is generally divided into multiple parts, and then each part is controlled separately. In this way, when the game characters controlled by the user are concentrated in a few parts, the problem of jamming will easily occur. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a game running method and device, an electronic device and a storage medium, so as to improve the problem of lag that easily occurs during the game running process based on existing game technology.

[0004] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0005] A game running method is applied to an electronic device, the electronic device is configured with multiple scene computing service processes, and the game running method includes:

[0006] Establishing binding relationships between the plurality of game scene objects and the plurality of scene computing service processes respectively, wherein each of the scene computing service processes is bound to at least one game scene object;

[0007] Execute game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain game processing data corresponding to each game scene object;

[0008] The object identification data and game-related data of each game scene object are sent to each other scene computing service process through the scene computing service process bound to the game scene object, wherein the game-related data is data with an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data.

[0009] In a preferred embodiment of the present application, in the above-mentioned game running method, the step of performing game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain the game processing data corresponding to each game scene object includes:

[0010] For each of the scene computing service processes, a binding relationship is established between the multiple game scene objects bound to the scene computing service process and the corresponding multiple first computing service threads, wherein the multiple first computing service threads are pre-configured for the scene computing service process, and each of the first computing service threads is bound to at least one game scene object;

[0011] Through each of the first computing service threads, game operations are performed based on the game data of the bound game scene object to obtain game processing data corresponding to each game scene object.

[0012] In a preferred embodiment of the present application, in the above-mentioned game running method, the step of performing game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain the game processing data corresponding to each game scene object includes:

[0013] For each of the scene computing service processes, respectively configure a corresponding second computing service thread for a plurality of game computing tasks included in the scene computing service process, wherein there is a one-to-one correspondence between the second computing service thread and the game computing task;

[0014] Through each of the second computing service threads, the corresponding game computing tasks are executed based on the game data of the game scene object bound to the corresponding scene computing service process, so as to obtain the game processing data corresponding to each game scene object.

[0015] In a preferred selection of the embodiment of the present application, in the above-mentioned game running method, the electronic device is further configured with a scene synchronization service process, and the step of sending the object identification data and game-related data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object, respectively, includes:

[0016] Sending the object identification data and game-related data of each of the game scene objects to the scene synchronization service process through the bound scene computing service process;

[0017] Through the scene synchronization service process, the object identification data and game-related data of each of the game scene objects are sent to each scene computing service process other than the scene computing service process bound to the game scene object.

[0018] In a preferred embodiment of the present application, in the above-mentioned game running method, the electronic device is further configured with a scene storage service process, and the method further includes:

[0019] Sending the object identification data and game-related data of each of the game scene objects to the scene storage service process through the scene synchronization service process;

[0020] Among them, the scene storage service process is used to store the object identification data and the game-related data, and when receiving data recovery request information from any one of the scene computing service processes, the object identification data and the game-related data are sent to the scene computing service process.

[0021] In a preferred embodiment of the present application, in the above-mentioned game running method, the electronic device is also configured with a scene interaction service process, and the method further includes:

[0022] Sending the position update information of the target game scene object to the scene interaction service process through the scene calculation service process, wherein the target game scene object is the game scene object bound to the scene calculation service process;

[0023] Through the scene interaction service process, based on the position update information, a visual relationship update calculation process is performed on the target game scene object to determine other game scene objects that have a visual relationship with the target game scene object;

[0024] Through the scene interaction service process, the game scene objects in each target first field of view container are updated respectively, and the update result is sent to the scene calculation service process bound to the game scene object corresponding to the target first field of view container, wherein each of the target first field of view containers is a first field of view container pre-configured in the scene interaction service process for the target game scene object, other game scene objects that have a visual relationship with the target game scene object before the position information is updated, and other game scene objects that have a visual relationship with the target game scene object before the position information is updated;

[0025] Each scene computing service process that receives the result of the update processing performs update processing on the game scene object in the second field of view container configured in the bound scene computing service process corresponding to the game scene object based on the corresponding update processing result.

[0026] The embodiment of the present application further provides a game running device, which is applied to an electronic device, wherein the electronic device is configured with multiple scene computing service processes, and the game running device includes:

[0027] A binding relationship establishing module, used to establish binding relationships between a plurality of game scene objects and the plurality of scene computing service processes respectively, wherein each of the scene computing service processes is bound to at least one game scene object;

[0028] A game operation execution module, used to execute game operations based on the game data of the bound game scene object through each of the scene computing service processes, and obtain game processing data corresponding to each game scene object;

[0029] The game data sending module is used to send the object identification data and game-related data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object, wherein the game-related data is data with an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data.

[0030] In a preferred embodiment of the present application, in the above-mentioned game running device, the game operation execution module includes:

[0031] A relationship establishing unit, configured to establish, for each of the scene computing service processes, a binding relationship between a plurality of game scene objects bound to the scene computing service process and a plurality of corresponding first computing service threads, wherein the plurality of first computing service threads are pre-configured for the scene computing service process, and each of the first computing service threads is bound to at least one game scene object;

[0032] The operation execution unit is used to execute game operations based on the game data of the bound game scene object through each of the first computing service threads respectively, and obtain game processing data corresponding to each game scene object.

[0033] Based on the above, an embodiment of the present application further provides an electronic device, including:

[0034] Memory for storing computer programs;

[0035] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned game running method.

[0036] On the basis of the above, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, implements the above-mentioned game running method.

[0037] The game operation method and device, electronic device and storage medium provided by the present application establish a binding relationship between multiple game scene objects and multiple pre-configured scene computing service processes, so that game operations can be performed on different game scene objects based on different scene computing service processes, and then the game-related data in the obtained game processing data is sent to other scene computing service processes, so that data synchronization can be achieved between each scene computing service process. Based on this, since data synchronization can be achieved between each scene computing service process, and there is no need to divide the game scene (such as a map), separate control can be achieved, thereby avoiding the problem of game scene objects being easily concentrated in a certain control due to the division of the game scene, and then causing the game operation process to be stuck due to the excessive concentration of game scene objects when resources are not particularly sufficient, that is, the problem of easy stuck in the game operation process based on existing game technology can be improved, so that it has a high practical value.

[0038] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0040] Figure 2 A flowchart of a game operation method provided in an embodiment of the present application.

[0041] Figure 3 A schematic diagram of information interaction between a scene computing service process and each server deployed on an electronic device provided in an embodiment of the present application.

[0042] Figure 4 for Figure 2 Schematic diagram of the flow chart of the sub-steps included in step S120.

[0043] Figure 5 for Figure 2 Schematic diagram of the flow chart of other sub-steps included in step S120.

[0044] Figure 6 A schematic diagram of information interaction between a scene computing service process and a scene synchronization service process provided in an embodiment of the present application.

[0045] Figure 7 for Figure 2 Schematic diagram of the flow chart of other sub-steps included in step S130.

[0046] Figure 8A flowchart of other steps of the game running method provided in an embodiment of the present application.

[0047] Fig. 9 A block diagram of a game running device provided in an embodiment of the present application.

[0048] Icons: 10 - electronic device; 12 - memory; 14 - processor; 100 - game running device; 110 - binding relationship establishment module; 120 - game operation execution module; 130 - game data sending module. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0051] like Figure 1 As shown, an embodiment of the present application provides an electronic device 10 which may include a memory 12 , a processor 14 and a game running device 100 .

[0052] The memory 12 and the processor 14 are electrically connected directly or indirectly to achieve data transmission or interaction. For example, they can be electrically connected to each other through one or more communication buses or signal lines. The game running device 100 includes at least one software function module that can be stored in the memory 12 in the form of software or firmware. The processor 14 is used to execute an executable computer program stored in the memory 12, for example, the software function module and computer program included in the game running device 100, so as to implement the game running method provided in the embodiment of the present application (as described later).

[0053] Optionally, the memory 12 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0054] Furthermore, the processor 14 may be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), and the like.

[0055] Understandably, Figure 1 The structure shown is for illustration only. The electronic device 10 may also include Figure 1 More or fewer components as shown, or with Figure 1 For example, the electronic device 10 may also include a communication unit for exchanging information (such as obtaining game operation information input by a user) with other devices (such as terminal devices such as mobile phones).

[0056] In an alternative example, the electronic device 10 may be a server with data processing capability.

[0057] Combination Figure 2 The embodiment of the present application also provides a game running method, which can be applied to the above-mentioned electronic device 10. The electronic device 10 is configured with multiple scene computing service processes, and the method steps defined in the process related to the game running method can be implemented by the electronic device 10.

[0058] The following will Figure 2 The specific process shown is explained in detail.

[0059] Step S110, establishing binding relationships between the multiple game scene objects and the multiple scene computing service processes respectively.

[0060] In this embodiment, the electronic device 10 can establish binding relationships with multiple game scene objects in the game scene and multiple pre-configured scene computing service processes respectively.

[0061] Each of the scene computing service processes is bound to at least one game scene object.

[0062] Step S120, respectively, through each of the scene computing service processes, execute game operations based on the game data of the bound game scene object to obtain game processing data corresponding to each game scene object.

[0063] In this embodiment, after establishing the binding relationship based on step S110, the electronic device 10 can perform game operations based on the game data of the bound game scene object through each of the scene computing service processes respectively, so that the game processing data corresponding to each game scene object can be obtained.

[0064] That is to say, for each of the scene computing service processes, the game data of the game scene object bound to the scene computing service process can be processed (i.e., game operations are performed) through the scene computing service process. In this way, the game processing data corresponding to each game scene object can be obtained (i.e., game operations are performed based on the game data to obtain game processing data).

[0065] Step S130, sending the object identification data and game-related data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object.

[0066] In this embodiment, after obtaining the game processing data corresponding to each of the game scene objects based on step S120, the electronic device 10 can send the object identification data of each game scene object and the game-related data in the game processing data to each other scene computing service process through the scene computing service process bound to the game scene object.

[0067] The game-related data refers to data having an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data.

[0068] That is to say, for each game scene object, the scene computing service process bound to the game scene object can send the object identification data and game-related data of the game scene object to each scene computing service process other than the scene computing service process.

[0069] Based on the above method, since data synchronization can be achieved between the scene computing service processes, and there is no need to divide the game scenes (such as maps), separate control can be achieved, thereby avoiding the problem of game scene objects being concentrated in a certain control due to the division of the game scene, which in turn leads to the game running process being stuck due to excessive concentration of game scene objects when resources are not particularly sufficient. That is, the problem of game running processes being stuck based on existing game technologies can be improved.

[0070] First, it should be noted that the specific method of establishing the binding relationship is not limited and can be selected according to actual application requirements.

[0071] For example, in an alternative example, combining Figure 3 The electronic device 10 is also pre-installed with a global server, which can be used to determine the binding relationship between the game scene object and the scene computing service process, that is, to bind multiple game scene objects to different scene computing service processes according to certain rules (such as balance rules).

[0072] Among them, considering that the scene computing service process can be used to perform game operations, therefore, when the bound game scene object belongs to a character controlled by the user, in order to obtain the game operation information (as a kind of game data) input by the user, etc., the electronic device 10 is also pre-installed with a gateway server. The gateway server can also be used to obtain the game operation information sent by the game client corresponding to each user, and then, the game operation information is sent to the bound scene computing service process based on the corresponding game scene object, so as to perform game operations, etc.

[0073] Furthermore, considering that there is generally game system information such as user props and user tasks in the game, it is necessary to process the game system information. Based on this, in this embodiment, the electronic device 10 is pre-installed with a logic server for processing the game system information.

[0074] Among them, the result or basis of processing the game system information may need to interact with the scene computing service process based on certain needs. Therefore, in order to make the interaction effective, the electronic device 10 is also pre-installed with a message queue server for forwarding information on the interaction between the scene computing service process and the logical server.

[0075] Furthermore, in an alternative example, the message queue server can also be used to exchange information between the scene computing service process and other servers. For example, for some game data that needs to be persisted, the scene computing service process can exchange information with the database server through the message queue server to obtain or store the game data (such as the level, health, attributes, etc. of the scene object). Similarly, the logic server can also exchange information with the database server based on the message queue server (such as user props, user equipment, user tasks, etc.).

[0076] Secondly, it should be noted that for step S120, the specific method of executing the game operation through the scene computing service process is not limited and can be selected according to actual application requirements.

[0077] For example, in an alternative example, game scene objects belonging to the same scene computing service process can be processed based on the same thread. In this way, a thread can be configured for each of the scene computing service processes to execute game operations.

[0078] For another example, in an alternative example, game scene objects belonging to the same scene computing service process can also be processed based on different threads, so that the reliability and stability of executing game operations can be guaranteed. That is, in this example, multiple threads can be configured for each of the scene computing service processes.

[0079] Among them, for the example of configuring multiple threads in a scene computing service process, different specific configuration methods may result in different specific methods of executing game operations.

[0080] For example, in an alternative example, combining Figure 4 Step S120 may include step S121 and step S122, the specific contents of which are described as follows.

[0081] Step S121: for each scene computing service process, a binding relationship is established between a plurality of game scene objects bound to the scene computing service process and a plurality of corresponding first computing service threads.

[0082] In this embodiment, after establishing the binding relationship between the scene computing service process and the game scene object based on step S110, considering that there are generally multiple game scene objects bound to a scene computing service process, and corresponding to multiple first computing service threads, it is also possible to establish a binding relationship between the multiple game scene objects bound to the scene computing service process and the corresponding multiple first computing service threads for each of the scene computing service processes, so that each of the first computing service threads is bound to at least one game scene object.

[0083] Among them, the multiple first computing service threads can be formed based on the pre-configuration for the scene computing service process (it can be based on the multiple game scene objects bound to the scene computing service process that can be parallelized and split in some execution logic, forming multiple first computing service threads to process the game data of multiple game scene objects in parallel respectively, for example, the basic data of the game scene objects, such as the coordinates, health, combat power, attack power, etc. of the scene objects, can be updated separately). That is to say, for each of the scene computing service processes, the corresponding multiple first computing service threads can be configured in advance for the scene computing service process.

[0084] Step S122: Perform game operations based on the game data of the bound game scene object through each of the first computing service threads to obtain game processing data corresponding to each game scene object.

[0085] In this embodiment, after establishing the binding relationship between the game scene object and the first computing service thread based on step S121, game operations can be performed based on the game data of the game scene object bound to the first computing service thread through each of the first computing service threads respectively. In this way, game processing data corresponding to each game scene object can be obtained.

[0086] That is to say, for each of the first computing service threads, operations can be performed through the first computing service thread based on the game data of the game scene object bound to the first computing service thread (which may include stored data, such as level data of the game scene object, and data acquired in real time, such as game operation information input by the user).

[0087] For example, in another alternative example, combining Figure 5 Step S120 may include step S123 and step S124, the specific contents of which are described as follows.

[0088] Step S123: for each of the scene computing service processes, respectively configure a corresponding second computing service thread for a plurality of game computing tasks included in the scene computing service process.

[0089] In this embodiment, after establishing the binding relationship between the scene computing service process and the game scene object based on step S110, considering that there may be multiple game computing tasks in a scene computing service process, and different game computing tasks run relatively independently, therefore, for each of the scene computing service processes, corresponding second computing service threads can be configured for the multiple game computing tasks included in the scene computing service process. In this way, multiple second computing service threads corresponding to each scene computing service process can be obtained.

[0090] There is a one-to-one correspondence between the second computing service thread and the game computing task. That is, each second computing service thread can be used to execute a game computing task in a scene computing service process, such as a path finding task (such as obtaining a traversable path based on the coordinates of the starting point and the ending point) and a collision check task (such as calculating which objects in the game scene intersect on a straight line from the starting point to the ending point of an object).

[0091] Step S124, respectively, through each of the second computing service threads, based on the game data of the game scene object bound to the corresponding scene computing service process, execute the corresponding game computing task to obtain the game processing data corresponding to each game scene object.

[0092] In this embodiment, after configuring a corresponding second computing service thread for each of the game computing tasks based on step S123, each of the second computing service threads can be used to execute the corresponding game computing task based on the game data of the game scene object bound to the corresponding scene computing service process, that is, to execute the game operation corresponding to the game computing task. In this way, the game processing data corresponding to each game scene object can be obtained.

[0093] That is to say, for each of the second computing service threads, the game computing task corresponding to the second computing service thread can be executed based on the game data of the game scene object bound to the scene computing service process described in the second computing service thread.

[0094] Thirdly, it should be noted that for step S130, the specific method of sending the object identification data and the game-related data through the scene computing service process is not limited and can be selected according to actual application requirements.

[0095] For example, in an alternative example, the scene computing service processes can communicate directly with each other, that is, the scene computing service process can send the object identification data and the game-related data directly to other scene computing service processes.

[0096] For example, in another alternative example, considering that the number of scene computing service processes is generally large, in order to ensure the validity of sending the object identification data and the game-related data, Figure 6 and Figure 7 The electronic device 10 is also configured with a scene synchronization service process, and step S130 may include step S131 and step S132, the specific contents of which are described as follows.

[0097] Step S131, sending the object identification data and game-related data of each of the game scene objects to the scene synchronization service process through the bound scene computing service process.

[0098] In this embodiment, after obtaining the game processing data corresponding to each of the game scene objects based on step S120, the object identification data of each game scene object and the game-related data in the game processing data can be sent to the scene synchronization service process through the scene computing service process bound to the game scene object.

[0099] Step S132, through the scene synchronization service process, the object identification data and game-related data of each of the game scene objects are sent to each scene computing service process other than the scene computing service process bound to the game scene object.

[0100] In this embodiment, after the object identification data and game-related data of each of the game scene objects are sent to the scene synchronization service process based on step S131, the object identification data and game-related data of each of the game scene objects can be sent through the scene synchronization service process to each scene computing service process other than the scene computing service process bound to the game scene object. In this way, the synchronization of the object identification data and game-related data of each of the game scene objects can be achieved between the scene computing service processes.

[0101] It can be understood that in the above example, the defined object identification data may refer to data that needs to be sent to the game client for processing (such as display), which may include, but is not limited to, type data of game scene objects (such as player characters, non-player-controlled characters, static objects, dynamic objects, etc.), unique identification data (Unique Identify), appearance data, coordinate data, health or other attribute data.

[0102] Among them, in the above examples, the player character may refer to a character that the user can control. Non-player controlled characters (NPCs) may simply be characters that are not controllable by the user. Static objects (Scene Static Object) may refer to objects that cannot be moved in the game scene, which may be preset or added during the game, such as houses, etc. Dynamic objects (SceneMovement Object) may refer to objects that can be moved in the game scene, which may be generated by player characters or non-player controlled characters and need to change their positions, such as bullets, skill examples, etc.

[0103] As for the game-related data, as mentioned above, the game-related data can be data with an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data. For example, it can include but is not limited to data used to calculate damage values ​​in battles, hatred values ​​between game scene objects, etc.

[0104] It can be understood that in order to facilitate the synchronization of data between different processes, such as scene computing service processes, through the scene synchronization service process, in this embodiment, different data mechanisms can also be configured.

[0105] For example, in an alternative example, all scene computing service processes can be added to the same data synchronization group. In this way, effective synchronization of data in the data asynchronous group can be achieved. For example, after the scene synchronization service process receives the object identification data and game-related data sent by any scene computing service process, the object identification data and game-related data can be synchronized to each (other) scene computing service process in the corresponding data synchronization group.

[0106] Among them, for other types of data or data synchronization methods between other processes, they can be configured according to actual application requirements and will not be described in detail here.

[0107] Based on the above examples, the inventors of the present application have further discovered through research that in the process of executing game operations based on multiple scene computing service processes, some scene computing service processes may lose data due to factors such as downtime, and therefore, data recovery operations are required.

[0108] Based on this, in order to realize the effective execution of the game operation, the electronic device 10 is further configured with a scene storage service process, and the game running method may further include the following steps:

[0109] The object identification data and game-related data of each of the game scene objects are sent to the scene storage service process through the scene synchronization service process.

[0110] Among them, the scene storage service process is used to store the object identification data and the game-related data, and when receiving data recovery request information from any one of the scene computing service processes, the object identification data and the game-related data are sent to the scene computing service process.

[0111] It is understandable that the above data recovery process, in a specific application example, can be implemented based on the following steps:

[0112] The scene computing service process can send a synchronization data request to the scene synchronization service process. After the scene synchronization service process receives the synchronization data request, the scene synchronization service process will send a synchronization message number ID to the scene computing service process, and notify the scene storage service process to return data to the scene synchronization service process (the notification information includes the synchronization message number ID). Then, the scene storage service process will send reply data to the scene synchronization service process (the reply data includes the synchronization message number ID). Then, after receiving the synchronization message number ID, the scene computing service process can record the synchronization message number ID. In this way, after receiving the forwarded reply data of the scene synchronization service process, the scene computing service process can first store it. In this way, all data stored before the synchronization message number ID can be further discarded based on the synchronization message number ID, and only the reply data including the synchronization message number ID is retained.

[0113] Furthermore, considering that the game scene is generally large, and different game scene objects are located in different positions, different game scene objects will have different game fields of view (that is, it is difficult to use the entire content of the game scene as the effective field of view of each game scene object). Therefore, different field of view containers are generally formed for different game scene objects (which can be understood as real-time relationship data between game scene objects, that is, other game scene objects that a game scene object can see within its field of view). Based on this, in order to effectively update the field of view container (corresponding data) of the game scene object, combined with Figure 8 The game running method may further include step S140, step S150, step S160 and step S170, the specific contents of which are described as follows.

[0114] Step S140: Sending the position update information of the target game scene object to the scene interaction service process through the scene calculation service process.

[0115] In this embodiment, the electronic device 10 is also configured with a scene interaction service process, based on which the electronic device 10 can send the position update information of the target game scene object to the scene interaction service process through the scene calculation service process (for example, in an alternative example, the scene calculation service process can send the position update information to the scene interaction service process through the scene synchronization service process).

[0116] Among them, the target game scene object is the game scene object bound to the scene computing service process, and the position of the game scene object needs to be or has been updated or changed.

[0117] Step S150: Perform visual relationship update calculation processing on the target game scene object based on the position update information through the scene interaction service process to determine other game scene objects that have a visual relationship with the target game scene object.

[0118] In this embodiment, after sending the position update information to the scene interaction service process based on step S140, the electronic device 10 can perform visual relationship update calculation processing on the target game scene object based on the position update information through the scene interaction service process, so that other game scene objects that have a visual relationship with the target game scene object can be determined (for example, in an alternative example, other game scene objects within a certain radius or field of view of the target game scene object can be determined).

[0119] Step S160: updating the game scene objects in each target first field of view container respectively through the scene interaction service process, and sending the update result to the scene calculation service process bound to the game scene object corresponding to the target first field of view container.

[0120] In this embodiment, after determining other game scene objects that have a visual relationship with the target game scene object based on step S150, the electronic device 10 can update the game scene objects in each target first field of view container through the scene interaction service process, and send the update result to the scene calculation service process bound to the game scene object corresponding to the target first field of view container (for example, in an alternative example, it can also be forwarded based on the scene synchronization service process).

[0121] Among them, each of the target first field of view containers is a first field of view container pre-configured in the scene interaction service process for the target game scene object, other game scene objects that have a visual relationship with the target game scene object before the position information is updated, and other game scene objects that have a visual relationship with the target game scene object before the position information is updated.

[0122] Step S170, each scene computing service process that receives the result of the update processing performs update processing on the game scene object in the second field of view container configured in the bound scene computing service process corresponding to the game scene object based on the corresponding update processing result.

[0123] In this embodiment, after sending the result of the update processing to the scene computing service process bound to the corresponding game scene object based on step S160, the electronic device 10 can, through each scene computing service process that receives the result of the update processing, perform update processing on the game scene object in the second field of view container configured in the bound scene computing service process of the corresponding game scene object based on the corresponding update processing result. In this way, the update of the field of view container (i.e., the field of view data) can be achieved in the scene computing service process.

[0124] Based on the above example, in order to facilitate understanding of the update of the field of view container, this embodiment further provides a specific application example, the specific content of which is as follows:

[0125] First, when the scene calculation service process 1 determines that the position of the game scene object A is updated, it can send the position update information corresponding to the update (such as the updated position coordinate information) to the scene interaction service process;

[0126] Secondly, after receiving the position update information, the scene interaction service process can perform visual relationship update calculation processing based on the position update information, such as determining that the game scene object A has game scene objects B and game scene objects C within the visible range, and based on determining whether the upper limit of the visible number has been reached (this step may not be configured in other examples), if the visible number has been reached, only some game scene objects can be selected, such as only taking the game scene object B as the other game scene objects having a visual relationship with the game scene object A, so that the game scene object B is added to the first field of view container of the game scene object A, and the game scene object A is added to the first field of view container of the game scene object B (that is, the update of the first field of view container is realized), and the scene computing service process bound to the game scene object A (that is, the scene computing service process 1) and the scene computing service process bound to the game scene object B (such as the scene computing service process 2) are notified;

[0127] Then, the scene computing service process bound to the game scene object A can add the game scene object B to the second field of view container of the game scene object A based on the notification; the scene computing service process bound to the game scene object B can add the game scene object A to the second field of view container of the game scene object B based on the notification (i.e., update the second field of view container);

[0128] Finally, the scene computing service process bound to the game scene object A and the scene computing service process bound to the game scene object B can respectively send the update processing results of the above-mentioned second field of view container to the corresponding game client (it can be understood that this step is valid when the game scene object A and the game scene object B belong to the player character).

[0129] Furthermore, in the above example, considering that configuring too many scene computing service processes on a device may lead to higher performance requirements for the device or make it difficult for the device to effectively run too many scene computing service processes, some scene computing service processes can also be deployed on other electronic devices other than electronic device 10, and scene synchronization proxy service processes can be deployed on the other electronic devices to realize information interaction between the scene computing service processes on the other electronic devices and the scene computing service processes on electronic device 10.

[0130] Furthermore, it is understandable that the above-mentioned multiple or various processes can be configured for a game scene, which can be called a process group. That is, when a game corresponds to multiple game scenes (in an alternative example, the game scene can be understood as a map), a corresponding process group can be configured for each game scene.

[0131] Combination Fig. 9 The embodiment of the present application further provides a game running device 100, which can be applied to the above electronic device 10. The game running device 100 may include a binding relationship establishing module 110, a game operation executing module 120 and a game data sending module 130.

[0132] The binding relationship establishment module 110 can be used to establish binding relationships between multiple game scene objects and the multiple scene computing service processes, wherein each of the scene computing service processes is bound to at least one game scene object. Figure 2 As shown in step S110 , the relevant contents of the binding relationship establishing module 110 may refer to the above description of step S110 .

[0133] The game operation execution module 120 can be used to execute game operations based on the game data of the bound game scene object through each of the scene computing service processes, and obtain game processing data corresponding to each game scene object. Figure 2 As shown in step S120, the relevant contents of the game operation execution module 120 can refer to the above description of step S120.

[0134] The game data sending module 130 can be used to send the object identification data and game association data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object, wherein the game association data is the data with association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data. In this embodiment, the game data sending module 130 can be used to execute Figure 2 As shown in step S130, the relevant contents of the game data sending module 130 can refer to the above description of step S130.

[0135] Optionally, in an alternative example, the game operation execution module 120 may include a relationship establishing unit and an operation execution unit.

[0136] The relationship establishing unit can be used to establish a binding relationship between the multiple game scene objects bound to the scene computing service process and the corresponding multiple first computing service threads for each of the scene computing service processes, wherein the multiple first computing service threads are pre-configured for the scene computing service process, and each of the first computing service threads is bound to at least one game scene object. The operation executing unit can be used to execute a game operation based on the game data of the bound game scene object through each of the first computing service threads, respectively, to obtain game processing data corresponding to each game scene object.

[0137] On the basis of the above examples, based on different requirements, the game running device 100 may also include other modules with different functions.

[0138] For example, in an alternative example, the electronic device 10 is further configured with a scene synchronization service process and a scene storage service process, and other modules can be used for:

[0139] The object identification data and game-related data of each of the game scene objects are sent to the scene storage service process through the scene synchronization service process; wherein the scene storage service process is used to store the object identification data and the game-related data, and upon receiving data recovery request information from any one of the scene computing service processes, the object identification data and the game-related data are sent to the scene computing service process.

[0140] For another example, in another alternative example, the electronic device 10 is further configured with a scene interaction service process, and other modules may also be used for:

[0141] The scene computing service process sends the position update information of the target game scene object to the scene interaction service process, wherein the target game scene object is the game scene object bound to the scene computing service process; the scene interaction service process performs visual relationship update calculation processing on the target game scene object based on the position update information to determine other game scene objects having a visual relationship with the target game scene object; the scene interaction service process performs update processing on the game scene objects in each target first field of view container, and sends the result of the update processing to the scene computing service process bound to the game scene object corresponding to the target first field of view container, wherein each target first field of view container is a first field of view container configured in advance in the scene interaction service process for the target game scene object, other game scene objects having a visual relationship with the target game scene object before the position information is updated, and other game scene objects having a visual relationship with the target game scene object before the position information is updated; each scene computing service process that receives the result of the update processing performs update processing on the game scene objects in the second field of view container configured in the bound scene computing service process for the corresponding game scene object based on the corresponding result of the update processing.

[0142] In an embodiment of the present application, corresponding to the above-mentioned game running method, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium. When the computer program is run, each step of the above-mentioned game running method is executed.

[0143] Among them, the steps executed when the aforementioned computer program is running will not be described one by one here, and reference can be made to the explanation of the game running method in the previous article.

[0144] In summary, the game operation method and device, electronic device and storage medium provided by the present application establish a binding relationship between multiple game scene objects and multiple pre-configured scene computing service processes, so that game operations can be performed on different game scene objects based on different scene computing service processes, and then the game-related data in the obtained game processing data is sent to other scene computing service processes, so that data synchronization can be achieved between each scene computing service process. Based on this, since data synchronization can be achieved between each scene computing service process, and there is no need to divide the game scene (such as a map), separate control can be achieved, thereby avoiding the problem that the game scene objects are easily concentrated in a certain control due to the division of the game scene, and then the game operation process is caused by excessive concentration of game scene objects when resources are not particularly sufficient. The problem of jamming in the game operation process based on existing game technology can be improved, making it have a high practical value.

[0145] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that 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 boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0147] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0148] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A game running method, characterized in that: Applied to an electronic device, the electronic device is configured with multiple scene computing service processes, and the game running method includes: Establishing binding relationships between multiple game scene objects in an undivided game scene and the multiple scene computing service processes respectively, wherein each of the scene computing service processes is bound to at least one game scene object; Execute game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain game processing data corresponding to each game scene object; The object identification data and game-related data of each game scene object are sent to each other scene computing service process through the scene computing service process bound to the game scene object, wherein the game-related data is data with an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data.

2. The game running method according to claim 1, characterized in that: The step of performing game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain game processing data corresponding to each game scene object includes: For each of the scene computing service processes, a binding relationship is established between the multiple game scene objects bound to the scene computing service process and the corresponding multiple first computing service threads, wherein the multiple first computing service threads are pre-configured for the scene computing service process, and each of the first computing service threads is bound to at least one game scene object; Through each of the first computing service threads, game operations are performed based on the game data of the bound game scene object to obtain game processing data corresponding to each game scene object.

3. The game running method according to claim 1, characterized in that: The step of performing game operations based on the game data of the bound game scene object through each of the scene computing service processes to obtain game processing data corresponding to each game scene object includes: For each of the scene computing service processes, respectively configure a corresponding second computing service thread for a plurality of game computing tasks included in the scene computing service process, wherein there is a one-to-one correspondence between the second computing service thread and the game computing task; Through each of the second computing service threads, the corresponding game computing tasks are executed based on the game data of the game scene object bound to the corresponding scene computing service process, so as to obtain the game processing data corresponding to each game scene object.

4. The game running method according to any one of claims 1 to 3, characterized in that: The electronic device is also configured with a scene synchronization service process, and the step of sending the object identification data and the game-related data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object, respectively, comprises: Sending the object identification data and game-related data of each of the game scene objects to the scene synchronization service process through the bound scene computing service process; Through the scene synchronization service process, the object identification data and game-related data of each of the game scene objects are sent to each scene computing service process other than the scene computing service process bound to the game scene object.

5. The game running method according to claim 4, characterized in that: The electronic device is also configured with a scene storage service process, and the method further includes: Sending the object identification data and game-related data of each of the game scene objects to the scene storage service process through the scene synchronization service process; Among them, the scene storage service process is used to store the object identification data and the game-related data, and when receiving data recovery request information from any one of the scene computing service processes, the object identification data and the game-related data are sent to the scene computing service process.

6. The game running method according to any one of claims 1 to 3, characterized in that: The electronic device is also configured with a scene interaction service process, and the method further includes: Sending the position update information of the target game scene object to the scene interaction service process through the scene calculation service process, wherein the target game scene object is the game scene object bound to the scene calculation service process; Through the scene interaction service process, based on the position update information, a visual relationship update calculation process is performed on the target game scene object to determine other game scene objects that have a visual relationship with the target game scene object; Through the scene interaction service process, the game scene objects in each target first field of view container are updated respectively, and the update result is sent to the scene calculation service process bound to the game scene object corresponding to the target first field of view container, wherein each of the target first field of view containers is a first field of view container pre-configured in the scene interaction service process for the target game scene object, other game scene objects that have a visual relationship with the target game scene object before the position information is updated, and other game scene objects that have a visual relationship with the target game scene object before the position information is updated; Each scene computing service process that receives the result of the update processing performs update processing on the game scene object in the second field of view container configured in the bound scene computing service process corresponding to the game scene object based on the corresponding update processing result.

7. A game running device, characterized in that: Applied to an electronic device, the electronic device is configured with multiple scene computing service processes, and the game running device includes: A binding relationship establishment module, used to establish binding relationships between a plurality of game scene objects in an undivided game scene and the plurality of scene computing service processes, wherein each of the scene computing service processes is bound to at least one game scene object; A game operation execution module, used to execute game operations based on the game data of the bound game scene object through each of the scene computing service processes, and obtain game processing data corresponding to each game scene object; The game data sending module is used to send the object identification data and game-related data of each game scene object to each other scene computing service process through the scene computing service process bound to the game scene object, wherein the game-related data is data with an association relationship between game scene objects belonging to different scene computing service processes in the corresponding game processing data.

8. The game running device according to claim 7, characterized in that: The game operation execution module includes: A relationship establishing unit, configured to establish, for each of the scene computing service processes, a binding relationship between a plurality of game scene objects bound to the scene computing service process and a plurality of corresponding first computing service threads, wherein the plurality of first computing service threads are pre-configured for the scene computing service process, and each of the first computing service threads is bound to at least one game scene object; The operation execution unit is used to execute game operations based on the game data of the bound game scene object through each of the first computing service threads respectively, and obtain game processing data corresponding to each game scene object.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the game running method described in any one of claims 1-6.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed, the game running method described in any one of claims 1 to 6 is implemented.