Opened 4 years ago
Last modified 4 years ago
#20773 new enhancement
Enabling sun.java2d.opengl makes panning the map significantly more sluggish
Reported by: | nagisa | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | Cc: |
Description
I've been checking if I can make josm
perform more smoothly on my machine and one of the options I came across in https://wiki.openstreetmap.org/wiki/JOSM/Installation was to enable the sun.java2d.opengl
option.
Once this option is enabled, however, panning the map actually becomes much more sluggish (eyeballing I estimate ~3-5 fps, not sure how to check for sure) compared to software rendering with which panning occurs at a significantly smoother looking rates (20-30fps?)
This only had an imagery layer enabled, at a "native" projection for the imagery (i.e. no image reprojection should be occurring).
This is on a recent machine with an intel integrated graphics.
It would be great if panning the map was smooth and even better if enabling opengl rendering did not regress the performance (so that it was possible to set this option system wide for the other Java applications).
I would also at least qualify the recommendation in the referenced wiki page if it isn't known that it improves performance universally.
Version: JOSM/1.5 (17702 en_GB)
Attachments (1)
Change History (4)
comment:1 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 4 years ago
Thank you. Adding the status report below. I believe the other 3/4 points are already described in the original report (though I could make a video if that would help)
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2021-04-01 23:17:01 +0200 (Thu, 01 Apr 2021) Revision:17702 Build-Date:2021-04-01 21:46:03 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (17702 en_GB) Linux NixOS 21.05 (Okapi) Memory Usage: 252 MB / 3940 MB (215 MB allocated, but free) Java version: 16+36-nixos, N/A, OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel Screen: :0.0 3000×2000 (scaling 2.00×2.00) Maximum Screen Size: 3000×2000 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_GB.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true, -Dawt.useSystemAAFontSettings=on, -Dswing.aatext=true, -Dsun.java2d.xrender=true, -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel, -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel, -Djdk.gtk.version=3, -Dsun.java2d.opengl=true, -Dsun.java2d.uiScale=2] Program arguments: [--status-report]
This is on Linux. Sway/XWayland. The GPU is an Intel(R) UHD Graphics (CML GT2)
, using the drivers that come with Linux 5.11 and mesa 21.0.1. Attached a glxinfo
output.
comment:3 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
Thanks for your report, however your ticket is incomplete and therefore not helpful in its current form.
Please add all needed information according to this list:
To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Help →
Report Bug.
Remember: This is a generic notice so we don't need to write the same stuff again and again. It may only apply in parts to the specific case!
There is more information needed besides status report, like the graphic card and its driver in use.
If on Linux we also need to know which XServer is in use,
XWayland
or the oldX11
only?