Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for optimizing atlas resources in LayaIDE and storage medium

A resource optimization and atlas technology, which is applied in the field of atlas resource optimization in LayaIDE, can solve the problems of inability to adjust and set the interval area, and atlas resources occupy a large amount of memory, so as to reduce atlas size and atlas memory usage, Realize the effect of atlas resource data and atlas resource optimization

Active Publication Date: 2019-12-20
福建省天奕网络科技有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for this kind of atlas generation scheme, its actual application in the project is not ideal. This is because the atlas generation tool that comes with the Laya engine cannot adjust the interval between the small images, and the final generated atlas Unable to set the size (scale) value and other issues
[0004] Therefore, it is necessary to provide a method and storage medium for optimizing atlas resources in LayaIDE, so that the project can optimize the atlas production scheme that comes with the Laya engine, so that developers in this field no longer have to rely on the engine to provide Solve the problem, and actually solve the problem that the atlas resources used in the application occupy too much memory

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for optimizing atlas resources in LayaIDE and storage medium
  • Method for optimizing atlas resources in LayaIDE and storage medium
  • Method for optimizing atlas resources in LayaIDE and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Please refer to figure 2 , Embodiment 1 of the present invention is:

[0077] Provides a method for optimizing atlas resources in LayaIDE, which is mainly used to solve the problem that the atlas resources used in the application occupy too much memory when the IDE editor that comes with the Laya engine is used for application development.

[0078] The method of this embodiment includes:

[0079] S1: Integrate the atlas resources to be packaged according to the space occupancy optimization strategy to generate atlas data and atlas resources;

[0080] Specifically, this step specifically includes:

[0081] S11: Use the TexturePackerGUI tool to integrate the atlas resources to be packaged according to the space occupancy optimization strategy to generate atlas data and atlas resources;

[0082] Wherein, the TexturePackerGUI tool is an existing atlas generation tool, which is the same as other atlas generation tools in the field, and the generated atlas data cannot be ...

Embodiment 2

[0108] see image 3 , this embodiment provides a specific application scenario corresponding to Embodiment 1:

[0109] For example, the production of the loading interface atlas resources in the "H5 National Darkness" project:

[0110] Pre-preparation: Use the TexturePackerGUI tool to integrate the resources that need to be packaged into the atlas (the specific tools are not detailed, mainly to adjust the algorithm of the atlas, select the one that saves the most; and the image gap value is 0, etc.); then the generated Atlas data (JSON) and atlas resources (.png images) create a new folder "Loading" (the folder name is recommended to be named after the function module) for storage, and then copy them to the corresponding folder of the project (the folder here The path is in the TexturePackerGUI folder under the AtlasTransformation path of your Laya project. There will be two folders under AtlasTransformation, one is LayaAtlas (the folder that stores the atlas data and resourc...

Embodiment 3

[0116] This embodiment corresponds to Embodiment 1 or Embodiment 2, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it can implement the above-mentioned embodiment 1 or Embodiment 2. All the steps included in the method of atlas resource optimization in LayaIDE.

[0117] In summary, the method and storage medium for optimizing the atlas resources in LayaIDE provided by the present invention can not only realize the configurable size of the atlas in LayaIDE, but also significantly reduce the memory usage of the atlas; furthermore, it is easy to operate , easy to implement and other advantages.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for optimizing atlas resources in LayaIDE and a readable storage medium, and the method comprises the steps: integrating to-be-packaged atlas resources according to a space occupation optimization strategy, and generating atlas data and atlas resources; acquiring the atlas data, and converting the atlas data into a standard format supported by a Laya project; and integrating the converted atlas data and the atlas resources. The configurable size of the atlas in the LayaIDE can be realized, and the memory occupancy rate of the atlas can be remarkably reduced; furthermore, the method has the advantages of simplicity and convenience in operation, easiness in implementation and the like.

Description

technical field [0001] The invention relates to the field of LayaIDE engines, in particular to a method and a storage medium for optimizing atlas resources in LayaIDE. Background technique [0002] When using the IDE editor (LayaIDE for short) that comes with the Laya engine to make panel layout and splicing, it is hoped that the pictures used can be more concentrated, and that a single panel resource occupies less memory. [0003] For the intensive use of panel resources, the existing method in the prior art is to package the used scattered images into a whole atlas, so as to reduce rendering batches and optimize performance. However, for this kind of atlas generation scheme, its actual application in the project is not ideal. This is because the atlas generation tool that comes with the Laya engine cannot adjust the interval between the small images, and the final generated atlas Unable to set the size (scale) value and other issues. [0004] Therefore, it is necessary t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/11G06F16/17
CPCG06F16/116G06F16/1737
Inventor 刘德建林琛肖雄
Owner 福建省天奕网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products