CN117785332A - Virtual three-dimensional space dynamic resource loading and releasing method - Google Patents

Virtual three-dimensional space dynamic resource loading and releasing method Download PDF

Info

Publication number
CN117785332A
CN117785332A CN202410221439.0A CN202410221439A CN117785332A CN 117785332 A CN117785332 A CN 117785332A CN 202410221439 A CN202410221439 A CN 202410221439A CN 117785332 A CN117785332 A CN 117785332A
Authority
CN
China
Prior art keywords
data
resource
coefficient
frequency
constructing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410221439.0A
Other languages
Chinese (zh)
Other versions
CN117785332B (en
Inventor
胡睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUOWEI TECHNOLOGY CO LTD
Original Assignee
GUOWEI TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUOWEI TECHNOLOGY CO LTD filed Critical GUOWEI TECHNOLOGY CO LTD
Priority to CN202410221439.0A priority Critical patent/CN117785332B/en
Publication of CN117785332A publication Critical patent/CN117785332A/en
Application granted granted Critical
Publication of CN117785332B publication Critical patent/CN117785332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a virtual three-dimensional space dynamic resource loading and releasing method, which relates to the technical field of dynamic resource loading, wherein the resource priority of each data group is constructed by a data quality set, and each data group in each data group is loaded in sequence according to the resource priority; constructing an operation state coefficient by an operation state data set, if the operation state coefficient exceeds an operation threshold, observing the use frequency of each item of data in a data set and generating the use frequency of each data set, screening the data set to be cached, caching, identifying the data in a caching state, constructing a caching coefficient by the identified data caching set, and if the acquired caching coefficient exceeds the caching threshold, sending a resource release instruction; according to the resource release strategy corresponding to the data matching in the cache state with the cache characteristics, when the resources are required to be loaded, the loading sequence is predetermined, so that the data of the required resources can be released rapidly.

Description

Virtual three-dimensional space dynamic resource loading and releasing method
Technical Field
The invention relates to the technical field of dynamic resource loading, in particular to a virtual three-dimensional space dynamic resource loading and releasing method.
Background
A resource load trigger is a mechanism for automatically triggering a resource load operation when certain conditions are met, the manner in which it is implemented depending on the particular scenario and requirements, for example, these conditions may include: when the application program is started, the required resources can be automatically loaded so as to ensure the normal running of the application program. When the user interacts, the following steps: some resources may need to be loaded when the user performs some action, such as opening a new window or loading a new page. It may be implemented using events or callback functions in the programming language; in other cases, it may be implemented using mechanisms provided by an operating system or framework.
A virtual three-dimensional space refers to a three-dimensional space created by computer technology that can be rendered in a stereoscopic manner on a computer screen. Such techniques may simulate objects, scenes, and environments in the real world and allow a user to interact therewith. Virtual three-dimensional space has applications in many areas, such as game design, architectural design, industrial design, medical simulation, and the like. Can provide richer and vivid visual effect and interactive experience, is beneficial to improving the production efficiency and promotes innovation and creation value.
In the chinese patent application publication No. CN113516769a, a method, an apparatus and a terminal device for loading and rendering a virtual reality three-dimensional scene are provided, where the method includes: acquiring a three-dimensional space coordinate of a user in a virtual reality interaction scene, and projecting the three-dimensional space coordinate on a planar terrain to obtain longitude and latitude coordinates of a user viewpoint; determining a target block three-dimensional scene where a user viewpoint is located according to the longitude and latitude coordinates, and selecting a field block three-dimensional scene according to a preset step length to obtain a candidate loading three-dimensional scene; performing edge scene clipping on the candidate loading three-dimensional scene according to a preset radius to obtain an actual loading three-dimensional scene; and loading and rendering the corresponding block three-dimensional geographic scene model from the three-dimensional scene model resource library in real time according to the actual loaded three-dimensional scene. The technical scheme ensures loading and rendering efficiency, and simultaneously ensures the sense of reality of three-dimensional scene roaming, thereby greatly improving user experience and the like.
Combining the above applications and prior art: when loading and releasing dynamic data in a virtual three-dimensional space, due to the large amount of data, the large amount of data and the poor synchronization between the use states of all data, the use frequency of partial data is high, the use frequency of the other partial data is low, and the partial data used at high frequency can be in a cache state, so that when the needed resource data is loaded and released, the priority of loading or releasing all data is difficult to determine, when a large amount of data is needed, the risk of loading error or releasing error is high, the loading and releasing efficiency is low, and even the partial data has the risk of losing.
Therefore, the invention provides a virtual three-dimensional space dynamic resource loading and releasing method.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a virtual three-dimensional space dynamic resource loading and releasing method, which comprises the steps of constructing an operation state coefficient by an operation state data set, observing the use frequency of each item of data in a data set and generating the use frequency of each data set if the operation state coefficient exceeds an operation threshold value, screening the data set to be cached and caching the data, identifying the data in a caching state, constructing a caching coefficient by an identified data caching set, and sending a resource releasing instruction if the acquired caching coefficient exceeds the caching threshold value; according to the resource release strategy corresponding to the data matching in the cache state with the cache characteristics, when the resources are required to be loaded, the loading sequence is determined in advance, so that the data of the required resources can be rapidly released, and the technical problem in the background technology is solved.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme: a dynamic resource loading and releasing method for virtual three-dimensional space includes classifying resource data, identifying the use state of each class of data, and constructing the use degree of each class of resource data by acquiring the use state dataAnd further construct a busy coefficient +>If the obtained busy coefficientIf the threshold exceeds the busy threshold, an early warning instruction is sent;
dividing the current resource data into a plurality of data groups, analyzing the data states in the data groups and constructing corresponding data state sets; construction of resource priorities for individual data groups from a data quality setAccording to resource priority->Loading each data group in sequence; wherein, resource priority->The acquisition mode of (a) is as follows: for urgency->Correlation->Performing linear normalization processing, and mapping corresponding data value to interval +.>In, according to the following formula:weight coefficient: />And->
Monitoring and acquiring running state data of a computer, constructing a running state data set, and constructing a running state coefficient from the running state data setIf the operating state coefficient is +>Exceeding the operation thresholdTriggering a resource release mechanism and sending out a resource evaluation instruction;
observing the frequency of use of individual items of data within a data setAnd generates the frequency of use of the respective data sets +.>Screening and caching the data group to be cached, identifying the data in a cached state, and constructing a cache coefficient (I) by the data caching set obtained by identification>If the obtained buffer coefficient ∈ ->The method comprises the steps of exceeding a cache threshold value and sending out a resource release instruction;
predicting the execution of the resource release strategy according to the resource release strategy corresponding to the data matching in the cache state with the cache characteristics, and constructing the performance coefficient by the obtained predicted dataJudging whether the current resource release strategy is feasible or not according to the method, and optimizing the resource release strategy if not.
Further, after the resource to be loaded is obtained, classifying the resource data according to the type of the data, obtaining a plurality of resource data types, and obtaining the call data volume of the resource data of each type at each monitoring node in the monitoring periodData reading speed +.>After summarizing, constructing a resource reading data set;
obtaining the usage of each resource data categoryConstruct busy coefficient->The mode is as follows:wherein (1)>,/>Weight coefficient is the number of resource data categories: />And->The method comprises the steps of carrying out a first treatment on the surface of the Said->In order to use the average value of the degrees,is a qualified standard value of the usage degree.
Further, the current data use scene and the required resource data are identified, the data are classified according to the category of the data, a corresponding data set is constructed, the acquired data sets are summarized, and a resource data set to be used is constructed; performing correlation analysis on each data set in the resource data set to be used to obtain the correlation between the current data set and the work task; determining urgency of data call according to time node used by data group in work task and current time difference, and urgency in each array groupCorrelation->Summarizing, and constructing a data state set of the data group.
Further, the running state of the computer is monitored, and the computer is monitored in each monitoring sectionMemory occupancy rate of point to computerAnd the video memory occupancy rate of the GPU>Monitoring, namely summarizing the acquired monitoring data and constructing an operation state data set of the computer; construction of the operating Condition factors->The way of (2) is as follows: memory occupancy rate->Memory occupancy->After linear normalization processing, mapping the corresponding data value into interval +.>In, according to the following formula:
wherein,is weight(s)>And->nTo monitor the number of nodes +.>Is the average value of the memory occupancy rate->Is the average value of the occupancy rate of the video memory.
Further, after receiving the resource evaluation instruction, setting an observation period including a plurality of subcycles, and obtainingFrequency of use of data group in each sub-periodSummarizing the acquired frequency data, and constructing a use frequency set of the data set; generating the frequency of use of the individual data sets from the set of frequency of use +.>If the use frequency is->And if the frequency threshold value is exceeded, determining the corresponding data set as the data set to be cached, and caching the data set in the memory.
Further, the frequency of useThe acquisition mode of (a) is as follows: frequency of use->After the linear normalization process, the corresponding data values are mapped to the interval +.>In, according to the following formula:wherein,nfor the number of data>Is the firstiData and the firstjFrequency of use difference of the individual data, +.>For the mean value of the frequency of use, +.>Is the firstiFrequency of use of the individual data.
Further, the cached data is identified, and the frequency of use of the data in the caching period is obtainedAnd the cache duration during the cache>After summarizing, constructing a cache data set of the data group; constructing a buffer coefficient from a data buffer set>The method is as follows: frequency of use->And the cache duration during the cache>After linear normalization, mapping the corresponding data value to the interval +.>In, according to the following formula: />Wherein, the frequency factor is used for generating the frequency signal,duration factor, ->,/>Is a constant correction coefficient.
Further, after receiving the resource release instruction, identifying the resource data to be released and the cache state thereof, and obtaining corresponding cache characteristics; the resource release and related words thereof are used as target words, and a resource release knowledge graph is constructed in advance; and giving the resource release strategy by the resource release knowledge graph according to the correspondence between the cache characteristics and the resource release strategy.
Further, testing the resource release strategy by using the trained resource release model, obtaining corresponding test data and summarizing to construct a test data set; from test dataSet building coefficient of performanceIf the coefficient of performance is->And (3) when the release threshold value is lower than the release threshold value, optimizing the current resource release strategy by using the trained optimization model, acquiring the optimized resource release strategy, and executing the optimized resource release strategy to release the cached resource data.
Further, coefficient of performanceThe acquisition mode of (a) is as follows: acquiring the data release speed of each test node>After linear normalization processing is carried out on the data values, the corresponding data values are mapped to the interval +.>In, according to the following formula:wherein (1)>The number of the test nodes; weight coefficient: />And->The method comprises the steps of carrying out a first treatment on the surface of the Said->Is the mean value of the data release rate, +.>Is a qualified standard value of the data release speed.
(III) beneficial effects
The invention provides a virtual three-dimensional space dynamic resource loading and releasing method, which has the following beneficial effects:
1. selecting data to be used and corresponding data groups from the existing resource data, monitoring the execution state of the resource data in each data group, acquiring the corresponding data state, and further constructing the resource priorityBy resource priority->The priority degree of loading of each data group can be judged, so that when the resource needs to be loaded, the loading sequence is determined in advance, and the loading efficiency of the resource data is higher.
2. Construction of operational state coefficients from an operational state data setBy means of the constructed operating state coefficients ∈ ->The current running state of the computer can be evaluated, if the running state of the computer is good, the resource data can still be in a continuous loading state, the resource data loading task is executed, and conversely, part of the resource data needs to be released, so that the running load is reduced; by the corresponding frequency of use->Constructing the corresponding use frequency->The method comprises the steps of carrying out a first treatment on the surface of the Thereby depending on the frequency of each use->And screening each data group to determine the data group to be cached, so that when the data in the data group has higher use frequency, the data group is cached preferentially for improving the reading efficiency, and the data group can be loaded rapidly in the subsequent loading process.
3. When more data are in the cache state, part of the data group belonging to the cache state needs to be released, and the cache coefficient is constructedAccording to buffer coefficient->And evaluating each data set so as to judge whether each data set needs to be released, thereby releasing part of the data sets after screening the data sets to be released, reducing the operating pressure of the computer and improving the operating state of the computer.
4. Through feature recognition and knowledge graph construction, corresponding resource release strategies can be quickly matched when resource data are required to be released, so that when the resource release strategies are executed, the required resource data can be quickly released after the resource loading is completed;
5. on the basis of obtaining all parameters of the resource release strategy, the trained optimization model is used for optimizing the resource release strategy, so that the optimized resource release strategy is obtained, and the efficiency of releasing the resource data is higher; by optimizing the resource release strategy, the current resource release strategy library can be enriched, and when the resource data is required to be released later, the diversity of the resource release strategy can be increased.
Drawings
FIG. 1 is a flow chart of a method for loading and releasing dynamic resources in a virtual three-dimensional space according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the present invention provides a method for loading and releasing dynamic resources in a virtual three-dimensional space, which includes the following steps:
step one, after classifying the resource data, identifying the use state of each category data, and constructing the use degree of each resource data category by acquiring the use state dataAnd further construct a busy coefficient +>If the obtained busy coefficient ∈ ->If the threshold exceeds the busy threshold, an early warning instruction is sent;
the first step comprises the following steps:
step 101, after obtaining the resource to be loaded, classifying the resource data according to the type of the data, including: scene, model, texture, sound and the like, obtaining a plurality of resource data categories, and adding a time stamp to each item of resource data according to a time node obtained by the resource data; the use state of each resource data is monitored in the following manner: setting a monitoring period, wherein a plurality of monitoring nodes with equal intervals exist in the monitoring period, and acquiring the call data volume of each category of resource data at each monitoring nodeData reading speed +.>
Call data volume to be at each monitoring nodeData reading speed +.>Summarizing, and constructing a resource reading data set;
step 102, constructing the usage degree of each resource data category by the resource reading data set in the following manner:
amount of scheduling dataData reading speed +.>Performing linear normalization processing, and mapping corresponding data values to interval +.>In, according to the following formula: />Wherein, the weight coefficient: />And->To monitor the number of nodes +.>To invoke the mean of the data volume, +.>For calling a preset standard value of the data quantity, +.>Is the firstiThe amount of call data on each monitoring node; />Is the mean value of the data reading speed, +.>For a preset standard value of the data reading speed, +.>Is the firstiData read speed on each monitoring node;
step 103, obtainingUsage of individual resource data categoriesConstruct busy coefficient->The mode is as follows:wherein (1)>,/>Weight coefficient is the number of resource data categories: />And->;/>Is the firstiThe degree of use of the individual resource data categories, said +.>For the mean value of the usage +.>Is a qualified standard value of the usage degree.
Presetting a busy threshold according to the use state of the resource data and the data management expectation, if the busy coefficient is the busy coefficientIf the threshold exceeds the busy threshold, an early warning instruction is sent;
in use, the contents of steps 101 and 102 are combined:
when judging whether the resource data needs to be loaded or released, classifying each resource data, monitoring the use state of each resource data, and constructing each resource data class by the monitoring dataOther degrees of useThus, the use state of each resource data category can be judged, and a busy coefficient is further constructed on the basis>Evaluating the overall use state of a plurality of resource data types, if the use of the resource data is more frequent, the use frequency is higher, the data used at high frequency needs to be loaded in advance, otherwise, the data needs to be released in time so as to avoid occupying excessive space, and further, the use degree is improved by sequentially constructing>Busyness coefficient->The method can screen various resource data, process and arrange the data in advance, process the data in a targeted way and improve the efficiency of resource release and loading.
Combining the above applications and prior art: when loading and releasing the dynamic data in the virtual three-dimensional space, because the data quantity involved is numerous, the data variety is numerous, if the synchronism among the use states of each item of data is poor, the use frequency of part of the data is higher, the use frequency of the other part of the data is lower, and because part of the data used at high frequency can be in a cache state, the priority of loading or releasing each item of data is difficult to determine when the needed resource data is loaded and released, when a large amount of data is needed, the risk of loading error or releasing error is high, the loading and releasing efficiency is lower, and part of the data even has the risk of losing.
Dividing the current resource data into a plurality of data groups, analyzing the data states in the data groups and constructing corresponding data state sets; construction of resource priorities for individual data groups from a data quality setAccording to resource priority->Loading each data group in sequence;
the second step comprises the following steps:
step 201, identifying a current data use scene and required resource data according to a work task according to a current work task obtained by inquiry, classifying the data according to the category of the data, constructing a corresponding data set, summarizing the obtained data set, and constructing a resource data set to be used;
step 202, performing correlation analysis on each data set in a resource data set to be used, and obtaining the correlation between the current data set and a work task; determining urgency of data call according to time node used by data group in work task and current time difference, and urgency in each array groupCorrelation->Summarizing, and constructing a data state set of a data group;
step 203, constructing resource priority of each data group from the data quality setThe mode is as follows: to the degree of urgencyCorrelation->Performing linear normalization processing, and mapping corresponding data value to interval +.>In, according to the following formula:weight coefficient: />And->The method comprises the steps of carrying out a first treatment on the surface of the The weight coefficient can be obtained by referring to an analytic hierarchy process;
to obtain priority of resourcesMarking a resource data group in a resource data set to be used according to resource priority +.>Sequencing all the data sets to obtain a resource loading sequence; presetting a resource loading triggering rule, and when the resource loading condition is met, according to the resource priority +.>Loading each data group in each data group;
in use, the contents of steps 201 to 203 are combined:
if the task is in the execution state, selecting the data to be used and the corresponding data group from the existing resource data according to the task and the use scene thereof, at the moment, monitoring the execution state of the resource data in each data group, acquiring the corresponding data state, and further constructing the resource priorityAt this time, it is possible to pass the resource priority +>The priority degree of loading of each data group can be judged, so that when the resource needs to be loaded, the loading sequence is determined in advance, and the loading efficiency of the resource data is higher.
Step three, monitoring and acquiring the running state data of the computer, constructing a running state data set, and running the computer by runningConstruction of state data sets into running state coefficientsIf the operating state coefficient is +>Triggering a resource release mechanism to send out a resource evaluation instruction when the operation threshold is exceeded;
the third step comprises the following steps:
step 301, when a computer is used to execute a task and each resource data set is loaded according to a resource priority, an operation state of the computer is monitored, a plurality of monitoring nodes with equal intervals are provided, and a memory occupancy rate of the computer is set at each monitoring nodeAnd the video memory occupancy rate of the GPU>Monitoring, namely summarizing the acquired monitoring data and constructing an operation state data set of the computer;
step 302, constructing operation state coefficients from the operation state data set of the computerThe mode is as follows: memory occupancy rate->Memory occupancy->After linear normalization processing, mapping the corresponding data value into interval +.>In, according to the following formula: />Wherein (1)>As the weight of the material to be weighed,and->,/>Is the firstiMemory occupancy at each monitoring node, +.>Is the firstiDisplay memory occupancy at each monitoring node, < >>nTo monitor the number of nodes +.>Is the average value of the memory occupancy rate->Is the average value of the occupancy rate of the video memory;
presetting an operation threshold according to management expectation of the computer operation state and historical data of executing work tasks, if the operation state coefficient isIf the operation threshold is exceeded, triggering a resource release mechanism and sending out a resource evaluation instruction;
in use, the contents of steps 301 and 302 are combined:
when the computer execution is in an operation state, monitoring the operation state of the computer execution and constructing an operation state data set; construction of operational state coefficients from an operational state data setThus, by means of the constructed operating state coefficient +.>Can be used for the current operation of the computerEvaluating the row state, if the running state of the computer is good, at the moment, the resource data can still be in a continuous loading state, the resource data loading task is executed, and conversely, part of the resource data needs to be released, so that the running load is reduced;
further, by evaluating the running state of the computer, if the running state of the computer is worse in persistence, an operation optimization instruction can be sent out at this time to optimize the running of the computer, so that the performance of the computer is improved, and the loading or releasing efficiency of the subsequent resource data is improved.
Step four, observing the use frequency of each item of data in the data setAnd generates the frequency of use of the respective data sets +.>Screening and caching the data group to be cached, identifying the data in a cached state, and constructing a cache coefficient (I) by the data caching set obtained by identification>If the obtained buffer coefficient ∈ ->The method comprises the steps of exceeding a cache threshold value and sending out a resource release instruction;
the fourth step comprises the following steps:
step 401, after receiving a resource evaluation instruction, setting an observation period including a plurality of sub-periods, and obtaining the frequency of use of the data group in each sub-periodSummarizing the acquired frequency data, and constructing a use frequency set of the data set; generating the frequency of use of the individual data sets from the set of frequency of use +.>The method is as follows: frequency of use->After the linear normalization process, the corresponding data values are mapped to the interval +.>In, according to the following formula:wherein,nfor the number of data>Is the firstiData and the firstjFrequency of use difference of the individual data, +.>For the mean value of the frequency of use, +.>Is the firstiThe frequency of use of the individual data;
presetting a frequency threshold according to historical data and data processing management expectations, and if the frequency of use is highIf the frequency threshold value is exceeded, the corresponding data set is determined to be the data set to be cached, and the data set is cached in the memory;
step 402, after data caching is completed, identifying cached data, and identifying and acquiring the frequency of use of the data in a caching periodAnd the cache duration during the cache>After summarizing, constructing a cache data set of the data group; the buffer coefficients are constructed from the data buffer set in the following manner: frequency of use->And the cache duration during the cache>After linear normalization, mapping the corresponding data value to the interval +.>In, according to the following formula: />The significance of the parameters is as follows: frequency factor->Duration factor, ->,/>Is a constant correction coefficient, the value of which falls into +.>
It should be noted that: a person skilled in the art collects a plurality of groups of sample data and sets a corresponding preset scaling factor for each group of sample data; substituting the preset proportionality coefficient and the collected sample data into a formula, forming a binary one-time equation set by any two formulas, screening the calculated coefficient and taking an average value, thereby obtaining a frequency factorTime length factor->Is a value of (a).
The size of the coefficient is a specific numerical value obtained by quantizing each parameter, so that the subsequent comparison is convenient, and the size of the coefficient depends on the number of sample data and the corresponding preset proportional coefficient preliminarily set by a person skilled in the art for each group of sample data, so long as the proportional relation between the parameter and the quantized numerical value is not influenced.
Based on the historical data and the expectations for data cache management,presetting a cache threshold; if the obtained buffer memory coefficientWhen the buffer threshold is exceeded, the opportunity of reusing the corresponding data set is relatively low, the need of continuing buffer is eliminated, the part of data needs to be released, the subsequent buffer pressure is reduced, and at the moment, a resource release instruction is sent to the outside;
in use, the contents of steps 401 to 402 are combined:
identifying the use state in each data group and determining the corresponding use frequencyConstructing the corresponding use frequency->The method comprises the steps of carrying out a first treatment on the surface of the Thereby depending on the frequency of each use->Screening each data group to determine the data group to be cached, so that when the use frequency of the data in the data group is higher, the data group is cached preferentially for improving the reading efficiency, and therefore, the data group can be loaded rapidly in the subsequent loading process;
and as further content: when more data are in the cache state, part of the data group belonging to the cache state needs to be released, and the cache coefficient is constructedAccording to buffer coefficient->And evaluating each data set so as to judge whether each data set needs to be released, thereby releasing part of the data sets after screening the data sets to be released, reducing the operating pressure of the computer and improving the operating state of the computer.
Fifthly, according to the cache characteristics, matching the data in the cache stateResource release strategy, predicting execution of the resource release strategy, and constructing performance coefficient from the obtained predicted dataJudging whether the current resource release strategy is feasible or not according to the method, and optimizing the resource release strategy if the current resource release strategy is not feasible;
the fifth step comprises the following steps:
step 501, after receiving a resource release instruction, identifying resource data to be released and a cache state thereof, and obtaining corresponding cache characteristics; the resource release and related words thereof are used as target words, and a resource release knowledge graph is constructed in advance; using the trained matching model, and giving a resource release strategy by a resource release knowledge graph according to the correspondence between the cache characteristics and the resource release strategy;
when the method is used, after a resource release instruction of the resource data is received, the corresponding resource release strategy can be quickly matched when the resource data needs to be released by means of feature recognition and knowledge graph construction, so that when the resource release strategy is executed, the needed resource data can be quickly released after the resource loading is completed;
step 502, collecting type and quantity data of each item of cache data, specification performance data of a data cache area and the like, extracting part of data from the collected data as sample data, constructing an initial model by a convolutional neural network, training and testing the initial model by the sample data, acquiring a trained resource release model, testing a resource release strategy by using the trained resource release model, acquiring corresponding test data, and summarizing and constructing a test data set;
step 503, constructing coefficient of performance from the test data setThe mode is as follows: acquiring the data release speed of each test node>Linear normalization of itAfter that, the corresponding data value is mapped to +.>In, according to the following formula: />Wherein (1)>The number of the test nodes; weight coefficient: />And->;/>Is the firstiData release speed on each test node, said +.>Is the mean value of the data release rate, +.>Is a qualified standard value of the data release speed.
Presetting a release threshold according to management expectation and historical data of resource release, and if the performance coefficient isWhen the release threshold is lower than the release threshold, the release efficiency and effect of the resource data can be difficult to reach the expectations when the current resource release strategy is executed, and further optimization is required to be carried out on the resource release scheme, and an optimization instruction is sent to the outside; conversely, if the expected situation can be reached, executing a resource release strategy;
when the method is used, after the corresponding resource release strategy is obtained, before execution, the resource release model obtained by training is used for testing the resource release model to judge whether the resource release strategy is reliable, if so, the strategy can be executed to finish the release of the resource, and the loading and release processes of the resource are finished, so that the efficiency and the reliability of the resource release process are higher;
step 504, after receiving the optimization instruction, constructing an initial model by using an ant colony algorithm, training and obtaining a strategy optimization model by using sample data, and optimizing the current resource release strategy by using the trained optimization model to obtain an optimized resource release strategy; executing the optimized resource release strategy to release the cached resource data;
in use, the contents of steps 501 to 504 are combined:
when the execution effect of the matched resource release strategy is difficult to reach the expected value, the resource release strategy is optimized by using the trained optimization model on the basis of acquiring various parameters of the resource release strategy, so that the optimized resource release strategy is acquired, and the efficiency of releasing the resource data is higher; as a further content, the current resource release policy library can be enriched by optimizing the resource release policy, and the diversity of the resource release policy can be increased when the resource data is required to be released subsequently.
The weight coefficient can be obtained by referring to a analytic hierarchy process, the analytic hierarchy process is a qualitative and quantitative combined analytic method, the complex problem can be decomposed into a plurality of layers, a decision maker can be helped to make a decision on the complex problem by comparing the importance of each layer factor, and a final decision scheme is determined.
It should be noted that, the knowledge graph may be constructed by referring to the following:
various data sources related to predictive model optimization are collected, including model training data, validation data, test data, and model performance metrics, feature engineering methods, and the like. Such data may come from a number of sources, such as public data sets, industry reports, academic papers, enterprise internal data, and the like.
And determining the structure of the knowledge graph, including entities, relationships, attributes and the like, according to the collected data and related documents. It is contemplated that the structure of the knowledge-graph may be organized and managed using a graph database or knowledge-graph modeling tool.
And filling the collected data and related information into a knowledge graph, and establishing the association between entities, wherein the association comprises information such as model parameters, an optimization method, feature engineering technology, model performance indexes and the like. This may be done manually or automatically by natural language processing and information extraction techniques.
By using the constructed knowledge graph, the applications such as recommendation of model optimization strategies, model performance analysis, model parameter adjustment and the like can be performed. Related information can be obtained from the knowledge graph by means of a knowledge graph query language (such as SPARQL) or a query function of a graph database, and decision making and optimization models are assisted.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may 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 may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a division of some logic functions, and there may be additional divisions in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.

Claims (10)

1. A virtual three-dimensional space dynamic resource loading and releasing method is characterized in that: comprising the steps of (a) a step of,
after classifying the resource data, the use state of each class of data is identified, and the use degree of each resource data class is constructed by acquiring the use state dataAnd further construct a busy coefficient +>If the obtained busy coefficient ∈ ->If the threshold exceeds the busy threshold, an early warning instruction is sent;
dividing the current resource data into a plurality of data groups, analyzing the data states in the data groups and constructing corresponding data state sets; construction of resource priorities for individual data groups from a data quality setAccording to resource priority->Loading each data group in sequence; wherein, resource priority->The acquisition mode of (a) is as follows: for urgency->Correlation->Performing linear normalization processing, and mapping corresponding data value to interval +.>In, according to the following formula:weight coefficient: />And->
Monitoring and acquiring running state data of a computer, constructing a running state data set, and constructing a running state coefficient from the running state data setIf the operating state coefficient is +>Triggering a resource release mechanism to send out a resource evaluation instruction when the operation threshold is exceeded;
observing the frequency of use of individual items of data within a data setAnd generates the frequency of use of the respective data sets +.>Screening and caching the data group to be cached, identifying the data in a cached state, and constructing a cache coefficient (I) by the data caching set obtained by identification>If the obtained buffer coefficient ∈ ->The method comprises the steps of exceeding a cache threshold value and sending out a resource release instruction;
predicting the execution of the resource release strategy according to the resource release strategy corresponding to the data matching in the cache state with the cache characteristics, and constructing the performance coefficient by the obtained predicted dataJudging whether the current resource release strategy is feasible or not according to the method, and optimizing the resource release strategy if not.
2. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 1, wherein the method comprises the steps ofIn the following steps: after the resource to be loaded is acquired, classifying the resource data according to the type of the data, acquiring a plurality of resource data types, and acquiring the call data volume of the resource data of each type at each monitoring node in the monitoring periodData reading speed +.>After summarizing, constructing a resource reading data set;
obtaining the usage of each resource data categoryConstruct busy coefficient->The mode is as followsWherein (1)>,/>Weight coefficient is the number of resource data categories: />And->The method comprises the steps of carrying out a first treatment on the surface of the Said->In order to use the average value of the degrees,is a qualified standard value of the usage degree.
3. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 2, wherein the method comprises the following steps: identifying the current data use scene and the required resource data, classifying the data according to the type of the data, constructing a corresponding data set, summarizing the acquired data set, and constructing a resource data set to be used; performing correlation analysis on each data set in the resource data set to be used to obtain the correlation between the current data set and the work task; determining urgency of data call according to time node used by data group in work task and current time difference, and urgency in each array groupCorrelation->Summarizing, and constructing a data state set of the data group.
4. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 1, wherein the method comprises the following steps: monitoring the running state of the computer, and controlling the memory occupancy rate of the computer at each monitoring nodeAnd the video memory occupancy rate of the GPU>Monitoring, namely summarizing the acquired monitoring data and constructing an operation state data set of the computer; construction of the operating Condition factors->The way of (2) is as follows: memory occupancy rate->Memory occupancy->After linear normalization processing, mapping the corresponding data value into interval +.>In, according to the following formula: />Wherein,is weight(s)>And->nIn order to monitor the number of nodes,is the average value of the memory occupancy rate->Is the average value of the occupancy rate of the video memory.
5. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 4, wherein the method comprises the following steps: after receiving the resource evaluation instruction, setting an observation period comprising a plurality of subcycles, and obtaining the use frequency of the data group in each subcycleSummarizing the acquired frequency data, and constructing a use frequency set of the data set; generating the frequency of use of the individual data sets from the set of frequency of use +.>If the use frequency is->And if the frequency threshold value is exceeded, determining the corresponding data set as the data set to be cached, and caching the data set in the memory.
6. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 5, wherein the method comprises the following steps: frequency of useThe acquisition mode of (a) is as follows: frequency of use->After the linear normalization processing, mapping the corresponding data value to the intervalIn, according to the following formula: />Wherein,nfor the number of data>Is the firstiData and the firstjFrequency of use difference of the individual data, +.>For the mean value of the frequency of use, +.>Is the firstiFrequency of use of the individual data.
7. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 6, wherein the method comprises the following steps: identifying the cached data and acquiring the frequency of use of the data in the caching periodAnd the cache duration during the cache>After summarizing, constructing a cache data set of the data group; constructing a buffer coefficient from a data buffer set>The method is as follows: for the frequency of useAnd the cache duration during the cache>After linear normalization, mapping the corresponding data value to the interval +.>In, according to the following formula: />Wherein, the frequency factor, < >>A time duration factor,,/>is a constant correction coefficient.
8. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 1, wherein the method comprises the following steps: after receiving the resource release instruction, identifying the resource data to be released and the cache state thereof, and obtaining corresponding cache characteristics; the resource release and related words thereof are used as target words, and a resource release knowledge graph is constructed in advance; and giving the resource release strategy by the resource release knowledge graph according to the correspondence between the cache characteristics and the resource release strategy.
9. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 1, wherein the method comprises the following steps: testing the resource release strategy by using the trained resource release model, obtaining corresponding test data and summarizing to construct a test data set; construction of coefficient of performance from test data setsIf the coefficient of performance is->And (3) when the release threshold value is lower than the release threshold value, optimizing the current resource release strategy by using the trained optimization model, acquiring the optimized resource release strategy, and executing the optimized resource release strategy to release the cached resource data.
10. The method for loading and releasing dynamic resources in a virtual three-dimensional space according to claim 9, wherein the method comprises the following steps: coefficient of performanceThe acquisition mode of (a) is as follows: acquiring the data release speed of each test node>After linear normalization processing is carried out on the data values, the corresponding data values are mapped to the interval +.>In, according to the following formula:wherein (1)>The number of the test nodes; weight coefficient: />And->;/>As the average value of the data release rate,is a qualified standard value of the data release speed.
CN202410221439.0A 2024-02-28 2024-02-28 Virtual three-dimensional space dynamic resource loading and releasing method Active CN117785332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410221439.0A CN117785332B (en) 2024-02-28 2024-02-28 Virtual three-dimensional space dynamic resource loading and releasing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410221439.0A CN117785332B (en) 2024-02-28 2024-02-28 Virtual three-dimensional space dynamic resource loading and releasing method

Publications (2)

Publication Number Publication Date
CN117785332A true CN117785332A (en) 2024-03-29
CN117785332B CN117785332B (en) 2024-05-28

Family

ID=90385781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410221439.0A Active CN117785332B (en) 2024-02-28 2024-02-28 Virtual three-dimensional space dynamic resource loading and releasing method

Country Status (1)

Country Link
CN (1) CN117785332B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436373A (en) * 2011-09-13 2012-05-02 上海普元信息技术股份有限公司 Method for realizing resource loading and resource hot-updating in distributed enterprise application system
CN103092696A (en) * 2012-12-29 2013-05-08 深圳先进技术研究院 Three-dimensional space data pre-dispatching method and system thereof
CN107789836A (en) * 2016-09-06 2018-03-13 盛趣信息技术(上海)有限公司 Implementation method and client of a kind of people of game on line thousand with screen
CN107846454A (en) * 2017-10-25 2018-03-27 暴风集团股份有限公司 A kind of resource regulating method, device and CDN system
CN109542603A (en) * 2018-11-22 2019-03-29 北京航空航天大学 It is a kind of improve different priorities task between isolation multi dimensional resource shielding system
CN110245021A (en) * 2019-06-21 2019-09-17 上海创功通讯技术有限公司 EMS memory management process, system, electronic equipment and the storage medium of mobile terminal
CN111104454A (en) * 2019-12-19 2020-05-05 国网湖南省电力有限公司 Multi-dimensional data processing method, system and medium for monitoring requirements of power grid on cloud
CN112860350A (en) * 2021-03-15 2021-05-28 广西师范大学 Task cache-based computation unloading method in edge computation
CN113521753A (en) * 2021-07-21 2021-10-22 咪咕互动娱乐有限公司 System resource adjusting method, device, server and storage medium
CN114972664A (en) * 2022-04-21 2022-08-30 武汉市测绘研究院 Integrated management method for urban full-space three-dimensional model data
CN115098448A (en) * 2022-08-26 2022-09-23 深圳市必凡娱乐科技有限公司 Software cleaning method and system
CN115641404A (en) * 2022-05-07 2023-01-24 泰瑞数创科技(北京)股份有限公司 Mobile rapid modeling system based on live-action three-dimensional modeling technology
CN115658171A (en) * 2022-11-02 2023-01-31 厦门安胜网络科技有限公司 Method and system for solving dynamic refreshing of java distributed application configuration in lightweight mode
CN116628068A (en) * 2023-07-25 2023-08-22 杭州衡泰技术股份有限公司 Data handling method, system and readable storage medium based on dynamic window
CN116916390A (en) * 2023-09-11 2023-10-20 军事科学院系统工程研究院系统总体研究所 Edge collaborative cache optimization method and device combining resource allocation
CN117253616A (en) * 2023-11-17 2023-12-19 深圳市健怡康医疗器械科技有限公司 Neurological rehabilitation degree evaluation method and system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436373A (en) * 2011-09-13 2012-05-02 上海普元信息技术股份有限公司 Method for realizing resource loading and resource hot-updating in distributed enterprise application system
CN103092696A (en) * 2012-12-29 2013-05-08 深圳先进技术研究院 Three-dimensional space data pre-dispatching method and system thereof
CN107789836A (en) * 2016-09-06 2018-03-13 盛趣信息技术(上海)有限公司 Implementation method and client of a kind of people of game on line thousand with screen
CN107846454A (en) * 2017-10-25 2018-03-27 暴风集团股份有限公司 A kind of resource regulating method, device and CDN system
CN109542603A (en) * 2018-11-22 2019-03-29 北京航空航天大学 It is a kind of improve different priorities task between isolation multi dimensional resource shielding system
CN110245021A (en) * 2019-06-21 2019-09-17 上海创功通讯技术有限公司 EMS memory management process, system, electronic equipment and the storage medium of mobile terminal
CN111104454A (en) * 2019-12-19 2020-05-05 国网湖南省电力有限公司 Multi-dimensional data processing method, system and medium for monitoring requirements of power grid on cloud
CN112860350A (en) * 2021-03-15 2021-05-28 广西师范大学 Task cache-based computation unloading method in edge computation
CN113521753A (en) * 2021-07-21 2021-10-22 咪咕互动娱乐有限公司 System resource adjusting method, device, server and storage medium
CN114972664A (en) * 2022-04-21 2022-08-30 武汉市测绘研究院 Integrated management method for urban full-space three-dimensional model data
CN115641404A (en) * 2022-05-07 2023-01-24 泰瑞数创科技(北京)股份有限公司 Mobile rapid modeling system based on live-action three-dimensional modeling technology
CN115098448A (en) * 2022-08-26 2022-09-23 深圳市必凡娱乐科技有限公司 Software cleaning method and system
CN115658171A (en) * 2022-11-02 2023-01-31 厦门安胜网络科技有限公司 Method and system for solving dynamic refreshing of java distributed application configuration in lightweight mode
CN116628068A (en) * 2023-07-25 2023-08-22 杭州衡泰技术股份有限公司 Data handling method, system and readable storage medium based on dynamic window
CN116916390A (en) * 2023-09-11 2023-10-20 军事科学院系统工程研究院系统总体研究所 Edge collaborative cache optimization method and device combining resource allocation
CN117253616A (en) * 2023-11-17 2023-12-19 深圳市健怡康医疗器械科技有限公司 Neurological rehabilitation degree evaluation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李国松;杨柳青;: "虚拟现实技术在风景园林规划与设计中的应用研究――几种常见虚拟现实技术的应用评价分析", 中国园林, no. 02, 15 February 2008 (2008-02-15) *

Also Published As

Publication number Publication date
CN117785332B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN111614690B (en) Abnormal behavior detection method and device
CN106951984B (en) Dynamic analysis and prediction method and device for system health degree
CN103823888B (en) Node-closeness-based social network site friend recommendation method
EP2273431A1 (en) Model determination system
CN113971527A (en) Data risk assessment method and device based on machine learning
US20110161263A1 (en) Computer-Implemented Systems And Methods For Constructing A Reduced Input Space Utilizing The Rejected Variable Space
CN115659177A (en) Method and device for generating data recommendation model and computer equipment
Kwong et al. Evaluation of the exact conditional spectrum and generalized conditional intensity measure methods for ground motion selection
CN112101692B (en) Identification method and device for mobile internet bad quality users
CN111382875A (en) Federal model parameter determination method, device, equipment and storage medium
CN113297393A (en) Situation awareness and big data based information generation method and information security system
CN112598443A (en) Online channel business data processing method and system based on deep learning
CN115409115A (en) Time sequence clustering abnormal terminal identification method based on user log
CN115204648A (en) Method and device for acquiring quality index of power engineering based on mathematical model
CN111612491B (en) State analysis model construction method, analysis method and device
CN115145817A (en) Software testing method, device, equipment and readable storage medium
CN116909534B (en) Operator flow generating method, operator flow generating device and storage medium
CN117785332B (en) Virtual three-dimensional space dynamic resource loading and releasing method
CN116452747A (en) BIM model rendering method and system based on multiple scenes
CN112100165B (en) Traffic data processing method, system, equipment and medium based on quality assessment
CN115062791A (en) Artificial intelligence interpretation method, device, equipment and storage medium
WO2013026389A1 (en) Method and device for simulation
CN111898666A (en) Random forest algorithm and module population combined data variable selection method
CN111680572A (en) Power grid operation scene dynamic judgment method and system
CN114330866B (en) Data processing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant