Efficient in-game network delay compensation method
By processing delay data and network delay prediction models in real time, and adjusting compensation strategies dynamically, the lag and low efficiency of network delay compensation in the prior art are solved, and the gaming experience and fluency are improved.
Patent Information
- Application Number
- CN202411093366.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-29
AI Technical Summary
The existing network delay compensation methods have lag, insufficient accuracy, high computational complexity and high server pressure, resulting in low response efficiency and affecting the gaming experience.
By collecting and processing delay determination data in real time, generating delay characteristic values, inputting the network delay prediction model, selecting the optimal compensation strategy, and dynamically adjusting the compensation strategy to cope with different network delay situations through client prediction mechanism and server status update optimization.
Improve the accuracy of network delay data, intelligently select compensation strategies, reduce the impact of delay on the game experience, improve player operation response speed and game fluency, ensure that the system chooses the most appropriate compensation strategy under different network states, and minimizes it. Small delay effect.
Smart Images

Figure CN119052144A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of delay compensation, and in particular to an efficient in-game network delay compensation method. Background Art
[0002] In online games, due to factors such as differences in the network environment, physical distance, and instability of network transmission links, players often experience varying degrees of network delays in the game. Network delays can affect players' gaming experience, especially in games with strong real-time interactivity. Delays can cause significant asynchrony between player operations and game feedback, which in turn affects the fairness and smoothness of the game.
[0003] At present, network delay compensation methods mainly rely on technologies such as client prediction, server rollback, and time synchronization. For example, a Chinese patent with publication number CN107113332A proposes a server-side prediction of the stable state of a media client. The method uses the request time of a given number of recent segments requested to generate a prediction of when the media client will transition from a startup or buffering state to a stable state by a first server. In response to receiving a request for a new segment, and when the first server predicts that the media client has completed the transition to a stable state, the request for the new segment is redirected to the second media server, thereby maintaining network stability. Although the above method can achieve network delay compensation, research and practical application of the above method and the prior art have found that the above method and the prior art have at least the following partial defects:
[0004] (1) The current delay compensation is lagging, and network delay compensation is often performed only when the delay is reduced, which affects the player's gaming experience;
[0005] (2) Although the current delay compensation method can alleviate the delay problem to a certain extent, it still has problems such as insufficient accuracy, high computational complexity, and high server pressure in practical applications, resulting in low response efficiency when performing delay compensation. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides an efficient in-game network delay compensation method.
[0007] An efficient in-game network delay compensation method, the method comprising:
[0008] Processing the delay determination data collected at time t-1 to generate a delay characteristic value, and inputting the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data;
[0009] Select the optimal compensation strategy based on the generated network delay data;
[0010] According to the optimal compensation strategy, the compensation results are verified.
[0011] Furthermore, the delay determination data includes the number of optional paths, the number of hops, the delay and the bandwidth utilization.
[0012] Furthermore, the logic of generating the delay characteristic value is:
[0013] Based on the number of optional paths, delay, bandwidth utilization and number of hops of each optional path, the delay characteristic value is calculated and generated. The optional paths are set to n and the delay of each path is L. i , the number of hops is H i , the bandwidth utilization is B i , the calculation formula of the delay characteristic value is:
[0014]
[0015] Where P is the delay characteristic value, w i is the weight value calculated based on path delay, hop count and bandwidth utilization, delay L i Refers to the transmission delay time of path i, the number of hops H i Refers to the number of intermediate nodes that the data packet passes through from the source to the destination in path i, and the bandwidth utilization B i is the current bandwidth usage on path i. The larger the value, the more full the current bandwidth is.
[0016] Weight value w i The calculation formula is: Among them, α, β and γ are weight adjustment coefficients.
[0017] Furthermore, the generation logic of the network delay prediction model is:
[0018] Obtain historical delay data, and divide the historical delay data into a historical delay training set and a historical delay test set; the historical delay data includes delay feature values and delay determination data, and network delay data corresponding to the delay feature values and the delay determination data;
[0019] Constructing a first regression network, using the delay feature values and delay determination data in the historical delay training set as the first regression network input data, and using the network delay data in the historical delay training set as the first regression network output data, training the first regression network, and obtaining an initial first machine learning network;
[0020] The initial first machine learning network is model verified using the historical delay test set, and the initial first machine learning network with a value less than or equal to a preset first test error threshold is output as a pre-constructed network delay prediction model.
[0021] Furthermore, the logic for selecting the optimal compensation strategy is:
[0022] Using a preset classification algorithm, the latency characteristics are classified into specific latency categories, which are divided into three categories: "low latency and stable", "medium latency and small fluctuations", and "high latency and large fluctuations";
[0023] For different delay situations, a compensation strategy is preset, and the compensation strategy is:
[0024] For the "Low Latency and Stable" category, the normal time synchronization strategy is maintained, and client operations are directly uploaded to the server, which processes and feeds back the results;
[0025] For the "medium latency and small fluctuation" category, a preset client prediction mechanism is introduced, where the client will predict the operation results in advance and correct the results after the server confirms them;
[0026] For the "high latency and high volatility" category, increase the participation of client predictions and reduce the server's status update interval.
[0027] Furthermore, the principle of the client prediction mechanism is that when a player performs an operation on the client, the client does not wait for the feedback result from the server, but predicts and displays the result of the operation in advance based on the current game state and preset logical rules.
[0028] Furthermore, the logic of the compensation result verification is:
[0029] By comparing the predicted delay performance before and after applying the compensation strategy, it is verified whether the compensation strategy to be selected can achieve the expected effect. The delay performance includes delay time, packet loss rate, and player operation response time, and verification labels of "achieved the expected effect" and "did not achieve the expected effect" are generated; when the verification label is detected as "did not achieve the expected effect", the compensation strategy adjustment process will be triggered.
[0030] Furthermore, the triggering conditions for the compensation strategy adjustment process are:
[0031] After the compensation strategy was applied, the delay time did not improve significantly and showed a trend of continuous increase. It was determined that the strategy was ineffective and needed to be adjusted;
[0032] After the compensation strategy is applied, the packet loss rate exceeds the preset packet loss rate range;
[0033] After the compensation strategy is applied, the response time of the player's operation exceeds the set threshold range.
[0034] Furthermore, the specific adjustment steps of the compensation strategy adjustment process are as follows:
[0035] Q1: Reclassify the delay situation: classify the network delay data again to determine whether the network status will change in the future;
[0036] Q2: In the case of high latency, increase the participation of client predictions and adjust the time for collecting latency determination data from time t-1 to time t-2, so as to make predictions at an earlier time point;
[0037] Q3: In response to the predicted high latency and high volatility, shorten the server status update interval and increase the status synchronization frequency between the client and the server.
[0038] An efficient in-game network delay compensation system, the system comprising:
[0039] Delay prediction module: processes the delay determination data collected at time t-1 to generate a delay characteristic value, and inputs the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data;
[0040] Strategy selection module: selects the optimal compensation strategy based on the generated network delay data;
[0041] Strategy verification module: Verify the compensation results based on the optimal compensation strategy.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The present invention generates delay feature values by real-time collection and processing of delay determination data, and inputs the delay feature values into a preset network delay prediction model, thereby generating more accurate network delay data. By using these data, the optimal compensation strategy can be intelligently selected, and the compensation strategy can be dynamically adjusted to cope with different network delay situations. The adverse effects of delay on the game experience are effectively reduced through the client prediction mechanism and server status update optimization, thereby improving the response speed of player operations and the fluency of the game.
[0044] Furthermore, through verification and adjustment of the compensation results, the method can automatically trigger the reclassification and optimization adjustment of the compensation strategy when the delay time does not show obvious improvement, the packet loss rate exceeds the preset range, or the player operation response time exceeds the set threshold. This ensures that under different network conditions, the system can always select and apply the most appropriate compensation strategy, thereby minimizing the impact of delay on the game. At the same time, the system can adaptively perform delay prediction, strategy selection and verification adjustment through the collaborative work of multiple modules, ensuring the efficiency and reliability of the entire compensation process, thereby improving the overall quality of the gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0046] Figure 1 A flowchart of an efficient in-game network delay compensation method provided by Embodiment 1 of the present invention;
[0047] Figure 2 A module diagram of an efficient in-game network delay compensation method provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Example 1
[0050] See also Figure 1 As shown, this embodiment discloses an efficient in-game network delay compensation method, the method comprising:
[0051] S101: Processing the delay determination data collected at time t-1 to generate a delay characteristic value, and inputting the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data;
[0052] Specifically, the delay determination data includes the number of optional paths, the number of hops, the delay and the bandwidth utilization;
[0053] It should be noted that during the communication between the client and the server, the path, number of hops, delay time and bandwidth utilization of each data packet are recorded in real time.
[0054] Specifically, the logic of generating the delay characteristic value is:
[0055] Based on the number of optional paths, delay, bandwidth utilization and number of hops of each optional path, the delay characteristic value is calculated and generated. The optional paths are set to n and the delay of each path is L. i , the number of hops is H i , the bandwidth utilization is B i , the calculation formula of the delay characteristic value is:
[0056]
[0057] Where P is the delay characteristic value, w i is the weight value calculated based on path delay, hop count and bandwidth utilization, delay L i Refers to the transmission delay time of path i, the number of hops H i Refers to the number of intermediate nodes that the data packet passes through from the source to the destination in path i, and the bandwidth utilization B i is the current bandwidth usage on path i. The larger the value, the more full the current bandwidth is.
[0058] Weight value w i The calculation formula is: Among them, α, β and γ are weight adjustment coefficients;
[0059] It should be noted that: i The higher the weight value, the better the path is under the current conditions, and the bandwidth utilization rate is higher. i The larger the value, the fuller the current bandwidth. The weight adjustment coefficients α, β, and γ are based on the actual situation. These coefficients can be optimized through experiments or machine learning.
[0060] Specifically, the generation logic of the network delay prediction model is:
[0061] Obtain historical delay data, and divide the historical delay data into a historical delay training set and a historical delay test set; the historical delay data includes delay feature values and delay determination data, and network delay data corresponding to the delay feature values and the delay determination data;
[0062] Constructing a first regression network, using the delay feature values and delay determination data in the historical delay training set as the first regression network input data, and using the network delay data in the historical delay training set as the first regression network output data, training the first regression network, and obtaining an initial first machine learning network;
[0063] The initial first machine learning network is model verified using the historical delay test set, and the initial first machine learning network with a value less than or equal to a preset first test error threshold is output as a pre-constructed network delay prediction model.
[0064] It should be noted that the first regression network includes but is not limited to decision tree regression, support vector machine regression, and random forest regression.
[0065] S102: Selecting an optimal compensation strategy based on the generated network delay data;
[0066] Specifically, the logic for selecting the optimal compensation strategy is:
[0067] Using a preset classification algorithm, the latency characteristics are classified into specific latency categories, which are divided into three categories: "low latency and stable", "medium latency and small fluctuations", and "high latency and large fluctuations";
[0068] For different delay situations, a compensation strategy is preset, and the compensation strategy is:
[0069] For the "Low Latency and Stable" category, the normal time synchronization strategy is maintained, and client operations are directly uploaded to the server, which processes and feeds back the results;
[0070] For the "medium latency and small fluctuation" category, a preset client prediction mechanism is introduced, where the client will predict the operation results in advance and correct the results after the server confirms them;
[0071] Specifically, the principle of the client prediction mechanism is:
[0072] When a player performs an operation on the client, the client does not wait for the server's feedback results, but predicts and displays the results of the operation in advance based on the current game state and preset logical rules;
[0073] It should be noted that: the logic rules are determined by data analysts based on a large amount of historical data;
[0074] For the "high latency and high volatility" category, increase the participation of client predictions and shorten the server's status update interval;
[0075] It should be noted that the classification algorithms include but are not limited to K-means clustering algorithm, decision tree algorithm and support vector machine algorithm.
[0076] 103: Verify the compensation result according to the optimal compensation strategy;
[0077] Specifically, the logic of the compensation result verification is:
[0078] By comparing the predicted delay performance before and after applying the compensation strategy, verify whether the compensation strategy to be selected can achieve the expected effect. The delay performance includes delay time, packet loss rate, and player operation response time, and generate verification tags of "achieved the expected effect" and "did not achieve the expected effect". When the verification tag is detected as "did not achieve the expected effect", the compensation strategy adjustment process will be triggered;
[0079] Specifically, the triggering conditions for the compensation strategy adjustment process are:
[0080] After the compensation strategy was applied, the delay time did not improve significantly and showed a trend of continuous increase. It was determined that the strategy was ineffective and needed to be adjusted;
[0081] After the compensation strategy is applied, the packet loss rate exceeds the preset packet loss rate range;
[0082] After the compensation strategy is applied, the response time of the player's operation exceeds the set threshold range;
[0083] Specifically, the specific adjustment steps of the compensation strategy adjustment process are as follows:
[0084] Q1: Reclassify the delay situation: classify the network delay data again to determine whether the network status will change in the future;
[0085] For example, if the latency situation changes from "medium latency with low fluctuation" to "high latency with high fluctuation", the system will reselect a policy that is suitable for the "high latency with high fluctuation" category.
[0086] Q2: In the case of high latency, increase the participation of client predictions and adjust the time for collecting latency determination data from time t-1 to time t-2, so as to make predictions at an earlier time point;
[0087] Q3: In response to the predicted high latency and high volatility, shorten the server status update interval and increase the status synchronization frequency between the client and the server;
[0088] It should be noted that step S103 is used to ensure that the selected compensation strategy can effectively reduce the delay and enhance the player's gaming experience.
[0089] Example 2
[0090] Reference Figure 2 As shown, based on the unified inventive concept, this embodiment proposes an efficient in-game network delay compensation system, characterized in that the system includes:
[0091] Delay prediction module S201: Process the delay determination data collected at time t-1 to generate a delay characteristic value, and input the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data;
[0092] Specifically, the delay determination data includes the number of optional paths, the number of hops, the delay and the bandwidth utilization;
[0093] Specifically, the logic of generating the delay characteristic value is:
[0094] Based on the number of optional paths, delay, bandwidth utilization and number of hops of each optional path, the delay characteristic value is calculated and generated. The optional paths are set to n and the delay of each path is L. i , the number of hops is H i , the bandwidth utilization is B i , the calculation formula of the delay characteristic value is:
[0095]
[0096] Where P is the delay characteristic value, w i is the weight value calculated based on path delay, hop count and bandwidth utilization, delay L i Refers to the transmission delay time of path i, the number of hops H i Refers to the number of intermediate nodes that the data packet passes through from the source to the destination in path i, and the bandwidth utilization B i is the current bandwidth usage on path i. The larger the value, the more full the current bandwidth is.
[0097] Weight value w i The calculation formula is: Among them, α, β and γ are weight adjustment coefficients;
[0098] Specifically, the generation logic of the network delay prediction model is:
[0099] Obtain historical delay data, and divide the historical delay data into a historical delay training set and a historical delay test set; the historical delay data includes delay feature values and delay determination data, and network delay data corresponding to the delay feature values and the delay determination data;
[0100] Constructing a first regression network, using the delay feature values and delay determination data in the historical delay training set as the first regression network input data, and using the network delay data in the historical delay training set as the first regression network output data, training the first regression network, and obtaining an initial first machine learning network;
[0101] The initial first machine learning network is model verified using the historical delay test set, and the initial first machine learning network with a value less than or equal to a preset first test error threshold is output as a pre-constructed network delay prediction model.
[0102] Strategy selection module S202: selecting the optimal compensation strategy based on the generated network delay data;
[0103] Specifically, the logic for selecting the optimal compensation strategy is:
[0104] Using a preset classification algorithm, the latency characteristics are classified into specific latency categories, which are divided into three categories: "low latency and stable", "medium latency and small fluctuations", and "high latency and large fluctuations";
[0105] For different delay situations, a compensation strategy is preset, and the compensation strategy is:
[0106] For the "Low Latency and Stable" category, the normal time synchronization strategy is maintained, and client operations are directly uploaded to the server, which processes and feeds back the results;
[0107] For the "medium latency and small fluctuation" category, a preset client prediction mechanism is introduced, where the client will predict the operation results in advance and correct the results after the server confirms them;
[0108] For the "high latency and high volatility" category, increase the participation of client predictions and shorten the server's status update interval;
[0109] Specifically, the principle of the client prediction mechanism is:
[0110] When a player performs an operation on the client, the client does not wait for the server's feedback results, but predicts and displays the results of the operation in advance based on the current game state and preset logical rules;
[0111] Strategy verification module S203: verifying the compensation result according to the optimal compensation strategy;
[0112] Specifically, the logic of the compensation result verification is:
[0113] By comparing the predicted delay performance before and after applying the compensation strategy, verify whether the compensation strategy to be selected can achieve the expected effect. The delay performance includes delay time, packet loss rate, and player operation response time, and generate verification tags of "achieved the expected effect" and "did not achieve the expected effect". When the verification tag is detected as "did not achieve the expected effect", the compensation strategy adjustment process will be triggered;
[0114] Specifically, the triggering conditions for the compensation strategy adjustment process are:
[0115] After the compensation strategy was applied, the delay time did not improve significantly and showed a trend of continuous increase. It was determined that the strategy was ineffective and needed to be adjusted;
[0116] After the compensation strategy is applied, the packet loss rate exceeds the preset packet loss rate range;
[0117] After the compensation strategy is applied, the response time of the player's operation exceeds the set threshold range;
[0118] Specifically, the specific adjustment steps of the compensation strategy adjustment process are as follows:
[0119] Q1: Reclassify the delay situation: classify the network delay data again to determine whether the network status will change in the future;
[0120] Q2: In the case of high latency, increase the participation of client predictions and adjust the time for collecting latency determination data from time t-1 to time t-2, so as to make predictions at an earlier time point;
[0121] Q3: In response to the predicted high latency and high volatility, shorten the server status update interval and increase the status synchronization frequency between the client and the server.
[0122] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD) or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0123] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0124] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0125] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only an efficient method for compensating for in-game network delays. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0128] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0129] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An efficient in-game network delay compensation method, characterized in that: The method comprises: Processing the delay determination data collected at time t-1 to generate a delay characteristic value, and inputting the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data; Select the optimal compensation strategy based on the generated network delay data; According to the optimal compensation strategy, the compensation results are verified.
2. According to claim 1, an efficient in-game network delay compensation method is characterized in that: The delay determination data includes the number of optional paths, the number of hops, delay and bandwidth utilization.
3. According to claim 2, an efficient in-game network delay compensation method is characterized in that: The logic for generating the delay characteristic value is: Based on the number of optional paths, delay, bandwidth utilization and number of hops of each optional path, the delay characteristic value is calculated and generated. The optional paths are set to n and the delay of each path is L. i , the number of hops is H i , the bandwidth utilization is B i , the calculation formula of the delay characteristic value is: Where P is the delay characteristic value, w i is the weight value calculated based on path delay, hop count and bandwidth utilization, delay L i Refers to the transmission delay time of path i, the number of hops H i Refers to the number of intermediate nodes that the data packet passes through from the source to the destination in path i, and the bandwidth utilization B i is the current bandwidth usage on path i. The larger the value, the more full the current bandwidth is. Weight value w i The calculation formula is: Among them, α, β and γ are weight adjustment coefficients.
4. According to claim 3, an efficient in-game network delay compensation method is characterized in that: The generation logic of the network delay prediction model is: Obtain historical delay data, and divide the historical delay data into a historical delay training set and a historical delay test set; the historical delay data includes delay feature values and delay determination data, and network delay data corresponding to the delay feature values and the delay determination data; Constructing a first regression network, using the delay feature values and delay determination data in the historical delay training set as the first regression network input data, and using the network delay data in the historical delay training set as the first regression network output data, training the first regression network, and obtaining an initial first machine learning network; The initial first machine learning network is model verified using the historical delay test set, and the initial first machine learning network with a value less than or equal to a preset first test error threshold is output as a pre-constructed network delay prediction model.
5. According to claim 4, an efficient in-game network delay compensation method is characterized in that: The logic for selecting the optimal compensation strategy is: Using a preset classification algorithm, the latency characteristics are divided into specific latency categories, namely "low latency and stable", "medium latency and small fluctuation", and "high latency and large fluctuation"; For different delay situations, a compensation strategy is preset, and the compensation strategy is: For the "Low Latency and Stable" category, the normal time synchronization strategy is maintained, and client operations are directly uploaded to the server, which processes and feeds back the results; For the "medium latency and small fluctuation" category, a preset client prediction mechanism is introduced, where the client will predict the operation results in advance and correct the results after the server confirms them; For the "high latency and high volatility" category, increase the client's participation in prediction and shorten the server's status update interval.
6. According to claim 5, an efficient in-game network delay compensation method is characterized in that: The principle of the client prediction mechanism is that when a player performs an operation on the client, the client does not wait for the feedback result from the server, but predicts and displays the result of the operation in advance based on the current game state and preset logical rules.
7. The efficient in-game network delay compensation method according to claim 6, characterized in that: The logic of the compensation result verification is: By comparing the predicted delay performance before and after applying the compensation strategy, it is verified whether the compensation strategy to be selected can achieve the expected effect. The delay performance includes delay time, packet loss rate, and player operation response time, and verification labels of "achieved the expected effect" and "did not achieve the expected effect" are generated; when the verification label is detected as "did not achieve the expected effect", the compensation strategy adjustment process will be triggered.
8. The efficient in-game network delay compensation method according to claim 7, characterized in that: The triggering conditions for the compensation strategy adjustment process are: After the compensation strategy was applied, the delay time did not improve significantly and showed a trend of continuous increase. It was determined that the strategy was ineffective and needed to be adjusted; After the compensation strategy is applied, the packet loss rate exceeds the preset packet loss rate range; After the compensation strategy is applied, the response time of the player's operation exceeds the set threshold range.
9. The efficient in-game network delay compensation method according to claim 8, characterized in that: The specific adjustment steps of the compensation strategy adjustment process are as follows: Q1: Reclassify the delay situation: classify the network delay data again to determine whether the network status will change in the future; Q2: In the case of high latency, increase the participation of client predictions and adjust the time for collecting latency determination data from time t-1 to time t-2, so as to make predictions at an earlier time point; Q3: In response to the predicted high latency and high volatility, shorten the server status update interval and increase the status synchronization frequency between the client and the server.
10. An efficient in-game network delay compensation system, characterized in that: The system comprises: Delay prediction module: processes the delay determination data collected at time t-1 to generate a delay characteristic value, and inputs the delay characteristic value and the delay determination data into a preset network delay prediction model to generate network delay data; Strategy selection module: selects the optimal compensation strategy based on the generated network delay data; Strategy verification module: Verify the compensation results based on the optimal compensation strategy.
Citation Information
Cited By
Time synchronization compensation method and system
CN120582738A
Time synchronization compensation method and system
CN120582738B
