Opened 16 years ago
Closed 16 years ago
#685 closed defect (fixed)
Very long running java.awt.Graphics.fillPolygon
Reported by: | anonymous | Owned by: | framm |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Steps:
- Opended GPX file with GPS tracks.
- Zoomed in a region of the loaded tracks
- Click the download button and leave all settings for the chosen bb.
- Start the download and wait.
Console output:
mappaint: Using jar's elemstyles.xml: "file:/E:/src/java/openstreetmap/JOSM/bin/styles/standard/elemstyles.xml"
download: http://www.openstreetmap.org/api/0.5/map?bbox=8.80530688924713,47.98263970762596,8.836373525759617,48.00380422883021
got return: 200
Attachments (3)
Change History (7)
by , 16 years ago
Attachment: | tracks_20080407.gpx added |
---|
comment:1 by , 16 years ago
Sorry forgot to format the description and to insert a meaningful name. This the first time I use JOSM and I debugged the code. The issue seems to be at MapPaintVisitor.drawWayAsArea(Way w, Color colour). Maybe I'm to new to be sure. But the problem is major. I have a 2 core intel chip. maybe this is a threading issue. Did you ever test the software on real multi core systems?
comment:2 by , 16 years ago
The problem is that the color uses an alpha channel, this makes rendering slow.
comment:3 by , 16 years ago
Sorry, the patch is broken as it only supports one layer, i.e. you cannot see several layers at once.
by , 16 years ago
Attachment: | josm-render-speedup.2.diff added |
---|
next try, now hopefully supports more than one layer
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
patch applied, thanks.
as pointed out by dnaber on the list, we can still do better by avoiding to draw the stuff that is known to be off-screen but that's on my list anyway so I take the liberty to close this bug.
opened tracks