Forums

OverviewFelgo 2 Support (Qt 5) › Skipped frames when Page is popped from NavStack

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16901

    Alberto Blanque

    Hello,

    I have a Page element that suffers from skipped frames when I use .pop() method on the main NavigationStack. This happens when animation bottom-to-top is being executed. This Page has heavy elements like two ChartView from qtcharts library with lots of points each. Should I manually destroy elements on that Page before calling pop()? I noticed lightweight Page elements do not suffer from this issue. Any advice on this?

    Thank you

    #16902

    Alex
    Felgo Team

    Hi,

    first of all, does the performance also suffer in release mode on your target platform, e.g. a mobile device?

    Destroying such heavy components might also take some frames, instead you could try to hide them by setting visible to false for the charts, then they will not be rendered. If this helps, you could improve the UI/UX by displaying some form of placeholder for the charts instead, while the transition is running.

    Cheers,
    Alex

    #16903

    Alberto Blanque

    Hi Alex, thanks for your quick response, really appreciate

    Actually it is on release mode, on a mobile device when this behaviour is more evident.

    Tried to set these elements with visible and enabled to false inside onPopped signal handler. When the popped animation starts, I can see the elements are already not visible anymore, and it does improve a lot the transition, but skipped frames are still noticeable. Tried with full deployment with qml files embedded in binary file, but this makes no difference. Any other ideas?

    #16905

    Marcin

    Hi Alberto,
    Not sure how helpful can it be but did you try to profile it?
    Maybe you could see some weird bottleneck which is not that visible or obvious.
    Profiling can be tricky on Android device, but if the issues exists on Desktop, maybe you can find something useful.

    #16994

    Alberto Blanque

    Thanks for your response Marcin, I did profiling but couldn’t find anything.

    Turns out to be height property of ChartView binding to App.height, removed this binding and skipped frames problem got away!

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support