Code Monkey home page Code Monkey logo

Comments (4)

joshtynjala avatar joshtynjala commented on June 11, 2024 1

It looks like you have an API call returning, and you are updating a RenderTexture in response. This involves calling a Stage 3D API, so you probably need to delay this task until the app is restored from the background. I think you can use SystemUtil.executeWhenApplicationIsActive() for this.

from feathersui-starling.

Adrian-S avatar Adrian-S commented on June 11, 2024 1

We just added a bunch of async functions to work with air database. This might create multiple problems in multiple places now.

This function will definitely help right now. From the looks of it, it needs SystemUtil.initialize() to be called before, to make sure that it catches the deactivate event. If it's called for the first time while apps is deactivated we'll get the same problem since sApplicationActive is default true.

I'm actually thinking of piggybacking on the invalidation system. I'm just a bit unsure how it all works, but if I'm not wrong, draw() is called on enter frame, so whatever is invalidated will update the next frame if starling is active. One thing worries me. If there are too many update requests, app will freeze for a moment. I need to find a way to spread the updates over a few frames, and maybe prioritize the objects that are visible.

from feathersui-starling.

joshtynjala avatar joshtynjala commented on June 11, 2024

Error 3768: The Stage3D API may not be used during background execution.

You may be forgetting to pause Starling when your app goes into the background.

from feathersui-starling.

raresn avatar raresn commented on June 11, 2024

Just noticed i added this as a feathers issue :) Sry about this, but thank you for the answer. I should have mentioned that we stop startling on deactivate (first thing we checked actually, thats why we don't know what to try next)

from feathersui-starling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.