Real layout preloading with % progress

1

Index

Stats

3,588 visits, 5,483 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 11 Aug, 2017. Last updated 19 Feb, 2019

NOTE:

This tutorial includes the use of a paid plugin from Scirra Store.

In my previous tutorial for this topic I showed how to trick/mask the lag that occurs while switching between layouts.

In this tutorial, there will be no tricks. I'll show you how to make a real preloading with MM_Preloader plugin.

The problem

A lot happens during transition from one layout to another. Objects have to be loaded, instances have to be created, sprite images have to be loaded, engine has to release old data from the memory, etc.

From all those operations, the most heavy one is loading sprite's image. The engine has to read the PNG/JPG file, decompress it to bitmap and place in memory. The more images and the bigger images are there on the next layout, the bigger the lag is.

The solution is in the MM_Preloader plugin.

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!