Maps in game client are not cached?

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Maps in game client are not cached?

Postby Gilbertus » Wed Jul 14, 2010 6:41 pm

I recently making some maps of my surroundings. The map sever is very laggy and its a bit painful. Almost all the time my local and regional maps stays blank and even GUI mini map have holes and not refreshing images.
From what I see all maps are downloaded every time I open map (local, regional) or go to some part of world (GUI map). Am I right?
If that's true its the main reason for map server overload.
EDIT:
Hm. Maybe they are cached but cleared when changing "zones". When i walked into house and get back local map was starting to load again.
Gilbertus
 
Posts: 174
Joined: Thu Jun 03, 2010 4:29 pm
Location: Poland

Re: Maps in game client are not cached?

Postby loftar » Wed Jul 14, 2010 8:23 pm

Gilbertus wrote:I recently making some maps of my surroundings. The map sever is very laggy and its a bit painful. Almost all the time my local and regional maps stays blank and even GUI mini map have holes and not refreshing images.
From what I see all maps are downloaded every time I open map (local, regional) or go to some part of world (GUI map). Am I right?

Not quite -- they are redownloaded whenever the garbage collector frees them.

I would like to cache them, indeed; and I did try once, but it turns out that (at least Sun's implementation of) the JNLP caching mechanism is tremendously, unthinkably slow, so the caching of maps actually bogged down client performance.


Gilbertus wrote:If that's true its the main reason for map server overload.

Nope. HTTP traffic, in total, takes no more than 20% of the server's bandwidth, and map downloads are obviously just a still smaller part of that.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Maps in game client are not cached?

Postby Gilbertus » Wed Jul 14, 2010 9:05 pm

Thanks for answer.

loftar wrote:
Gilbertus wrote:I recently making some maps of my surroundings. The map sever is very laggy and its a bit painful. Almost all the time my local and regional maps stays blank and even GUI mini map have holes and not refreshing images.
From what I see all maps are downloaded every time I open map (local, regional) or go to some part of world (GUI map). Am I right?

Not quite -- they are redownloaded whenever the garbage collector frees them.

I would like to cache them, indeed; and I did try once, but it turns out that (at least Sun's implementation of) the JNLP caching mechanism is tremendously, unthinkably slow, so the caching of maps actually bogged down client performance.


Unfortunately I don't talk in JAVA. Can this bloody ;) garbage collector be prevented from freeing those precious data for whole client session?
Or at last give him log delay before he touch them. Maps don't change often.

loftar wrote:
Gilbertus wrote:If that's true its the main reason for map server overload.

Nope. HTTP traffic, in total, takes no more than 20% of the server's bandwidth, and map downloads are obviously just a still smaller part of that.


Good to know.
Wonder why my maps are loading so slow then. I don't think its my connection i seen some topics about not loading maps on forum.
But it seem its not server problem either.

EDIT:
I do have problem with forum too. I try to edit this post and it took me like 30 min to open edit page.
I did traceroute and this what i get:
Code: Select all
$ traceroute www.havenandhearth.com
traceroute to www.havenandhearth.com (213.101.208.103), 30 hops max, 60 byte packets
 1  10.10.10.1 (10.10.10.1)  1.090 ms  1.568 ms  1.891 ms
 2  * * *
 3  10.133.248.2 (10.133.248.2)  17.819 ms * *
 4  84.116.252.58 (84.116.252.58)  55.550 ms  55.644 ms  55.713 ms
 5  * * *
 6  84.116.252.205 (84.116.252.205)  55.717 ms  52.712 ms  55.220 ms
 7  84.116.132.49 (84.116.132.49)  55.004 ms 84.116.132.53 (84.116.132.53)  55.427 ms  47.754 ms
 8  84.116.132.18 (84.116.132.18)  51.997 ms 84-116-130-222.aorta.net (84.116.130.222)  52.076 ms  52.175 ms
 9  lon2-core.gigabiteth3-0.swip.net (195.66.224.87)  47.665 ms  49.580 ms  49.325 ms
10  ams-core-1.pos0-7-2-0.swip.net (130.244.192.13)  48.221 ms  47.176 ms  46.208 ms
11  gbg-core-1.pos9-0-0.swip.net (130.244.207.141)  60.230 ms  64.429 ms  63.786 ms
12  bck-core-1.tengigabiteth9-0-0.swip.net (130.244.218.182)  66.920 ms  66.570 ms  66.193 ms
13  kst-core-1.pos1-0-0.swip.net (130.244.39.141)  68.020 ms  69.028 ms  68.921 ms
14  htg0-core-1.tengigabiteth4-0-0.swip.net (130.244.218.153)  68.317 ms  67.202 ms  68.398 ms
15  htg0-ncore-1.tengigabiteth2-1.swip.net (130.244.52.130)  83.399 ms  83.287 ms  69.887 ms
16  cty1-bbrs.gigabiteth1-2.swip.net (130.244.205.122)  70.052 ms  67.478 ms  67.988 ms
17  213.101.208.103 (213.101.208.103)  249.006 ms  242.094 ms  228.984 ms


Game server is on the same IP i see:
Code: Select all
$ traceroute sh.seatribe.se
traceroute to sh.seatribe.se (213.101.208.103), 30 hops max, 60 byte packets
 1  10.10.10.1 (10.10.10.1)  1.050 ms  1.330 ms  1.684 ms
 2  * * *
 3  * * *
 4  84.116.252.58 (84.116.252.58)  53.562 ms  53.794 ms  54.008 ms
 5  84.116.252.229 (84.116.252.229)  54.255 ms  54.435 ms  54.607 ms
 6  84.116.252.205 (84.116.252.205)  56.551 ms  48.533 ms  51.422 ms
 7  84.116.132.49 (84.116.132.49)  51.829 ms  49.810 ms  60.731 ms
 8  84.116.132.14 (84.116.132.14)  59.999 ms  60.073 ms 84-116-130-222.aorta.net (84.116.130.222)  59.703 ms
 9  lon2-core.gigabiteth3-0.swip.net (195.66.224.87)  60.392 ms  58.084 ms  53.817 ms
10  ams-core-1.pos0-7-2-0.swip.net (130.244.192.13)  53.605 ms  53.338 ms  48.971 ms
11  gbg-core-1.pos9-0-0.swip.net (130.244.207.141)  63.969 ms  64.027 ms  63.693 ms
12  bck-core-1.tengigabiteth9-0-0.swip.net (130.244.218.182)  64.279 ms  67.675 ms  67.346 ms
13  kst-core-1.pos1-0-0.swip.net (130.244.39.141)  68.720 ms  68.469 ms  68.734 ms
14  htg0-core-1.tengigabiteth4-0-0.swip.net (130.244.218.153)  67.347 ms  69.108 ms  73.010 ms
15  htg0-ncore-1.tengigabiteth2-1.swip.net (130.244.52.130)  73.876 ms  72.879 ms  69.409 ms
16  cty1-bbrs.gigabiteth1-2.swip.net (130.244.205.122)  69.600 ms  68.468 ms  68.395 ms
17  213.101.208.103 (213.101.208.103)  273.706 ms  245.595 ms  223.055 ms
Last edited by Gilbertus on Wed Jul 14, 2010 9:25 pm, edited 1 time in total.
Gilbertus
 
Posts: 174
Joined: Thu Jun 03, 2010 4:29 pm
Location: Poland

Re: Maps in game client are not cached?

Postby loftar » Wed Jul 14, 2010 9:15 pm

Gilbertus wrote:Unfortunately I don't talk in JAVA. Can this bloody ;) garbage collector be prevented from freeing those precious data for whole client session?

It can; but right now only at the cost of keeping all the maps in RAM. I don't really know how big a deal that would be, but I'd imagine it might use quite a bit too much memory for people exploring or otherwise walking around a lot, at least.

Gilbertus wrote:Wonder why my maps are loading so slow then. I don't think its my connection i seen some topics about not loading maps on forum.

I don't know exactly why, but for some reason, it seems that TCP traffic suffers much worse from the congestion than does the game protocol.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am


Return to Critique & Ideas

Who is online

Users browsing this forum: Claude [Bot], PetalBot [Bot] and 3 guests