Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5.0b1 Location Map eats a lot of CPU while scrolling

    Mobile and Embedded
    2
    5
    2416
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      slava.chernikoff last edited by

      Hello.

      I made a tiled based map geoservices plugin to work with custom offline source. There is nothing special and it works almost the same as tiled based Nokia Maps plugin but takes images from hard drive and not from network. GUI part created on Quick 2.

      When I quickly scroll my map (even if all images in RAM or using the static single image) I see jittering and my CPU go up to 100% on one core. Checked on MacBook Air (i5+GMA3000, OS X 10.8.1) and Nettop (Atom D525+nVidia Ion 2, Ubuntu 12.04).

      The same issue even when I use Nokia plugin with cached images - jittering and high CPU usage on scrolling. As I guess it is a question of adding ~20 new tiles (FullHD screen) when changing map center.

      But if I move Map component on the screen by changing scale, rotation or position everything goes smooth with low CPU load.

      Is it a bug -or a feature-? How it can be fixed?

      Thanks.

      there.is.no.right.way

      1 Reply Last reply Reply Quote 0
      • S
        slava.chernikoff last edited by

        I've checked Qt 5.0 beta source and found that QGeoTileFetcher use mutex to queue tile requests. Can it be the reason of high CPU usage?

        there.is.no.right.way

        1 Reply Last reply Reply Quote 0
        • S
          slava.chernikoff last edited by

          I think it will be great to have a lazy prefetch function that will prefetch with low priority in the background tiles for 2-4 area sizes. It is not so good for memory but such option can be good for smooth maps scrolling.

          What do you think?

          there.is.no.right.way

          1 Reply Last reply Reply Quote 0
          • S
            slava.chernikoff last edited by

            Are there any information how to fix this issue?

            there.is.no.right.way

            1 Reply Last reply Reply Quote 0
            • C
              chrisadams last edited by

              Hi,

              This sounds like a feature suggestion which should be made via a bug report at bugreports.qt-project.org

              The QtLocation team used to be based in the Brisbane office, which no longer exists, although I assume that Digia are devoting some resources to that module going forward. Either way, tracking the issue via the bug tracker is the best way to ensure that it gets on somebody's radar to be fixed.

              Cheers,
              Chris.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post