Efficient synchronization mode of user action data in meta universe
By designing a synchronization system in the Metaverse and using distance division and load monitoring to optimize data transmission, the problem of excessive terminal computing load caused by user action data synchronization is solved, data transmission performance and system stability are improved, and lags and heat generation are avoided. .
Patent Information
- Application Number
- CN202410885214.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
AI Technical Summary
In the metaverse, the real-time synchronization of user action data results in a large amount of data transmitted by the server, which leads to excessive computing workload on the terminal, resulting in lags and heat generation.
A synchronization system is designed, including a server module, a cache module, a distributed database module, a distance division module and a load monitoring module. Data transmission is optimized through distance division and load monitoring, reducing the amount of data transmitted by the server, and using an optimized data synchronization algorithm. and data compression processing, and automatically adds resources and switches backup components through the emergency processing module to ensure system stability.
It effectively improves data transmission performance, reduces terminal computing workload, avoids lagging and heating, and ensures system stability and user experience.
Smart Images

Figure CN118869716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data synchronization, and in particular to an efficient synchronization method for user action data in a metaverse. Background Art
[0002] In the metaverse space, user movement or action data is synchronized to the server and sent by the server to other users in the same space. When a large number of users are active in the same space at the same time, each user's movement data is synchronized to all other users in real time. The server will need to transmit a large amount of data, which will not only take up a lot of bandwidth, but also a single user receiving too much data will cause excessive terminal computing power, resulting in lag and heating.
[0003] In the prior art, it is not convenient to reduce the amount of data transmitted by the server during the transmission of user action data in the Metaverse, which leads to excessive computing power on the terminal, resulting in lag and heating. To this end, we propose an efficient synchronization method for user action data in the Metaverse to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to solve the shortcomings in the prior art that during the transmission of user action data in the metaverse, it is not convenient to reduce the amount of data transmitted by the server, which leads to excessive terminal computing power, lag and heat generation, and to propose an efficient synchronization method for user action data in the metaverse.
[0005] The present application provides an efficient synchronization method for user action data in the Metaverse using the following technical solution:
[0006] An efficient method for synchronizing user action data in a metaverse includes the following steps:
[0007] S1: Prepare a synchronization system, which includes a server module, the server module is connected to a cache module and a data analysis module, the cache module is used to cache the user action data into a memory immediately after it is generated, and transmit the data in the memory to a distributed database module, the data analysis module is connected to a generation module, the generation module is connected to a subscription module, the cache module is connected to a distributed database module, the distributed database module is connected to a distance division module and a data volume calculation module, the distance division module is connected to a monitoring module, the monitoring module is connected to a judgment module, the judgment module is connected to a data transmission module, the data transmission module is connected to a subscription module, and the data transmission module is connected to a data processing module. The data processing module adopts an optimized data synchronization algorithm to synchronize the data transmitted by the data transmission module. The data processing module is connected to a security module, which is used to encrypt and protect the transmitted data and implement corresponding access control and authority management. The security module is connected to a user module, which is connected to a subscription module. The data volume calculation module is connected to a load monitoring module, which is connected to an emergency processing module, which is connected to an extension module and a standby component module. The emergency processing module is used to select an emergency processing method according to the monitoring data of the load monitoring module, the extension module is used to automatically increase resources according to the load situation, and the standby component module is used to automatically switch the standby component according to the operation failure;
[0008] S2: The user's movement or action data is collected through the server module, and the collected data is synchronized to each node in real time through the cache module and the distributed database module, and the data is cached. The distance classification module can classify the users according to the distance between them, and the distance data between the users is monitored in real time through the monitoring module, and the judgment module makes judgments according to the divided distance levels;
[0009] S3: Then, the data volume calculation module can calculate the data volume in the distributed database module, the load monitoring module monitors the load of the distributed data volume module in real time according to the calculated data volume, the emergency processing module sends emergency instructions in real time according to the load situation, automatically increases resources for emergency processing through the expansion module, and automatically switches to the corresponding backup component through the backup component module;
[0010] S4: Finally, the determined data is transmitted to the corresponding user through the data transmission module, the data can be compressed through the data processing module, and the transmitted data is encrypted through the security module, and finally the user module receives the transmitted data.
[0011] Furthermore, the distributed database module includes a data update unit, a data storage unit, a data backup unit and a periodic cleaning unit. The data update unit is connected to the data storage unit, the data storage unit is connected to the data backup unit, and the data backup unit is connected to the periodic cleaning unit. The data update unit is used to receive data sent by the cache module in real time and update the data. The data storage unit is used to store the updated data. The data backup unit is used to process backup of the received data. The periodic cleaning unit is used to regularly clean up the backup data according to the set time. The distributed database module is used to synchronize user action data to each node in real time, and update, store, back up and clean up the user action data.
[0012] Furthermore, the data volume calculation module includes a data extraction unit, a viewing unit, a tool selection unit and a first calculation unit. The extraction unit is connected to the viewing unit, the viewing unit is connected to the tool selection unit, the tool selection unit is connected to the first calculation unit. The data extraction unit is used to extract data stored in the distributed database module, the viewing unit is used to view the properties of the extracted data, the tool selection unit is used to select a corresponding calculation tool, and the first calculation unit is used to perform data volume calculation on the extracted data.
[0013] Furthermore, the distance division module includes a group number determination unit, a group interval determination unit and a sorting unit. The group number determination unit is connected to the group interval determination unit, and the group interval determination unit is connected to the sorting unit. The group number determination unit determines the number of groups according to the amount and characteristics of the data and the analysis requirements. The group interval determination unit is used to determine the group interval according to the maximum and minimum values of all the data and the number of groups divided. The sorting unit is used to sort the data into a frequency distribution table according to the grouping.
[0014] Furthermore, the judgment module includes a rule-making unit, a second calculation unit and a transmission unit, the specification-making unit is connected to the second calculation unit, the second calculation unit is connected to the transmission unit, the rule-making unit is used to specify distance judgment rules, the second calculation unit is used to calculate the distance data between users, and the transmission unit is used to transmit the judged data to the data transmission module.
[0015] In summary, the present application includes at least one of the following beneficial technical effects:
[0016] 1. This solution uses the distance classification module to classify the distance between users, uses the monitoring module to monitor the distance data between users in real time, and uses the judgment module to make judgments based on the classified distance levels, which can greatly improve the data transmission performance;
[0017] 2. The data volume calculation module of this solution calculates the data volume in the distributed database module, the load monitoring module monitors the load of the distributed data volume module in real time according to the calculated data volume, the emergency processing module sends emergency instructions in real time according to the load situation, the expansion module automatically increases resources for emergency processing, and the backup component module automatically switches to the corresponding backup component, which can effectively ensure the stability of operation.
[0018] The present invention can reduce the amount of data transmitted by the server during the user action data transmission process, thereby effectively avoiding the situation where the terminal is stuck and overheated due to excessive computing power. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A structural block diagram of a synchronization system in a highly efficient synchronization mode of user action data in a metaverse proposed by the present invention;
[0020] Figure 2 This is a structural block diagram of a distributed database module in a highly efficient synchronization method of user action data in the metaverse proposed by the present invention;
[0021] Figure 3 This is a structural block diagram of a data volume calculation module in a highly efficient synchronization method of user action data in a metaverse proposed by the present invention;
[0022] Figure 4 It is a structural block diagram of a distance division module in a method for efficiently synchronizing user action data in a metaverse proposed by the present invention;
[0023] Figure 5 This is a structural block diagram of a judgment module in an efficient synchronization method of user action data in the metaverse proposed by the present invention. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0025] Embodiment 1
[0026] Reference Figure 1-Figure 5 , an efficient synchronization method for user action data in the metaverse, comprising the following steps:
[0027] S1: Prepare a synchronization system, the synchronization system includes a server module, the server module is connected to a cache module and a data analysis module, the cache module is used to cache the user action data into the memory immediately after it is generated, and transmit the data in the memory to the distributed database module, the data analysis module is connected to the generation module, the generation module is connected to the subscription module, the cache module is connected to the distributed database module, the distributed database module is connected to the distance division module and the data volume calculation module, the distance division module is connected to the monitoring module, the monitoring module is connected to the judgment module, the judgment module is connected to the data transmission module, the data transmission module is connected to the subscription module, the data transmission module is connected to the data processing module, the data processing module adopts an optimized data synchronization algorithm, and is used to synchronize the data transmitted by the data transmission module, and the optimized data synchronization algorithm adopts a mathematical model formula;
[0028] Mathematical model formula:
[0029] Insert operation: To insert a new record into the database, you can use the following formula:
[0030] I nsert(T,r)=SELECT*INTO T FROM NULL WHERE1=0;
[0031] Query operation: To query a record from the database, you can use the following formula:
[0032] Select(T,r)=SELECT*FROMT WHEREc=r;
[0033] Update operation: To update a record in the database, you can use the following formula:
[0034] Update(T,r,v)=UPDATET SETc=vWHEREc=r;
[0035] Delete operation: To delete a record from the database, you can use the following formula:
[0036] Delete(T,r)=DELETE FROMT WHEREc=r;
[0037] The data processing module is connected to a security module, which is used to encrypt and protect the transmitted data and implement corresponding access control and authority management. The security module is connected to a user module, which is connected to a subscription module. The data volume calculation module is connected to a load monitoring module, which is connected to an emergency processing module, which is connected to an extension module and a spare component module. The emergency processing module is used to select an emergency processing method according to the monitoring data of the load monitoring module, the extension module is used to automatically increase resources according to the load situation, and the spare component module is used to automatically switch spare components according to operating failures.
[0038] S2: The user's movement or action data is collected through the server module, and the collected data is synchronized to each node in real time through the cache module and the distributed database module, and the data is cached. The distance classification module can classify the users according to the distance between them, and the distance data between the users is monitored in real time through the monitoring module, and the judgment module makes judgments according to the divided distance levels;
[0039] S3: Then, the data volume calculation module can calculate the data volume in the distributed database module, the load monitoring module monitors the load of the distributed data volume module in real time according to the calculated data volume, the emergency processing module sends emergency instructions in real time according to the load situation, automatically increases resources for emergency processing through the expansion module, and automatically switches to the corresponding backup component through the backup component module;
[0040] S4: Finally, the determined data is transmitted to the corresponding user through the data transmission module, the data can be compressed through the data processing module, and the transmitted data is encrypted through the security module, and finally the user module receives the transmitted data.
[0041] Reference Figure 2 The distributed database module includes a data update unit, a data storage unit, a data backup unit and a periodic cleaning unit. The data update unit is connected to the data storage unit, the data storage unit is connected to the data backup unit, and the data backup unit is connected to the periodic cleaning unit. The data update unit is used to receive the data sent by the cache module in real time and update the data. The data storage unit is used to store the updated data. The data backup unit is used to process the backup of the received data. The periodic cleaning unit is used to regularly clean up the backup data according to the set time. The distributed database module is used to synchronize the user action data to each node in real time, and update, store, back up and clean up the user action data.
[0042] Reference Figure 3The data volume calculation module includes a data extraction unit, a viewing unit, a tool selection unit and a first calculation unit. The extraction unit is connected to the viewing unit, the viewing unit is connected to the tool selection unit, the tool selection unit is connected to the first calculation unit. The data extraction unit is used to extract data stored in the distributed database module, the viewing unit is used to view the properties of the extracted data, the tool selection unit is used to select a corresponding calculation tool, and the first calculation unit is used to calculate the data volume of the extracted data. The data volume calculation formula is: data volume per unit time = bandwidth B (bit / s) X time t (s) / 8, where bandwidth B refers to the maximum rate allowed for data transmission, time t refers to data transmission time, and 8 means 1 Byte = 8 bits.
[0043] Reference Figure 4 The distance division module includes a group number determination unit, a group interval determination unit and a sorting unit. The group number determination unit is connected to the group interval determination unit, and the group interval determination unit is connected to the sorting unit. The group number determination unit determines the number of groups according to the amount and characteristics of the data and the analysis requirements. The group interval determination unit is used to determine the group interval according to the maximum and minimum values of all the data and the number of groups. The sorting unit is used to sort the grouping into a frequency distribution table. The distance division module divides each user into three levels of users according to the distance. There are two distances, assuming distance R1 and distance R2 (R2>R1). At distance R2, the character looks very small and can be ignored. Therefore, for users exceeding distance R2, the user data can not be transmitted. The distance within R1 is a relatively close distance, and the data is sent at a shorter time interval (for example, 2 seconds) (there are 100 user location change data within 2 seconds, and only the last one is transmitted). A piece of data), but in order to keep the user's smooth perception of other users' movements, it is necessary to keep the real-time changes of certain users within the user's close range. Therefore, the behavior data of the 20 users within R1 of the user are fully transmitted, and the data beyond the most recent 20 within R1 are sent at shorter time intervals (such as 2 seconds). For position movements with a large time interval, they already belong to users other than the user's most recent 20 people, and the server module will perform a coherent position movement animation for them, so the user's perception is not obvious. In this way, even if there are 1000 people at the same time, the original full data transmission may be 1000*999 (each person's position movement data needs to be fully transmitted to the other 999 people), but now it is reduced to 1000*20 (each person's position movement data is at most fully transmitted to 20 other people). Full data transmission greatly improves data transmission performance without excessively reducing user experience.
[0044] Reference Figure 5The judgment module includes a rule-making unit, a second calculation unit and a transmission unit. The rule-making unit is connected to the second calculation unit, and the second calculation unit is connected to the transmission unit. The rule-making unit is used to specify the distance judgment rule, the second calculation unit is used to calculate the distance data between users, and the transmission unit is used to transmit the judged data to the data transmission module. The distance judgment rule is: when user A is moving, the server module will calculate whether user A belongs to user B's R1 or R2 range. If it is within user B's R1 range, it is also necessary to determine whether user A belongs to user B's nearest 20 people. That is, there may be many users around user A, and user B is already a user 20 places away from user A, but for user B, there are not many users around user B, and user A is already within the 20 users closest to user B, so when user A moves, the data will be fully transmitted to user B.
[0045] The implementation principle in this embodiment is as follows: when in use, the user's movement or action data is collected through the server module, the collected data is synchronized to each node in real time through the cache module and the distributed database module, and the data is cached. The distance division module can be used to divide the levels according to the distance between users, the monitoring module can monitor the distance data between users in real time, and the judgment module can make a judgment according to the divided distance levels. Then, the data volume calculation module can calculate the data volume in the distributed database module, the load monitoring module can monitor the load of the distributed data volume module in real time according to the calculated data volume, the emergency processing module sends emergency instructions in real time according to the load situation, the expansion module automatically increases resources for emergency processing, and the standby component module automatically switches to the corresponding standby component. Finally, the data transmission module transmits the judged data to the corresponding user, the data processing module can compress the data, and the security module encrypts the transmitted data. Finally, the user module receives the transmitted data, and the user's action data is analyzed by the data analysis module. When the user action occurs, the generation module can generate corresponding events and broadcast these events to all user modules that have subscribed to the event. This method can improve the efficiency of data synchronization and can flexibly handle data synchronization.
[0046] Embodiment 2
[0047] The difference between this embodiment and the first embodiment is that the monitoring module is connected to the prediction algorithm module, through which the character's action can be predicted, data transmission and processing can be performed in advance, and the influence of delay on synchronization accuracy can be reduced.
[0048] Embodiment 3
[0049] The difference between this embodiment and the first embodiment is that the emergency processing module is connected to the alarm module, and the alarm module is connected to the manual processing module. The alarm module can alarm the generated fault, and the staff can perform manual emergency processing operations through the manual processing module to avoid unnecessary losses.
[0050] Embodiment 4
[0051] The difference between this embodiment and the first embodiment is that the distributed database module is connected to a transaction management module, and the transaction management module can ensure data synchronization across systems or databases and guarantee data consistency scenarios.
[0052] Embodiment 5
[0053] The difference between this embodiment and the first embodiment is that the server module is connected to a state management service module, which can be used to centrally manage user action data and achieve data synchronization across components and services.
[0054] Experimental example
[0055] By comparing the efficient synchronization schemes of user action data proposed in Examples 1 to 5 with the conventional efficient synchronization schemes of user action data, the experimental data are as follows:
[0056] Embodiment 1 Embodiment 2 Embodiment 3 Embodiment 4 Embodiment 5 Improved synchronization Improved synchronization Improved synchronization Improved synchronization Improved synchronization 20% 25% 30% 35% 40%
[0057] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. An efficient synchronization method for user action data in the Metaverse, characterized by: The following steps are involved: S1: Prepare a synchronization system, which includes a server module, the server module is connected to a cache module and a data analysis module, the data analysis module is connected to a generation module, the generation module is connected to a subscription module, the cache module is connected to a distributed database module, the distributed database module is connected to a distance division module and a data volume calculation module, the distance division module is connected to a monitoring module, the monitoring module is connected to a judgment module, the judgment module is connected to a data transmission module, the data transmission module is connected to a subscription module, the data transmission module is connected to a data processing module, the data processing module is connected to a security module, the security module is connected to a user module, the user module is connected to a subscription module, the data volume calculation module is connected to a load monitoring module, the load monitoring module is connected to an emergency processing module, and the emergency processing module is connected to an expansion module and a spare component module; S2: The user's movement or action data is collected through the server module, and the collected data is synchronized to each node in real time through the cache module and the distributed database module, and the data is cached. The distance classification module can classify the users according to the distance between them, and the distance data between the users is monitored in real time through the monitoring module, and the judgment module makes judgments according to the divided distance levels; S3: Then, the data volume calculation module can calculate the data volume in the distributed database module, the load monitoring module monitors the load of the distributed data volume module in real time according to the calculated data volume, the emergency processing module sends emergency instructions in real time according to the load situation, automatically increases resources for emergency processing through the expansion module, and automatically switches to the corresponding backup component through the backup component module; S4: Finally, the determined data is transmitted to the corresponding user through the data transmission module, the data can be compressed through the data processing module, and the transmitted data is encrypted through the security module, and finally the user module receives the transmitted data.
2. The method for efficiently synchronizing user action data in the Metaverse according to claim 1, characterized in that: The distributed database module includes a data update unit, a data storage unit, a data backup unit and a periodic cleaning unit. The data update unit is connected to the data storage unit, the data storage unit is connected to the data backup unit, and the data backup unit is connected to the periodic cleaning unit. The data update unit is used to receive data sent by the cache module in real time and update the data. The data storage unit is used to store the updated data. The data backup unit is used to process the received data and back up the data. The periodic cleaning unit is used to clean up the backup data regularly according to the set time.
3. The method for efficiently synchronizing user action data in the Metaverse according to claim 2, characterized in that: The data volume calculation module includes a data extraction unit, a viewing unit, a tool selection unit and a first calculation unit. The extraction unit is connected to the viewing unit, the viewing unit is connected to the tool selection unit, and the tool selection unit is connected to the first calculation unit. The data extraction unit is used to extract data stored in the distributed database module, the viewing unit is used to view the properties of the extracted data, the tool selection unit is used to select the corresponding calculation tool, and the first calculation unit is used to calculate the data volume of the extracted data.
4. The method for efficiently synchronizing user action data in the Metaverse according to claim 3, characterized in that: The distance division module includes a group number determination unit, a group interval determination unit and a sorting unit. The group number determination unit is connected to the group interval determination unit, and the group interval determination unit is connected to the sorting unit. The group number determination unit determines the number of groups according to the amount and characteristics of the data and the analysis requirements. The group interval determination unit is used to determine the group interval according to the maximum and minimum values of all the data and the number of groups divided. The sorting unit is used to sort the groups into a frequency distribution table.
5. The method for efficiently synchronizing user action data in the Metaverse according to claim 4, characterized in that: The judgment module includes a rule-making unit, a second calculation unit and a transmission unit. The specification-making unit is connected to the second calculation unit, and the second calculation unit is connected to the transmission unit. The rule-making unit is used to specify distance judgment rules, the second calculation unit is used to calculate the distance data between users, and the transmission unit is used to transmit the judged data to the data transmission module.
6. The method for efficiently synchronizing user action data in the Metaverse according to claim 5, characterized in that: The distributed database module is used to synchronize user action data to each node in real time, and to update, store, back up and clean up the user action data.
7. The method for efficiently synchronizing user action data in the Metaverse according to claim 6, characterized in that: The cache module is used to cache the user action data into the memory immediately after it is generated, and transmit the data in the memory to the distributed database module.
8. The method for efficiently synchronizing user action data in the Metaverse according to claim 7, characterized in that: The security module is used to encrypt and protect the transmitted data and implement corresponding access control and authority management.
9. A method for efficiently synchronizing user action data in a metaverse according to claim 8, characterized in that: The data processing module adopts an optimized data synchronization algorithm to synchronize the data transmitted by the data transmission module.
10. The method for efficiently synchronizing user action data in the Metaverse according to claim 9, characterized in that: The emergency processing module is used to select an emergency processing method according to the monitoring data of the load monitoring module, the expansion module is used to automatically increase resources according to the load situation, and the backup component module is used to automatically switch the backup component according to the operation failure.
