CN111790146A - Resource management method, device, equipment and computer readable storage medium - Google Patents

Resource management method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111790146A
CN111790146A CN201911241689.6A CN201911241689A CN111790146A CN 111790146 A CN111790146 A CN 111790146A CN 201911241689 A CN201911241689 A CN 201911241689A CN 111790146 A CN111790146 A CN 111790146A
Authority
CN
China
Prior art keywords
resource
game
package
packages
game level
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.)
Pending
Application number
CN201911241689.6A
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.)
Xiamen Yaji Software Co Ltd
Original Assignee
Xiamen Yaji Software 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 Xiamen Yaji Software Co Ltd filed Critical Xiamen Yaji Software Co Ltd
Priority to CN201911241689.6A priority Critical patent/CN111790146A/en
Publication of CN111790146A publication Critical patent/CN111790146A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • A63F13/355Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an MPEG-stream for transmitting to a mobile phone or a thin client

Abstract

The embodiment of the application provides a method, a device, equipment and a computer readable storage medium for resource management, wherein the method comprises the following steps: receiving a resource management instruction; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and downloading the target resource in the at least one resource packet when the game level is executed. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.

Description

Resource management method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for resource management.
Background
In the prior art, a plurality of resources such as pictures, 3D models and the like exist in the game engine, and according to the conventional method, the resources need to be prepared at the beginning and merged with the game after the game is made to form a uniform installation package. The problems existing in the traditional method are as follows: although some resources are used for the subsequent game level, the resources are prepared at the beginning of the game and are placed in an installation package of the game, so that the installation package is large, and the problems of slow downloading speed, slow starting and the like exist due to the large installation package.
Disclosure of Invention
The application provides a method, a device, equipment and a computer readable storage medium for resource management aiming at the defects of the existing mode, and is used for solving the problems of slow downloading speed, slow starting and the like caused by a large installation package.
In a first aspect, the present application provides a method for resource management, which is applied to a terminal, and includes:
receiving a resource management instruction;
dividing resources used by the game level into at least one resource packet according to the resource management instruction;
and downloading the target resource in the at least one resource packet when the game level is executed.
Optionally, the resource package includes at least one of a resource, a script, and a resource manifest.
Optionally, based on the resource management instruction, the resources used by the game level are divided according to any one of the service type, the scene type, and the function type.
Optionally, dividing the resources used by the game level into at least one resource packet includes:
dividing resources used by one game level into one or more resource packets;
or dividing the resources used by the plurality of game stages into one or more resource packages.
Optionally, downloading the target resource in the at least one resource package includes:
transmitting the custom parameters and the common parameters to a game engine bottom layer corresponding to the game level through a game engine upper layer corresponding to the game level, wherein the common parameters specify the name of the target resource, and the custom parameters specify the package name of the at least one resource package;
when the game engine bottom layer receives the custom parameters and the common parameters, searching target resources in a resource list of at least one resource packet;
and when the target resource is found, downloading the target resource.
Optionally, the at least one resource package is for at least one game level in at least one game.
Optionally, the resources used by the task model are divided into at least one resource packet.
Optionally, when the resource package is divided, the target resource and the resource having a dependency relationship with the target resource are divided into at least one resource package.
In a second aspect, the present application provides an apparatus for resource management, which is applied to a terminal, and includes:
the first processing module is used for receiving a resource management instruction;
the second processing module is used for dividing the resources used by the game level into at least one resource packet according to the resource management instruction;
and the third processing module is used for downloading the target resource in the at least one resource packet when the game level is executed.
Optionally, the resource package includes at least one of a resource, a script, and a resource manifest.
Optionally, based on the resource management instruction, the resources used by the game level are divided according to any one of the service type, the scene type, and the function type.
Optionally, the second processing module is specifically configured to divide resources used by one game level into one or more resource packets; or dividing the resources used by the plurality of game stages into one or more resource packages.
Optionally, the third processing module is specifically configured to transmit a custom parameter and a common parameter to a game engine bottom layer corresponding to the game level through a game engine upper layer corresponding to the game level, where the common parameter specifies a name of the target resource and the custom parameter specifies a package name of the at least one resource package;
the third processing module is specifically used for searching a target resource in a resource list of at least one resource packet when the game engine bottom layer receives the custom parameter and the common parameter;
and the third processing module is specifically used for downloading the target resource when the target resource is found.
Optionally, the at least one resource package is for at least one game level in at least one game.
Optionally, the second processing module specifically divides the resource used by the task model into at least one resource package.
Optionally, the second processing module, specifically when dividing the resource package, divides the target resource and the resource having a dependency relationship with the target resource into at least one resource package.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
and the processor is used for executing the resource management method of the first aspect of the application by calling the operation instruction.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program for performing the method of resource management of the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
receiving a resource management instruction; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and downloading the target resource in the at least one resource packet when the game level is executed. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a method for resource management according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for resource management according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. 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 that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein 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.
For better understanding and description of the embodiments of the present application, some technical terms used in the embodiments of the present application will be briefly described below.
The game engine: the system refers to core components of some edited computer game systems or some interactive real-time image application programs; the game engine comprises the following systems: rendering engine, physics engine, collision detection system, sound effects, script engine, computer animation, artificial intelligence, network engine, and scene management.
A game stage: maps or tasks in the game, or the progress of the game, etc.
Pipeline: many resources exist in the game engine, such as pictures, 3D models and the like, and the downloading or loading of the resources is completed through a pipeline.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the application provides a method for resource management, which is applied to a terminal, and a flow diagram of the method is shown in fig. 1, and the method comprises the following steps:
s101, receiving a resource management instruction.
Optionally, based on the resource management instruction, the resources used by the game level are divided according to any one of the service type, the scene type, and the function type.
Optionally, based on the resource management instruction, a game editor used by a game developer running on the terminal or a game client used by a game user divides resources used by the game level according to any one of the service category, the scene category and the function category.
S102, dividing the resources used by the game level into at least one resource packet according to the resource management instruction.
Optionally, the resource package includes at least one of a resource, a script, and a resource manifest. Among others, resources such as pictures, 3D models, etc.; the script is software code; the resource list records a resource list, for example, which resources exist, what relationship exists between the resources, and the like, and the resource package can show which resources the resource package includes through the resource list.
S103, when the game level is reached, downloading the target resource in at least one resource packet.
Optionally, when the game level is reached, the target resource in one resource package required by the game level is downloaded or loaded.
In the embodiment of the application, a resource management instruction is received; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and when the game level is reached, downloading the target resource in the at least one resource packet. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
Optionally, dividing the resources used by the game level into at least one resource packet includes:
dividing resources used by one game level into one or more resource packets;
or dividing the resources used by the plurality of game stages into one or more resource packages.
Optionally, downloading the target resource in the at least one resource package includes:
transmitting the custom parameters and the common parameters to a game engine bottom layer corresponding to the game level through a game engine upper layer corresponding to the game level, wherein the common parameters specify the name of the target resource, and the custom parameters specify the package name of the at least one resource package;
when the game engine bottom layer receives the custom parameters and the common parameters, searching target resources in a resource list of at least one resource packet;
and when the target resource is found, downloading the target resource.
Optionally, the upper layer of the game engine includes an application layer and an engine subsystem, wherein the application layer of the game engine includes plug-ins, user components, gameability, editors, and the like, and the engine subsystem of the game engine includes a scene manager, an animation system, an audio system, a rendering system, and the like.
Optionally, the at least one resource package is for at least one game level in at least one game.
Optionally, the resources used by the task model are divided into at least one resource packet.
Optionally, when the resource package is divided, the target resource and the target resource having a dependency relationship with the resource are divided into at least one resource package.
Optionally, the resource package attribute bundle provides a function of separating resources for a developer, the developer can separate resources according to own requirements, the developer can make resources used in a subsequent game process into one resource package, or make resources used in the subsequent game process into a plurality of resource packages, for example, the developer can make resources of each game level into one resource package alone, or can include resources of a plurality of game levels in one resource package, in other words, the developer can separate resources according to own requirements, or can load one resource package when changing levels, or can load a plurality of resource packages in one level. The game engine provides a resource package for the developer, and the developer can load the resource package according to the requirement of the developer.
Optionally, when the game player plays the subsequent game level, the corresponding resource package is downloaded according to the requirement, for example, one resource package includes the resource of one level, and for example, one resource package includes the resources of a plurality of levels, so that the size of the initial installation package of the game is reduced, and when the game player plays the game at the beginning, only a relatively small initial installation package needs to be installed, thereby realizing the rapid downloading and opening of the game, and saving the flow consumed by the user for downloading the installation package. In addition, because the resources used in the subsequent game level are independently made into one or more resource packages which are perfect and do not depend on the outside, even if the game is separated from the original game, the resource packages can be used in other games, namely other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
Optionally, the resource package is a resource partition file package, and in the process of dividing the resource used in each subsequent game level into one or more resource packages, the resource packages are organized and divided by the game developer according to the need, where the purpose of the division is: the minimization of the initial installation package of the game is realized, and other related resources are dynamically downloaded according to the requirements of game players. In dividing the resource packages, a game developer may divide a certain stack of resources into one resource package and another resource package, for example, the game developer may divide the resources of a first game level into a first resource package, divide the resources of a second game level into a second resource package, …, divide the resources of an nth game level into an nth resource package, for example, the game developer may divide the resources used by the first game level to a tenth game level into the first resource package, divide the resources used by the twentieth game level to a thirty game level into the second resource package, and so on, and for example, the game developer may divide the resources used by all game levels into one resource package and divide the resources used by one task model into one resource package. In other words, the developer can divide the resource package by service, by scene, and by function, according to the needs.
Optionally, in the process of dividing the resource package by the game developer according to the needs by self-definition, since the resources in the game are usually related to each other, for example, the character has a model, a chartlet, and other resources, and the model and the chartlet are interdependent, when dividing the resource package, the resources and the resources having a dependency relationship with the resources may be divided into one resource package, and the resource package includes all the resources required by the game.
Optionally, after the game developer divides the resources used in the subsequent game stages into one or more resource packages, the one or more resource packages may be placed anywhere, for example, in the game installation package, or downloaded over a network, for example, on a remote server, or stored on the server. Each resource package mainly includes contents of three aspects, namely, a resource, a code (script), and a resource list, wherein the resource list records resource lists, such as which resources exist, what relationships exist among the resources, and the like, and the resource packages can show which resources they include through the resource list.
Optionally, the target resource to be downloaded is a resource a _1, the resource package in which the resource a _1 is located is a resource package named package a, and a processing process of the game developer dynamically downloading the resource a _1 as needed is as follows:
step 1: when determining to use the package A according to the requirement, a game developer downloads the resource list of the package A, so as to obtain the resource list of the package A;
step 2: when a game developer determines to download or load a resource A _1 in a package A, the package name of the resource package in which the resource A _1 is located (namely, the package A) is specified through a custom parameter of the upper layer of a game engine, meanwhile, the resource name (namely, the resource A _1) is specified through a common parameter, and the custom parameter (the specified resource package is the package A) and the common parameter (the specified resource is the resource A _1) are transmitted to the bottom layer of the game engine through the upper layer of the game engine;
and step 3: the game engine bottom layer searches a resource (namely, a resource A _1) to be downloaded in a resource list of a corresponding resource packet (namely, a packet A) according to the received custom parameter (the resource packet is designated as the packet A) and the common parameter (the resource is designated as the resource A _1), and downloads or loads the resource A _1 when the resource A _1 is found; the process of searching for the resource a _1 according to the customized parameter and the general parameter is performed in a pipeline at the bottom of the game engine, that is, the first pipeline of the pipeline searches for the resource a _1 in a resource list of a resource packet (i.e., packet a), so as to implement URL (Uniform resource locator) splicing of the resource a _1, and then, download or load of the resource a _1 is implemented through the pipeline.
Optionally, when a game developer downloads or loads a certain resource a _1 as needed, the game developer needs to transmit the resource a _1 to be downloaded (specified by a common parameter) and the package name of the resource package in which the resource a _1 is located (specified by a custom parameter) to the game engine bottom layer through corresponding parameters, and the game engine bottom layer downloads or loads the resource a _1 through a pipeline according to the corresponding parameters (including the custom parameter and the common parameter).
Optionally, the game developer informs the resource package of a certain resource a _1 at the bottom of the game engine through a custom parameter at the upper layer of the game engine, that is, informs the resource package of the resource a _1 at the bottom of the game engine through the custom parameter, and then downloads or loads the resource a _1 through a pipeline at the bottom of the game engine.
Optionally, the initial URL of the resource a _1 is pre-calculated when the game engine is constructed and packaged, and is pre-recorded in a file, and can be directly read when the game engine is operated later, and a game developer only needs to inform the game engine bottom layer of which resource package the resource a _1 is in through a custom parameter, and then the game engine bottom layer adjusts the initial URL.
In the embodiment of the application, the resources used in the game level are made into one or more resource packages, the resource packages are small, so that the downloading speed of the resource packages is high, the starting is high, meanwhile, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, so that the multiplexing of the resource packages is realized, and the utilization rate of the resource packages is improved.
Based on the same inventive concept, the embodiment of the present application further provides a resource management apparatus, which is applied to a terminal, and a schematic structural diagram of the apparatus is shown in fig. 2, and the resource management apparatus 60 includes a first processing module 601, a second processing module 602, and a third processing module 603.
A first processing module 601, configured to receive a resource management instruction;
a second processing module 602, configured to divide resources used by the game level into at least one resource packet according to the resource management instruction;
a third processing module 603, configured to download the target resource in the at least one resource package when the game level is executed.
Optionally, the resource package includes at least one of a resource, a script, and a resource manifest.
Optionally, based on the resource management instruction, the resources used by the game level are divided according to any one of the service type, the scene type, and the function type.
Optionally, the second processing module 602 is specifically configured to divide resources used by one game level into one or more resource packets; or dividing the resources used by the plurality of game stages into one or more resource packages.
Optionally, the third processing module 603 is specifically configured to transmit a custom parameter and a common parameter to a game engine bottom layer corresponding to the game level through a game engine upper layer corresponding to the game level, where the common parameter specifies a name of the target resource, and the custom parameter specifies a package name of the at least one resource package;
the third processing module 603 is specifically configured to, when the game engine bottom layer receives the custom parameter and the common parameter, search for a target resource in a resource list of at least one resource package;
the third processing module 603 is specifically configured to download the target resource when the target resource is found.
Optionally, the at least one resource package is for at least one game level in at least one game.
Optionally, the second processing module 602 is specifically configured to divide the resources used by the task model into at least one resource package.
Optionally, the second processing module 602 is specifically configured to, when dividing the resource package, divide the target resource and the resource having a dependency relationship with the target resource into at least one resource package.
The application of the embodiment of the application has at least the following beneficial effects:
receiving a resource management instruction; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and downloading the target resource in the at least one resource packet when the game level is executed. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
For the content that is not described in detail in the resource management apparatus provided in the embodiment of the present application, reference may be made to the method for resource management provided in the foregoing embodiment, and the beneficial effects that the apparatus for resource management provided in the embodiment of the present application can achieve are the same as the method for resource management provided in the foregoing embodiment, and are not described again here.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, a schematic structural diagram of the electronic device is shown in fig. 3, the electronic device 7000 includes at least one processor 7001, a memory 7002 and a bus 7003, and the at least one processor 7001 is electrically connected to the memory 7002; the memory 7002 is configured to store at least one computer executable instruction, and the processor 7001 is configured to execute the at least one computer executable instruction so as to execute the steps of any one of the resource management methods as provided in any one of the embodiments or any one of the alternative embodiments of the present application.
Further, the processor 7001 may be an FPGA (Field-Programmable Gate Array) or other devices having logic processing capability, such as an MCU (micro controller Unit) and a CPU (Central processing Unit).
The application of the embodiment of the application has at least the following beneficial effects:
receiving a resource management instruction; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and downloading the target resource in the at least one resource packet when the game level is executed. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
Based on the same inventive concept, the present application further provides a computer-readable storage medium storing a computer program, where the computer program is used to implement, when executed by a processor, any one of the embodiments of the present application or any one of the steps of the method for resource management.
The computer-readable storage medium provided by the embodiments of the present application includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (random access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
The application of the embodiment of the application has at least the following beneficial effects:
receiving a resource management instruction; dividing resources used by the game level into at least one resource packet according to the resource management instruction; and downloading the target resource in the at least one resource packet when the game level is executed. The method realizes that the resources used in the game level are made into one or more resource packages, the resource packages are small, so the downloading speed of the resource packages is high, the starting is high, the resource packages are independent of the game, even if the game is separated, the resource packages can be used in other games, and other games can download and use the resource packages according to the requirements, thereby realizing the multiplexing of the resource packages and improving the utilization rate of the resource packages.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (11)

1. A method for resource management is applied to a terminal, and is characterized by comprising the following steps:
receiving a resource management instruction;
dividing resources used by the game level into at least one resource packet according to the resource management instruction;
and downloading the target resource in the at least one resource package when the game level is executed.
2. The method of claim 1, wherein the resource package comprises at least one of a resource, a script, and a resource manifest.
3. The method of claim 1, further comprising:
and based on the resource management instruction, dividing the resources used by the game level according to any one of the service type, the scene type and the function type.
4. The method of claim 1, wherein dividing the resources used by the game level into at least one resource package comprises:
dividing resources used by one game level into one or more resource packets;
or dividing the resources used by the plurality of game stages into one or more resource packages.
5. The method of claim 1, wherein the downloading the target resource in the at least one resource package comprises:
transmitting a custom parameter and a common parameter to a game engine bottom layer corresponding to the game level through a game engine upper layer corresponding to the game level, wherein the common parameter designates the name of the target resource, and the custom parameter designates the package name of the at least one resource package;
when the game engine bottom layer receives the custom parameter and the common parameter, searching the target resource in a resource list of the at least one resource packet;
and when the target resource is found, downloading the target resource.
6. The method of claim 1, wherein the at least one resource package is for at least one gaming level in at least one game.
7. The method of claim 1, further comprising:
and dividing the resources used by the task model into the at least one resource packet.
8. The method of claim 1, further comprising:
when the resource package is divided, the target resource and the resource which has a dependency relationship with the target resource are divided into the at least one resource package.
9. An apparatus for resource management, applied to a terminal, includes:
the first processing module is used for receiving a resource management instruction;
the second processing module is used for dividing the resources used by the game level into at least one resource packet according to the resource management instruction;
and the third processing module is used for downloading the target resource in the at least one resource packet when the game level is executed.
10. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor, configured to execute the method for resource management according to any one of claims 1 to 8 by calling the computer program.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of resource management according to any one of claims 1-8.
CN201911241689.6A 2019-12-06 2019-12-06 Resource management method, device, equipment and computer readable storage medium Pending CN111790146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241689.6A CN111790146A (en) 2019-12-06 2019-12-06 Resource management method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241689.6A CN111790146A (en) 2019-12-06 2019-12-06 Resource management method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111790146A true CN111790146A (en) 2020-10-20

Family

ID=72805477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241689.6A Pending CN111790146A (en) 2019-12-06 2019-12-06 Resource management method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111790146A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486512A (en) * 2020-11-25 2021-03-12 湖南麒麟信安科技股份有限公司 Linux general software adaptation method and system based on container and stacked file system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100831731B1 (en) * 2007-06-22 2008-05-22 에스케이 텔레콤주식회사 Video call embedding service system and method thereof
CN106201623A (en) * 2016-07-15 2016-12-07 珠海金山网络游戏科技有限公司 Game resource file loading method based on access order sequence and system
CN107038044A (en) * 2017-03-27 2017-08-11 长沙趣动文化科技有限公司 The discrete loading method of game resource and system based on Unity3D
CN108970117A (en) * 2018-06-29 2018-12-11 平安科技(深圳)有限公司 Dissemination method, terminal device and the medium of game resource packet
CN109062630A (en) * 2018-07-17 2018-12-21 北京奇艺世纪科技有限公司 A kind of program resource content download method, device and terminal device
CN109814884A (en) * 2018-12-27 2019-05-28 珠海西山居互动娱乐科技有限公司 A kind of method and system carrying out resource management according to game resource type
CN110032384A (en) * 2019-04-18 2019-07-19 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of resource updates
CN110333947A (en) * 2019-05-23 2019-10-15 深圳市腾讯网域计算机网络有限公司 A kind of subcontracting resource loading method, device, equipment and the medium of game application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100831731B1 (en) * 2007-06-22 2008-05-22 에스케이 텔레콤주식회사 Video call embedding service system and method thereof
CN106201623A (en) * 2016-07-15 2016-12-07 珠海金山网络游戏科技有限公司 Game resource file loading method based on access order sequence and system
CN107038044A (en) * 2017-03-27 2017-08-11 长沙趣动文化科技有限公司 The discrete loading method of game resource and system based on Unity3D
CN108970117A (en) * 2018-06-29 2018-12-11 平安科技(深圳)有限公司 Dissemination method, terminal device and the medium of game resource packet
CN109062630A (en) * 2018-07-17 2018-12-21 北京奇艺世纪科技有限公司 A kind of program resource content download method, device and terminal device
CN109814884A (en) * 2018-12-27 2019-05-28 珠海西山居互动娱乐科技有限公司 A kind of method and system carrying out resource management according to game resource type
CN110032384A (en) * 2019-04-18 2019-07-19 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of resource updates
CN110333947A (en) * 2019-05-23 2019-10-15 深圳市腾讯网域计算机网络有限公司 A kind of subcontracting resource loading method, device, equipment and the medium of game application

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
丿寒风: "Cocos Creator基于热更新的分包方案", 《HTTPS://BLOG.CSDN.NET/XUFENG0991/ARTICLE/DETAILS/102961887》 *
深圳-宝爷: "Cocos Creator 资源加载流程剖析【一】——cc.loader与加载管线", 《HTTPS://WWW.CNBLOGS.COM/YBGAME/P/10576884.HTML》 *
深圳-宝爷: "Cocos Creator 资源加载流程剖析【二】——Download部分", 《HTTPS://WWW.CNBLOGS.COM/YBGAME/P/10576986.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486512A (en) * 2020-11-25 2021-03-12 湖南麒麟信安科技股份有限公司 Linux general software adaptation method and system based on container and stacked file system

Similar Documents

Publication Publication Date Title
US9967205B2 (en) Resource downloading method and apparatus
CN110147240B (en) Cloud storage-based application program installation method, system and storage medium
US20170192819A1 (en) Method and electronic device for resource allocation
US9055308B2 (en) Method and system for scheduling commercial advertisement
CN105763602A (en) Data request processing method, server and cloud interactive system
US20180027061A1 (en) Method and apparatus for elastically scaling virtual machine cluster
CN105511889A (en) General game version incremental updating system and method
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
CN101626391A (en) Method for processing resource of network game client
CN106528201B (en) Method and device for loading animation in game
CN106790549B (en) Data updating method and device
US9383978B2 (en) Apparatus and method for on-demand optimization of applications
CN108888951A (en) Game resource treating method and apparatus
CN109032796B (en) Data processing method and device
CN110096685A (en) A kind of device identification generation method and device
CN112473144A (en) Game resource data processing method and device
CN111552550A (en) Task scheduling method, device and medium based on GPU (graphics processing Unit) resources
CN104104645B (en) A kind of cross-platform method for managing resource and system
CN103731692A (en) Method and system for playing SDM data
CN104866339A (en) Distributed persistent management method, system and device of FOTA data
CN109947450A (en) System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN114286124B (en) Method and device for displaying interactive bubbles in live broadcasting room, medium and computer equipment
CN111790146A (en) Resource management method, device, equipment and computer readable storage medium
CN109739487B (en) Business logic processing method and device and computer readable storage medium
KR20130028903A (en) Data streaming for interactive decision-oriented software applications

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201020

RJ01 Rejection of invention patent application after publication