CN113127012B - Software resource construction method based on software engine - Google Patents
Software resource construction method based on software engine Download PDFInfo
- Publication number
- CN113127012B CN113127012B CN202110256467.2A CN202110256467A CN113127012B CN 113127012 B CN113127012 B CN 113127012B CN 202110256467 A CN202110256467 A CN 202110256467A CN 113127012 B CN113127012 B CN 113127012B
- Authority
- CN
- China
- Prior art keywords
- resource
- software
- picture
- compression
- list
- 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.)
- Active
Links
- 238000010276 construction Methods 0.000 title claims abstract description 23
- 230000006835 compression Effects 0.000 claims abstract description 85
- 238000007906 compression Methods 0.000 claims abstract description 85
- 230000001419 dependent effect Effects 0.000 claims description 9
- 238000000034 method Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 description 11
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5055—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Output Control And Ontrol Of Special Type Engine (AREA)
Abstract
The invention discloses a software resource construction method based on a software engine, which comprises the following specific steps: a. presetting a software operating system mirror library based on an original software engine, constructing an operating system mirror, and operating a target container corresponding to the operating system mirror; b. acquiring original software information and sending a database to a target container; c. constructing a software resource task resource list in each target container, wherein a corresponding relation between a software task and a resource compression package is constructed in the resource list; d. acquiring at least one picture resource in a resource list, acquiring a compression parameter of the picture resource according to the at least one picture resource, and inquiring a historical database of the picture resource; e. and generating a resource compression package through a resource construction task according to the history collection library and the corresponding relation between the history collection library and the resource compression package. The software resource construction method based on the software engine improves the acquisition efficiency of the resource compression package, and is suitable for popularization.
Description
Technical Field
The invention relates to the technical field of computer communication, in particular to a software resource construction method based on a software engine.
Background
In the software development process, a software engine is often used to construct software resources into a resource compression package, and the resource compression package is loaded in the software running process. As in the software engine Unity, the resource compression package (AssetBundle) is a compression package containing software resources (Asset) that can be loaded while the software is running. The software resources (Asset) may include models, maps, pre-forms, sounds, and even entire scenes.
However, the AssetBundle construction pipeline of Unity cannot make good use of computing resources, and specifically shows that when Unity is used to compress software resources (Asset) into packages (assetbundles), cPU occupancy rate and disk IO are both used very low, so that when a large software resource construction task is performed, time consumption is very long.
Disclosure of Invention
The invention mainly aims to provide a software resource construction method based on a software engine, which can effectively solve the problems in the background technology.
In order to achieve the purpose, the invention adopts the technical scheme that:
a software resource construction method based on a software engine comprises the following specific steps:
a. presetting a software operating system mirror library based on an original software engine, constructing an operating system mirror, and operating a target container corresponding to the operating system mirror;
b. acquiring original software information and sending a database to a target container;
c. constructing a software resource task resource list in each target container, wherein a corresponding relation between a software task and a resource compression package is constructed in the resource list;
d. acquiring at least one picture resource in a resource list, acquiring a compression parameter of the picture resource according to the at least one picture resource, and inquiring a historical database of the picture resource;
e. and generating a resource compression package through a resource construction task according to the history collection library and the corresponding relation between the history collection library and the resource compression package.
Preferably, in the step a, after the operating system image is built, and before the step b, a required software running version is preset.
Preferably, the original software information in step b at least includes a software version, and the software version should at least include all historical version data of the original software.
Preferably, the step c specifically includes, according to the history collection library and the corresponding relationship between the history collection library and the resource compression package:
selecting any software resource in the resource list as a target software resource, and determining a dependent software resource of the target software resource;
and when the dependent software resource is the software resource in the resource list, indicating that the resource compression package corresponding to the target software resource has a dependency relationship with the resource compression package corresponding to the dependent software resource.
Preferably, in the step d, the at least one picture resource should include the at least one picture resource and other resources;
the obtaining of the compression parameters according to at least one picture resource and the querying of the historical database thereof comprise:
acquiring compression parameters of at least one picture resource;
according to the compression parameters, comparing the characteristic values and the compression parameters of the at least one picture resource with a total database in the resource list;
when the characteristic value and the compression parameter of the at least one picture resource are hit with the database in the resource list, reading a historical database corresponding to the at least one picture resource;
when the characteristic value and the compression parameter of the at least one picture resource and the database in the resource list are both missed, taking another at least one picture resource, and repeating the comparison until the historical database is missed or not.
Preferably, in the step e, generating the resource compression package through the resource construction task according to the history collection library and the corresponding relationship between the history collection library and the resource compression package includes:
judging whether the historical database is matched with a preset software version in the target container or not;
if the historical database is matched with the preset software version data, generating a resource compression package;
and if the historical database is not matched with the preset software version data, repeating the steps a, b, c and d until the historical database is matched with the preset software version data, and generating a resource compression package.
Compared with the prior art, the invention has the following beneficial effects:
by comparing the picture resources and the compression parameters in the resources with the historical processing data, if the historical processing data contains the picture resources and the compression parameters which are consistent with the picture resources and the compression parameters, the compressed data corresponding to the picture resources cached in the historical processing data can be directly obtained as the compressed data of the picture resources, so that the steps of comparing and obtaining can be directly carried out through a caching mechanism, the step of compressing the picture resources is omitted, the time spent on compressing the picture resources is greatly reduced, the time spent on obtaining the resource compression packets is reduced, and the obtaining efficiency of the resource compression packets is improved.
Drawings
FIG. 1 is a flowchart of a software resource construction method based on a software engine according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" may include the plural forms as well, and the "first" and "second" used herein are only used to distinguish one technical feature from another and are not intended to limit the order, number, etc. of the technical features. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein, including technical and scientific terms), have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
A software resource construction method based on a software engine comprises the following specific steps:
a. presetting a software operating system mirror library based on an original software engine, constructing an operating system mirror, and operating a target container corresponding to the operating system mirror;
b. acquiring original software information and sending a database to a target container;
c. constructing a software resource task resource list in each target container, wherein a corresponding relation between a software task and a resource compression package is constructed in the resource list;
d. acquiring at least one picture resource in a resource list, acquiring a compression parameter of the picture resource according to the at least one picture resource, and inquiring a historical database of the picture resource;
e. and generating a resource compression package through a resource construction task according to the history collection library and the corresponding relation between the history collection library and the resource compression package.
In the step a, after the operating system image is built and before the step b, a required software running version is preset.
When the operation is actually performed, the target container may be run by the operating system first, and then the original software information is obtained, or the original software information may be obtained first, and then the target container is run by the operating system.
And b, the original software information in the step b at least comprises a software version, and the software version at least comprises all historical version data of the original software.
It should be noted that, when the same software runs in different systems, the required software versions may be different, and in the present invention, the original software information may include different software versions of different systems, or historical update versions in different systems.
The step c specifically includes, according to the history collection library and the corresponding relationship between the history collection library and the resource compression package:
selecting any software resource in the resource list as a target software resource, and determining a dependent software resource of the target software resource;
and when the dependent software resource is the software resource in the resource list, indicating that the resource compression package corresponding to the target software resource has a dependency relationship with the resource compression package corresponding to the dependent software resource.
For example, a target software resource is arbitrarily selected in the resource list, which is called as a, and the game resource obtained from the target software resource includes direct and indirect game resources, which is called as B, and then, whether B is a software resource in the resource list and belongs to a different resource compression packet is checked, and if so, it can be determined that the resource compression packet described in a belongs to the resource compression packet described in B. Therefore, traversing all resources in the resource list to obtain whether the resource compression package corresponding to the target software resource has a dependency relationship with the resource compression package corresponding to the target software resource.
In the step d, the at least one picture resource should include the at least one picture resource and other resources;
the obtaining of the compression parameters according to at least one picture resource and the querying of the historical database thereof comprise:
acquiring compression parameters of at least one picture resource;
according to the compression parameters, comparing the characteristic values and the compression parameters of the at least one picture resource with a total database in the resource list;
when the characteristic value and the compression parameter of the at least one picture resource are hit with the database in the resource list, reading a historical database corresponding to the at least one picture resource;
when the characteristic value and the compression parameter of the at least one picture resource and the database in the resource list are missed or only one of the characteristic value and the compression parameter is hit, another picture resource is taken, and the comparison is repeated until the historical database is missed or lacked.
Specifically, based on the comparison between the two dimensions of the picture resource, the following three cases may be included in the case of a miss of any one of the feature value and the compression parameter in the history processing data:
the first method comprises the following steps: if the feature value of the picture resource is not hit, and the compression parameter is hit, which indicates that the picture resource is different from any picture resource in the history processing data, it may be determined that the history processing data does not include the picture resource consistent with the picture resource, that is, the history processing data does not include the target picture resource, and does not have the same compression data.
And the second method comprises the following steps: if the compression parameters of the picture resources are not hit and the characteristic values are hit, it is indicated that the compression modes adopted by the compression steps performed by the compression parameters of the picture resources are different, and it can also be indicated that the same compression processing process is not performed, and it can be determined that the target picture resources are not included in the history processing data and the history processing data does not have the same compression data.
And the third is that: if the characteristic value and the compression parameter of the picture resource are not hit, it is indicated that the same picture resource is not compressed before, and a compression mode performed by the current compression requirement is not adopted, and it can be determined that the historical processing data does not include the target picture resource and does not have the same compression data.
In the step e, generating the resource compression package through the resource construction task according to the history collection library and the corresponding relationship between the history collection library and the resource compression package comprises:
judging whether the historical database is matched with a preset software version in the target container or not;
if the historical database is matched with the preset software version data, generating a resource compression package;
and if the historical database is not matched with the preset software version data, repeating the steps a, b, c and d until the historical database is matched with the preset software version data, and then generating a resource compression package.
The software resource construction method based on the software engine has higher efficiency of generating the resource compression package.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (4)
1. A software resource construction method based on a software engine is characterized by comprising the following specific steps:
a. presetting a software operating system mirror library based on an original software engine, constructing an operating system mirror, and operating a target container corresponding to the operating system mirror;
b. acquiring original software information and sending a database to a target container; the original software information at least comprises a software version, and the software version at least comprises all historical version data of the original software;
c. constructing a software resource task resource list in each target container, wherein a corresponding relation between a software task and a resource compression package is constructed in the resource list; the method specifically includes, according to the history collection library and the corresponding relationship between the history collection library and the resource compression package: selecting any software resource in the resource list as a target software resource, and determining a dependent software resource of the target software resource; when the dependent software resource is a software resource in the resource list, indicating that a dependency relationship exists between a resource compression package corresponding to the target software resource and a resource compression package corresponding to the dependent software resource;
d. acquiring at least one picture resource in a resource list, acquiring a compression parameter of the picture resource according to the at least one picture resource, and inquiring a historical database of the picture resource;
e. and generating a resource compression package through a resource construction task according to the history collection library and the corresponding relation between the history collection library and the resource compression package.
2. The software resource construction method based on the software engine as claimed in claim 1, wherein: in the step a, after the operating system image is built and before the step b, a required software running version is preset.
3. The software resource construction method based on the software engine as claimed in claim 1, wherein: in the step d, the at least one picture resource should include the at least one picture resource and other resources;
the obtaining of the compression parameters according to at least one picture resource and the querying of the historical database thereof comprise:
acquiring compression parameters of at least one picture resource;
according to the compression parameters, comparing the characteristic values and the compression parameters of the at least one picture resource with a total database in the resource list;
when the characteristic value and the compression parameter of the at least one picture resource are hit with the database in the resource list, reading a historical database corresponding to the at least one picture resource;
when the characteristic value and the compression parameter of the at least one picture resource and the database in the resource list are both missed, taking another at least one picture resource, and repeating the comparison until the historical database is obtained.
4. The software resource construction method based on the software engine as claimed in claim 1, wherein: in the step e, generating the resource compression package through the resource construction task according to the history collection library and the corresponding relationship between the history collection library and the resource compression package comprises:
judging whether the content in the historical database is matched with a preset software version in the target container or not;
if the content in the historical database is matched with the preset software version data, generating a resource compression packet;
and if the content in the historical database is not matched with the preset software version data, repeating the steps a, b, c and d until the content is matched with the preset software version data, and generating a resource compression package.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110256467.2A CN113127012B (en) | 2021-03-09 | 2021-03-09 | Software resource construction method based on software engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110256467.2A CN113127012B (en) | 2021-03-09 | 2021-03-09 | Software resource construction method based on software engine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113127012A CN113127012A (en) | 2021-07-16 |
CN113127012B true CN113127012B (en) | 2022-03-15 |
Family
ID=76773232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110256467.2A Active CN113127012B (en) | 2021-03-09 | 2021-03-09 | Software resource construction method based on software engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113127012B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908697A (en) * | 2019-11-28 | 2020-03-24 | 米哈游科技(上海)有限公司 | Resource packaging method, device, server and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002229786A (en) * | 2001-01-31 | 2002-08-16 | Hoppu Sugaku Kenkyusho:Kk | Software group construction/generation/execution system and method |
CN109865292B (en) * | 2019-01-10 | 2023-03-14 | 珠海金山数字网络科技有限公司 | Game resource construction method and device based on game engine |
CN111897548B (en) * | 2020-07-24 | 2023-11-10 | 平安证券股份有限公司 | Front-end resource issuing method and device, electronic equipment and computer storage medium |
-
2021
- 2021-03-09 CN CN202110256467.2A patent/CN113127012B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908697A (en) * | 2019-11-28 | 2020-03-24 | 米哈游科技(上海)有限公司 | Resource packaging method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113127012A (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111949621B (en) | File compression storage method and terminal based on scene switching | |
CN110505495B (en) | Multimedia resource frame extraction method, device, server and storage medium | |
CN112003814B (en) | Market data processing method and device, terminal equipment and storage medium | |
CN111061758B (en) | Data storage method, device and storage medium | |
CN110995273B (en) | Data compression method, device, equipment and medium for power database | |
CN111817722A (en) | Data compression method and device and computer equipment | |
CN113238912A (en) | Aggregation processing method for network security log data | |
CN110222046B (en) | List data processing method, device, server and storage medium | |
CN116049109A (en) | File verification method, system, equipment and medium based on filter | |
CN112115105A (en) | Service processing method, device and equipment | |
CN111209257A (en) | Method and device for fragmenting file system | |
US11755540B2 (en) | Chunking method and apparatus | |
CN113127012B (en) | Software resource construction method based on software engine | |
CN112286457B (en) | Object deduplication method and device, electronic equipment and machine-readable storage medium | |
CN111414339B (en) | File processing method, system, device, equipment and medium | |
CN110288666B (en) | Data compression method and device | |
CN110704212B (en) | Message processing method and device | |
CN110032432B (en) | Example compression method and device and example decompression method and device | |
US6654867B2 (en) | Method and system to pre-fetch compressed memory blocks using pointers | |
CN115380267A (en) | Data compression method and device, data compression equipment and readable storage medium | |
CN112506651B (en) | Method and equipment for data operation in large-data-volume environment | |
CN114443595A (en) | Method and device for processing file | |
CN114356712A (en) | Data processing method, device, equipment, readable storage medium and program product | |
CN110795408A (en) | Data processing method and device based on object storage, server and storage medium | |
CN110908958B (en) | File processing method, device, terminal and 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231218 Address after: Room 1613-1616, 16th Floor, Block 2, Yuexiu Xinghui Yunjin Plaza, No. 84 Nanhai Avenue North, Guicheng Street, Nanhai District, Foshan City, Guangdong Province, 528000 (Residence Declaration) Patentee after: Guangdong Chanming Information Technology Co.,Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee before: Shenzhen Xingrui game Co.,Ltd. |