A game virtual object resource dynamic loading method and system
By preprocessing game virtual object resource loading data and analyzing system load, combined with feedback control algorithms and performance simulation, resource scheduling is dynamically optimized, solving the problem of unstable resource loading in traditional methods and improving game performance and user experience.
Patent Information
- Application Number
- CN202511633112.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-12-09
AI Technical Summary
Traditional methods for loading virtual objects in games lack the ability to dynamically respond to real-time load changes and loading performance, resulting in unstable resource loading latency and excessive frame rate fluctuations, which negatively impacts user experience.
By collecting and preprocessing raw loading latency data during game operation, analyzing real-time system load data, and using feedback control algorithms and performance simulation methods to optimize resource scheduling, dynamically adjust the resource loading mechanism, and achieve adaptive optimization for different scheduling strategies.
It achieves precise control over resource loading, reduces loading latency and resource redundancy, improves the timing consistency of game screen rendering and the smoothness of user experience, reduces hardware resource waste, and enhances cross-platform compatibility and the engine's intelligent scheduling capabilities.
Smart Images

Figure CN121243768B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data loading technology, and in particular to a method and system for dynamically loading virtual object resources in games. Background Technology
[0002] With the rapid development of the gaming industry, the increasing complexity of game scenes and the diversification of virtual objects have placed higher demands on resource loading efficiency. In dynamic game scenes, the real-time loading of virtual objects involves the scheduling of a large number of resources such as 3D models, textures, and animations. However, factors such as system load fluctuations, hardware performance differences, and scene switching frequency can easily lead to problems such as unstable resource loading latency and excessive frame rate fluctuations, which seriously affect the user experience.
[0003] In existing technologies, traditional resource loading methods mostly employ static scheduling strategies, lacking the ability to dynamically respond to real-time load changes and loading performance. On the one hand, they cannot effectively handle the uneven resource allocation caused by sudden changes in system load in dynamic scenarios, making it difficult to quickly correct loading delays that exceed reasonable limits. On the other hand, the simulation and analysis of resource operating states under different scheduling strategies are not accurate enough, and they cannot adaptively optimize the loading mechanism by combining real-time performance data such as frame rate fluctuations, resulting in technical bottlenecks such as unreasonable resource consumption and low loading efficiency.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a method and system for dynamically loading virtual object resources in games, aiming to solve the technical problem that traditional methods for loading virtual object resources in games mostly adopt static scheduling strategies and lack the ability to dynamically respond to real-time load changes and loading performance.
[0006] To achieve the above objectives, the present invention provides a method for dynamically loading game virtual object resources, the method comprising: The original loading delay data of virtual objects in dynamic scenes during game operation is collected, and the original loading delay data is preprocessed to obtain loading delay correction data. Based on the monitored real-time system load data, the resource scheduling pressure is analyzed to obtain the amount of resource allocation fluctuation caused by load fluctuation; Based on the resource allocation fluctuation and the loading delay correction data, the resource loading delay is controlled to return to the preset performance range through a feedback control algorithm, and the resource occupancy distribution data of each virtual object instance in the game is collected after the resource loading is completed; Based on the resource occupancy distribution data, the performance simulation method is used to test the operating status of resources under different scheduling strategies, and the operating status simulation results are obtained. Obtain frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running state and the frame rate fluctuation data; The resource loading mechanism of the game engine is adaptively adjusted based on resource scheduling optimization parameters.
[0007] Optionally, the preprocessing of the original loading delay data to obtain loading delay correction data includes: Based on the average value and variance of the original loading delay data, abnormal delay data points are identified from the original loading delay data using a preset outlier threshold. Based on the Lagrange interpolation method, abnormal delay data points in the original loading delay data are interpolated and repaired by using nearby valid data points to obtain the repaired delay sequence; The repaired delay sequence is subjected to wavelet transform to obtain a time-frequency distribution map, and the main delay frequency bands are identified based on the time-frequency distribution map; Based on the main frequency band of the delay, an elliptic filter is used to perform band filtering on the repaired delay sequence to obtain a smoothed delay signal. The smoothed delayed signal is decomposed into three levels using Haar wavelets to obtain multi-resolution wavelet coefficients. The wavelet coefficients are then subjected to soft thresholding to reconstruct the loaded delay correction data.
[0008] Optionally, the step of analyzing resource scheduling pressure based on monitored real-time system load data to obtain the resource allocation fluctuation caused by load fluctuations includes: The real-time load data of the system is baseline-calibrated using an exponentially weighted moving average method to obtain stable load data. The load change gradient is calculated based on the stable load data. If the load change gradient exceeds the preset load change threshold, the load change is converted into an initial resource fluctuation based on the system resource allocation mechanism. The initial resource fluctuation is compensated for by capacity to obtain the resource allocation fluctuation caused by load fluctuation.
[0009] Optionally, the step of controlling the resource loading delay to return to a preset performance range through a feedback control algorithm based on the resource allocation fluctuation and the loading delay correction data includes: Based on the resource allocation fluctuation and the loading delay correction data, the memory allocation compensation required for the target resource loading state is calculated. The scheduling correction amount is calculated based on the memory allocation compensation amount, and the target allocation parameters that the resource scheduler needs to achieve are determined based on the scheduling correction amount and the current resource loading delay. Based on the target allocation parameters that the resource scheduler needs to achieve, the optimal response parameters of the feedback control algorithm are calculated using the particle swarm optimization algorithm. Collect real-time latency data during resource loading and calculate the standard deviation of the real-time latency data within a sliding time window to obtain the latency fluctuation amplitude; The delay fluctuation amplitude is compared with a preset delay benchmark value to obtain the resource delay deviation. Based on the optimal response parameters, the resource delay deviation is calculated using a feedback control algorithm to obtain the original control value, and the resource loading delay is controlled to return to the preset performance range based on the original control value.
[0010] Optionally, the step of testing the operating status of resources under different scheduling strategies using performance simulation methods based on the resource occupancy distribution data, and obtaining the operating status simulation results, includes: Collect memory and video memory usage data for each virtual object instance in the game, and construct a resource distribution topology map based on the usage data of each virtual object instance; Based on the resource distribution topology, the competition for resources during the scheduling process is simulated using the discrete event simulation method. Based on the competition for resources during the scheduling process, a recurrent neural network is used to predict the resource occupancy trend under different load conditions. The waiting time during resource scheduling is calculated based on the occupancy trend, and resource bottleneck nodes are identified based on the waiting time. The performance counter signals of each resource node during game operation are collected, and the main fluctuation frequency is extracted from the performance counter signals through short-time Fourier transform. The main fluctuation frequency is used as the dynamic load condition. Based on the dynamic load conditions, the resource occupancy distribution data, and the resource bottleneck nodes, the performance simulation method is used to test the operating status of resources under different scheduling strategies, and the operating status simulation results are obtained.
[0011] Optionally, determining resource scheduling optimization parameters based on the simulation results of the operating state and the frame rate fluctuation data includes: A model of the relationship between frame rate fluctuation and loading performance is established based on the simulation results of the running state and the frame rate fluctuation data. Resource allocation weights are set based on system response characteristics, and load correction coefficients are calculated using load impact factors based on the resource latency deviation and system load data during game operation. By combining the load correction factor with the resource allocation weight, with the goal of minimizing loading latency, the simulated annealing algorithm is used to iteratively optimize the resource scheduling parameters until the preset termination condition is met, and the optimized scheduling parameters are output. The resource scheduler's control instructions are generated based on the optimized scheduling parameters; Adjust the game engine's resource loading queue according to the control instructions to obtain the resource scheduler's allocation sequence; The allocation sequence is subjected to load testing. The performance error caused by frame rate fluctuation is evaluated using a model that shows the relationship between frame rate fluctuation and loading performance. Resource scheduling optimization parameters are then output.
[0012] Optionally, establishing a model of the relationship between frame rate fluctuation and loading performance based on the simulation results of the running state and the frame rate fluctuation data includes: Resource competition index data are extracted from the simulation results of the operating state, and the independent component analysis method is used to extract features from the resource competition index data to extract the core components of the resource competition index data that exceed the preset competition threshold. The load transfer weight between different resource nodes is calculated based on the core components, and the frame rate fluctuation data is normalized using the load transfer weight to obtain frame rate fluctuation correction data. Collect system load data and real-time performance data during game runtime, fuse the frame rate fluctuation correction data, system load data and real-time performance data, and construct a loading performance scoring matrix using the entropy weight method; The support vector machine algorithm is used to map the frame rate fluctuation correction data with the loading performance score matrix to construct a model of the relationship between frame rate fluctuation and loading performance.
[0013] Furthermore, to achieve the above objectives, the present invention also provides a dynamic loading system for game virtual object resources, the game virtual object resource dynamic loading system comprising: The data preprocessing module is used to collect the original loading delay data of virtual objects in dynamic scenes during game operation, and to preprocess the original loading delay data to obtain loading delay correction data. The load quantization module is used to analyze the resource scheduling pressure based on the monitored real-time system load data and obtain the amount of resource allocation fluctuation caused by load fluctuation. The feedback control module is used to control the resource loading delay to return to a preset performance range based on the resource allocation fluctuation and the loading delay correction data, and to collect the resource occupancy distribution data of each virtual object instance in the game after the resource loading is completed. The performance simulation module is used to test the operating status of resources under different scheduling strategies based on the resource occupancy distribution data and to obtain the operating status simulation results. The parameter optimization module is used to acquire frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running state and the frame rate fluctuation data. The mechanism control module is used to adaptively adjust the resource loading mechanism of the game engine based on resource scheduling optimization parameters.
[0014] Furthermore, to achieve the above objectives, the present invention also provides a game virtual object resource dynamic loading device, the device comprising: a memory, a processor, and a game virtual object resource dynamic loading program stored on the memory and executable on the processor, the game virtual object resource dynamic loading program being configured to implement the steps of the game virtual object resource dynamic loading method as described above.
[0015] In addition, to achieve the above objectives, the present invention also provides a storage medium storing a game virtual object resource dynamic loading program, wherein when the game virtual object resource dynamic loading program is executed by a processor, it implements the steps of the game virtual object resource dynamic loading method as described above.
[0016] This invention provides a method for dynamically loading virtual object resources in games. By collecting system load data in real time and quantifying resource allocation fluctuations, the method can accurately capture changes in hardware performance. Compared to traditional static scheduling strategies, it can dynamically adjust the resource loading rhythm, avoiding uncontrolled loading delays or resource allocation imbalances caused by sudden load changes, thus improving the system's adaptability to complex scenarios. Based on preprocessed loading delay correction data and a feedback control algorithm, a closed-loop control mechanism is formed, which can quickly control the loading delay within a preset performance range. This effectively reduces screen stuttering caused by slow loading or resource redundancy caused by premature loading, ensuring the consistency of game screen rendering and resource loading timing, and improving user experience smoothness. By collecting resource usage distribution data and simulating the operating states of different scheduling strategies, combined with real-time frame rate fluctuation data, optimization parameters are dynamically determined, achieving a closed-loop resource scheduling strategy. Compared to the limitations of traditional methods that rely on experience-based parameter tuning, this solution can adaptively match the optimal loading strategy for different game scenarios, reducing resource waste and improving the utilization efficiency of hardware resources such as memory and bandwidth. By dynamically adjusting the resource loading mechanism, the game engine can perceive changes in the operating environment in real time, automatically balance loading speed and running performance, avoid drastic frame rate fluctuations caused by hardware compatibility or scene complexity, provide a universal optimization solution for cross-platform games, reduce manual tuning costs, and improve the engine's intelligent scheduling capabilities. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the structure of a game virtual object resource dynamic loading device in the hardware operating environment involved in the embodiments of the present invention; Figure 2 This is a flowchart illustrating the first embodiment of the game virtual object resource dynamic loading method of the present invention; Figure 3 This is a structural block diagram of the first embodiment of the game virtual object resource dynamic loading system of the present invention.
[0018] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0019] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0020] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the game virtual object resource dynamic loading device in the hardware operating environment involved in the embodiments of the present invention.
[0021] like Figure 1 As shown, the game virtual object resource dynamic loading device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement communication between these components. The user interface 1003 may include a display screen, and optionally, it may also include a standard wired interface or a wireless interface. In this invention, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0022] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the device for dynamically loading game virtual object resources. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0023] like Figure 1As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a dynamic loading program for game virtual object resources.
[0024] exist Figure 1 In the game virtual object resource dynamic loading device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to peripheral devices; the game virtual object resource dynamic loading device calls the game virtual object resource dynamic loading program stored in the memory 1005 through the processor 1001 and executes the game virtual object resource dynamic loading method provided in the embodiment of the present invention.
[0025] Based on the above hardware structure, an embodiment of the game virtual object resource dynamic loading method of the present invention is proposed.
[0026] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the game virtual object resource dynamic loading method of the present invention, which presents the first embodiment of the game virtual object resource dynamic loading method of the present invention.
[0027] In the first embodiment, the method for dynamically loading game virtual object resources includes the following steps: In one embodiment, a method for dynamically loading game virtual object resources is provided, the method comprising: Step S100: Collect the original loading delay data of virtual objects in dynamic scenes during game operation, and preprocess the original loading delay data to obtain loading delay correction data.
[0028] Raw loading latency data refers to the original record of the time interval from requesting loading to the resource becoming fully available when the game engine loads resources such as 3D models, textures, or animations. This can be obtained by recording resource loading timestamps in real time and calculating the difference through the game engine's built-in performance monitoring interface or third-party tools. Preprocessing refers to the technical process of cleaning, denoising, and standardizing the raw data. For example, outliers can be eliminated through moving average filtering, or latency data of different magnitudes can be unified to the same numerical range through normalization. Loading latency correction data is the preprocessed data used to eliminate noise interference and enhance data analyzability. It eliminates outliers, such as extreme latency caused by sudden hardware failures, through algorithms, and uses statistical methods to smooth the data, thereby improving the accuracy and consistency of the data and avoiding subsequent analysis biases caused by noise in the raw data. The statistical methods can be the mean or median.
[0029] Step S200: Analyze the resource scheduling pressure based on the monitored real-time system load data to obtain the resource allocation fluctuation caused by load fluctuation.
[0030] Real-time system load data refers to real-time monitoring data of hardware resources such as CPU and GPU utilization, memory usage, and bandwidth utilization during game runtime. This data can be collected in real time through system monitoring tools, such as performance counters and sensors. Resource scheduling pressure is the load pressure generated when resource requests exceed the system's processing capacity. It can be quantified by comparing load data with preset thresholds. Resource allocation fluctuation is a quantitative indicator reflecting changes in resource allocation ratios caused by sudden changes in system load. For example, the degree of fluctuation can be characterized by calculating the difference between the current allocation and the historical average. This process analyzes load change trends using a dynamic threshold algorithm. The dynamic threshold algorithm can be a sliding window statistical method, comparing the current load with a preset baseline to calculate resource allocation fluctuation. For example, variance or standard deviation can be used to measure the dispersion of the allocation, thereby accurately identifying load mutation events and providing a basis for dynamically adjusting the resource loading rhythm.
[0031] Step S300: Based on the resource allocation fluctuation and loading delay correction data, the resource loading delay is controlled to return to the preset performance range through a feedback control algorithm. After the resource loading is completed, the resource occupancy distribution data of each virtual object instance in the game is collected.
[0032] The preset performance range is the acceptable latency interval defined by the developer, such as controlling the loading latency within 50 to 150 milliseconds to ensure smoothness. Feedback control algorithms are adjustment methods based on closed-loop control theory, such as PID control, fuzzy control, or adaptive control algorithms. Resource usage distribution data refers to the proportion of resources used by each virtual object instance in memory, video memory, or bandwidth, which can be collected through memory analysis tools or engine interfaces. This step involves inputting loading latency correction data and system load fluctuations into the feedback control algorithm, such as a PID controller, to dynamically adjust resource loading bandwidth allocation based on proportional, integral, and derivative terms, correcting the loading rhythm to keep latency constraints within the preset range. After loading is complete, the distribution ratio of each object across different resource types (such as textures and models) is further recorded, thereby quickly responding to latency fluctuations and providing resource usage evidence for subsequent strategy optimization.
[0033] Step S400: Based on the resource occupancy distribution data, use performance simulation methods to test the operating status of resources under different scheduling strategies, and obtain the operating status simulation results.
[0034] Performance simulation methods utilize offline or online simulation techniques to simulate the impact of different resource scheduling strategies on system performance. These strategies include priority queuing and dynamic batch loading. For example, load models can be built using offline simulation tools, or the effectiveness of strategies can be predicted in real-time through online sampling. The simulation results refer to the metrics recorded during the simulation process, such as average latency, peak memory usage, and frame rate stability. This step constructs a mathematical model of resource scheduling strategies based on resource usage distribution data, such as the functional relationship between load and latency. Different scheduling strategies are parameterized, such as adjusting the loading order and dynamically adjusting the loading granularity. A simulation engine is then used to simulate their performance in typical scenarios (such as scene switching and multiple users on screen simultaneously). For example, the impact of the "prioritize loading resources in visible areas" strategy on latency and memory usage can be simulated, thereby quickly evaluating the feasibility of multiple strategies and reducing trial-and-error costs.
[0035] Step S500: Obtain frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running status and the frame rate fluctuation data.
[0036] Frame rate fluctuation data refers to the real-time changes in frames per second (FPS) during game rendering. The amplitude of these fluctuations reflects the degree of timing conflict between rendering load and resource loading, and can be quantified using statistical methods such as calculating standard deviation or peak volatility. Resource scheduling optimization parameters are configurable variables used to adjust scheduling strategies, such as loading priority weights, resource prefetch thresholds, or dynamic bandwidth allocation ratios. This step involves correlating frame rate fluctuations with simulation results of runtime states, such as latency distribution under different strategies. For example, machine learning models or regression algorithms can be used to establish a mapping relationship between parameters and performance indicators. Finally, optimization algorithms, such as gradient descent and genetic algorithms, search for the optimal parameter combination to simultaneously minimize loading latency and frame rate fluctuations. This dynamically correlates the scheduling strategy with real-time rendering performance, avoiding conflicts between resource loading and rendering tasks.
[0037] Step S600: Adaptively adjust the resource loading mechanism of the game engine based on resource scheduling optimization parameters.
[0038] Adaptive tuning refers to dynamically modifying the engine's internal resource loading logic based on optimization parameters. This includes modifying loading priority rules, adjusting resource chunk sizes, or enabling / disabling specific optimization modules. The resource loading mechanism is a collection of modules within the engine responsible for resource requests, decompression, decoding, and caching. This step feeds optimization parameters back to the engine's loading module in real time via parameter injection or API interfaces. For example, it adjusts the weight allocation of the loading queue or enables chunked loading to reduce memory spikes. It also considers hardware heterogeneity (such as the differences between mobile devices and PCs) and verifies the effectiveness of the strategy through A / B testing. This gives the engine environmental awareness, dynamically adapting to different hardware and scenario requirements and reducing reliance on manual tuning.
[0039] This embodiment provides a method for dynamically loading virtual object resources in games. By collecting and preprocessing raw loading delay data to eliminate noise interference, analyzing real-time system load data to quantify resource allocation fluctuations, using feedback control algorithms to dynamically correct loading delays, simulating the operating states of different scheduling strategies based on resource occupancy distribution data, determining optimization parameters by combining frame rate fluctuation data, and finally adjusting the engine loading mechanism adaptively, the following technical effects can be achieved: solving the resource allocation imbalance problem of traditional static scheduling strategies through closed-loop control and dynamic modeling, realizing precise delay control, optimized resource utilization, enhanced cross-platform compatibility, and improved performance stability, ultimately providing an efficient and low-latency virtual object management solution for dynamic game scenarios.
[0040] In one embodiment, the original loading delay data is preprocessed to obtain loading delay correction data, including: Based on the mean and variance of the original loading delay data, abnormal delay data points are identified from the original loading delay data using a preset outlier threshold. The mean is a statistic characterizing the trend of data latency, which can be obtained by calculating the arithmetic mean of the original data. Variance is a statistic measuring the dispersion of the data, which can be obtained by averaging the squares of the differences between each data point and the mean. The preset outlier threshold is a standard for identifying abnormal values based on statistical principles. For example, using the 3σ principle, areas deviating from the mean by more than three times the standard deviation are defined as outlier ranges. By comparing the absolute deviation of each data point from the mean to whether it exceeds the preset threshold, abnormal latency data points caused by external interference such as hardware failure or network fluctuations can be identified. This process, through the combination of a statistical benchmark model and threshold determination, can accurately isolate sudden outliers and prevent them from interfering with subsequent analysis.
[0041] Based on the Lagrange interpolation method, abnormal delay data points in the original loading delay data are interpolated and repaired by using nearby valid data points to obtain the repaired delay sequence; Lagrange interpolation is a polynomial-based interpolation technique that constructs an interpolation polynomial by selecting effective data points near outliers (e.g., three points before and after the outlier). This method generates a repaired value consistent with the time series trend by calculating the weighting coefficients of the neighboring points, replacing the original outlier data point. For example, if the outlier is located at the k-th position in the time series, its repaired value can be calculated by a linear combination of the delayed data of the neighboring points and their corresponding timestamps. This operation preserves the temporal continuity of the data while eliminating sharp fluctuations caused by outliers, providing a smooth base sequence for subsequent frequency domain analysis.
[0042] Wavelet transform is performed on the repaired delayed sequence to obtain the time-frequency distribution map, and the main frequency bands of the delay are identified based on the time-frequency distribution map; Wavelet transform is a time-frequency analysis tool that decomposes a signal into different frequency components through multi-scale decomposition. A time-frequency distribution plot is a visualization of the wavelet transform result; the horizontal axis represents time, the vertical axis represents frequency, and the color intensity reflects the energy distribution of different frequency bands. By analyzing energy concentration areas in the plot—such as high-frequency bands corresponding to sudden fluctuations and low-frequency bands corresponding to trend changes—the key frequency bands of the delayed data can be identified, for example, periodic fluctuations of 0.11Hz. This process, through joint time-frequency analysis, accurately locates the core frequency components of the delayed signal, providing a frequency band basis for subsequent filtering operations.
[0043] Based on the main frequency band of the delay, an elliptic filter is used to perform frequency band filtering on the repaired delay sequence to obtain a smoothed delay signal; An elliptic filter is a type of IIR digital filter with a steep passband and stopband transition. By setting the passband boundaries (e.g., including the dominant frequency band from 0.05 to 1.5 Hz) and the stopband cutoff frequency (e.g., above 2 Hz), an elliptic filter can preserve effective frequency bands relevant to system load variations while suppressing high-frequency noise. This operation significantly improves the signal-to-noise ratio and eliminates interference components unrelated to delay characteristics through precise frequency band preservation and suppression.
[0044] The smoothed delayed signal is decomposed into three levels using Haar wavelets to obtain multi-resolution wavelet coefficients. The wavelet coefficients are then subjected to soft thresholding to reconstruct the loaded delay correction data.
[0045] Haar wavelets are wavelet basis functions that use binary decomposition to decompose a signal into approximate coefficients (low-frequency trends) and detail coefficients (high-frequency noise) through a three-level decomposition. Soft thresholding is a denoising method that compresses wavelet coefficients by calculating a threshold (e.g., based on a square root criterion): coefficients below the threshold are set to zero, and coefficients above the threshold are scaled down proportionally. This process preserves the signal's trend characteristics through multi-scale analysis while eliminating residual high-frequency noise, ultimately reconstructing high-precision loaded delay-corrected data.
[0046] This embodiment accurately isolates outliers by combining statistical thresholding and Lagrange interpolation, locates core frequency bands using wavelet transform and time-frequency analysis, and achieves noise suppression and feature preservation by combining elliptic filters and multi-resolution wavelet decomposition. Finally, signal reconstruction is optimized through soft thresholding. This method, through multi-stage collaborative techniques, avoids the impact of data fragmentation on continuous analysis, improves the signal-to-noise ratio through joint frequency domain and time-frequency processing, and provides accurate benchmarks for subsequent feedback control with the final corrected data, significantly enhancing the system's response capability to load fluctuations.
[0047] In one embodiment, the resource scheduling pressure is analyzed based on the monitored real-time system load data to obtain the resource allocation fluctuation caused by load fluctuations, including: The system's real-time load data is baseline-calibrated using an exponentially weighted moving average method to obtain stable load data; The exponentially weighted moving average (AMA) is a time series data smoothing technique that assigns exponentially decreasing weights to historical data, giving higher priority to recent data. Its purpose is to eliminate high-frequency noise in system load data and generate a more stable baseline reference. For example, it can be achieved through the formula... To achieve dynamic baseline calibration, This is a smoothing coefficient, set according to the fluctuation characteristics of the load data, such as 0.1~0.3. This provides the raw system load data for the current time t, such as real-time metrics like CPU utilization, memory usage, and GPU bandwidth. The baseline value is the exponentially weighted moving average of the previous time step t−1, i.e., the historical baseline value. This method generates smoothed baseline data through weighted summation, which can effectively suppress sensor noise or transient interference, such as background processes briefly occupying the CPU, making the baseline closer to the actual load trend of the system.
[0048] The load change gradient is calculated based on the stable load data. If the load change gradient exceeds the preset load change threshold, the load change is converted into an initial resource fluctuation based on the system resource allocation mechanism. The load change gradient refers to the rate of change of system load per unit time, which can be obtained by calculating the ratio of the difference in stable load data between adjacent time windows to the time interval. For example, if the current window load is... The previous window is The gradient is ,in This is the time interval between adjacent time windows, such as 100ms or 500ms. Its purpose is to quantify the severity of load changes. The preset load change threshold is a load change rate threshold defined by the developer, used to determine whether the current load fluctuation exceeds the system's tolerance range. For example, it can be set to 3 times the standard deviation of historical gradients to distinguish between normal fluctuations and sudden events. When the load change gradient exceeds this threshold, the system maps the gradient to the initial resource fluctuation amount according to the resource allocation mechanism. For example, through a linear relationship... Calculate the initial adjustment amount, where This is a proportional coefficient, pre-set according to resource type and system capacity. This mapping needs to be combined with the allocation rules of specific resource types (such as memory and bandwidth) to ensure that the adjustment direction is consistent with the direction of load change, such as reducing the loading of non-critical resources when the load increases.
[0049] The initial resource fluctuation is compensated for by capacity to obtain the resource allocation fluctuation caused by load fluctuation.
[0050] Capacity compensation refers to the process of correcting initial resource fluctuations based on the physical capacity limitations of system hardware resources. For example, if the initial fluctuation exceeds the remaining available memory, adjustments are made through scaling or priority pruning. Scaling, for instance, compresses the fluctuation to 90% of the remaining capacity, while priority pruning, such as pausing the loading of low-priority resources, ensures the feasibility of resource allocation. The compensation process can introduce constraints, such as ensuring bandwidth allocation is not lower than a minimum guaranteed value, to prevent resource allocation from becoming infeasible due to excessive adjustments, such as crashes caused by insufficient memory.
[0051] This embodiment employs an exponentially weighted moving average method to eliminate noise and generate stable load data. It quantifies load change gradients and uses threshold judgments to trigger resource adjustments. Finally, capacity compensation ensures the feasibility of resource allocation, achieving the following technical effects: exponentially weighted moving averages filter noise, making load change judgments more reliable and reducing false triggers; the gradient threshold mechanism quickly locates load surge events, ensuring timely resource adjustments; capacity compensation avoids conflicts between theoretical calculations and actual hardware capabilities, preventing system crashes due to over-adjustment; and configurable scaling factors and compensation rules adapt to the resource characteristics of different hardware platforms, such as the differences between the memory limitations of mobile devices and the high bandwidth scenarios of PCs. In summary, this embodiment, through a combination of mathematical modeling and hardware constraints, decomposes the quantification process of resource allocation fluctuations into operable sub-steps, improving the system's response accuracy to load surges and ensuring the engineering feasibility of resource adjustments, providing reliable input data for subsequent feedback control and strategy optimization.
[0052] In one embodiment, based on resource allocation fluctuations and loading delay correction data, a feedback control algorithm is used to control the resource loading delay to return to a preset performance range, including: Based on the resource allocation fluctuation and loading delay correction data, the amount of memory allocation compensation required for the target resource loading state is calculated. The resource allocation fluctuation can be a quantitative indicator representing the degree of change in system resource allocation. It can be obtained by collecting the difference values of real-time data such as system memory usage and task queue length. For example, the resource allocation fluctuation can include the sudden change in texture memory usage or the instantaneous change in thread concurrency during scene switching. Load latency correction data can be time-series data of load latency after filtering or normalization. It can be obtained by preprocessing the original latency data using a moving average algorithm or a Kalman filter. For example, the load latency correction data can include the GPU shader load latency sequence after removing outliers. Memory allocation compensation can be the amount of memory resource adjustment required to offset the impact of resource fluctuations on latency. Its purpose is to balance the difference between sudden loads and resource demands. For example, memory allocation compensation can be expressed as increasing texture cache reserved space or releasing unused vertex buffer space. Technical operations can establish a mathematical model to link the resource allocation fluctuation and memory compensation requirements. For example, a linear regression model or support vector regression model can be used, taking historical fluctuation data and latency correction data as input and outputting the theoretical value of the compensation amount. This can achieve the technical effect of quantifying the dynamic adjustment requirements of memory resources, avoiding resource waste caused by insufficient allocation leading to loading blockage or over-allocation.
[0053] The scheduling correction amount is calculated based on the memory allocation compensation amount, and the target allocation parameters that the resource scheduler needs to achieve are determined based on the scheduling correction amount and the current resource loading delay. The scheduling correction amount can be an increment of parameters that adjust the resource loading rhythm, such as the increase or decrease ratio of loading bandwidth or the adjustment range of loading priority weight. This can be achieved by mapping the memory compensation amount to the scheduling parameter space. For example, the scheduling correction amount can include increasing the priority weight of texture loading tasks or reducing the compression rate of background textures. The target allocation parameter can be the final control goal that the resource scheduler needs to achieve, such as the memory bandwidth allocation ratio or the concurrency threshold of loading tasks. This can be obtained by combining hardware constraints and real-time load status to perform parameter boundary verification. For example, the target allocation parameter can include the percentage of video memory bandwidth allocated to the rendering thread pool or the maximum concurrency of model loading tasks. Technical operations can be achieved by converting the memory compensation amount into an executable scheduling parameter adjustment amount. For example, the compensation amount can be converted into a specific bandwidth percentage by scaling, while taking into account hardware limitations such as memory capacity limits and the number of CPU cores. This can achieve the technical effect of converting abstract compensation amounts into specific scheduling actions, improving the operability of the control system.
[0054] Based on the target allocation parameters that the resource scheduler needs to achieve, the optimal response parameters of the feedback control algorithm are calculated using the particle swarm optimization algorithm. Among them, Particle Swarm Optimization (PSO) is a swarm intelligence optimization algorithm used to search for optimal solutions to feedback control parameters. Its purpose is to rapidly explore the combination space of proportional, integral, and derivative parameters. For example, PSO can be used to optimize the Kp, Ki, and Kd parameter combinations in a PID controller. The technique involves initializing a set of parameter particles and iteratively evaluating the performance indicators of each parameter combination in a simulated environment, such as convergence delay and overshoot. The particles update their positions based on their own historical best solutions and the swarm's best solution, gradually converging to the globally optimal parameter combination. This can replace manual trial and error or fixed parameter settings, significantly improving the response accuracy and adaptability of feedback control.
[0055] Collect real-time latency data during resource loading and calculate the standard deviation of the real-time latency data within a sliding time window to obtain the latency fluctuation amplitude; The sliding time window can be a fixed-duration sampling interval used to continuously collect real-time latency data, such as a window period of 1 second or 500 milliseconds. Data can be continuously acquired through the game engine's callback interface or performance monitoring API. Latency fluctuation amplitude can be a statistical indicator that quantifies the dispersion of latency data. Its purpose is to reflect the stability of loading latency. For example, latency fluctuation amplitude can be represented by a standard deviation of less than 5 milliseconds or more than 20 milliseconds. Technical operations can achieve the technical effect of accurately quantifying the severity of latency fluctuation by acquiring the latency data sequence in real time, calculating the mean of the data within the window, and then taking the square root of the average of the squared differences between each data point and the mean. This provides a quantitative basis for subsequent control.
[0056] The resource latency deviation is obtained by comparing the latency fluctuation amplitude with the preset latency benchmark value. The preset latency benchmark value can be the upper limit of the target latency standard deviation defined by the system, for example, the standard deviation set according to the user experience threshold is no more than 10 milliseconds. The resource latency deviation can be the difference between the latency fluctuation amplitude and the benchmark value. Its purpose is to determine whether the current latency exceeds the tolerance range. For example, the resource latency deviation can include positive deviation (excessive fluctuation) or negative deviation (insufficient fluctuation). The technical operation can calculate the deviation through simple subtraction, for example, deviation = current standard deviation benchmark value, thereby achieving the technical effect of quickly identifying abnormal fluctuations and ensuring the timeliness of control actions.
[0057] Based on the optimal response parameters, the resource delay deviation is calculated using a feedback control algorithm to obtain the original control value. The resource loading delay is then controlled to return to the preset performance range based on the original control value.
[0058] The proportional-integral (PI) operation can be a calculation process based on the control equation with optimal response parameters, for example, using the formula: Original control quantity = Kp × Deviation + Ki × ∫ Deviation dt, where Kp and Ki are the proportional and integral coefficients optimized by the particle swarm optimization algorithm. The original control quantity can be the adjustment signal to be applied, and its purpose is to generate smooth and fast-converging control commands. For example, the original control quantity can be expressed as adjusting the texture compression level or dynamically adjusting the size of the loading thread pool. Technical operations can achieve the effect of avoiding oscillations or integral saturation problems in simple proportional control by substituting the optimized PID parameters into the control equation and combining historical errors with the current error for weighted summation, thus ensuring that the delay converges quickly to the preset range.
[0059] This embodiment quantifies the impact of resource fluctuations by calculating memory allocation compensation, optimizes feedback control parameters using particle swarm optimization, and combines sliding window monitoring of real-time latency fluctuations with the generation of proportional-integral control parameters. This achieves a significant improvement in resource scheduling accuracy and system stability in complex scenarios. The scheme upgrades feedback control from passive response to active prediction through multi-level optimization, avoiding both excessive and insufficient resource allocation and achieving millisecond-level real-time suppression of latency deviations. This effectively reduces the probability of perceived stuttering and improves resource utilization.
[0060] In one embodiment, based on resource occupancy distribution data, a performance simulation method is used to test the operating status of resources under different scheduling strategies, and the simulation results of the operating status are obtained, including: Collect memory and video memory usage data for each virtual object instance in the game, and construct a resource distribution topology map based on the usage data of each virtual object instance.
[0061] Memory and video memory usage data can be quantitative indicators describing the real-time resource consumption of virtual object instances during runtime. These can be obtained through memory analysis tools (such as Valgrind and GPUProfiler) or video memory detection interfaces. Examples include parameters such as video memory usage rate, memory allocation size, and texture resource size. The resource distribution topology can be a resource relationship network constructed through mathematical models or visualization methods. Its nodes represent specific resource instances, and edges represent dependencies or competition between resources, such as object A depending on the decompression operation of texture B. This topology can be constructed using resource IDs or object hierarchy relationships. For example, when an object instance needs to access multiple texture resources, edges pointing to these texture nodes can be established in the topology.
[0062] Based on the resource distribution topology, the competition for resources during the scheduling process is simulated using discrete event simulation methods.
[0063] Using a resource distribution topology map as input, discrete event simulation methods can be based on event-triggered mechanisms. This involves simulating resource contention by tracking the time series of discrete events such as resource loading and releasing. This method can be implemented using an event-driven architecture, for example, by recording the arrival time, service time, and completion time of resource access requests, and tracking resource conflict events through an event queue, such as two threads simultaneously requesting the decompression operation of the same texture resource. For instance, during the simulation, competition metrics such as the number of resource conflicts and the length of the waiting queue can be quantified.
[0064] Based on the competition for resources during the scheduling process, a recurrent neural network is used to predict the resource occupancy trend under different load conditions.
[0065] The competition for resources during scheduling can be represented by sequences of resource conflict events or time-series data of resource usage recorded during simulation. Recurrent neural networks (such as Long Short-Term Memory networks, LSTM) can be predictive models with temporal memory capabilities, predicting the upward or downward trend of resource usage within future time windows by inputting historical resource usage data (e.g., a sequence of memory usage changes over the past 10 seconds). For example, LSTM networks can capture long-term dependencies in resource usage data, thereby identifying potential periods of resource overload.
[0066] Calculate the waiting time during resource scheduling based on occupancy trends, and identify resource bottleneck nodes based on the waiting time.
[0067] The waiting time during resource scheduling can be the length of time a resource request remains in contention or a queue. Its calculation can be derived from resource usage trends and request queue lengths in simulation data. A resource bottleneck node can be a resource instance or node whose waiting time exceeds a preset threshold, such as a texture loading delay node caused by memory bandwidth contention. The identification process can be achieved by comparing the waiting time distribution of each node. For example, if the average waiting time of a certain node is significantly higher than that of other nodes, it is determined to be a bottleneck.
[0068] The performance counter signals of each resource node are collected during the game operation, and the main fluctuation frequency is extracted from the performance counter signal through short-time Fourier transform. The main fluctuation frequency is used as the dynamic load condition.
[0069] Performance counter signals can be sequences of real-time acquired hardware or software performance metrics, such as CPU utilization, video memory bandwidth usage, and frame rate fluctuations. Short-Time Fourier Transform (STFT) is an analysis method that converts time-domain signals into time-frequency spectra. By windowing the signal and calculating the Fourier transform of each window, the frequency components that dominate load fluctuations can be identified. For example, after windowing a signal within 1 second, a scene switching frequency (corresponding to 0.5Hz) every 2 seconds can be detected. The dominant fluctuation frequency, as a dynamic load condition, can be used to map the detected dominant frequency to load injection cycle parameters in the simulation, such as generating resource request peaks with the same cycle.
[0070] Based on dynamic load conditions, resource occupancy distribution data, and resource bottleneck nodes, performance simulation methods are used to test the operating status of resources under different scheduling strategies, and the simulation results of the operating status are obtained.
[0071] Dynamic load conditions can be periodic load patterns generated based on the fluctuation frequency extracted from the STFT, such as a memory loading peak triggered every 2 seconds. Resource usage distribution data can be the resource consumption statistics of each node in the topology graph. Resource bottleneck nodes can be high-latency nodes identified in the previous steps. Performance simulation methods can be implemented through parameterized simulation models (such as adjusting loading priority weights and block sizes), for example, simulating the latency and usage changes after enabling texture compression algorithms for memory bottleneck nodes. By comparing the average latency, resource utilization, and other indicators of different scheduling strategies under periodic loads, the optimal strategy can be selected.
[0072] This embodiment quantifies resource distribution characteristics by collecting resource occupancy data and constructing a topology map. It tracks resource contention events using discrete event simulation, predicts resource occupancy trends using a recurrent neural network, locates bottleneck nodes through waiting time analysis, extracts load fluctuation frequencies using STFT to generate dynamic load conditions, and finally tests the operational status of different scheduling strategies based on multi-dimensional data fusion. This achieves the following technical effects: By combining topology map and contention simulation, it accurately identifies deep bottlenecks such as memory bandwidth contention or memory fragmentation, improving the accuracy of bottleneck location; it constructs a dynamic load model using the periodic fluctuation frequencies extracted by STFT, making the simulation environment closer to the load change patterns of real-world scenarios; it uses recurrent neural networks to predict resource occupancy trends, providing a basis for proactive adjustments to scheduling strategies, such as preloading resource types that are about to be overloaded; and the fusion of multi-source data significantly improves the matching degree between simulation results and actual scenarios, reducing strategy evaluation bias caused by model simplification. In summary, this method, by introducing topology modeling, time-series prediction, and dynamic load simulation techniques, significantly improves the comprehensiveness and accuracy of resource scheduling strategy evaluation, providing a reliable basis for the selection of optimization parameters.
[0073] In one embodiment, resource scheduling optimization parameters are determined based on runtime simulation results and frame rate fluctuation data, including: A model of the relationship between frame rate fluctuation and loading performance is established based on the simulation results of the running status and the frame rate fluctuation data. Resource allocation weights are set based on system response characteristics, and load correction coefficients are calculated using load impact factors based on resource latency deviation and system load data during game runtime. By combining the load correction factor with the resource allocation weight, with the goal of minimizing loading latency, the simulated annealing algorithm is used to iteratively optimize the resource scheduling parameters until the preset termination condition is met, and the optimized scheduling parameters are output. Generate control instructions for the resource scheduler based on optimized scheduling parameters; Adjust the game engine's resource loading queue according to the control instructions to obtain the resource scheduler's allocation sequence; The allocation sequence is subjected to load testing. The performance error caused by frame rate fluctuation is evaluated using a model that shows the relationship between frame rate fluctuation and loading performance. Resource scheduling optimization parameters are then output.
[0074] The frame rate fluctuation and loading performance relationship model can be a mathematical model established through statistical or machine learning methods, used to quantify the correlation between frame rate fluctuation amplitude and performance indicators such as resource loading latency and bandwidth usage. This model can be obtained by collecting latency distribution and real-time frame rate fluctuation data under different scheduling strategies, extracting key parameters through feature engineering, and then training using methods such as linear regression, support vector machines, or deep neural networks. For example, this model can include a multivariate regression analysis model or a neural network model to predict the impact of scheduling strategies on frame rate. Resource allocation weights can be priority coefficients for different resource types during scheduling, and their values determine the resource loading order and bandwidth allocation ratio. These weights can be initialized using system response characteristics; for example, texture loading weight can be set to 0.6, and model loading weight to 0.4. The load correction coefficient can be an adjustment coefficient calculated using the load impact factor and current system load data, used to dynamically correct resource allocation weights. Its calculation method can be the load impact factor multiplied by the ratio of the current load to the preset load limit. The load impact factor can be determined through correlation analysis between load data and historical performance, reflecting the quantitative impact of system load on scheduling effectiveness.
[0075] Simulated annealing can be a global optimization algorithm that avoids getting trapped in local optima by probabilistically accepting inferior solutions in the solution space through a simulated thermodynamic annealing process. This algorithm can use load correction coefficients and resource allocation weights as initial parameters, defining a fitness function that aims to minimize loading latency. In a specific embodiment, after initializing parameters such as temperature and cooling rate, the algorithm generates neighborhood solutions through random perturbation and decides whether to accept new solutions based on the Metropolis criterion. During iteration, the temperature is gradually reduced until a termination condition is met, such as reaching the maximum number of iterations or the fitness change being less than a threshold, thereby searching for the globally optimal combination of resource scheduling parameters, such as the loading bandwidth allocation ratio or task chunk size. The resource scheduler's control instructions can be a set of instructions that map the optimized scheduling parameters to specific operations. For example, when the optimized texture loading weight is increased to 0.7, the priority rules of the loading queue can be modified through the engine API to prioritize adding high-weight resources to the head of the queue and adjust the task chunk size or concurrency. This instruction must be compatible with the game engine's interface to ensure the actual execution effect of the scheduling logic. The resource scheduler's allocation sequence can be an optimized resource loading order and parameter configuration list, such as a priority-arranged list of loading tasks and their corresponding bandwidth allocation ratios. This sequence is generated by adjusting the loading queue through control commands. Its technical effect is to transform abstract parameters into executable scheduling logic for the engine, ensuring that the optimization results actually take effect. Performance error can be the difference between actual runtime frame rate fluctuations and model predictions, used to evaluate the accuracy of the scheduling strategy. This error can be calculated by collecting actual frame rate data and loading latency through load testing, for example, using metrics such as mean squared error. By feeding the error back to the model parameters or adjusting the weights of the optimization algorithm, the final output resource scheduling optimization parameters can be corrected, ensuring their effectiveness in real-world scenarios.
[0076] This embodiment quantifies the impact of scheduling strategies on frame rate by establishing a model relating frame rate fluctuations to loading performance. It combines dynamically adjusted resource allocation weights and load correction coefficients to form an adaptive parameter configuration. Simulated annealing is used to search for globally optimal scheduling parameters, which are then transformed into engine-executable loading queue control instructions. Load testing and error evaluation form a closed-loop verification process, achieving the following technical effects: First, the quantification model extends the optimization objective to frame rate stability, preventing rendering blockage caused by excessively fast loading. Second, the dynamic weight adjustment mechanism balances resource demands based on real-time load, reducing contention. Third, the global optimization algorithm overcomes local optima limitations, improving the quality of multi-parameter combined scheduling strategies. Finally, the closed-loop verification mechanism reduces model bias risk, ensuring the effectiveness of optimized parameters in complex scenarios. This solution upgrades resource scheduling from experience-based adjustments to data-driven intelligent decision-making, balancing loading latency control and frame rate stability, providing a more robust resource management solution.
[0077] In one embodiment, a model relating frame rate fluctuations to loading performance is established based on simulation results and frame rate fluctuation data, including: Resource competition index data are extracted from the simulation results of the operation status, and the independent component analysis method is used to extract features from the resource competition index data to extract the core components of the resource competition index data that exceed the preset competition threshold. Resource contention index data refers to numerical parameters that quantify resource contention conflicts between different resource nodes. This data can be obtained through records of peak resource occupancy and conflict counts during runtime simulation. Examples include memory bandwidth contention counts and peak GPU shader unit occupancy. Independent Component Analysis (ICA) is a blind source separation technique used to decompose mixed signals into statistically independent components; FastICA can be used as an example. Core components refer to the independent components that significantly impact frame rate fluctuations, identified through ICA. These components are characterized by potentially causing performance bottlenecks when resource contention indexes exceed preset thresholds (e.g., resource occupancy exceeding 80%). ICA is used to extract features from resource contention index data. For example, statistical tests can be combined to identify core components, such as identifying memory bandwidth contention and GPU shader conflicts as the main factors causing frame rate drops, thereby eliminating redundant features and improving the targeting of subsequent modeling.
[0078] The load transfer weight between different resource nodes is calculated based on the core components, and the frame rate fluctuation data is normalized using the load transfer weight to obtain frame rate fluctuation correction data. Load passing weight is a coefficient that quantifies the degree of mutual influence of load between different resource nodes. It can be calculated through historical data statistics or causal inference methods. An example is the impact coefficient of memory bandwidth contention on GPU latency. Normalization refers to the process of converting frame rate fluctuation data into dimensionless values, which can be achieved through linear transformation or weighted normalization. By calculating the load passing weight and combining it with normalization, the original frame rate fluctuation data can be divided by the weighted total load value. For example, if memory contention causes GPU latency with a weight of 0.7, the corrected frame rate fluctuation data can eliminate the coupling effect between resources and more accurately reflect the impact of single resource scheduling.
[0079] Collect system load data and real-time performance data during game runtime, fuse frame rate fluctuation correction data, system load data and real-time performance data, and construct a loading performance scoring matrix using the entropy weight method; System load data refers to hardware resource usage parameters recorded during operation, such as CPU utilization, GPU temperature, and remaining memory. Real-time performance data refers to performance indicators directly related to the rendering or loading process, such as texture loading time and rendering time. The loading performance scoring matrix is a matrix structure containing weighted scores of multi-dimensional performance indicators. For example, it can be generated through weighted summation, such as a frame rate fluctuation weight of 0.4 and a memory bandwidth weight of 0.3. The entropy weighting method is a method for calculating the objective weights of indicators based on information entropy. For example, the weight allocation can be determined by calculating the information entropy value of each indicator. By fusing multi-source data and constructing a scoring matrix using the entropy weighting method, indicators with different dimensions can be transformed into a unified scoring system, providing comparable input data for subsequent modeling.
[0080] The support vector machine algorithm is used to map the frame rate fluctuation correction data with the loading performance score matrix to construct a model of the relationship between frame rate fluctuation and loading performance.
[0081] Support Vector Machine (SVM) is a supervised learning method that achieves classification or regression by finding the optimal hyperplane. For example, a radial basis function (RBF) can be used as the kernel function to handle nonlinear relationships. Frame rate fluctuation correction data is used as input features, and the loading performance score matrix is used as label data. For example, model training can be performed by minimizing structural risk, such as by solving a convex quadratic programming problem to determine the classification hyperplane or regression function. By constructing a mapping relationship through SVM, the nonlinear correlation between the standard deviation of frame rate fluctuation and the peak loading latency can be captured. For example, a regression equation can be generated to quantify the latency change corresponding to each 1% increase in frame rate fluctuation, thereby improving the model's predictive ability for complex performance relationships.
[0082] This embodiment extracts resource competition index data and uses independent component analysis to screen core components to eliminate redundant features. It calculates load transfer weights and normalizes frame rate data to eliminate resource coupling effects. Multi-dimensional data is fused, and a scoring matrix is constructed using entropy weighting to unify the input system. Finally, a support vector machine is used to construct a nonlinear mapping model to capture complex performance correlations. This significantly improves the model's accuracy and practicality. Specifically, it accurately identifies the core resource competition factors that drive frame rate fluctuations, dynamically corrects data to closely resemble real-world scenarios, objectively assigns weights to achieve comprehensive evaluation of multi-source data, and enhances predictive capabilities through nonlinear modeling. This provides a reliable basis for resource scheduling optimization, ultimately achieving a synergistic improvement in loading efficiency and rendering smoothness.
[0083] Furthermore, this embodiment of the invention also proposes a storage medium storing a game virtual object resource dynamic loading program, which, when executed by a processor, implements the steps of the game virtual object resource dynamic loading method described above.
[0084] In addition, refer to Figure 3 This invention also proposes a dynamic loading system for game virtual object resources, which includes: The data preprocessing module 10 is used to collect the original loading delay data of virtual objects in dynamic scenes during game operation, and preprocess the original loading delay data to obtain loading delay correction data. The load quantization module 20 is used to analyze the resource scheduling pressure based on the monitored real-time system load data and obtain the resource allocation fluctuation caused by load fluctuation. Feedback control module 30 is used to control the resource loading delay to return to a preset performance range based on the resource allocation fluctuation and the loading delay correction data through a feedback control algorithm, and to collect the resource occupancy distribution data of each virtual object instance in the game after the resource loading is completed; The performance simulation module 40 is used to test the operating status of resources under different scheduling strategies based on the resource occupancy distribution data using performance simulation methods, and obtain the operating status simulation results. The parameter optimization module 50 is used to acquire frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running state and the frame rate fluctuation data. The mechanism control module 60 is used to adaptively adjust the resource loading mechanism of the game engine based on resource scheduling optimization parameters.
[0085] Other embodiments or specific implementations of the game virtual object resource dynamic loading system described in this invention can be found in the above-described method embodiments, and will not be repeated here.
[0086] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0087] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In the unit claims listing several systems, these systems may be embodied by the same hardware item. The use of the terms "first," "second," and "third," etc., does not indicate any order and can be interpreted as names.
[0088] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal user device (which may be a mobile phone, computer, server, air conditioner, or network user device, etc.) to execute the methods described in the various embodiments of the present invention.
[0089] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for dynamically loading virtual object resources in a game, characterized in that, The method includes: The original loading delay data of virtual objects in dynamic scenes during game operation is collected, and the original loading delay data is preprocessed to obtain loading delay correction data. Based on the monitored real-time system load data, the resource scheduling pressure is analyzed to obtain the amount of resource allocation fluctuation caused by load fluctuation. Based on the resource allocation fluctuation and the loading delay correction data, the resource loading delay is controlled to return to the preset performance range through a feedback control algorithm, and the resource occupancy distribution data of each virtual object instance in the game is collected after the resource loading is completed; Based on the resource occupancy distribution data, the performance simulation method is used to test the operating status of resources under different scheduling strategies, and the operating status simulation results are obtained. Obtain frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running state and the frame rate fluctuation data; The resource loading mechanism of the game engine is adaptively adjusted based on resource scheduling optimization parameters; The step of controlling the resource loading delay to return to a preset performance range through a feedback control algorithm based on the resource allocation fluctuation and the loading delay correction data includes: Based on the resource allocation fluctuation and the loading delay correction data, the memory allocation compensation required for the target resource loading state is calculated. The scheduling correction amount is calculated based on the memory allocation compensation amount, and the target allocation parameters that the resource scheduler needs to achieve are determined based on the scheduling correction amount and the current resource loading delay. Based on the target allocation parameters that the resource scheduler needs to achieve, the optimal response parameters of the feedback control algorithm are calculated using the particle swarm optimization algorithm. Collect real-time latency data during resource loading and calculate the standard deviation of the real-time latency data within a sliding time window to obtain the latency fluctuation amplitude; The delay fluctuation amplitude is compared with a preset delay benchmark value to obtain the resource delay deviation. Based on the optimal response parameters, the resource delay deviation is calculated using a feedback control algorithm to obtain the original control value, and the resource loading delay is controlled to return to the preset performance range based on the original control value.
2. The method for dynamically loading game virtual object resources as described in claim 1, characterized in that, The preprocessing of the original loading delay data to obtain loading delay correction data includes: Based on the average value and variance of the original loading delay data, abnormal delay data points are identified from the original loading delay data using a preset outlier threshold. Based on the Lagrange interpolation method, abnormal delay data points in the original loading delay data are interpolated and repaired by using nearby valid data points to obtain the repaired delay sequence; The repaired delay sequence is subjected to wavelet transform to obtain a time-frequency distribution map, and the main delay frequency bands are identified based on the time-frequency distribution map; Based on the main frequency band of the delay, an elliptic filter is used to perform band filtering on the repaired delay sequence to obtain a smoothed delay signal. The smoothed delayed signal is decomposed into three levels using Haar wavelets to obtain multi-resolution wavelet coefficients. The wavelet coefficients are then subjected to soft thresholding to reconstruct the loaded delay correction data.
3. The method for dynamically loading game virtual object resources as described in claim 1, characterized in that, The analysis of resource scheduling pressure based on monitored real-time system load data yields the resource allocation fluctuation caused by load fluctuations, including: The real-time load data of the system is baseline-calibrated using an exponentially weighted moving average method to obtain stable load data. The load change gradient is calculated based on the stable load data. If the load change gradient exceeds the preset load change threshold, the load change is converted into an initial resource fluctuation based on the system resource allocation mechanism. The initial resource fluctuation is compensated for by capacity to obtain the resource allocation fluctuation caused by load fluctuation.
4. The method for dynamically loading game virtual object resources as described in claim 1, characterized in that, The step of testing the operational status of resources under different scheduling strategies using performance simulation methods based on the resource occupancy distribution data, and obtaining the operational status simulation results, includes: Collect memory and video memory usage data for each virtual object instance in the game, and construct a resource distribution topology map based on the usage data of each virtual object instance; Based on the resource distribution topology, the competition for resources during the scheduling process is simulated using the discrete event simulation method. Based on the competition for resources during the scheduling process, a recurrent neural network is used to predict the resource occupancy trend under different load conditions. The waiting time during resource scheduling is calculated based on the occupancy trend, and resource bottleneck nodes are identified based on the waiting time. The performance counter signals of each resource node during game operation are collected, and the main fluctuation frequency is extracted from the performance counter signals through short-time Fourier transform. The main fluctuation frequency is used as the dynamic load condition. Based on the dynamic load conditions, the resource occupancy distribution data, and the resource bottleneck nodes, the performance simulation method is used to test the operating status of resources under different scheduling strategies, and the operating status simulation results are obtained.
5. The method for dynamically loading game virtual object resources as described in claim 1, characterized in that, The determination of resource scheduling optimization parameters based on the simulation results of the operating state and the frame rate fluctuation data includes: A model of the relationship between frame rate fluctuation and loading performance is established based on the simulation results of the running state and the frame rate fluctuation data. Resource allocation weights are set based on system response characteristics, and load correction coefficients are calculated using load impact factors based on the resource latency deviation and system load data during game operation. By combining the load correction factor with the resource allocation weight, with the goal of minimizing loading latency, the simulated annealing algorithm is used to iteratively optimize the resource scheduling parameters until the preset termination condition is met, and the optimized scheduling parameters are output. The resource scheduler's control instructions are generated based on the optimized scheduling parameters; Adjust the game engine's resource loading queue according to the control instructions to obtain the resource scheduler's allocation sequence; The allocation sequence is subjected to load testing. The performance error caused by frame rate fluctuation is evaluated using a model that shows the relationship between frame rate fluctuation and loading performance. Resource scheduling optimization parameters are then output.
6. The method for dynamically loading game virtual object resources as described in claim 5, characterized in that, The step of establishing a model relating frame rate fluctuations to loading performance based on the simulation results of the running state and the frame rate fluctuation data includes: Resource competition index data are extracted from the simulation results of the operating state, and the independent component analysis method is used to extract features from the resource competition index data to extract the core components of the resource competition index data that exceed the preset competition threshold. The load transfer weight between different resource nodes is calculated based on the core components, and the frame rate fluctuation data is normalized using the load transfer weight to obtain frame rate fluctuation correction data. Collect system load data and real-time performance data during game runtime, fuse the frame rate fluctuation correction data, system load data and real-time performance data, and construct a loading performance scoring matrix using the entropy weight method; The support vector machine algorithm is used to map the frame rate fluctuation correction data with the loading performance score matrix to construct a model of the relationship between frame rate fluctuation and loading performance.
7. A dynamic loading system for game virtual object resources, used to implement the dynamic loading method for game virtual object resources as described in claim 1, characterized in that, The game virtual object resource dynamic loading system includes: The data preprocessing module is used to collect the original loading delay data of virtual objects in dynamic scenes during game operation, and to preprocess the original loading delay data to obtain loading delay correction data. The load quantization module is used to analyze the resource scheduling pressure based on the monitored real-time system load data and obtain the amount of resource allocation fluctuation caused by load fluctuation. The feedback control module is used to control the resource loading delay to return to a preset performance range based on the resource allocation fluctuation and the loading delay correction data, and to collect the resource occupancy distribution data of each virtual object instance in the game after the resource loading is completed. The performance simulation module is used to test the operating status of resources under different scheduling strategies based on the resource occupancy distribution data and to obtain the operating status simulation results. The parameter optimization module is used to acquire frame rate fluctuation data during game operation, and determine resource scheduling optimization parameters based on the simulation results of the running state and the frame rate fluctuation data. The mechanism control module is used to adaptively adjust the resource loading mechanism of the game engine based on resource scheduling optimization parameters.
8. A device for dynamically loading virtual object resources in a game, characterized in that, The device includes: a memory, a processor, and a game virtual object resource dynamic loading program stored on the memory and executable on the processor, the game virtual object resource dynamic loading program being configured to implement the steps of the game virtual object resource dynamic loading method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium stores a game virtual object resource dynamic loading program, which, when executed by the processor, implements the steps of the game virtual object resource dynamic loading method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Unity game resources loading optimization method and system
CN111897596A
Game resource loading method and device, computer equipment and storage medium
CN112169310A
Hybrid scheduling system and method for application performance perception
CN119225920A
