The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2011-12-05
, 02:19
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#922
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2011-12-19
, 16:41
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#923
|
OK, I ran more experiments.
However, it seems that there is heavy processing going on, either on the modRana side, the GTK side, or, probably, the gpsd side, as I'd have the GPS point in modRana disappear for let's say 10 seconds at a time, then the position would update, the circle appear, then disappear again.
When it'd disappear, modRana would not react to screen taps, leading me to believe that there is some heavy processor load going on.
In fact a couple of times, modrana's window would go completely gray without displaying anything, and I had to kill modRana.
This seemed to disapper after I disabled automatic rotation in the direction of the car movement, leading me to believe the processing load is too heavy for VNC access to X on Android.
If not, then messing with TightVNC remains the option, lowering the number of colors of TightVNC display, this is an option, as it can interface at 256 colors, there would probably have to be some filter in modRana to only use 256 colors when started in a specific way, that could lead to processing speed increase...
However, cutting out gpsd might still be worth it, though the main hog is probably X VNC access...
Second, have an option in modrana to update the display only let's say every second, so that this would also decrease the data sent significantly?
The more I think about it, the more I think it's the continuous display updates, more than anything.
Martin, would it be possible to have an option allowing you to select how often to redraw the main window, i.e. continuous, and then once in how many seconds...?
The Following User Says Thank You to MartinK For This Useful Post: | ||
|
2011-12-20
, 13:43
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#924
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
|
2012-01-12
, 23:43
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#925
|
OK, something fishy is definitely going on...
I did uncheck the 'redraw once new tile is loaded' option, and then: it seems modrana still gets stuck, in a funny way... The cursor position, and the blue box with directions would disappear for 10-20 seconds at a time, while the underlying map, with the traced route is visible... Anyhow the cursor and blue box would flicker on for a split second, only during this time, if you'd touch the screen, I could access the menu.
It is apparent that gpsd is not the hog though, since once I'd get in the menu, I could flip through options and nothing would get stuck, though gpsd is clearly still running in the background.
Once out in the map though, it'd get stuck again.
Tried to display the tile load times in terminal, that's when I noticed some python cairo errors coming up in the terminal.
Anyhow, couldn't capture these, as my drive just ended. Said something about impossible rotation though or something.
I'll capture the full errors in the morning and post.
Could it be, that there's some python/cairo mess-up going on and due to this the display is getting stuck?
|
2012-01-13
, 02:03
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#926
|
|
2012-01-13
, 02:19
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#927
|
The Following 2 Users Say Thank You to woody14619 For This Useful Post: | ||
|
2012-01-13
, 02:27
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#928
|
Some providers limit how many map tiles you can download in a set time-frame, and start blocking/banning you if you do too many too fast. Try choosing another map provider.
As to the question: Yes, if you download 10% of the tiles, they're still there. When you re-start, it will skip downloading those tiles as it hits them. At least that was true the last time I used it, to grab tiles. I cached 90% of the area I usually am in, and rarely get tile traffic because of that now.
|
2012-01-13
, 10:15
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#929
|
As to the question: Yes, if you download 10% of the tiles, they're still there. When you re-start, it will skip downloading those tiles as it hits them. At least that was true the last time I used it, to grab tiles. I cached 90% of the area I usually am in, and rarely get tile traffic because of that now.
12Mbps wifi but downloads are very slow, maybe lots of computation or maybe openstreet limits the download speed a lot.
The Following User Says Thank You to MartinK For This Useful Post: | ||
|
2012-01-15
, 19:54
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#930
|
The Following 7 Users Say Thank You to MartinK For This Useful Post: | ||
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
|
I never messed with VNC, never really used it. Will try to look into it...
Anyhow, I currently see two possibilities for improvement when using VNC:
Currently, I use 24-bit color profile, to make modRana useable with the VNC viewer, otherwise the colors got distorted. Other possible viewer profiles are: 256, 64, and 8 colors, or greyscale, and black-and-white. So would it be possible to limit modRana's colors to 8 or max 64 on startup programatically? This would decrease the amount of data sent drastically?
Second, have an option in modrana to update the display only let's say every second, so that this would also decrease the data sent significantly?
This might make modRana useable under VNC?