CN113127012A - Software resource construction method based on software engine - Google Patents

Software resource construction method based on software engine Download PDF

Info

Publication number
CN113127012A
CN113127012A CN202110256467.2A CN202110256467A CN113127012A CN 113127012 A CN113127012 A CN 113127012A CN 202110256467 A CN202110256467 A CN 202110256467A CN 113127012 A CN113127012 A CN 113127012A
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.)
Granted
Application number
CN202110256467.2A
Other languages
Chinese (zh)
Other versions
CN113127012B (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.)
Guangdong Chanming Information Technology Co ltd
Original Assignee
Shenzhen Xingrui Game 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 Shenzhen Xingrui Game Co ltd filed Critical Shenzhen Xingrui Game Co ltd
Priority to CN202110256467.2A priority Critical patent/CN113127012B/en
Publication of CN113127012A publication Critical patent/CN113127012A/en
Application granted granted Critical
Publication of CN113127012B publication Critical patent/CN113127012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation 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/5055Allocation 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)
  • Output Control And Ontrol Of Special Type Engine (AREA)
  • Stored Programmes (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

Software resource construction method based on software engine
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, all resources in the resource list are facilitated, and whether the resource compression package corresponding to the target software resource and the resource compression package corresponding to the medical software resource have a dependency relationship or not can be obtained.
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 (6)

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;
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.
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: 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.
4. The software resource construction method based on the software engine as claimed in claim 1, wherein: 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.
5. 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 missed or not.
6. 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 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.
CN202110256467.2A 2021-03-09 2021-03-09 Software resource construction method based on software engine Active CN113127012B (en)

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 true CN113127012A (en) 2021-07-16
CN113127012B 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 (4)

* Cited by examiner, † Cited by third party
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
CN109865292A (en) * 2019-01-10 2019-06-11 珠海金山网络游戏科技有限公司 A kind of game resource construction method and device based on game engine
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN111897548A (en) * 2020-07-24 2020-11-06 平安证券股份有限公司 Front-end resource publishing method and device, electronic equipment and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN109865292A (en) * 2019-01-10 2019-06-11 珠海金山网络游戏科技有限公司 A kind of game resource construction method and device based on game engine
CN110908697A (en) * 2019-11-28 2020-03-24 米哈游科技(上海)有限公司 Resource packaging method, device, server and storage medium
CN111897548A (en) * 2020-07-24 2020-11-06 平安证券股份有限公司 Front-end resource publishing method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN113127012B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN110505495B (en) Multimedia resource frame extraction method, device, server and storage medium
CN106874348A (en) File is stored and the method for indexing means, device and reading file
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
CN109446225B (en) Data caching method and device, computer equipment and storage medium
CN113238912A (en) Aggregation processing method for network security log data
EP4154406A1 (en) Compression/decompression using index correlating uncompressed/compressed content
CN110198473B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN111209257A (en) Method and device for fragmenting file system
CN112115105A (en) Service processing method, device and equipment
CN113127012B (en) Software resource construction method based on software engine
CN112286457B (en) Object deduplication method and device, electronic equipment and machine-readable storage medium
CN110288666B (en) Data compression method and device
US6654867B2 (en) Method and system to pre-fetch compressed memory blocks using pointers
CN110032432B (en) Example compression method and device and example decompression method and device
CN115380267A (en) Data compression method and device, data compression equipment and readable storage medium
CN111414339A (en) File processing method, system, device, equipment and medium
CN108073709B (en) Data recording operation method, device, equipment and storage medium
CN114443595A (en) Method and device for processing file
CN110704212B (en) Message processing method and device
US20130218851A1 (en) Storage system, data management device, method and program
CN112506651A (en) Method and equipment for data operation in large-data-volume environment
CN112948410A (en) Data processing method, device, equipment and medium
CN110795408A (en) Data processing method and device based on object storage, server 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.