Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Loading time — Gideros Forum

Loading time

Hello,

I am developing an application that uses lot of (small) mp3/png files. The loading time seems to be very long while testing in Gideros Player.
I also tested on Android phone using APK installer, the loading time is too long.
Is there any way to use background loading after the application is opened?

Where are the best practice in this case.

Thank you

Likes: MoKaLux

Tagged:
+1 -1 (+1 / -0 )Share on Facebook

Comments

  • MoKaLuxMoKaLux Member
    edited June 2023
    hassan what do you mean by loading time?
    hassan said:

    ...The loading time seems to be very long while testing in Gideros Player...

    I am currently working on a game which has thousands of pngs and testing in Gideros Player is very fast :o (loading on android is also quite fast). Gideros Player will (should) load only new added assets otherwise it uses a "cache" for assets which have already been loaded.

    We need to know what you are doing with the mp3 and png. Are you using images as decoration for your app?, do you use any animation (tweening)?, do you use timers?; ...

    In my case pngs are just to decorate the levels and a bit of animations too. I tried using https://wiki.gideros.rocks/index.php/TexturePack and the loading time was indeed very long so I removed it for now.
    hassan said:

    ...Is there any way to use background loading after the application is opened?...

    https://wiki.gideros.rocks/index.php/Texture.loadAsync ?
    hassan said:

    Where are the best practice in this case.

    In my case I was using ECS but it turned out to be very slow for my use case, now I am using classic OOP and it is already much faster.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • hassanhassan Member
    Thank you @MoKaLux
    I didn't put the app on google store yet, I was just wondering if all the files need to be loaded before showing the first frame.
    But from what I understand, this is just related to the Player..
    The app is to teach Arabic, it display the image and say how it's pronounced, I will share the link when it's published.

    Thank you for your help.

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    edited June 2023
    hassan I am working on arabic apps as well :)
    https://mokalux.itch.io/mkgi-arab-mdmt1 (once loaded you may need to refresh the browser page)
    https://mokalux.itch.io/mkgi-ballade-arabe

    I can share the code, just let me know.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • piepie Member
    hassan said:

    Thank you @MoKaLux
    I didn't put the app on google store yet, I was just wondering if all the files need to be loaded before showing the first frame.
    But from what I understand, this is just related to the Player..

    The delay should happen only the first time you run the app because gideros has to send thousands of small files to your phone: you can see the uploading progress (to |R|folder) in the output panel at the bottom of Gideros studio editor.

    Then each file should be loaded when you call it inside your app (ie. Sound.new("file.mp3") ) I don't think it checks if the file exists before that.

Sign In or Register to comment.