Comments (3)
It's possible. "3.5 mb textures", what size of textures did you mention? If this size is the size of PNG file, it doesn't mean that this size will be used on the memory. Memory usage of textures is as same as the size of OpenGL texture data size, like RGBA4444, RGBA5551, RGB565, RGBA8888 and so on. For RGBA8888, it eats up "width x height x 4" bytes. 2048 x 2048 x 4 = 16MB. 16bits textures (RGBA4444 or so forth) or GPU compressed format (PVRTC, ETC or so forth) would help for reducing the memory usage.
from lwf.
Hmm, they were all PVRTC 4 bit. We changed the movie (which was taking up 80 mb in memory) to 2 bit compression, and that saved us 40 mb.
I guess other than that, there is no way to lower the memory usage of LWF? It still seems like a lot, considering all the textures are very small with the 2 bit compression. There are an awful lot of textures though, I think around 300, so I wonder if that has anything to do with the amount of memory being used.
from lwf.
Packing textures would help you. TexturePacker can create texturesheets.
And what the setting of textures do you use?
http://docs.unity3d.com/Documentation/Components/class-Texture2D.html
I think "Read/Write Enabled" makes Unity allocates the memory on the main memory for further modification of texture pixels. It wastes for just rendering textures.
iOS Xcode Instruments would help for investigating the memory usage.
from lwf.
Related Issues (20)
- OnEnterFrame not working on low FPS flashes? HOT 2
- Non-movable buttons HOT 5
- Text Filters in Unity HOT 1
- Getting LWF.Bounds of a LWF.Movie immediately HOT 1
- Updating the flash with a delta time of 0 still calls OnEnterFrame
- Disabled buttons still blocking mouse events
- TextProperty in Unity
- Changing the ColorTransform of a LWF.Movie HOT 1
- Blending modes
- SetText() not always rendering new value HOT 2
- fscommand ignored unless frame entered "naturally" HOT 1
- I got a data file(.lwf) used this tool(swf2lwf.rb).But I cannot use in the unity.
- Warnings
- No longer rendering timeline HOT 3
- Text fields are not respecting the alpha of the MovieClip that contains it
- flash-in-unity.net
- can you support spritekit?
- Shapes Support
- Locate error cause easily when converting swf files
- Bad link HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lwf.