Android SetSwapInterval() interval: 1 not set - during changing screen



  • Hi,
    I have a question, I want to open new window by qml code. I found "this":http://stackoverflow.com/questions/8327894/how-can-i-create-a-new-window-from-within-qml post and try to implement it in some sample project.

    code for mouse area:
    @MouseArea
    {
    id: butMouse
    anchors.fill: root;
    onClicked:
    {
    var component = Qt.createComponent("newWind.qml")
    var window = component.createObject(root)
    window.show();

        }
    }@
    

    and code for newWind.qml

    @
    ApplicationWindow {
    id: root
    width: 100
    height: 62
    Text
    {
    text: "new one"
    }
    }
    @

    but when I make a click, I get in console this kind of output
    W/Adreno200-EGLSUB(22206): SetSwapInterval() interval: 1 not set
    W/Adreno200-EGLSUB(22206): SetSwapInterval() interval: 1 not set
    W/Qt (22206): androidjnimain.cpp:545 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 2
    W/Adreno200-EGLSUB(22206): SetSwapInterval() interval: 1 not set
    W/Qt (22206): androidjnimain.cpp:545 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 3

    W/Qt (22206): androidjnimain.cpp:545 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 1

    When I block the screen and unblock, suddenly the new screen appears. It looks for me that some action is made during process of putting screen into sleep mode.

    But after searching for swapInterval I found smth like this:
    @Swap Interval is a means of synchronizing the swapping of the front and back frame buffers with vertical blanks (v-blank): the hardware event where the screen image is updated with data from the front framebuffer . It is a very common means of preventing frame "tearing," (seeing half of one frame and half of another) as often seen in high-motion-content graphics.@
    text taken from "this":http://www.opengl.org/wiki/Swap_Interval site

    and here is my question how can I solve this problem or make some workaround

    Edit: to be more specific I'm running app on the real device (I tested it on sony xperia m and Samsung GT-S5830)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.