CN108897554A - A kind of unity3D packaging system optimization method - Google Patents

A kind of unity3D packaging system optimization method Download PDF

Info

Publication number
CN108897554A
CN108897554A CN201810669592.4A CN201810669592A CN108897554A CN 108897554 A CN108897554 A CN 108897554A CN 201810669592 A CN201810669592 A CN 201810669592A CN 108897554 A CN108897554 A CN 108897554A
Authority
CN
China
Prior art keywords
resource
file
resource file
information
file information
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.)
Withdrawn
Application number
CN201810669592.4A
Other languages
Chinese (zh)
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.)
Suzhou Snail Digital Technology Co Ltd
Original Assignee
Suzhou Snail Digital 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 Suzhou Snail Digital Technology Co Ltd filed Critical Suzhou Snail Digital Technology Co Ltd
Priority to CN201810669592.4A priority Critical patent/CN108897554A/en
Publication of CN108897554A publication Critical patent/CN108897554A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A kind of unity3D packaging system optimization method, includes the following steps:Collect the resource file of packing in need the file information, and classified according to resource type to it;Resource file information table is generated based on the file information;Judge whether the information in the resource file information table is changed;If the information in the resource file information table is not changed, judge under locally specified catalogue the whether corresponding packet resource of included generation, it does not need to regenerate if the included packet resource of local directory, otherwise the resource file is packaged and generates packet resource;If it find that the information in the resource file information table is modified, then the resource that package information is modified.The time of packing can be substantially reduced, and improves the efficiency of team's exploitation, reduces the resource quantity in resource packing, improves the speed that client user downloads resource.

Description

A kind of unity3D packaging system optimization method
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data packing method.
Background technique
More and more companies can all select unity as the first-selected instrument of development of games now, publication game when It waits and needs to be packaged resource all inside game.Although many companies establish the packing strategy of oneself, solve asking of giving out a contract for a project Topic, but efficiency and performance without solving the problems, such as to give out a contract for a project, such as a medium-and-large-sized engineering, resource quantity is thousands of, Dependence is complicated, and packing, which requires a great deal of time, every time has seriously affected the efficiency of development teams, gets the quantity of packet Also huger, the speed for reducing resource downloading affects the experience of player.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of unity3D packaging system is excellent Change method, can substantially reduce the time of packing, and improve the efficiency of team's exploitation, reduce the number of resources in resource packing Amount improves the speed that client user downloads resource.
To achieve the above object, unity3D packaging system optimization method provided by the invention, includes the following steps:
Collect the resource file of packing in need the file information, and classified according to resource type to it;
Resource file information table is generated based on the file information;
Judge whether the information in the resource file information table is changed;
If the information in the resource file information table is not changed, it is packaged all resource files;If the money Information in source file information table is modified, then the resource that package information is modified.
Further, it is described collect the resource file of packing in need the file information, and according to resource type to it The step of being classified further comprise:
Collect directory name, the resource file name, resource file content, resource file dependence of all resource files;
Classify according to tactful and resource type is packaged to all resource files.
Further, the step of whether information judged in the resource file information table is changed further comprise:
Judge whether the resource file dependence in the resource file information table is changed.
Further, if the resource file dependence is not changed, all resources are packaged;
Multiple resource parcels are generated, its size is recorded and are classified to it;
One big packet of resource is packaged into multiple resource parcels.
Further, if the resource file dependence is modified, by the resource file dependence by more The resource file that changes and there are all resource files of dependence to be wrapped greatly with it.
Further, including:
Multiple resource parcels are generated, its size is recorded and are classified to it;
One big packet of resource is packaged into multiple resource parcels.
Unity3D packaging system optimization method of the invention generates resource file information table due to passing through, to track and remember Record the information and its variation of resource file, increasing and decreasing including resource file, the variation of resource file content, resource file Thus the variation etc. of dependence fast and accurately determines and needs to be packaged the resource file changed and have dependence with it All resource files.Therefore, the time of packing can be substantially reduced, and improves the efficiency of team's exploitation.
Unity3D packaging system optimization method of the invention, due to by by the lesser resource file of size(It is, for example, less than 5M)Classify and is packed into the big packet of big resource(It is greater than 20M), and recorded, it thereby reduces in resource packing Resource quantity.Therefore, the speed that client user downloads resource is improved.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is unity3D packaging system optimization method flow chart according to the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is unity3D packaging system optimization method flow chart according to the present invention, below with reference to Fig. 1, to the present invention Unity3D packaging system optimization method flow chart be described in detail.
In step 101, the file information of all resource files of engineering is collected.In a step 101, according to project to all moneys The file information of source file is collected, and this document information includes directory name, resource file name, resource file content, resource text Part dependence etc..
In step 102, the dependence of all resource files is collected and according to resource type to institute according to strategy is packaged There is resource file to classify.
In step 103, resource file information table is generated.In step 103, the information based on step 101 Yu step 102, Resource file information table is generated, which includes directory name, resource name, file content, resource file dependence, classification etc. Information.
In step 104, judge whether resource file dependence is changed.At step 104, if it is determined that resource file Dependence is not modified, then carries out step 106;If it is determined that resource file dependence has been changed, then carry out next Step.
In step 105, all resource files associated with modification resource file are searched, and update resource file information Table.In step 105, it according to the resource file dependence in resource file information table generated, searches and is modified The associated resource file of resource file, in other words, search has dependence to close before modification with the resource file modified All resource files of system(Not only require to look up the file modified, it is also desirable to search and dependence is had by modification file All resource file information);Update resource file information table in relevant information, for example, resource file dependence, title, Classification etc., and the resource file associated with the resource file modified is marked.Wherein
In step 106, incremental update is judged whether it is.In step 106, it if it is determined that not being incremental update, is then walked Rapid 110;If it is determined that incremental update, then carry out next step.
In step 107, it is packaged marked resource file.In step 107, right by retrieving resource file information table The resource file marked is packaged.
In step 108, multiple resource parcels are generated, record its size, and classify to it according to size.
In step 109, according to the size and classification of resource parcel, multiple resource parcels are compressed into a big compressed package (The size of big compressed package is greater than resource parcel 1), and record its information.Preferably, by multiple resource parcel sizes less than 5M's Resource is compressed into the big packet of resource for being greater than 20M.
In step 110, all resource files being packaged in resource file information table.In the case where not being incremental update, All resource files in resource file information table are packaged;Step 107 is carried out to step 109.
In the present embodiment, it is completed to step 109 packing.Later, it is packaged completed resource and is uploaded to server Or network, for client downloads.Client user opens game, if Client-Prompt needs to update, downloading is uploaded to The more new resources of server or network;It decompresses, and is updated after the completion of downloading.
According to the present embodiment, by generate resource file information table, come track and record resource file information and its Variation, increasing and decreasing including resource file, the variation of resource file content, variation of resource file dependence etc., by This, which is fast and accurately determined, needs to be packaged the resource file changed and all resource files for having dependence with it.Cause This, can substantially reduce the time of packing, and improve the efficiency of team's exploitation.
According to the present embodiment, by by the lesser resource file of size(It is, for example, less than 5M)Classify and is packed into one big The big packet of resource(It is greater than 20M), and recorded, thereby reduce the resource quantity in resource packing.Therefore, visitor is improved The speed of family end subscriber downloading resource.
Those of ordinary skill in the art will appreciate that:The foregoing is only a preferred embodiment of the present invention, and does not have to In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include Within protection scope of the present invention.

Claims (6)

1. a kind of unity3D packaging system optimization method, which is characterized in that include the following steps:
Collect the file information adduction relationship of resource (the file information comprising) of institute's resource file of packing in need and according to money Source Type classifies to it;
Resource file information table is generated based on the file information;
Judge whether the information in the resource file information table is changed;
If the information in the resource file information table is not changed, judge locally whether have existed corresponding packet resource, If there is no being then packaged all resource files;
It, all should package information regardless of locally whether there is packet resource if the information in the resource file information table is modified The resource file being modified.
2. unity3D packaging system optimization method according to claim 1, which is characterized in that the collection institute is in need The file information of the resource file of packing, and the step of being classified according to resource type to it further comprise:
Collect directory name, the resource file name, resource file content, resource file dependence of all resource files;
Classify according to tactful and resource type is packaged to all resource files.
3. unity3D packaging system optimization method according to claim 2, which is characterized in that the judgement resource The step of whether information in file information table is changed further comprise:
Judge whether the resource file dependence in the resource file information table is changed.
4. unity3D packaging system optimization method according to claim 3, which is characterized in that if the resource file Dependence is not changed, and judges whether locally specified catalogue has existed corresponding packet resource, if there is no then general All resources are packaged;
Multiple resource parcels are generated, its size is recorded and are classified to it;
One big packet of resource is packaged into multiple resource parcels.
5. unity3D packaging system optimization method according to claim 3, which is characterized in that if the resource file Dependence is modified, then has dependence by the resource file that the resource file dependence is modified and with it All resource files are wrapped greatly.
6. unity3D packaging system optimization method according to claim 5, which is characterized in that further comprise:
Multiple resource parcels are generated, its size is recorded and are classified to it;
One big packet of resource is packaged into multiple resource parcels.
CN201810669592.4A 2018-06-26 2018-06-26 A kind of unity3D packaging system optimization method Withdrawn CN108897554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810669592.4A CN108897554A (en) 2018-06-26 2018-06-26 A kind of unity3D packaging system optimization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810669592.4A CN108897554A (en) 2018-06-26 2018-06-26 A kind of unity3D packaging system optimization method

Publications (1)

Publication Number Publication Date
CN108897554A true CN108897554A (en) 2018-11-27

Family

ID=64346201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810669592.4A Withdrawn CN108897554A (en) 2018-06-26 2018-06-26 A kind of unity3D packaging system optimization method

Country Status (1)

Country Link
CN (1) CN108897554A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683920A (en) * 2018-12-25 2019-04-26 成都四方伟业软件股份有限公司 One kind being based on unity program arranging method and system
CN111078271A (en) * 2019-11-29 2020-04-28 珠海金山网络游戏科技有限公司 Method for optimizing Unity AB packaging based on feature classification trainer
CN113384896A (en) * 2021-06-25 2021-09-14 苏州沁游网络科技有限公司 Unity-based resource packaging method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN106897103A (en) * 2017-03-03 2017-06-27 广州四三九九信息科技有限公司 A kind of method that fast speed heat of mobile terminal online game version updates
CN107861736A (en) * 2017-11-01 2018-03-30 网易(杭州)网络有限公司 Patch generates and update method and device, electronic equipment, storage medium
CN107885526A (en) * 2017-11-17 2018-04-06 苏州蜗牛数字科技股份有限公司 A kind of file updating method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN106897103A (en) * 2017-03-03 2017-06-27 广州四三九九信息科技有限公司 A kind of method that fast speed heat of mobile terminal online game version updates
CN107861736A (en) * 2017-11-01 2018-03-30 网易(杭州)网络有限公司 Patch generates and update method and device, electronic equipment, storage medium
CN107885526A (en) * 2017-11-17 2018-04-06 苏州蜗牛数字科技股份有限公司 A kind of file updating method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683920A (en) * 2018-12-25 2019-04-26 成都四方伟业软件股份有限公司 One kind being based on unity program arranging method and system
CN109683920B (en) * 2018-12-25 2022-08-16 成都四方伟业软件股份有限公司 Unity program based deployment method and system
CN111078271A (en) * 2019-11-29 2020-04-28 珠海金山网络游戏科技有限公司 Method for optimizing Unity AB packaging based on feature classification trainer
CN111078271B (en) * 2019-11-29 2023-05-23 珠海金山数字网络科技有限公司 Method for optimizing Unity-based AB packet based on feature classification training device
CN113384896A (en) * 2021-06-25 2021-09-14 苏州沁游网络科技有限公司 Unity-based resource packaging method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US6952730B1 (en) System and method for efficient filtering of data set addresses in a web crawler
CN105868286B (en) The parallel method of adding and system merged based on distributed file system small documents
CN107045530A (en) A kind of method that object storage system is embodied as to local file system
CN104881466B (en) The processing of data fragmentation and the delet method of garbage files and device
CN108897554A (en) A kind of unity3D packaging system optimization method
CN104794177B (en) A kind of date storage method and device
CN107707600B (en) A kind of date storage method and device
CN110347651A (en) Method of data synchronization, device, equipment and storage medium based on cloud storage
CN106095871A (en) A kind of method and device setting up data base directory structure
CN105373576A (en) System and method for all-in-one content stream in content-centric networks
CN108573014A (en) A kind of file synchronisation method, device, electronic equipment and readable storage medium storing program for executing
CN107817946A (en) For mixing the method and device of storage device read-write data
US20050234951A1 (en) Method and system for renaming consecutive keys in a B-tree
CN105868234A (en) Update method and device of caching data
CN108415708A (en) Processing method, device, equipment and the storage medium of application program installation kit size
CN109508319A (en) A kind of cross-platform resource management system of 3D and method
CN109145194A (en) The acquisition method and device of user behavior data
CN108090186A (en) A kind of electric power data De-weight method on big data platform
CN110020272A (en) Caching method, device and computer storage medium
CN106936917A (en) A kind of cloud storage method and device, electronic equipment
CN106326403A (en) Web page generating method and device
CN106326280A (en) Data processing method, apparatus and system
CN109284428A (en) Data processing method, device and storage medium
EP2856359B1 (en) Systems and methods for storing data and eliminating redundancy
CN107943858A (en) A kind of crawler system IO optimization method and devices

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181127