[SOLVED] Android Samsung Long Resource Parsing

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Darthigor
Gnoblar
Posts: 22
Joined: Wed Dec 25, 2013 4:06 am
x 1

[SOLVED] Android Samsung Long Resource Parsing

Post by Darthigor »

Hi,

I've created the game for android - Pig Shooter 3D, and it works okay on most devices I've tried, but on almost any samsung device it takes forever to load the resources. It loads almost instantly on much less powerful devices (Sony, LG, Nexus, chinese tablets etc.). But on pretty powerful Samsung Note 8 it takes more than 30 seconds for Ogre to parse resources.
Also I've found that other Ogre Android game - Kingdom Defenders - has similar issue, it loads pretty fast on non-samsung devices, but very long on samsung.
Could anyone advice on the issue?

Thank you.
Last edited by Darthigor on Tue Jul 01, 2014 3:30 pm, edited 1 time in total.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: Android Samsung Long Resource Parsing

Post by Wolfmanfx »

are you storing the resourced inside the apk?
How many files are you storing?
There is pullrequest which cache the files in the ApkFileSystem maybe try that if it helps.
User avatar
Darthigor
Gnoblar
Posts: 22
Joined: Wed Dec 25, 2013 4:06 am
x 1

Re: Android Samsung Long Resource Parsing

Post by Darthigor »

Yep, all resources are inside apk.
How many? About 5 shader files + RTSS, about 25 materials, 10 meshes, and ~200 textures. 8 Mb of files.
Could you explain more about caching files please? Or provide some link.
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Android Samsung Long Resource Parsing

Post by c6burns »

User avatar
Darthigor
Gnoblar
Posts: 22
Joined: Wed Dec 25, 2013 4:06 am
x 1

Re: Android Samsung Long Resource Parsing

Post by Darthigor »

Wow, thanks a lot, that really helped!
I've rebuilded Ogre with that pullrequest, and now game loads on my Note 8 in like 3 seconds instead of 30.
Check out my Ogre based mobile games: Pig Shooter 3D, Bubble Shooter 3D, Space Rush 3D
Github: https://github.com/RMDarth
Post Reply