CN107122201B - Resource loading method and device and resource file generating method and device - Google Patents

Resource loading method and device and resource file generating method and device Download PDF

Info

Publication number
CN107122201B
CN107122201B CN201710142476.2A CN201710142476A CN107122201B CN 107122201 B CN107122201 B CN 107122201B CN 201710142476 A CN201710142476 A CN 201710142476A CN 107122201 B CN107122201 B CN 107122201B
Authority
CN
China
Prior art keywords
resource
resources
universal
files
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710142476.2A
Other languages
Chinese (zh)
Other versions
CN107122201A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710142476.2A priority Critical patent/CN107122201B/en
Publication of CN107122201A publication Critical patent/CN107122201A/en
Application granted granted Critical
Publication of CN107122201B publication Critical patent/CN107122201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Abstract

The invention discloses a resource loading method and a resource file generating method and device. Wherein, the method comprises the following steps: in the running process of the game application, detecting whether to jump to a UI system in the game application or whether to enter a scene system in the game application; under the condition that the user terminal detects that the user terminal jumps to a UI system in a game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises resources required by the UI system and resources depended by the required resources; under the condition that a scene system entering a game application is detected, a plurality of second resource files required by the scene system are obtained, and resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources. The invention solves the technical problem of low smoothness of game operation in the prior art.

Description

resource loading method and device and resource file generating method and device
Technical Field
The invention relates to the field of computers, in particular to a resource loading method and a resource file generating method and device.
Background
Incremental updating of resources by the Unity game requires an associatbundle mechanism, namely, packing the game resources into a Unity3d format file, and loading the file when the game runs. But very complex dependencies exist between game resources. The existing Unity resource packaging scheme generally utilizes default integrity packaging during resource packaging, that is, resources depended on are constructed in the same file by default so as to enable the resources to be completely available. Or distinguishing the directories, independently constructing the resources under part of paths, and then constructing the resources depending on the independently constructed resources through the dependency relationship. However, the simple dependency relationship may cause fragmentation of resources, and the resource occupation may not be effectively reduced while the consumption of loading the resource IO is promoted, but the resulting stuck phenomenon may be severe when loading is released, which affects the experience of the player.
In view of the above problems, no effective solution has been proposed.
disclosure of Invention
the embodiment of the invention provides a resource loading method and a resource file generating method and device, which are used for at least solving the technical problem of low game running smoothness in the prior art.
According to an aspect of an embodiment of the present invention, a resource loading method is provided, including: in the running process of the game application, detecting whether to jump to a UI system in the game application or whether to enter a scene system in the game application; under the condition that the user terminal detects that the user terminal jumps to a UI system in the game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises the resources required by the UI system and resources depended by the resources required by the UI system; under the condition that a scene system entering a game application is detected, a plurality of second resource files required by the scene system are obtained, and resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources.
according to another aspect of the embodiments of the present invention, there is also provided a method for generating a resource file, including: detecting whether a resource file needs to be generated for a UI system in a game application or not, or whether a resource file needs to be generated for a scene system in the game application or not; under the condition that a resource file needs to be generated for a UI system in the game application is detected, generating a first resource file required by the UI system, wherein the first resource file comprises resources required by the UI system and resources depended by the resources required by the UI system; and under the condition that the resource files need to be generated for the scene system in the game application is detected, generating a plurality of second resource files required by the scene system, wherein the second resource files have dependency relationship when being loaded, and each second resource file comprises one or more resources.
According to another aspect of the embodiments of the present invention, there is also provided a resource loading apparatus, including: the system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether to jump to a UI system in the game application or not or whether to enter a scene system in the game application in the running process of the game application; the first processing module is used for acquiring a first resource file required by the UI system and loading resources in the first resource file when the condition that the UI system in the game application is jumped to is detected, wherein the first resource file comprises the resources required by the UI system and the resources depended by the resources required by the UI system; the second processing module is configured to, when it is detected that a scene system in a game application enters, acquire a plurality of second resource files required by the scene system, and load resources in the plurality of second resource files according to a dependency relationship between the plurality of second resource files, where each of the plurality of second resource files includes one or more resources.
According to another aspect of the embodiments of the present invention, there is also provided a device for generating a resource file, including: the third detection module is used for detecting whether a resource file needs to be generated for a UI system in the game application or not, or whether the resource file needs to be generated for a scene system in the game application or not; a first generating module, configured to generate a first resource file required by a UI system in the game application when it is detected that a resource file needs to be generated for the UI system, where the first resource file includes a resource required by the UI system and a resource dependent on the resource required by the UI system; the second generation module is configured to generate a plurality of second resource files required by a scene system in the game application when it is detected that a resource file needs to be generated for the scene system, where a dependency relationship exists between the plurality of second resource files when loading, and each of the plurality of second resource files includes one or more resources.
In the embodiment of the invention, in the running process of the game application, whether to jump to a UI system in the game application or whether to enter a scene system in the game application is detected; under the condition that the user terminal detects that the user terminal jumps to a UI system in a game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises resources required by the UI system and resources depended by the required resources; under the condition that a scene system entering a game application is detected, a plurality of second resource files required by the scene system are obtained, and resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources. That is, in the running process of the game application, the switching of the system in the game is detected, for example, whether to jump to the UI system in the game application or whether to enter the scene system in the game application is detected, for the case of jumping to the UI system in the game application, since the resource required by the UI system and the resource on which the required resource depends are both constructed in one first resource file, the jump to the UI system can be performed only by acquiring the one first resource file and loading the resource therein, for the case of entering the scene system in the game application, a plurality of second resource files having dependency relationship required by the scene system can be acquired, and the resource in the plurality of second resource files is loaded according to the dependency relationship, it can be seen that, for the UI system to load the required resource through one first resource file, the number of times of reading the resource can be reduced, therefore, the smoothness of game running is improved, the resources are loaded according to the dependency relationship among the plurality of second resource files for the scene system, the redundancy of the resources under the scene system is reduced, the occupation of the resources under the scene system on the disk is reduced, the smoothness of game running is improved, and the problem of low smoothness of game running in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative resource loading method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an alternative resource loading method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative UI system in accordance with embodiments of the invention;
FIG. 4 is a schematic diagram of an alternative scene system according to an embodiment of the invention;
FIG. 5 is a diagram illustrating an alternative loading interface for a scene system, according to an embodiment of the invention;
FIG. 6 is a schematic diagram of an application environment of an alternative resource file generation method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an alternative resource file generation method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an alternative generation of a UI system resource file according to an embodiment of the invention;
FIG. 9 is a diagram illustrating an alternative generation of a resource file for a scene system according to an embodiment of the invention;
FIG. 10 is a schematic diagram of an alternative resource loading apparatus according to an embodiment of the invention;
FIG. 11 is a schematic diagram of an alternative resource file generation apparatus according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of an alternative resource loading apparatus according to an embodiment of the invention; and
Fig. 13 is a schematic diagram of an alternative resource file generation device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In an embodiment of the present invention, an embodiment of the foregoing resource loading method is provided. As an alternative implementation, the resource loading method may be applied, but is not limited to, in an application environment as shown in fig. 1, a client of a game application is installed in a terminal 102, and the terminal 102 is configured to detect whether to jump to a UI system in the game application or whether to enter a scene system in the game application during running of the game application; under the condition that the user terminal detects that the user terminal jumps to a UI system in a game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises resources required by the UI system and resources depended by the required resources; under the condition that a scene system entering a game application is detected, a plurality of second resource files required by the scene system are obtained, and resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources.
in this embodiment, the terminal 102 detects, during the running process of the game application, switching of the in-game system, for example, whether to jump to a UI system in the game application, or whether to enter a scene system in the game application, and for the case of jumping to the UI system in the game application, since resources required by the UI system and resources dependent on the required resources are both constructed in one first resource file, the jump to the UI system can be performed only by acquiring the one first resource file and loading the resources therein, and for the case of entering the scene system in the game application, a plurality of second resource files having dependency relationships required by the scene system can be acquired and resources in the plurality of second resource files can be loaded according to the dependency relationships, and it can be seen that, for the UI system to load the required resources through one first resource file, the number of times for reading the resources can be reduced, therefore, the smoothness of game running is improved, the resources are loaded according to the dependency relationship among the plurality of second resource files for the scene system, the redundancy of the resources under the scene system is reduced, the occupation of the resources under the scene system on the disk is reduced, the smoothness of game running is improved, and the problem of low smoothness of game running in the prior art is solved.
optionally, in this embodiment, the terminal may include, but is not limited to, at least one of the following: the system comprises a mobile phone, a tablet computer, a notebook computer, a desktop PC, a digital television and other hardware equipment for loading resources. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the terminal 102 is configured to: one first resource file is acquired through one IO reading.
optionally, in this embodiment, the terminal 102 is configured to: before entering a scene system in a game application, a plurality of second resource files required by the scene system are obtained, and the plurality of second resource files are loaded according to the dependency relationship among the plurality of second resource files.
Optionally, in this embodiment, the terminal 102 is configured to: detecting whether a universal resource needs to be loaded, wherein the universal resource is set to be used for a UI system and a scene system; when the universal resource is detected to be loaded, acquiring a plurality of third resource files generated according to the universal resource and the resource on which the universal resource depends; and loading the resources in the plurality of third resource files.
Optionally, in this embodiment, the terminal 102 is configured to: loading resources in a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource on which a universal resource depends; and loading the resources in a second part of resource files in the plurality of third resource files according to the dependency relationship between the universal resources and the resources depended by the universal resources, wherein each second part of resource file comprises one universal resource, the universal resources have no dependency relationship, and the universal resources included in the second part of resource files depend on the resources in the first part of resource files.
optionally, in this embodiment, the application environment may further include: the terminal 102 is connected to a server through a network, and the server is configured to: the terminal 102 is provided with one first resource file required for a UI system or a plurality of second resource files required for a scene system through a network.
optionally, in this embodiment, the network may include, but is not limited to, at least one of the following: wide area networks, metropolitan area networks, and local area networks. The above is only an example, and the present embodiment is not limited to this.
According to an embodiment of the present invention, a resource loading method is provided, as shown in fig. 2, the method includes:
s202, in the running process of the game application, detecting whether to jump to a UI system in the game application or whether to enter a scene system in the game application;
s204, under the condition that the user is detected to jump to the UI system in the game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises resources required by the UI system and resources depended by the required resources;
s206, under the condition that the scene system entering the game application is detected, a plurality of second resource files required by the scene system are obtained, and the resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources.
Optionally, in this embodiment, the resource loading method may be, but is not limited to, applied to a scene where resources are loaded during the running process of the game application client. The game application client can be, but is not limited to, various types of games, such as battle games, elimination games, role-playing games, shooting games, and the like. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the UI system may include, but is not limited to, an in-game menu interface, a status interface, a skill interface, a mall interface, a game mode selection interface, a level selection interface, and the like.
for example: taking the level selection interface as an example, as shown in fig. 3, the resources required by the UI system of the selection interface in the battle mode include tabs of each level, game mode options "automatic" and "battle", etc., and the resources required by the UI system of the selection interface in the battle mode depend on the resources including the label in the tab of each level, the textual description, the tag of the level difficulty (for example, the tag "difficult" corresponding to level 2), etc., and these resources are all packaged in the first resource file, that is, the loading of the first resource file is equivalent to loading all the resources required for jumping to the UI system.
Optionally, in the present embodiment, the scene system may include, but is not limited to, a battle scene in a shooting game, a battle scene in a battle game, a competition scene in a racing game, a competition scene in a sports game, and the like.
For example: taking a battle scene in a shooting game as an example, as shown in fig. 4, a scene system includes various resources, such as: the resources are packaged in a plurality of second resource files, and the plurality of second resource files have a dependency relationship, for example, in a plurality of scenes in the scene system, trees, sacks and boxes are all present, so that the plurality of acquired second resource files may include a plurality of second resource files packaged with resources of different scenes, a second resource file packaged with resources of trees, a second resource file packaged with resources of sacks and a second resource file packaged with resources of boxes, so that in the loading process, the second resource files of trees, boxes and sacks may be loaded first, and then the second resource files of corresponding scenes are loaded respectively when the scenes need to be entered.
it can be seen that, through the above steps, in the running process of the game application, the switching of the system in the game is detected, for example, whether to jump to the UI system in the game application or whether to enter the scene system in the game application is detected, for the case of jumping to the UI system in the game application, since the resource required by the UI system and the resource on which the required resource depends are both constructed in one first resource file, the jump to the UI system can be made only by acquiring the one first resource file and loading the resource therein, for the case of entering the scene system in the game application, a plurality of second resource files having dependency relationship required by the scene system can be acquired, and the resources in the plurality of second resource files are loaded according to the dependency relationship, it can be seen that, for the UI system to load the required resource through one first resource file, the number of times for reading the resource can be reduced, therefore, the smoothness of game running is improved, the resources are loaded according to the dependency relationship among the plurality of second resource files for the scene system, the redundancy of the resources under the scene system is reduced, the occupation of the resources under the scene system on the disk is reduced, the smoothness of game running is improved, and the problem of low smoothness of game running in the prior art is solved.
As an optional scheme, acquiring a first resource file required by the UI system includes:
s1, a first resource file is obtained through one IO reading.
Optionally, in this embodiment, since the resources required by the UI system are all packaged in one first resource file, the first resource file may be obtained through one IO reading when the first resource file is obtained. When a player operates the UI interface, the player can require the interface to be smooth without feeling of jamming, and animation effects including sliding in and sliding out of the interface and the like also need to be smooth. Through the steps, IO reading times during loading of the UI system can be greatly reduced, IO consumption during resource loading is reduced, and smoothness of game running is improved.
As an optional scheme, the obtaining a plurality of second resource files required by the scene system, and loading the plurality of second resource files according to the dependency relationship among the plurality of second resource files includes:
S1, before entering a scene system in the game application, obtaining a plurality of second resource files required by the scene system, and loading the plurality of second resource files according to the dependency relationship among the plurality of second resource files.
Optionally, in this embodiment, before entering a scene system in a game application, a plurality of second resource files required by the scene system may be acquired and loaded, and in the process of this loading, prompt information to a player, a game wallpaper, and other contents may be displayed on a game interface.
For example: as shown in fig. 5, before entering the scene system in the game application, a jump is made to an interface for loading a plurality of second resource files, in which a synthetic path of the equipment is shown, and the user is prompted in the form of "loading …" in the lower right corner that the resource is being loaded.
when a player is fighting in a game, which is the most core play of the game, it is necessary to ensure that the game is smooth, because slight jamming may also affect the outcome of the game, and the player may also be very conscious of the jamming in the battle. The player can pre-load the resources for a short time before playing, which is expected by the player, but not very long, which is not a problem affecting the experience of the player.
Through the steps, before entering the scene system in the game application, the plurality of second resource files required by the scene system are acquired and loaded, and the acquisition and loading of resources during the operation of the scene system can be avoided, so that the occupation of the loading resources on the memory during the operation of the scene system is reduced, and the smoothness of the operation of the game is improved.
As an optional scheme, during the running of the game application, the method further includes:
S1, detecting whether the universal resource needs to be loaded or not, wherein the universal resource is set to be used for a UI system and a scene system;
S2, when detecting that the universal resource needs to be loaded, acquiring a plurality of third resource files generated according to the universal resource and the resource on which the universal resource depends;
and S3, loading the resources in the third resource files.
Optionally, in this embodiment, the above general resources are set to be used for the UI system and the scene system. For example: sound effect resources, equipment resources, and the like.
Optionally, in this embodiment, the resources in the plurality of third resource files may be loaded, but are not limited to, by: loading resources in a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource depended by a universal resource, and loading resources in a second part of resource files in the plurality of third resource files according to the dependency relationship between the universal resource and the resource depended by the universal resource, wherein each second part of resource file comprises a universal resource, the universal resources have no dependency relationship, and the universal resources in the second part of resource files depend on the resources in the first part of resource files.
For example: when it is detected that the universal resource a needs to be loaded, two third resource files E and a third resource file F generated according to the universal resource a and a resource B, C, D on which the universal resource a depends are obtained, wherein a resource A, C, D is packaged in the third resource file E, and a resource B is packaged in the third resource file F.
therefore, through the steps, whether the universal resources set for the UI system and the scene system need to be loaded or not is detected in the running process of the game application, the universal resources are loaded when the universal resources need to be loaded, excessive redundant resources can be prevented from being loaded in the running process of the game application, and the universal resources are loaded according to the dependency relationship when the universal resources need to be used, so that the redundancy and the downloading amount in the resource loading process are reduced, and the smoothness of the game running is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
in an embodiment of the present invention, an embodiment of a method for generating a resource file is provided. As an alternative embodiment, the resource file generation method may be, but is not limited to, applied in an application environment as shown in fig. 6, where the server 602 is configured to detect whether a resource file needs to be generated for a UI system in a game application, or whether a resource file needs to be generated for a scene system in a game application; under the condition that a resource file needs to be generated for a UI system in a game application is detected, generating a first resource file needed by the UI system, wherein the first resource file comprises resources needed by the UI system and resources depended by the needed resources; and under the condition that the resource file needs to be generated for the scene system in the game application is detected, generating a plurality of second resource files required by the scene system, wherein the second resource files have dependency relationship when being loaded, and each second resource file comprises one or more resources.
in this embodiment, the server 602 generates a resource file according to the type of system in which the game application is running, for UI systems, packaging the resources required by the UI system and the resources on which the required resources depend into a first resource file, thereby generating a first resource file, when loading the UI system, only the first resource file needs to be loaded, so that the IO reading times and the IO consumption during resource loading are reduced, the smoothness of game application operation is improved, for a scene system, a plurality of second resource files are generated according to the dependency relationship among the resources, so that the redundancy of the resources and the downloading amount of the resources are reduced, the consumption of memory by resource loading during the running of game application is reduced, therefore, the smoothness of the running of the game application in the prior art is improved, and the problem of low smoothness of the running of the game application in the prior art is solved.
Optionally, in this embodiment, the server may include, but is not limited to, at least one of the following: the system comprises a mobile phone, a tablet computer, a notebook computer, a desktop PC, a digital television and other hardware equipment for generating resource files. The above is only an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the server 602 is configured to: acquiring resources required by a UI system and resources depended by the required resources; the resources needed by the UI system and the resources depended by the needed resources are constructed in a first resource file to obtain a first resource file.
optionally, in this embodiment, the server 602 is configured to: acquiring scene system resources and resources on which the scene system resources depend; and constructing a plurality of second resource files for the scene system according to the scene system resources and the dependency relationship between the resources depended by the scene system resources.
optionally, in this embodiment, the server 602 is configured to: respectively constructing scene system resources and resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, and each resource depended by the scene system resources is constructed in one second resource file; and recording the dependency relationship among the plurality of second resource files according to the scene system resources and the dependency relationship among the resources depended by the scene system resources.
Optionally, in this embodiment, the server 602 is configured to: detecting whether a resource file needs to be generated according to a universal resource, wherein the universal resource is set to be used for a UI system and a scene system; and when detecting that the resource file needs to be generated according to the universal resource, generating a plurality of third resource files according to the universal resource and the resource on which the universal resource depends.
Optionally, in this embodiment, the server 602 is configured to: generating a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource on which a universal resource depends; and generating second part of resource files in the plurality of third resource files, wherein each second part of resource file comprises a universal resource, the universal resources have no dependency relationship, and the universal resources in the second part of resource files depend on the resources in the first part of resource files.
optionally, in this embodiment, the server 602 is configured to: acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on; and respectively constructing the resources with the characteristic values larger than a preset threshold value in the resources depended by the universal resources in a resource file to obtain a first part of resource files.
Optionally, in this embodiment, the server 602 is configured to: and constructing each universal resource and the resource of which the characteristic value is less than or equal to the preset threshold value in the resource depended by each universal resource into a resource file to obtain the second part of resource file.
according to an embodiment of the present invention, a method for generating a resource file is provided, as shown in fig. 7, the method includes:
S702, detecting whether a resource file needs to be generated for a UI system in the game application or not, or whether the resource file needs to be generated for a scene system in the game application or not;
s704, under the condition that a resource file needs to be generated for a UI system in the game application, generating a first resource file needed by the UI system, wherein the first resource file comprises resources needed by the UI system and resources depended by the resources needed by the UI system;
s706, under the condition that the resource files need to be generated for the scene system in the game application is detected, a plurality of second resource files needed by the scene system are generated, wherein dependency exists among the second resource files during loading, and each second resource file comprises one or more resources.
Optionally, in this embodiment, the method for generating resource files may be applied to, but not limited to, a scene of generating game resource files.
Optionally, in this embodiment, the UI system may include, but is not limited to, an in-game menu interface, a status interface, a skill interface, a mall interface, a game mode selection interface, a level selection interface, and the like.
for example: taking the level selection interface as an example, as shown in fig. 3, the resources required by the UI system of the selection interface in the battle mode include tabs of each level, game mode options "automatic" and "battle", etc., and the resources required by the UI system of the selection interface in the battle mode depend on the resources including the label in the tab of each level, the textual description, the tag of the level difficulty (for example, the tag "difficult" corresponding to level 2), etc., and these resources are all packaged in the first resource file, that is, the loading of the first resource file is equivalent to loading all the resources required for jumping to the UI system.
Optionally, in the present embodiment, the scene system may include, but is not limited to, a battle scene in a shooting game, a battle scene in a battle game, a competition scene in a racing game, a competition scene in a sports game, and the like.
for example: taking a battle scene in a shooting game as an example, as shown in fig. 4, a scene system includes various resources, such as: the resources are packaged in a plurality of second resource files, and the plurality of second resource files have a dependency relationship, for example, in a plurality of scenes in the scene system, trees, sacks and boxes are all present, so that the plurality of acquired second resource files may include a plurality of second resource files packaged with resources of different scenes, a second resource file packaged with resources of trees, a second resource file packaged with resources of sacks and a second resource file packaged with resources of boxes, so that in the loading process, the second resource files of trees, boxes and sacks may be loaded first, and then the second resource files of corresponding scenes are loaded respectively when the scenes need to be entered.
Therefore, through the steps, the resource file is generated according to the system type in the running of the game application, for UI systems, packaging the resources required by the UI system and the resources on which the required resources depend into a first resource file, thereby generating a first resource file, when loading the UI system, only the first resource file needs to be loaded, so that the IO reading times and the IO consumption during resource loading are reduced, the smoothness of game application operation is improved, for a scene system, a plurality of second resource files are generated according to the dependency relationship among the resources, so that the redundancy of the resources and the downloading amount of the resources are reduced, the consumption of memory by resource loading during the running of game application is reduced, therefore, the smoothness of the running of the game application in the prior art is improved, and the problem of low smoothness of the running of the game application in the prior art is solved.
As an alternative, generating a first resource file required by the UI system includes:
S1, acquiring the resources required by the UI system and the resources depended by the resources required by the UI system;
S2, the resource needed by the UI system and the resource depended by the needed resource are constructed in a first resource file to obtain a first resource file.
Optionally, in this embodiment, for the UI system of the game application, the resources used by each system itself are distinguished. For example, a map, each system manages its own map set, in addition to a common map set. Therefore, the situation that a certain image set is depended on by a plurality of systems at the same time, redundancy is caused by integral construction, and IO increase caused by increasing the number of files due to separate construction can be avoided. Therefore, for the UI system of the game application, each system can independently share own resources, and the UI system and the resources depended by the UI system are integrated and packaged in one output file (namely the first resource file).
for example: as shown in fig. 8, when a resource file of the UI system a is generated, the resource objectA required by the UI system and the resource objectB and map resources on which the required resource objectA depends are acquired, and the acquired object a, object b and map resources are built in one production file, so as to generate a first resource file a.unity3 d.
through the steps, when the game runs, the user only needs to load the whole first resource file when jumping to a certain UI system, and only needs to perform IO reading once. Not only greatly reduces the IO times, but also greatly reduces the waste of IO reading each time caused by too small each file, thereby improving the smoothness of game operation.
As an optional scheme, generating a plurality of second resource files required by the scene system includes:
S1, acquiring scene system resources and resources on which the scene system resources depend;
S2, constructing a plurality of second resource files for the scene system according to the scene system resources and the dependency relationship between the resources depended by the scene system resources
Optionally, in this embodiment, the plurality of second resource files may be constructed in the following manner: and respectively constructing the scene system resources and the resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, each resource depended by the scene system resources is constructed in one second resource file, and the dependency relationship among the plurality of second resource files is recorded according to the dependency relationship among the scene system resources and the resources depended by the scene system resources.
Optionally, in this embodiment, the resources (e.g., battle resources) for the scene system in the game application may be constructed in a manner as independent as possible. Loading and preloading are performed for a period of time before entering the game battle scene. A special interface display loading as shown in fig. 5 would be available to the player at this point in time, with more time and less time, as long as it is not too much or even stuck. When the resources are independently constructed as much as possible, a lot of scattered resource files are generated, and when the resources are loaded, more cpus and memory are actually needed, but players can hardly perceive the files.
For example: as shown in fig. 9, when the resource file of the battle system a is generated, the resource objectA required by the battle system a and the resource objectB and the map resource depended on by the required resource objectA are acquired, the acquired object a, object b and map resource are respectively built in three production files, and a plurality of second resource files a.unity3d, b.unity3d and atlas.unity3d are generated.
Therefore, through the steps, the redundancy of the scene system resources is greatly reduced, namely the occupation of the resources on the disk is greatly reduced. Meanwhile, the resource downloading amount of the player is reduced, the magnitude is very obvious, and the overall evaluation and data of the game are also positively improved.
As an optional scheme, when detecting whether a resource file needs to be generated for a UI system in a game application, or whether a resource file needs to be generated for a scene system in the game application, the method further includes:
s1, detecting whether a resource file is required to be generated according to universal resources, wherein the universal resources are set to be used for the UI system and the scene system;
and S2, when detecting that the resource file needs to be generated according to the universal resource, generating a plurality of third resource files according to the universal resource and the resource depended by the universal resource.
optionally, in this embodiment, the plurality of third resource files may be generated by: generating a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource on which a universal resource depends; and generating second part of resource files in the plurality of third resource files, wherein each second part of resource file comprises a universal resource, the universal resources have no dependency relationship, and the universal resources in the second part of resource files depend on the resources in the first part of resource files.
optionally, in this embodiment, the first part of the plurality of third resource files may be generated by: acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on; and respectively constructing the resources with the characteristic values larger than a preset threshold value in the resources depended by the universal resources in a resource file to obtain a first part of resource files.
Optionally, in this embodiment, the second partial resource file in the plurality of third resource files may be generated by: and constructing each universal resource and the resource with the characteristic value less than or equal to a preset threshold value in the resource depended by each universal resource in a resource file to obtain a second part of resource file.
Optionally, in this embodiment, a dependency relationship between the first part of resource files and the second part of resource files may be recorded, and the generated first part of resource files and second part of resource files having a dependency relationship are used as a plurality of third resource files.
For example: the universal resources to be constructed are universal resources A, universal resources B and universal resources C, the resources depended on by the universal resources A comprise resources D, resources E and resources F, the resources depended on by the universal resources B comprise resources E, resources F and resources G, the resources depended on by the universal resources C comprise resources E and resources F, then the characteristic values of the resources D, the resources E, the resources F and the resources G are respectively 1, 3 and 1 through calculation, resource files are respectively constructed for the resources with the characteristic value larger than 2 in the resources depended on by the universal resources, and first part of resource files E.unity3D and F.unity3D are obtained. And constructing a resource file for the universal resource and the resource with the characteristic value not more than 2 in the resource depended by the universal resource to obtain a second part of resource files A.unity3D, B.unity3D and C.unity3D, wherein the A.unity3D comprises the universal resource A and the resource D, the B.unity3D comprises the universal resource B and the resource G, and the C.unity3D comprises the universal resource C. Recording the dependency relationship in the generated resource file: the a.unity3d, the b.unity3d, and the c.unity3d all depend on the e.unity3d and the f.unity3d, thereby obtaining a plurality of third resource files.
In one example, for a universal resource, since there is no specificity like the UI system resource and the scene system resource described above, it can be constructed in the following manner. The final goal is to make the granularity and redundancy of resource subdivision reach a reasonable balance point. A resource file may be generated for a universal resource by:
step 1, all resources depended by each universal resource needing to be constructed are obtained.
And 2, putting the resources depended by the multiple resources into a depended resource list, and counting the depended times.
and 3, sequencing the resources in the relied resource list in a descending order, and calculating the characteristic value of the resources, namely the size of the resources (the number of times the resources are relied-1).
And 4, taking a fixed threshold (equivalent to the preset condition), performing stack-dependent stacking on the first N resources, and independently constructing to obtain the first part of resource files.
and 5, after the dependent resources are constructed, pressing the required upper-layer resources, and constructing the resource files to obtain the second part of resource files.
the characteristic value in step 3 represents the redundancy gain which can be obtained once the depended resources are independently constructed, and the larger the value is, the less the resource redundancy is brought by independent construction.
For these general-purpose resources, in order to avoid frequent loading and unloading, a resource loading system manages the general-purpose resources in the program. After the resources are loaded, the resources are firstly cached in the memory, and are not unloaded urgently, so that the excessive consumption of the GC is avoided. And simultaneously, the cache number and the threshold value of the space are established, and the LRU algorithm is used for eliminating the cache resources which are not used for the longest time. This is done to avoid excessive consumption of frequent IO and frequent GC.
it should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
example 3
According to an embodiment of the present invention, there is also provided a resource loading apparatus for implementing the resource loading method, as shown in fig. 10, the apparatus includes:
1) A first detecting module 1002, configured to detect whether to jump to a UI system in a game application or enter a scene system in the game application in a process of running the game application;
2) A first processing module 1004 coupled to the first detecting module 1002, configured to detect whether to jump to a UI system in the game application or enter a scene system in the game application during the running of the game application;
3) The second processing module 1006, coupled to the first detecting module 1002, is configured to, when a scene system entering the game application is detected, obtain a plurality of second resource files required by the scene system, and load resources in the plurality of second resource files according to a dependency relationship between the plurality of second resource files, where each second resource file includes one or more resources.
Optionally, in this embodiment, the resource loading apparatus may be applied to, but not limited to, a scene in which resources are loaded during the running process of the game application client. The game application client can be, but is not limited to, various types of games, such as battle games, elimination games, role-playing games, shooting games, and the like. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the UI system may include, but is not limited to, an in-game menu interface, a status interface, a skill interface, a mall interface, a game mode selection interface, a level selection interface, and the like.
for example: taking the level selection interface as an example, as shown in fig. 3, the resources required by the UI system of the selection interface in the battle mode include tabs of each level, game mode options "automatic" and "battle", etc., and the resources required by the UI system of the selection interface in the battle mode depend on the resources including the label in the tab of each level, the textual description, the tag of the level difficulty (for example, the tag "difficult" corresponding to level 2), etc., and these resources are all packaged in the first resource file, that is, the loading of the first resource file is equivalent to loading all the resources required for jumping to the UI system.
Optionally, in the present embodiment, the scene system may include, but is not limited to, a battle scene in a shooting game, a battle scene in a battle game, a competition scene in a racing game, a competition scene in a sports game, and the like.
For example: taking a battle scene in a shooting game as an example, as shown in fig. 4, a scene system includes various resources, such as: the resources are packaged in a plurality of second resource files, and the plurality of second resource files have a dependency relationship, for example, in a plurality of scenes in the scene system, trees, sacks and boxes are all present, so that the plurality of acquired second resource files may include a plurality of second resource files packaged with resources of different scenes, a second resource file packaged with resources of trees, a second resource file packaged with resources of sacks and a second resource file packaged with resources of boxes, so that in the loading process, the second resource files of trees, boxes and sacks may be loaded first, and then the second resource files of corresponding scenes are loaded respectively when the scenes need to be entered.
It can be seen that, by the above apparatus, in the running process of the game application, the switching of the system in the game is detected, for example, whether to jump to the UI system in the game application or whether to enter the scene system in the game application is detected, for the case of jumping to the UI system in the game application, since the resource required by the UI system and the resource on which the required resource depends are both constructed in one first resource file, the jump to the UI system can be made only by acquiring the one first resource file and loading the resource therein, for the case of entering the scene system in the game application, a plurality of second resource files having dependency relationship required by the scene system can be acquired, and the resource in the plurality of second resource files is loaded according to the dependency relationship, it can be seen that, for the UI system to load the required resource through one first resource file, the number of times for reading the resource can be reduced, therefore, the smoothness of game running is improved, the resources are loaded according to the dependency relationship among the plurality of second resource files for the scene system, the redundancy of the resources under the scene system is reduced, the occupation of the resources under the scene system on the disk is reduced, the smoothness of game running is improved, and the problem of low smoothness of game running in the prior art is solved.
as an optional solution, the first processing module is configured to:
1) one first resource file is acquired through one IO reading.
Optionally, in this embodiment, since the resources required by the UI system are all packaged in one first resource file, the first resource file may be obtained through one IO reading when the first resource file is obtained. When a player operates the UI interface, the player can require the interface to be smooth without feeling of jamming, and animation effects including sliding in and sliding out of the interface and the like also need to be smooth. Through the steps, IO reading times during loading of the UI system can be greatly reduced, IO consumption during resource loading is reduced, and smoothness of game running is improved.
as an optional solution, the second processing module is configured to:
1) before entering a scene system in a game application, a plurality of second resource files required by the scene system are obtained, and the plurality of second resource files are loaded according to the dependency relationship among the plurality of second resource files.
Optionally, in this embodiment, since the resources required by the UI system are all packaged in one first resource file, the first resource file may be obtained through one IO reading when the first resource file is obtained. When a player operates the UI interface, the player can require the interface to be smooth without feeling of jamming, and animation effects including sliding in and sliding out of the interface and the like also need to be smooth. Through the steps, IO reading times during loading of the UI system can be greatly reduced, IO consumption during resource loading is reduced, and smoothness of game running is improved.
As an optional solution, the apparatus further includes:
1) the second detection module is used for detecting whether universal resources need to be loaded or not in the running process of the game application, wherein the universal resources are set to be used for a UI system and a scene system;
2) The acquisition module is used for acquiring a plurality of third resource files generated according to the universal resources and the resources on which the universal resources depend when the universal resources are detected to be loaded;
3) and the loading module is used for loading the resources in the third resource files.
optionally, in this embodiment, the above general resources are set to be used for the UI system and the scene system. For example: sound effect resources, equipment resources, and the like.
as an optional solution, the loading module includes:
1) a first loading unit, configured to load resources in a first part of resource files in a plurality of third resource files, where each first part of resource file includes a resource on which a universal resource depends;
2) And the second loading unit is used for loading the resources in a second part of resource files in the plurality of third resource files according to the dependency relationship between the universal resources and the resources depended by the universal resources, wherein each second part of resource file comprises one universal resource, the universal resources have no dependency relationship, and the universal resources included in the second part of resource files depend on the resources in the first part of resource files.
For example: when it is detected that the universal resource a needs to be loaded, two third resource files E and a third resource file F generated according to the universal resource a and a resource B, C, D on which the universal resource a depends are obtained, wherein a resource A, C, D is packaged in the third resource file E, and a resource B is packaged in the third resource file F.
Therefore, through the steps, whether the universal resources set for the UI system and the scene system need to be loaded or not is detected in the running process of the game application, the universal resources are loaded when the universal resources need to be loaded, excessive redundant resources can be prevented from being loaded in the running process of the game application, and the universal resources are loaded according to the dependency relationship when the universal resources need to be used, so that the redundancy and the downloading amount in the resource loading process are reduced, and the smoothness of the game running is improved.
Example 4
according to an embodiment of the present invention, there is also provided a resource file generating apparatus for implementing the resource file generating method, as shown in fig. 11, the apparatus includes:
1) A third detecting module 1102, configured to detect whether a resource file needs to be generated for a UI system in a game application, or whether a resource file needs to be generated for a scene system in the game application;
2) a first generating module 1104, coupled to the third detecting module 1102, configured to generate a first resource file required by the UI system when it is detected that a resource file needs to be generated for the UI system in the game application, where the first resource file includes resources required by the UI system and resources on which the resources required by the UI system depend;
3) A second generating module 1106, coupled to the third detecting module 1102, configured to generate a plurality of second resource files required by a scenario system in the game application, where there is a dependency relationship between the plurality of second resource files when loading, and each second resource file includes one or more resources, if it is detected that a resource file needs to be generated for the scenario system in the game application.
Optionally, in this embodiment, the resource file generation apparatus may be applied to, but not limited to, a scene of generating a game resource file.
optionally, in this embodiment, the UI system may include, but is not limited to, an in-game menu interface, a status interface, a skill interface, a mall interface, a game mode selection interface, a level selection interface, and the like.
for example: taking the level selection interface as an example, as shown in fig. 3, the resources required by the UI system of the selection interface in the battle mode include tabs of each level, game mode options "automatic" and "battle", etc., and the resources required by the UI system of the selection interface in the battle mode depend on the resources including the label in the tab of each level, the textual description, the tag of the level difficulty (for example, the tag "difficult" corresponding to level 2), etc., and these resources are all packaged in the first resource file, that is, the loading of the first resource file is equivalent to loading all the resources required for jumping to the UI system.
Optionally, in the present embodiment, the scene system may include, but is not limited to, a battle scene in a shooting game, a battle scene in a battle game, a competition scene in a racing game, a competition scene in a sports game, and the like.
for example: taking a battle scene in a shooting game as an example, as shown in fig. 4, a scene system includes various resources, such as: the resources are packaged in a plurality of second resource files, and the plurality of second resource files have a dependency relationship, for example, in a plurality of scenes in the scene system, trees, sacks and boxes are all present, so that the plurality of acquired second resource files may include a plurality of second resource files packaged with resources of different scenes, a second resource file packaged with resources of trees, a second resource file packaged with resources of sacks and a second resource file packaged with resources of boxes, so that in the loading process, the second resource files of trees, boxes and sacks may be loaded first, and then the second resource files of corresponding scenes are loaded respectively when the scenes need to be entered.
Therefore, by the device, the resource file is generated according to the system type in the running of the game application, for UI systems, packaging the resources required by the UI system and the resources on which the required resources depend into a first resource file, thereby generating a first resource file, when loading the UI system, only the first resource file needs to be loaded, so that the IO reading times and the IO consumption during resource loading are reduced, the smoothness of game application operation is improved, for a scene system, a plurality of second resource files are generated according to the dependency relationship among the resources, so that the redundancy of the resources and the downloading amount of the resources are reduced, the consumption of memory by resource loading during the running of game application is reduced, therefore, the smoothness of the running of the game application in the prior art is improved, and the problem of low smoothness of the running of the game application in the prior art is solved.
As an alternative, the first generating module includes:
1) A first acquisition unit configured to acquire a resource required by the UI system and a resource on which the required resource depends;
2) The first construction unit is used for constructing the resources required by the UI system and the resources depended by the required resources in a first resource file to obtain the first resource file.
Optionally, in this embodiment, for the UI system of the game application, the resources used by each system itself are distinguished. For example, a map, each system manages its own map set, in addition to a common map set. Therefore, the situation that a certain image set is depended on by a plurality of systems at the same time, redundancy is caused by integral construction, and IO increase caused by increasing the number of files due to separate construction can be avoided. Therefore, for the UI system of the game application, each system can independently share own resources, and the UI system and the resources depended by the UI system are integrated and packaged in one output file (namely the first resource file).
For example: as shown in fig. 8, when a resource file of the UI system a is generated, the resource objectA required by the UI system and the resource objectB and map resources on which the required resource objectA depends are acquired, and the acquired object a, object b and map resources are built in one production file, so as to generate a first resource file a.unity3 d.
by the device, when a game runs, the user only needs to load the whole first resource file when jumping to a certain UI system, and only needs to perform IO reading once. Not only greatly reduces the IO times, but also greatly reduces the waste of IO reading each time caused by too small each file, thereby improving the smoothness of game operation.
as an optional solution, the second generating module includes:
1) A second obtaining unit, configured to obtain a scene system resource and a resource on which the scene system resource depends;
2) And the second construction unit is used for constructing a plurality of second resource files for the scene system according to the scene system resources and the dependency relationship among the resources depended by the scene system resources.
Optionally, in this embodiment, the second building unit is configured to: respectively constructing scene system resources and resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, and each resource depended by the scene system resources is constructed in one second resource file; and recording the dependency relationship among the plurality of second resource files according to the scene system resources and the dependency relationship among the resources depended by the scene system resources.
Optionally, in this embodiment, the resources (e.g., battle resources) for the scene system in the game application may be constructed in a manner as independent as possible. Loading and preloading are performed for a period of time before entering the game battle scene. A special interface display loading as shown in fig. 5 would be available to the player at this point in time, with more time and less time, as long as it is not too much or even stuck. When the resources are independently constructed as much as possible, a lot of scattered resource files are generated, and when the resources are loaded, more cpus and memory are actually needed, but players can hardly perceive the files.
For example: as shown in fig. 9, when the resource file of the battle system a is generated, the resource objectA required by the battle system a and the resource objectB and the map resource depended on by the required resource objectA are acquired, the acquired object a, object b and map resource are respectively built in three production files, and a plurality of second resource files a.unity3d, b.unity3d and atlas.unity3d are generated.
Therefore, the redundancy of the scene system resources is greatly reduced through the device, namely the occupation of the disks of the resources is greatly reduced. Meanwhile, the resource downloading amount of the player is reduced, the magnitude is very obvious, and the overall evaluation and data of the game are also positively improved.
As an optional solution, the apparatus further includes:
1) The fourth detection module is used for detecting whether the resource file needs to be generated according to the universal resource when detecting whether the resource file needs to be generated for the UI system in the game application or whether the resource file needs to be generated for the scene system in the game application, wherein the universal resource is set to be used for the UI system and the scene system;
2) And the third generation module is used for generating a plurality of third resource files according to the universal resources and the resources on which the universal resources depend when the resource files are detected to be generated according to the universal resources.
Optionally, in this embodiment, the third generating module includes:
1) a first generating unit, configured to generate first partial resource files in a plurality of third resource files, where each first partial resource file includes a resource on which a universal resource depends;
2) And the second generation unit is used for generating a second part of resource files in the plurality of third resource files, wherein each second part of resource file comprises a universal resource, the universal resources have no dependency relationship, and the universal resources in the second part of resource files depend on the resources in the first part of resource files.
optionally, in this embodiment, the first generating unit is configured to: acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on; and respectively constructing the resources with the characteristic values larger than a preset threshold value in the resources depended by the universal resources in a resource file to obtain a first part of resource files.
Optionally, in this embodiment, the second generating unit is configured to: and constructing each universal resource and the resource with the characteristic value less than or equal to a preset threshold value in the resource depended by each universal resource in a resource file to obtain a second part of resource file.
Optionally, in this embodiment, a dependency relationship between the first part of resource files and the second part of resource files may be recorded, and the generated first part of resource files and second part of resource files having a dependency relationship are used as a plurality of third resource files.
For example: the universal resources to be constructed are universal resources A, universal resources B and universal resources C, the resources depended on by the universal resources A comprise resources D, resources E and resources F, the resources depended on by the universal resources B comprise resources E, resources F and resources G, the resources depended on by the universal resources C comprise resources E and resources F, then the characteristic values of the resources D, the resources E, the resources F and the resources G are respectively 1, 3 and 1 through calculation, resource files are respectively constructed for the resources with the characteristic value larger than 2 in the resources depended on by the universal resources, and first part of resource files E.unity3D and F.unity3D are obtained. And constructing a resource file for the universal resource and the resource with the characteristic value not more than 2 in the resource depended by the universal resource to obtain a second part of resource files A.unity3D, B.unity3D and C.unity3D, wherein the A.unity3D comprises the universal resource A and the resource D, the B.unity3D comprises the universal resource B and the resource G, and the C.unity3D comprises the universal resource C. Recording the dependency relationship in the generated resource file: the a.unity3d, the b.unity3d, and the c.unity3d all depend on the e.unity3d and the f.unity3d, thereby obtaining a plurality of third resource files.
Example 5
The application environment of the embodiment of the present invention may refer to the application environment in embodiment 1, but is not described herein again. The embodiment of the invention provides an optional specific application example for implementing the resource loading method.
As an alternative embodiment, the resource loading method may be, but is not limited to, applied in a scenario of loading resources of a game application client. In the running process of a game application client (client), the resource storage of the game is divided into two types: one is an in-package resource, stored in a game installation package (e.g., apk, ipa); the other is an out-of-package resource, which is stored on a disk outside the program space. Out-of-package resources are generally applicable to incremental updates of game resources and resources need to be pulled out of the package because of some requirement (e.g., it is not desirable to have a game installation package that is too large). The acquisition mode of the out-of-package resource is generally downloading before entering the game, or downloading in real time when needed according to the game process.
After downloading the resources, the client needs to load the downloaded resources, and the memory space or the IO resources are consumed when the resources are loaded. The most important thing to pay attention to when a player plays a game is the playability and fluency of the game. Like FPS class game, the player has very high requirement to the feel, and a silk card is very easy to influence the experience and the accuracy of high-end players. Fluency also falls into two broad categories depending on the mode of play: the UI system and the game battle operating system (corresponding to the above-described scene system).
when a player operates the UI system, the player can require interface fluency without feeling of incarceration, and animation effects including sliding in and sliding out of the interface and the like also need fluency. When jumping to a UI system in a game application, a first resource file required by the UI system can be obtained, and resources in the first resource file are loaded. The UI system loads the needed resources through a first resource file, so that the frequency of reading the resources can be reduced, the smoothness of game running is improved, and the operation of the game UI system is optimized in the aspects of resource size, loading, unloading and the like.
for resource loading in the game combat operating system, a player can perform resource preloading for a short time before entering the game combat operating system, and the time is expected to be the time which is not very long and is not a problem influencing the experience of the player. The method can acquire the plurality of second resource files required by the game battle operating system, and loads the resources in the plurality of second resource files according to the dependency relationship among the plurality of second resource files, thereby reducing the redundancy of the resources in the scene system, reducing the occupation of the resources in the scene system on the disk, and improving the smoothness of game operation.
when the player battles in the game, which is the most core playing method of the game, the game must be ensured to be smooth, because slight jamming may affect the game result, and the player will also be greatly interested in the jamming in the battle. For the loading of universal resources required in battles, when the universal resources are detected to be loaded, a plurality of third resource files generated according to the universal resources and resources depended on by the universal resources are obtained, and resources in a first part of resource files in the plurality of third resource files are loaded, wherein each first part of resource files comprises a resource depended on by the universal resource, then the resources in a second part of resource files in the plurality of third resource files are loaded according to the dependency relationship between the universal resources and the resources depended on by the universal resources, and the intra-game battle operation can be optimized in the link from the aspects of resource size, preloading, loading, multiplexing, unloading and the like.
example 6
the application environment of the embodiment of the present invention may refer to the application environment in embodiment 2, but is not described herein again. The embodiment of the invention provides an optional specific application example for implementing the resource file generation method.
as an alternative embodiment, the resource file generation method may be, but is not limited to, applied in a scenario of generating a resource file of a game application client. When generating the resource file, the resource file may be generated according to characteristics of each system in the game application, a first resource file required by the UI system is generated under the condition that the resource file needs to be generated for the UI system in the game application, where the first resource file includes resources required by the UI system and resources dependent on the resources required by the UI system, and a plurality of second resource files required by the scenario system are generated under the condition that the resource file needs to be generated for the scenario system in the game application, where dependency relationships exist among the plurality of second resource files when loading, and each second resource file includes one or more resources. For a universal resource, a plurality of third resource files may be generated from the universal resource and the resources upon which the universal resource depends.
The resource file is generated in the above way, when the resource is downloaded, the size of the resource can be reduced as much as possible, and the waiting time of the player when downloading the resource can be reduced, which is very significant for the success rate of downloading and the retention of the player.
Example 7
According to an embodiment of the present invention, there is also provided a resource loading apparatus for implementing the resource loading method, as shown in fig. 12, the apparatus includes:
1) the communication interface 1202 is configured to acquire a first resource file required by the UI system and a plurality of second resource files required by the scene system, where the first resource file includes resources required by the UI system and resources dependent on the required resources, and each of the second resource files includes one or more resources;
2) A processor 1204, connected to the communication interface 1202, configured to detect whether to jump to a UI system in the game application or to enter a scene system in the game application during the running of the game application; loading the resource in the first resource file under the condition that the jump to the UI system in the game application is detected; and under the condition that the scene system entering the game application is detected, loading the resources in the second resource files according to the dependency relationship among the second resource files.
3) the memory 1206, coupled to the communication interface 1202 and the processor 1204, is configured to store a first resource file and a second resource file.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 3, and this embodiment is not described herein again.
Example 8
According to an embodiment of the present invention, there is also provided a resource loading apparatus for implementing the resource loading method, as shown in fig. 13, the apparatus includes:
1) A processor 1302 configured to detect whether a resource file needs to be generated for a UI system in a game application, or whether a resource file needs to be generated for a scene system in a game application; under the condition that a resource file needs to be generated for a UI system in a game application is detected, generating a first resource file needed by the UI system, wherein the first resource file comprises resources needed by the UI system and resources depended by the resources needed by the UI system; and under the condition that the resource file needs to be generated for the scene system in the game application is detected, generating a plurality of second resource files required by the scene system, wherein the second resource files have dependency relationship when being loaded, and each second resource file comprises one or more resources.
3) The memory 1304 is coupled to the processor 1302 and configured to store a first resource file and a second resource file.
optionally, the specific examples in this embodiment may refer to the examples described in embodiment 2 and embodiment 4, which are not described herein again.
Example 9
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network devices in a network.
optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, in the running process of the game application, detecting whether to jump to a UI system in the game application or whether to enter a scene system in the game application;
S2, when it is detected that the UI system in the game application is jumped to, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises resources required by the UI system and resources depended by the resources required by the UI system;
s3, under the condition that the scene system entering the game application is detected, a plurality of second resource files required by the scene system are obtained, and the resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources.
optionally, the storage medium is further arranged to store program code for performing the steps of: one first resource file is acquired through one IO reading.
optionally, the storage medium is further arranged to store program code for performing the steps of: before entering a scene system in a game application, a plurality of second resource files required by the scene system are obtained, and the plurality of second resource files are loaded according to the dependency relationship among the plurality of second resource files.
Optionally, the storage medium is further arranged to store program code for performing the steps of: detecting whether a universal resource needs to be loaded, wherein the universal resource is set to be used for a UI system and a scene system; when the universal resource is detected to be loaded, acquiring a plurality of third resource files generated according to the universal resource and the resource on which the universal resource depends; and loading the resources in the plurality of third resource files.
Optionally, the storage medium is further arranged to store program code for performing the steps of: loading resources in a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource on which a universal resource depends; and loading the resources in a second part of resource files in the plurality of third resource files according to the dependency relationship between the universal resources and the resources depended by the universal resources, wherein each second part of resource file comprises one universal resource, the universal resources have no dependency relationship, and the universal resources included in the second part of resource files depend on the resources in the first part of resource files.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
S4, detecting whether a resource file needs to be generated for a UI system in the game application or not, or whether a resource file needs to be generated for a scene system in the game application or not;
S5, generating a first resource file required by the UI system under the condition that the resource file is detected to be required to be generated for the UI system in the game application, wherein the first resource file comprises the resources required by the UI system and the resources depended by the resources required by the UI system;
And S6, under the condition that the resource files need to be generated for the scene system in the game application is detected, generating a plurality of second resource files required by the scene system, wherein the second resource files have dependency relationship when being loaded, and each second resource file comprises one or more resources.
optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring resources required by a UI system and resources depended by the resources required by the UI system; the resources needed by the UI system and the resources depended by the needed resources are constructed in a first resource file to obtain a first resource file.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring scene system resources and resources on which the scene system resources depend; and constructing a plurality of second resource files for the scene system according to the scene system resources and the dependency relationship among the resources depended by the scene system resources.
Optionally, the storage medium is further arranged to store program code for performing the steps of: respectively constructing scene system resources and resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, and each resource depended by the scene system resources is constructed in one second resource file; and recording the dependency relationship among the plurality of second resource files according to the scene system resources and the dependency relationship among the resources depended by the scene system resources.
Optionally, the storage medium is further arranged to store program code for performing the steps of: detecting whether a resource file needs to be generated according to a universal resource, wherein the universal resource is set to be used for a UI system and a scene system; and when detecting that the resource file needs to be generated according to the universal resource, generating a plurality of third resource files according to the universal resource and the resource on which the universal resource depends.
Optionally, the storage medium is further arranged to store program code for performing the steps of: generating a first part of resource files in a plurality of third resource files, wherein each first part of resource file comprises a resource on which a universal resource depends; and generating second part of resource files in the plurality of third resource files, wherein each second part of resource file comprises a universal resource, the universal resources have no dependency relationship, and the universal resources in the second part of resource files depend on the resources in the first part of resource files.
optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on; and respectively constructing the resources with the characteristic values larger than a preset threshold value in the resources depended by the universal resources in a resource file to obtain a first part of resource files.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and constructing each universal resource and the resource with the characteristic value less than or equal to a preset threshold value in the resource depended by each universal resource in a resource file to obtain a second part of resource file.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
in the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
the foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (26)

1. A method for loading resources, comprising:
In the running process of the game application, detecting whether to jump to a UI system in the game application or whether to enter a scene system in the game application;
under the condition that the user terminal detects that the user terminal jumps to a UI system in the game application, acquiring a first resource file required by the UI system, and loading resources in the first resource file, wherein the first resource file comprises the resources required by the UI system and resources depended by the resources required by the UI system;
Under the condition that a scene system entering a game application is detected, a plurality of second resource files required by the scene system are obtained, and resources in the second resource files are loaded according to the dependency relationship among the second resource files, wherein each second resource file comprises one or more resources.
2. The method of claim 1, wherein obtaining the one first resource file required by the UI system comprises:
and obtaining the first resource file through one IO reading.
3. the method of claim 1, wherein obtaining a plurality of second resource files required by the scene system, and loading resources in the plurality of second resource files according to a dependency relationship between the plurality of second resource files comprises:
before entering a scene system in a game application, the second resource files required by the scene system are obtained, and the second resource files are loaded according to the dependency relationship among the second resource files.
4. The method of claim 1, further comprising, during the running of the game application:
Detecting whether a universal resource needs to be loaded, wherein the universal resource is set for the UI system and the scene system;
when detecting that universal resources need to be loaded, acquiring a plurality of third resource files generated according to the universal resources and resources depended by the universal resources;
And loading the resources in the plurality of third resource files.
5. The method of claim 4, wherein the loading the resources in the plurality of third resource files comprises:
Loading resources in a first portion of resource files of the plurality of third resource files, wherein each of the first portion of resource files includes a resource on which the universal resource depends;
And loading resources in a second part of resource files in the plurality of third resource files according to the dependency relationship between the universal resources and the resources depended on by the universal resources, wherein each second part of resource file comprises one universal resource, the universal resources have no dependency relationship, and the universal resources included in the second part of resource files depend on the resources in the first part of resource files.
6. a method for generating a resource file is characterized by comprising the following steps:
detecting whether a resource file needs to be generated for a UI system in a game application or not, or whether a resource file needs to be generated for a scene system in the game application or not;
under the condition that a resource file needs to be generated for a UI system in the game application is detected, generating a first resource file required by the UI system, wherein the first resource file comprises resources required by the UI system and resources depended by the resources required by the UI system;
and under the condition that the resource files need to be generated for the scene system in the game application is detected, generating a plurality of second resource files required by the scene system, wherein the second resource files have dependency relationship when being loaded, and each second resource file comprises one or more resources.
7. The method of claim 6, wherein generating a first resource file required by the UI system comprises:
Acquiring resources required by the UI system and resources depended by the resources required by the UI system;
And constructing the resources required by the UI system and the resources depended by the required resources in a first resource file to obtain the first resource file.
8. The method of claim 6, wherein the generating the plurality of second resource files required by the scene system comprises:
acquiring the scene system resource and the resource on which the scene system resource depends;
And constructing the plurality of second resource files for the scene system according to the scene system resources and the dependency relationship between the resources depended by the scene system resources.
9. the method of claim 8, wherein constructing the plurality of second resource files for the scene system according to the dependency relationship between the scene system resource and the resource on which the scene system resource depends comprises:
Respectively constructing the scene system resources and the resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, and each resource depended by the scene system resource is constructed in one second resource file;
And recording the dependency relationship among the plurality of second resource files according to the dependency relationship among the scene system resources and the resources depended by the scene system resources.
10. the method of claim 6, when detecting whether a resource file needs to be generated for a UI system in a game application or whether a resource file needs to be generated for a scene system in the game application, further comprising:
Detecting whether a resource file needs to be generated according to a universal resource, wherein the universal resource is set to be used for the UI system and the scene system;
and when detecting that the resource file needs to be generated according to the universal resource, generating a plurality of third resource files according to the universal resource and the resource on which the universal resource depends.
11. The method of claim 10, wherein generating a plurality of third resource files from the universal resource and the resource upon which the universal resource depends comprises:
generating a first portion of resource files of the plurality of third resource files, wherein each of the first portion of resource files includes a resource upon which the universal resource depends;
And generating second part of resource files in the plurality of third resource files, wherein each second part of resource file comprises one universal resource, the universal resources have no dependency relationship, and the universal resources included in the second part of resource files depend on the resources in the first part of resource files.
12. The method of claim 11, wherein generating the first portion of the plurality of third resource files comprises:
Acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on;
and respectively constructing the resources of which the characteristic values are greater than a preset threshold value in the resources depended by the universal resources in a resource file to obtain the first part of resource files.
13. The method of claim 12, wherein generating the second portion of the plurality of third resource files comprises:
And constructing each universal resource and the resource of which the characteristic value is less than or equal to the preset threshold value in the resource depended by each universal resource into a resource file to obtain the second part of resource file.
14. A resource loading apparatus, comprising:
The system comprises a first detection module, a second detection module and a third detection module, wherein the first detection module is used for detecting whether to jump to a UI system in the game application or not or whether to enter a scene system in the game application in the running process of the game application;
The first processing module is used for acquiring a first resource file required by the UI system and loading resources in the first resource file when the condition that the UI system in the game application is jumped to is detected, wherein the first resource file comprises the resources required by the UI system and the resources depended by the resources required by the UI system;
The second processing module is configured to, when it is detected that a scene system in a game application enters, acquire a plurality of second resource files required by the scene system, and load resources in the plurality of second resource files according to a dependency relationship between the plurality of second resource files, where each of the plurality of second resource files includes one or more resources.
15. The apparatus of claim 14, wherein the first processing module is configured to:
And obtaining the first resource file through one IO reading.
16. the apparatus of claim 14, wherein the second processing module is configured to:
Before entering a scene system in a game application, the second resource files required by the scene system are obtained, and the second resource files are loaded according to the dependency relationship among the second resource files.
17. The apparatus of claim 14, further comprising:
The second detection module is used for detecting whether universal resources need to be loaded or not in the running process of the game application, wherein the universal resources are set to be used for the UI system and the scene system;
The acquisition module is used for acquiring a plurality of third resource files generated according to the universal resources and the resources on which the universal resources depend when the universal resources are detected to be loaded;
And the loading module is used for loading the resources in the third resource files.
18. the apparatus of claim 17, wherein the loading module comprises:
a first loading unit, configured to load resources in a first partial resource file of the multiple third resource files, where each first partial resource file includes a resource on which the universal resource depends;
a second loading unit, configured to load resources in a second part of resource files in the multiple third resource files according to a dependency relationship between the universal resource and a resource on which the universal resource depends, where each second part of resource file includes one universal resource, there is no dependency relationship between the universal resources, and the universal resources included in the second part of resource files depend on resources in the first part of resource files.
19. An apparatus for generating a resource file, comprising:
The third detection module is used for detecting whether a resource file needs to be generated for a UI system in the game application or not, or whether the resource file needs to be generated for a scene system in the game application or not;
A first generating module, configured to generate a first resource file required by a UI system in the game application when it is detected that a resource file needs to be generated for the UI system, where the first resource file includes a resource required by the UI system and a resource dependent on the resource required by the UI system;
The second generation module is configured to generate a plurality of second resource files required by a scene system in the game application when it is detected that a resource file needs to be generated for the scene system, where a dependency relationship exists between the plurality of second resource files when loading, and each of the plurality of second resource files includes one or more resources.
20. The apparatus of claim 19, wherein the first generating module comprises:
A first acquisition unit configured to acquire a resource required by the UI system and a resource on which the required resource depends;
the first construction unit is used for constructing the resources required by the UI system and the resources depended by the required resources in a first resource file to obtain the first resource file.
21. The apparatus of claim 19, wherein the second generating module comprises:
A second obtaining unit, configured to obtain the scene system resource and a resource on which the scene system resource depends;
a second constructing unit, configured to construct the plurality of second resource files for the scene system according to the scene system resource and a dependency relationship between resources on which the scene system resource depends.
22. The apparatus of claim 21, wherein the second building unit is configured to:
respectively constructing the scene system resources and the resources depended by the scene system resources in resource files to obtain a plurality of second resource files, wherein each scene system resource is constructed in one second resource file, and each resource depended by the scene system resource is constructed in one second resource file;
And recording the dependency relationship among the plurality of second resource files according to the dependency relationship among the scene system resources and the resources depended by the scene system resources.
23. the apparatus of claim 19, further comprising:
a fourth detection module, configured to detect whether a resource file needs to be generated according to a universal resource when detecting whether the resource file needs to be generated for a UI system in a game application or whether the resource file needs to be generated for a scene system in the game application, where the universal resource is set to be used for the UI system and the scene system;
and the third generation module is used for generating a plurality of third resource files according to the universal resources and the resources depended by the universal resources when detecting that the resource files need to be generated according to the universal resources.
24. The apparatus of claim 23, wherein the third generating module comprises:
a first generating unit, configured to generate first partial resource files in the plurality of third resource files, where each of the first partial resource files includes a resource on which the universal resource depends;
A second generating unit, configured to generate a second partial resource file in the plurality of third resource files, where each second partial resource file includes one universal resource, there is no dependency relationship between the universal resources, and the universal resources included in the second partial resource file depend on resources in the first partial resource file.
25. the apparatus of claim 24, wherein the first generating unit is configured to:
Acquiring resources depended by the universal resources and a characteristic value of each resource in the resources depended by the universal resources, wherein the characteristic value of the resource is obtained according to the resource size of the resource and the number of times the resource is depended on;
And respectively constructing the resources of which the characteristic values are greater than a preset threshold value in the resources depended by the universal resources in a resource file to obtain the first part of resource files.
26. the apparatus of claim 25, wherein the second generating unit is configured to:
And constructing each universal resource and the resource of which the characteristic value is less than or equal to the preset threshold value in the resource depended by each universal resource into a resource file to obtain the second part of resource file.
CN201710142476.2A 2017-03-10 2017-03-10 Resource loading method and device and resource file generating method and device Active CN107122201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710142476.2A CN107122201B (en) 2017-03-10 2017-03-10 Resource loading method and device and resource file generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142476.2A CN107122201B (en) 2017-03-10 2017-03-10 Resource loading method and device and resource file generating method and device

Publications (2)

Publication Number Publication Date
CN107122201A CN107122201A (en) 2017-09-01
CN107122201B true CN107122201B (en) 2019-12-06

Family

ID=59717956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142476.2A Active CN107122201B (en) 2017-03-10 2017-03-10 Resource loading method and device and resource file generating method and device

Country Status (1)

Country Link
CN (1) CN107122201B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019051680A1 (en) * 2017-09-13 2019-03-21 深圳传音通讯有限公司 Smart terminal-based application program optimization method and optimization system
CN107861816B (en) * 2017-10-31 2022-10-28 Oppo广东移动通信有限公司 Resource allocation method and device
CN109947497B (en) 2017-12-20 2021-06-08 Oppo广东移动通信有限公司 Application program preloading method and device, storage medium and mobile terminal
CN108710514B (en) * 2018-05-21 2021-10-15 腾讯科技(深圳)有限公司 Object jump control method and device, storage medium and electronic device
CN111049870B (en) * 2018-10-15 2022-07-22 华为技术有限公司 Application downloading and sending method, device and system
CN110152299B (en) * 2018-11-22 2022-01-14 腾讯科技(深圳)有限公司 Game resource construction method and device
CN111078537B (en) * 2019-11-29 2023-09-22 珠海金山数字网络科技有限公司 Evaluation method for Unity game bundle package resource division
CN111035927A (en) * 2019-12-12 2020-04-21 珠海海鸟科技有限公司 Resource management method and device and readable storage medium
CN112206542A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Multi-mode game control system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100460009B1 (en) * 2004-06-23 2004-12-04 엔에이치엔(주) Method and system for loading of the image resource
CN103795761A (en) * 2012-11-01 2014-05-14 腾讯科技(深圳)有限公司 Method and system for downloading online game data
CN104980473B (en) * 2014-04-10 2019-02-15 博雅网络游戏开发(深圳)有限公司 UI resource loading method and system
CN105022750B (en) * 2014-04-28 2019-05-10 腾讯科技(北京)有限公司 Resource file loading method and device
KR20170005372A (en) * 2016-12-29 2017-01-12 (주)마상소프트 Game Server for being Loaded Game Resources, Game Method using the same and Game Developing System including the same

Also Published As

Publication number Publication date
CN107122201A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122201B (en) Resource loading method and device and resource file generating method and device
US9390447B1 (en) Insertion of media recommendations
EP3235549A1 (en) Gameplay trigger detection
CN110007985B (en) Applet music player component calling method and equipment
CN104932888B (en) A kind of information processing method and device
KR101275648B1 (en) Method and server of preventing addiction in on-line game
CN111432227B (en) Virtual resource transfer risk determination method, device, server and storage medium
CN111046230B (en) Content recommendation method and device, electronic equipment and storable medium
CN115309516A (en) Application life cycle detection method and device and computer equipment
CN104941182A (en) Game video playing method and system
CN114073100A (en) Mapping views of digital content
KR101181115B1 (en) Method and server for providing effect by duplication of item
KR101283526B1 (en) Method and server for providing item rental service
CN113672757B (en) Audio playing method and device
CN105208084B (en) Method and device for determining resources to be deployed
KR101306832B1 (en) Method and server for providing of service collecting event item
KR101547213B1 (en) Method for controlling item using period and server therefor
US20160295276A1 (en) Method and system for localized day parting when presenting a second video with one or more first videos
KR101309099B1 (en) Method and server for providing service of using lottery item
CN113868566A (en) Content display method, electronic equipment and storage medium
KR101990100B1 (en) Server and method for providing tutorial contents
US20150065229A1 (en) Reward method according to a game play number in an online game and a server performing the same
CN115454534A (en) Configuration method of voice sound effect, storage medium and program product
CN113434232A (en) Graph display method and device, storage medium and processor
CN113384897A (en) Game client version switching method and device

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