Frame culling now done in QML rather than CPP.
authorsl
Tue, 03 Jun 2014 18:35:43 +0200
changeset 31e68f1542d9d3
parent 30 c0f274a21d33
child 32 1c2a7f563019
Frame culling now done in QML rather than CPP.
MiniDisplay/minidisplay.cpp
TestsTab.qml
     1.1 --- a/MiniDisplay/minidisplay.cpp	Tue Jun 03 18:12:10 2014 +0200
     1.2 +++ b/MiniDisplay/minidisplay.cpp	Tue Jun 03 18:35:43 2014 +0200
     1.3 @@ -226,12 +226,12 @@
     1.4          iAfterAnimatingCallback.call();
     1.5      }*/
     1.6  
     1.7 -    renderWindow(iWindow);
     1.8 -    swapBuffers();
     1.9 +    //renderWindow(iWindow);
    1.10 +    //swapBuffers();
    1.11  
    1.12  
    1.13      //Interrestingly rendering will suspend when we stop changing our text field content
    1.14 -    if (frame%8==0)
    1.15 +    //if (frame%8==0)
    1.16      {
    1.17          if (iAfterAnimatingCallback.isCallable())
    1.18          {
     2.1 --- a/TestsTab.qml	Tue Jun 03 18:12:10 2014 +0200
     2.2 +++ b/TestsTab.qml	Tue Jun 03 18:35:43 2014 +0200
     2.3 @@ -119,6 +119,11 @@
     2.4  
     2.5          function doFrame(frameCount)
     2.6          {
     2.7 +            if (frameCount%2!=0)
     2.8 +            {
     2.9 +                return;
    2.10 +            }
    2.11 +
    2.12              var current = new Date();
    2.13              var milliseconds = (current.getTime() - startTime.getTime());
    2.14