navit-project.org

forum for navit navigation tool
It is currently 23 Jun 2017, 03:33
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Self-compiled Navit is SLOW compared one from to repository
PostPosted: 02 Jul 2015, 11:53 
Offline

Joined: 28 Jun 2015, 04:49
Posts: 10
Hello. I try using the latest Navit by compiling it myself. But there is a problem.

I have Linux Trisquel which is Ubuntu derivative and followed the compilation instructions here:
http://wiki.navit-project.org/index.php ... evelopment

Compilation completes just fine.

But when I run the ./navit its graphics performance is SLOW to being fully useless.

It is not my machine being slow. Because performance is just fine with Navit I install from Trisquel repository.

I.e. I keep the same map and same configuration file, remove self-compiled Navit and install the version from Trisquel repository: apt-get install navit

This navit from repository works really fast - I can click mouse button and pan the map in nearly real-time.

Now I remove the repository navit: apt-get remove navit
and compile latest navit from the Navit svn. Compilation completes just fine and I do install dependencies before compiling - just like the above compilation guide suggests.

But this newly compiled navit is slow with graphics. When I try to click mouse button and pan the map with mouse - it only works on very large zooms with few objects displayed on the screen at once. Otherwise there is like seven seconds lag with panning the map with mouse which makes map panning useless.

It seems like navit is trying to draw too much right during the panning? But the map is the same. And the configuration file is the same.

I am lost here. The navit I self-compile I could not use because map panning is unbearably slow.

May be you could please help me to figure that out? I am using x86 system with Trisquel Linux and Gnome desktop environment.


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 02 Jul 2015, 17:48 
Offline

Joined: 09 Jul 2013, 17:41
Posts: 82
Hi!

Very interesting problem...

1. Are you sure you use the same config file in both installations? Navit supports many different graphics modules, and their performance may vary. To make sure you use the same file, specify it as a command line parameter: "navit /home/me/navit.xml" or "./navit /home/me/navit.xml".

2. We have an option which significantly improves dragging performance, "<navit drag_bitmap='yes'>". It's set to 'no' by default. Presence of this option is visible: while yo drag with this option enabled, window has empty areas which are filled when you stop dragging.

3. It could shed some light if you post your navit.xml and build logs. It might be helpful to compare your results with the build logs from your distribution.

4. Does building the distribution provided source deb file give you 'slow' or 'fast' variation of navit? Watch and compare build logs.

I would like you to post results here, both to get further help, and to help others solve similar problems.

tryagain


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 04 Jul 2015, 06:42 
Offline

Joined: 28 Jun 2015, 04:49
Posts: 10
Hello.

Here is my config file: http://pastebin.com/pimzYe6H

Forcing SVN navit to use my config file made no difference - same slow scrolling:
Code:
 sokolgeo@X60:~/navit-build/navit$ /home/sokolgeo/.navit/navit.xml


Forcing drag_bitmap speeds panning a little but still useless - system freeses before starting panning. Like 7 seconds wait and only then panning starts. And the panning is still _way_ slower compared to repository installed version:

Code:
sokolgeo@X60:~/navit-build/navit$ ./navit /home/sokolgeo/.navit/navit.xml drag_bitmap='yes'


Here are my SVN build logs: http://pastebin.com/4z6Veici

I am still under heavy impression what I'm missing some hardware graphics library somewhere ...

What I will do next is trying to compile the source for repository version.


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 21 Jul 2015, 11:45 
Offline

Joined: 28 Jun 2015, 04:49
Posts: 10
Tried to compile repository source.

No good. Here is the build log: http://pastebin.com/7B77Kegk

I believe this might be the reason for the problem with repository source compilation: https://bugs.debian.org/cgi-bin/bugrepo ... bug=733378

What shall I do next?


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 21 Jul 2015, 13:48 
Offline

Joined: 23 Jun 2013, 20:15
Posts: 65
Location: Essen, Germany
sgeorgii wrote:
What shall I do next?


Use a version of Navit where the problem is fixed? :D

This does indeed look like Debian bug #733378 that you linked.
As you can see in the bug report you linked, the bug was fixed in the Debian package version 0.5.0~svn5738+dfsg.1-1 . However, you used the sources from version 0.5.0~svn5643+dfsg.1-1ubuntu1 (you can see that in the download logs at the beginning).

You seem to be using a Debian package repository with an old version of the source package. Try using a more recent version.


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 24 Oct 2015, 00:38 
Offline

Joined: 30 Apr 2015, 16:33
Posts: 31
Not sure if it helps, but only last week I downloaded the sources from SVN, compiled under Fedora 21 and Navit runs just fine with only one hickup: when I installed the required libs, KDE died - it started freezing right after entering login in KDM. But I ran a full update of the entire OS and everything now works fine again.

Maybe you should try a full update too?


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 25 Oct 2015, 03:15 
Offline

Joined: 22 Aug 2014, 11:02
Posts: 12
sgeorgii, I am also using Navit on a Ubuntu derivative. I just (very superficially) compared your build log to mine and was surprised at the differences.

The first, and IMHO, the most significant, is that you are using SDL, I don't have SDL installed and CMake finds a suitable alternative. I have no idea just how much Navit uses SDL.

I find the one I build (from SVN source) seems to respond as I would expect, seems about the same as the one from Ubuntu repo. I'm running a 64bit system, 4g ram XUbuntu. Looks like you have a 3bit system but I would not expect that to be a problem.

Maybe, just maybe, you should disable SDL and see what happens ?

If that does not make any difference, happy to compare configs and see if we can make them similar. A package like navit can, of course, use a very wide range of existing libraries, some must be better than others....

David


 Profile  
 
 Post subject: Re: Self-compiled Navit is SLOW compared one from to reposit
PostPosted: 30 Dec 2015, 12:04 
Offline

Joined: 28 Jun 2015, 04:49
Posts: 10
To all good people here. I switched over to "Car-Android" layout in Navit settings screen and this solved the performance problems for my system. This layout only starts drawing houses and most other objects on very close-up scales and this helped to bring the performance of the Navit back to useful level for my really slow system.

Cheers


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS