[JIRA] Commented: (SIMPLEVALIDATION-49) GraphicsDevice.getCurrentDisplayMode expensive
- From: "tim (JIRA)" <jira-no-reply@kenai.com>
- To: issues@simplevalidation.kenai.com
- Subject: [JIRA] Commented: (SIMPLEVALIDATION-49) GraphicsDevice.getCurrentDisplayMode expensive
- Date: Thu, 17 Nov 2011 20:27:58 +0000 (GMT+00:00)
- Auto-submitted: auto-generated
[
http://kenai.com/jira/browse/SIMPLEVALIDATION-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59345#action_59345
]
tim commented on SIMPLEVALIDATION-49:
-------------------------------------
Not sure what it's used for if there's no parent; perhaps it should go away.
At any rate, invocation of
c.getGraphicsConfiguration().getDevice().getDisplayMode().getWidth() could be
conditional on there being no parent; and the result could be cached (it
would be incorrect if the screen resolution changes, but that's rare enough
that we might choose not to care, or listen for changes in it if we want to
be pedantic).
Or, for that matter, just using a value like 1024 or 1280 hard-coded would
probably be fine enough.
> GraphicsDevice.getCurrentDisplayMode expensive
> ----------------------------------------------
>
> Key: SIMPLEVALIDATION-49
> URL: http://kenai.com/jira/browse/SIMPLEVALIDATION-49
> Project: simplevalidation
> Issue Type: Bug
> Environment: Ubuntu Oneiric, JDK 6u29 32-bit
> Reporter: jglick
>
> I get a bunch of UI freezes on Ubuntu in NetBeans related to this library,
> e.g. Tools > Options > Miscellaneous > JavaCard, which the self-profiler
> indicates result from {{sun.awt.X11GraphicsDevice.getCurrentDisplayMode}}
> taking several hundred msec per invocation. Consider whether these calls
> (e.g. from {{MultilineLabelUI.getMaximumSize}}) are really necessary. The
> resulting width value seems to only be used when there is no parent, and in
> this case does it matter what the minimum or maximum size is?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://kenai.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
[JIRA] Created: (SIMPLEVALIDATION-49) GraphicsDevice.getCurrentDisplayMode expensive |
jglick (JIRA) | 11/17/2011 |
|
[JIRA] Commented: (SIMPLEVALIDATION-49) GraphicsDevice.getCurrentDisplayMode expensive |
tim (JIRA) | 11/17/2011 |





