Modify

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)

glxinfo (98.4 KB ) - added by nagisa 4 years ago.
glxinfo output

Download all attachments as: .zip

Change History (4)

comment:1 by skyper, 4 years ago

Owner: changed from team to nagisa
Status: newneedinfo

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:

  • The required parts of the Status Report from your JOSM.
  • Describe what behaviour you expected.
  • Describe what did happen instead.
  • Describe if and how the issue is reproducible.
  • Add any relevant information like error messages or screenshots.

To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Helpsource:trunk/resources/images/bug.svg 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 old X11 only?

Last edited 4 years ago by skyper (previous) (diff)

comment:2 by nagisa, 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.

by nagisa, 4 years ago

Attachment: glxinfo added

glxinfo output

comment:3 by skyper, 4 years ago

Owner: changed from nagisa to team
Status: needinfonew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to nagisa.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.