Modify

Opened 4 years ago

Closed 4 years ago

#2310 closed defect (fixed)

[PATCH] WMS plugin drawing extremely slow

Reported by: singularita Owned by: xeen
Priority: major Component: Plugin
Version: latest Keywords:
Cc:

Description

When I use WMS plugin and add new layer in zoom about 12m, then zoom to about 23m and start doing things (drawing things, moving the view around), then the responsiveness is very slow (the view is redrawn only 3-4 times/second, too little for any comfortable work)

If I hide the WMS layer, everything is fast suddenly, so the cause must be in the WMS.

I have Core 2 Quad q6600, 8 GB ram, Geforce 8800 GTX (512MB VRAM), Windows XP 64bit and 64bit Java (1.6.0-10beta), so I think the performance should be decent on that configuration...

I use -Xmx1024m when running JOSM

Attachments (1)

wms.patch (4.5 KB) - added by xeen 4 years ago.
I still couldn't find the time to put it into a real core class that other plugins may use as well. This is meant as an intermediate fix to make WMS more user friendly. Fixes #2310 (this one), #2307 (blank tiles) and probably #2350 (null pointer exception)

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by singularita

I think I have discovered possible cause. When I deleted contents of WMS cache directory (there were about 700 files) while JOSM was still running, things immediately started to be fluent again. Could the cache be the cause for slowness?

comment:2 Changed 4 years ago by xeen

  • Owner changed from team to xeen

Hmm… can you have a look how much memory is used when WMS is activated? A slow file system might be the cause if images need to to be loaded from disk (i.e. while moving). After images are cached in memory, it should be fast though, especially while drawing there shouldn't be any lag. Can you verify if it really lags while driving without moving?

Also, have a look how large the cache directory was when there are 700 files. Will have a look into it.

comment:3 Changed 4 years ago by xeen

Confirmed on Win XP. It looks like the filesystem gets very slow with a lot of files. I need to rework the cache system anyway, so I'm going to fix this on the way.

Changed 4 years ago by xeen

I still couldn't find the time to put it into a real core class that other plugins may use as well. This is meant as an intermediate fix to make WMS more user friendly. Fixes #2310 (this one), #2307 (blank tiles) and probably #2350 (null pointer exception)

comment:4 Changed 4 years ago by xeen

  • Summary changed from WMS plugin drawing extremely slow to [PATCH] WMS plugin drawing extremely slow

comment:5 Changed 4 years ago by stoecker

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.