Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [BUG][v2.0.18]Android resume on android loses objects and textures

Author
Message
Cor
AGK Developer
13
Years of Service
User Offline
Joined: 19th Dec 2010
Location: Its a trap!
Posted: 7th Mar 2016 16:04
ISSUE: Whenever i resume my app from sending it to the background on android about half of the textures and objects are gone.

-I am not sure if this is because it is a larger project with many objects, as it seems like quite a random bug.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 7th Mar 2016 16:23
Tested with the 3D-FirstPersonExample project in 2.0.18 but couldn't replicate this, can you try to replicate it in a small example?
Cor
AGK Developer
13
Years of Service
User Offline
Joined: 19th Dec 2010
Location: Its a trap!
Posted: 7th Mar 2016 16:30 Edited at: 7th Mar 2016 16:35
hey paul thanks for getting back to me, i have narrowed it on my project to objects that were instanced. i replaced the instance commands with cloneobject and the issue is gone

EDIT: I tried it in another project, its the instance commands. if you create a box in any project then instance the box and resume on android the instance will be gone
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 7th Mar 2016 17:11
Thanks, fixed for the next version. It was caused by the bounding box for the instance object not being restored correctly, and could be worked around by using SetObjectScreenCulling to 0.
Cor
AGK Developer
13
Years of Service
User Offline
Joined: 19th Dec 2010
Location: Its a trap!
Posted: 7th Mar 2016 17:20
thanks paul! out of curiosity is there much of a difference in the cloneobject and instance commands in terms of performance hits?
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 7th Mar 2016 17:55
Instance objects use much less memory, otherwise there is little difference

Login to post a reply

Server time is: 2024-11-25 10:40:38
Your offset time is: 2024-11-25 10:40:38