Welcome, Guest
Username: Password: Remember me

TOPIC: How to optimize for mobile

How to optimize for mobile 7 months 1 week ago #2772

  • ertsnom99
  • ertsnom99's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0
Hello

I was wandering if there are ways to optimize the usage of I2 on mobile? For example, maybe have 5 different languages but only use the one I need (I don't know hoe to do that).
The administrator has disabled public write access.

How to optimize for mobile 7 months 1 week ago #2773

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1123
  • Thank you received: 240
  • Karma: 70
Hi,
One of the two bigger features I want to push for the next release, is the memory optimization.
The current version already have the structure to support this feature, so, I just need to finish the auto-loading.

This optimization is going to be completely transparent for the developer, so, as soon as you update to the next release, it will be optimized.

How it works, is that when you edit and develop in the Editor, all the localization data is stored in a the I2Languages.prefab or other LanguageSources you set.
Then, when you do a build, there is a post processing that runs, and extract each language into a separated file.
That way, at runtime, the plugin only loads the language it uses, and keeps the memory low at all time. Also, there is compression setting, that keeps the loaded localization in a compressed stream.

I'm hopping to have that ready for the next release 2.8.3 or at most 2.8.4.


If you are planning on release your game before the on-demand-loading is completed, you can still lower the memory usage, by creating one LanguageSource for each of your languages, and then only load the source you need at runtime.

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.

How to optimize for mobile 7 months 5 days ago #2776

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1123
  • Thank you received: 240
  • Karma: 70
Hi,
I just uploaded v2.8.3a7 to the beta folder.
That includes the first phase of the memory optimization. Now at runtime, the languages are been loaded/unloaded, to keep in memory only the current material or any fallback needed.

Hope that helps,
Frank
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.
Time to create page: 0.148 seconds
Colors