Giter VIP home page Giter VIP logo

Comments (9)

MasDennis avatar MasDennis commented on June 14, 2024

Actually, this is required for live wallpapers as well. Unfortunately.

from rajawali.

 avatar commented on June 14, 2024

in opengl-es 1.x in live wallpapers, I think I only load the textures once, when initing, then when the screen going to sleep, and wake up again, the screen textures/vertices not loading again (it keep the old values, and nothing white textures probleme will be), so very fast for my rendering.

from rajawali.

 avatar commented on June 14, 2024

Oh and I used VBO-s for this.

here is my init method: (so only one time)

public void init() {

    if (!bInited) {
        initAll(); //initAll-> init all textures, and vertices, geometries

        bInited=true;
    }
}

from rajawali.

MasDennis avatar MasDennis commented on June 14, 2024

Do you mean that you store the Bitmaps, FloatBuffers, etc and then re-upload the textures and re-create the VBOs? That's what's currently happening in Rajawali. The OpenGL context is lost (http://developer.android.com/reference/android/opengl/GLSurfaceView.Renderer.html) so this is needed. There are some hacks but they're not really stable solutions I think. I'll investigate.

from rajawali.

 avatar commented on June 14, 2024

I dont know, but I allways used this methods, so I never reupload that textures, vertices... bacause in your examples too have a lagg when you "back from device sleep", but is only 4 monkey at the moment. But it is takes 3-4 sec to start up again...What about when you have larger/more objects, and more textures? (It will be very-very slow when you recreate those textures and VBO-s again and again)

from rajawali.

 avatar commented on June 14, 2024

Is there a faster method to load all resources when the context lost? In your sample, the 4 monkeys in a live wallpaper on my galaxy s2 it is a little time to load the 4 objects. (3-4 seconds)
It is slow...because I have a lot of items, and lot of textures. (10*1024 texture, and 15 object, animated objects, and simple static 3ds objects). Is tehere a way to do it faster the loadups when the device go to sleep/and back from sleep? :(

from rajawali.

nicke365 avatar nicke365 commented on June 14, 2024

Hi MasDeniss,
It's good your framework, easy to use, has a lot of possibilities. But still have the same problem as in the title of this page. After the phone goes from sleep, I have to wait up to 10 seconds until the animation starts and then these are very bad,with interruptions. In my project I have: 6 textures 512x512 (total:1.2 MB) and 3 serialized objects(total: 32KB).
Could be any solution to solve this problem.

from rajawali.

nicke365 avatar nicke365 commented on June 14, 2024

8(

from rajawali.

MasDennis avatar MasDennis commented on June 14, 2024

Hi,
I'm not able to look at it this week. Next week I'll have some time :-)
On Oct 1, 2012 11:28 PM, "nicke365" [email protected] wrote:

8(


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-9046245.

from rajawali.

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.