This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||Poor editor performance with Java 7 and retina display on OS X|
|Component:||Painting & Printing||Assignee:||Miloslav Metelka <mmetelka>|
|Severity:||normal||CC:||anebuzelsky, arepo, balboag, barmeier, erwin1, grantjennings, jmakuc, krystofh, mbalin, mmirilovic, octlabs, razvanphp, rwankar, saeed_z_f, Salamander, sibidharan, tmysik, tveimo|
|OS:||Mac OS X|
|Issue Type:||DEFECT||Exception Reporter:|
Screen cap of jumpy scrolling on retina mbp
Screen cap of scrolling on external monitor / same machine
NB CPU profile, scrolling and typing on retina display
NB CPU profile, scrolling and typing on external display
.npss file attached from NetBeans
HTML file used to verify editor slow scrolling.
.npss file attached from NetBeans
Snapshop with NB dev 201503020001 and JDK9
Description markedwards 2013-10-28 17:29:55 UTC
Comment 1 levani 2013-10-28 17:49:55 UTC
That's why I had to switch to another editor. At least until this bug is fixed. Netbeans on retina display in almost impossible to use. I can confirm that on external display it performs much better then on retina display on the same computer. Typing, scrolling, even resizing the application is very slow on retina display.
Comment 2 Stanislav Aubrecht 2013-10-29 11:47:57 UTC
I don't see any noticeable performance issues in Product Version: NetBeans IDE 7.4 (Build 201310111528) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb) Reporter, what version of OS X are you running?
Comment 3 markedwards 2013-10-29 15:16:34 UTC
Same specs as what you listed. What hardware are you testing on? It's important to be running on a retina display, and to have the resolution scaled to the highest setting. My hardware is a 2012 MacBook Pro 13".
Comment 4 Stanislav Aubrecht 2013-10-29 15:38:48 UTC
I have 15" MacBookPro with Retina display, early 2013. No performance issues even when display settings are scaled to the highest resolution. Please try running SwingSet demo or some other plain Swing app to see if it's reproducible there. Also do you have Apple JDK 1.6 installed on your machine?
Comment 5 markedwards 2013-10-29 18:08:07 UTC
I ran the SwingSet3 demo. Scrolling performance in the main text areas is fine. Scrolling in the GUI Components pane on the left is sluggish, however, similar to the issues with Netbeans. I'm not sure that indicates anything in particular, but perhaps its a clue. I do have the Apple JDK 1.6 installed. However, I ran Netbeans 7.4 without it installed before installing it, and had the same issues. The 15" MacBook Pro has a much more powerful Nvidia GPU, so perhaps the issue only manifests when using Intel integrated graphics. Perhaps its worth trying to force the integrated GPU using something like http://gfx.io.
Comment 6 Stanislav Aubrecht 2013-10-30 09:54:34 UTC
Each pane in SwingSet demo has also a source tab with HTML formatted Java code, did you try scrolling it as well?
Comment 7 Stanislav Aubrecht 2013-10-30 10:26:44 UTC
I tried running NetBeans with integrated graphics only and while the editor scrolling does seem a bit less smooth I didn't find any performance issue. We can try taking this to JDK team but even Apple warns of possible performance issues when scaling the display to the highest settings.
Comment 8 markedwards 2013-10-30 16:34:24 UTC
There is no issue with scrolling the source code in the SwingSet demo on my machine. In fact, I have no text scrolling issues in any application, Java or otherwise, except for Netbeans. As I said, Eclipse is perfectly fine at all resolutions, even though it is using the same 1.7 JDK. I am not alone in noticing this issue, its being echoed by others as well: http://forums.netbeans.org/viewtopic.php?p=152027 I'm guessing that this issue is only really extreme on the Macbook Pro 13" models, although I have only been able to test that model so I haven't been able to compare. However, please believe us that this issue is bad enough that it makes Netbeans unusable for complex documents on the retina screen.
Comment 9 Salamander 2013-10-30 17:09:59 UTC
It isn't very scientific, but could someone who has both versions and is having this issue do a screen video capture? If a video capture interferes too much, anyone with a modern-ish point and shoot can do a slow-motion videotape-the-screen capture. (I once diagnosed screen judder in Netflix using an Canon Elph's slow-motion video, which helped to clearly see frames being lagged and reversed). Any video camera that has a high enough frame rate should do the trick. I'm on a Macbook pro 15", 2.7GZh, and I'm not seeing a huge difference, but it does feel slower.
Comment 10 slavikme 2013-11-05 13:26:13 UTC
Same problem! I have MPBr 13" - Same issue on both OS X 10.8 and 10.9, with Netbeans 7.3.1 and 7.4. 7.3 Worked great on OS X 10.8 but it doesn't launch now on OS X 10.9. So, I don't have an alternative Netbeans version for now. :-(
Comment 11 markedwards 2013-11-05 14:23:04 UTC
(In reply to slavikme from comment #10) > Same problem! I have MPBr 13" - Same issue on both OS X 10.8 and 10.9, with > Netbeans 7.3.1 and 7.4. > 7.3 Worked great on OS X 10.8 but it doesn't launch now on OS X 10.9. > So, I don't have an alternative Netbeans version for now. :-( I'm confused, are you confirming that you are experiencing scrolling performance issues running Netbeans under Java 7? This bug isn't about launching Netbeans, it's specifically about scrolling performance under Java 7 on retina screens. When you upgrade to 10.9, you have to install Java again or Netbeans won't launch. Have you done that?
Comment 12 slavikme 2013-11-05 14:56:39 UTC
(In reply to markedwards from comment #11) > I'm confused, are you confirming that you are experiencing scrolling > performance issues running Netbeans under Java 7? This bug isn't about > launching Netbeans, it's specifically about scrolling performance under Java > 7 on retina screens. When you upgrade to 10.9, you have to install Java > again or Netbeans won't launch. Have you done that? Yes I'm experiencing the same issue, extremely slow on scrolling, typing, navigating with arrows. Yes, I did upgrade the Java version. About the Netbeans 7.3 launch, I figure it out, when I started it the size of the Netbeans' window was nearly zero. But now I see, that even with Netbeans 7.3 I'm experiencing the slowness.
Comment 13 chadetov 2013-11-11 02:38:42 UTC
After updating MacOS on my retina macbook pro to System Version: OS X 10.9 (13A603) Kernel Version: Darwin 13.0.0 Netbeans was unable to start, so i updated java and netbeans. Now I have better looking editor (crystal precision) but laggy scrolling. Not fun to code like this. Product Version: NetBeans IDE 7.2.1 (Build 201210100934) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Comment 14 grantjennings 2013-11-27 00:11:56 UTC
Created attachment 142618 [details] Screen cap of jumpy scrolling on retina mbp This video shows the lag when scrolling but it is present with all user input (typing!) to the point of being unusable.
Comment 15 grantjennings 2013-11-27 00:14:10 UTC
Created attachment 142619 [details] Screen cap of scrolling on external monitor / same machine Low quality (for file size) but I am sure everyone else knows how NB is supposed to scroll. This is just to demonstrate when moving the NB window to the external monitor the scrolling & other input returns to normal on the same rMBP.
Comment 16 grantjennings 2013-11-27 00:21:44 UTC
+1 on this. I am on a brand new Haswell 13" rMBP and I have this problem so I think you can discount graphics card performance as the cause. I could live with the laggy scrolling if typing was responsive. The latency when typing can be in the order of seconds, particularly when switching focus. It seems to catch up if you stay in one place and type continuously, but when you switch to another file or even a different place it takes some time to figure out what is going on.
Comment 17 Stanislav Aubrecht 2013-11-27 09:29:48 UTC
This is a JDK bug. The problem is reproducible with a plain Swing app with a JTextPane - when the text pane has a lot of text simple editing/deleting the text to scroll the pane makes the CPU usage go over 100% on a retina display (MacBook Pro). The same app on the same machine on external display scrolls just fine with CPU usage under 50%.
Comment 18 Stanislav Aubrecht 2013-11-27 09:51:03 UTC
Reported as JDK bug https://bugs.openjdk.java.net/browse/JDK-8029253
Comment 19 Stanislav Aubrecht 2013-11-27 14:16:55 UTC
Reporters, please provide some profiler snapshots so the JDK team can analyze the problem. Attach the snapshots either here or directly to the JDK issue.
Comment 20 grantjennings 2013-11-28 00:30:52 UTC
Created attachment 142655 [details] NB CPU profile, scrolling and typing on retina display 1 of 2. Hope these help, here is the snapshot on the retina display.
Comment 21 grantjennings 2013-11-28 00:36:41 UTC
Created attachment 142656 [details] NB CPU profile, scrolling and typing on external display 2/2. Scrolling and typing when NB window is on external display on retina Macbook Pro. Also, relative resolutions: Retina: 2560x1600 -> Scaled (looks like 1680x1050) External: 1920x1080
Comment 22 serb 2013-11-28 00:38:55 UTC
Can somebody confirm that the same freezes occur on jkd8 as well? Thanks. https://jdk8.java.net/download.html
Comment 23 grantjennings 2013-11-30 09:55:55 UTC
(In reply to serb from comment #22) Yes. Exactly the same in b117. Can attach profiler snapshot but it is identical to jdk7 sun.java2d.opengl.OGLRenderQueue.flushBuffer[native]() 28.76976 19,732 ms (28.8%) 19,732 ms 19,732 ms 19,732 ms > Can somebody confirm that the same freezes occur on jkd8 as well? > Thanks. > > https://jdk8.java.net/download.html
Comment 24 sykorap 2013-12-17 17:28:25 UTC
The same - slow scrolling... MacbookPro 15 Retina, late 2013, Mavericks 10.9.1, Netbeans 7.4 java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Comment 25 sykorap 2013-12-17 17:32:10 UTC
AD: resolution: retina, 1680x1050, 1920x1200
Comment 26 saeed_z_f 2014-01-04 16:43:20 UTC
I have this problem too.
Comment 27 Stanislav Aubrecht 2014-01-06 09:53:00 UTC
(In reply to saeed_z_f from comment #26) > I have this problem too. It's a problem in JDK which cannot be fixed in NetBeans, please vote for the JDK issue.
Comment 28 YannisDR 2014-02-19 18:35:19 UTC
I have MacBook Pro late 2011 with 10.7.5 NetBeans 7.4 and scrolling through my code is awful and ugly. It is not "sweet" if you get what I mean. I got the need to switch to other editors to work comfortably. I haven't installed any new plugin. Please fix it. I would update a screencast but I see that others covered that part just fine. However, mine seems a bit more laggy than others.
Comment 29 YannisDR 2014-02-19 18:55:49 UTC
Sorry, I just saw that it is reported as a JDK issue. I see you say that it has to do with Retina display, but I do NOT have a retina screen (MacBookPro late 2011). Additionally, when I run Eclipse IDE, this problem is not reproduced. What's going on then? If you need any reports or any clarifications, just let me know.
Comment 30 Stanislav Aubrecht 2014-02-19 20:15:01 UTC
(In reply to YannisDR from comment #29) > Sorry, I just saw that it is reported as a JDK issue. I see you say that it > has to do with Retina display, but I do NOT have a retina screen (MacBookPro > late 2011). Additionally, when I run Eclipse IDE, this problem is not > reproduced. What's going on then? > If you need any reports or any clarifications, just let me know. File a new issue then and leave this one closed, thanks.
Comment 31 YannisDR 2014-02-26 17:59:21 UTC
Follow-up link for anybody wants to see the bug for no Retina-display issue. Seems Retinas have nothing to do with this problem. https://netbeans.org/bugzilla/show_bug.cgi?id=242125
Comment 32 grantjennings 2014-03-11 12:21:53 UTC
Ok. There has been a bit of activity on the JDK on this issue but it is a little out of my depth. What I did gather from this is that it is possible to toggle swing.volatileImageBufferEnabled and get better scrolling performance. The eventual fix hopefully will be fast and smooth but adding this switch to the netbeans.conf seems to remove the lag. The unfortunate side effect is the fonts get fuzzy. Pick your poison. To apply this, add the following to netbeans_default_options in Netbeans.app/Contents/Resources/Netbeans/etc/netbeans.conf -J-Dswing.volatileImageBufferEnabled=false
Comment 33 tveimo 2014-03-12 12:36:07 UTC
Turning off swing.volatileImageBufferEnabled on my 13" late 2013 retina MBP doesn't fix the slow scrolling for me.
Comment 34 YannisDR 2014-03-13 10:51:59 UTC
I guess the correct way to pass the command is like this: netbeans_default_options="-J-Dswing.volatileImageBufferEnabled=false" However, this did not fix the problem for my NON-Retina 17 inch macbook pro. I repeeat, this bug has NOTHING to do with Retina screen.
Comment 35 tveimo 2014-03-24 03:49:57 UTC
It would be helpful for us trying to use netbeans on retina 13" macbook pro to know if there's actually any progress in getting this issue resolved internally at Oracle. From our viewpoint it appears netbeans is deferring the issue to the JDK group, which is deferring the issue indefinitely. Is our only option to change to a different IDE than netbeans?
Comment 36 danielmuehlbacher 2014-03-26 15:07:19 UTC
So what's going on with this bug? I have the same poor, nearly unusable editor performance on a MBP 13 Retina Late 2013 with OS X 10.9.2. It makes no difference whether i use Netbeans 7.4, 8.0 or JDK7 or JDK8u20. Other Java based IDEs work as well. Is the Netbeans dev-team investigating this issue or do we have to switch the IDE? Would be a pity. Thanks!
Comment 37 YannisDR 2014-03-26 18:04:53 UTC
It would be better for you to switch IDE, as the bug isn't in priority. (P2 Class). Also it is reported as a JDK bug (while other IDEs with similar build perform very well) See comment #17: https://netbeans.org/bugzilla/show_bug.cgi?id=237724#c17
Comment 38 Stanislav Aubrecht 2014-03-27 08:39:09 UTC
(In reply to YannisDR from comment #34) > I guess the correct way to pass the command is like this: > > netbeans_default_options="-J-Dswing.volatileImageBufferEnabled=false" > > However, this did not fix the problem for my NON-Retina 17 inch macbook pro. > > > I repeeat, this bug has NOTHING to do with Retina screen. Then you need to file a new bug report and attach profiler snapshots.
Comment 39 YannisDR 2014-03-28 00:55:55 UTC
(In reply to Stanislav Aubrecht from comment #38) > (In reply to YannisDR from comment #34) > > I guess the correct way to pass the command is like this: > > > > netbeans_default_options="-J-Dswing.volatileImageBufferEnabled=false" > > > > However, this did not fix the problem for my NON-Retina 17 inch macbook pro. > > > > > > I repeeat, this bug has NOTHING to do with Retina screen. > > Then you need to file a new bug report and attach profiler snapshots. Got it already since comment 30. See comment 31. What's the reason to keep retina and non-retina bugs separated if it is under the same issue? That's way too strange imho.
Comment 40 kiladila 2014-05-26 04:01:32 UTC
Same problem here, what a shame :/ Macbook pro retina 13" i5, Intel 4000HD, NetBeans 8, JDK 8u5. Very bad performance, scroll and typing is laggy, apsolutely can't work in these conditions...
Comment 41 grantjennings 2014-05-27 10:14:07 UTC
JDK 9 build b13 completely fixes this issue on Haswell 13" Retina Macbook Pro. Perfectly smooth scrolling and typing. I assume relevant fix will show up in 8u20 shortly. Note, you need to remove -XX:MaxPermSize from the command line switches in netbeans.conf to get NB to start on JDK9. Everything is working just fine for me.
Comment 42 tveimo 2014-06-04 14:37:00 UTC
Just tried jdk 9 build b15 (Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-b15), with no noticeable scrolling improvement in NB8 on my late 2013 retina MBP. I also tried with b13, with the same results. Are there any special command line switches that are needed? Btw the download for jdk9 can be found here for those interested: https://jdk9.java.net/download/
Comment 43 Antonin Nebuzelsky 2014-06-05 10:15:31 UTC
(In reply to grantjennings from comment #41) > I assume relevant fix will show up in 8u20 shortly. See comments in the JDK bug: https://bugs.openjdk.java.net/browse/JDK-8029253
Comment 44 tveimo 2014-08-18 12:36:45 UTC
Not yet fixed in jdk9. Doesn't look like it will make jdk8u20.
Comment 45 octlabs 2014-10-30 13:42:50 UTC
Is there any progress within this issue? Slows down my work every day :( NB 8.0.1 / Using MacPro End 2013 / OSX 10.10 / 2 x NEC EA244UHD
Comment 46 blasic773 2014-11-01 12:33:19 UTC
I see a great performance improvement if i remove -J-Dapple.awt.graphics.UseQuartz=true and -J-Dsun.java2d.dpiaware=false from netbeans_default_options. My system: NetBeans IDE 8.0.1 (Build 201408251540) Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01 Mac OS X version 10.10 running on x86_64; UTF-8; sl_SI (nb) MBP 13 retina
Comment 47 tveimo 2014-11-06 11:13:14 UTC
If you're waiting for this fix, you can monitor the releases at https://jdk9.java.net/download/ and see which issues are marked as released in the 'summary of changes' document. If you're really eager, you can find the releases usually a week in advance here; http://download.java.net/jdk9/archive/. They are usually added there on fridays, then put up on the download page the week after. You'd want to look for this bug id: 8029253, and possibly this one: 8023794 which is related to subpixel rendering.
Comment 48 tveimo 2014-11-07 13:13:49 UTC
The JDK release here http://download.java.net/jdk9/archive/b38/binaries/jdk-9-ea-bin-b38-macosx-x86_64-05_nov_2014.dmg supposedly contains the OSX retina performance fix.
Comment 49 tveimo 2014-11-07 14:05:12 UTC
It doesn't really seem to provide any noticeable speedups at all really.
Comment 50 Derek.Chia 2014-11-14 12:42:14 UTC
Same issue NetBeans IDE 8.0.1 (Build 201408251540) Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-b39 Mac OS X version 10.10.1 running on x86_64; UTF-8; en_US (nb) MBP 15 retina Mid 2012 also tried 1.8.0_25 and some previous version, improved but not sloved.
Comment 51 tveimo 2014-11-15 04:35:24 UTC
I think there's something else that is wrong. Try putting this gist into a file with an html extension and view it in netbeans; https://gist.github.com/iampivot/5b68b3735ec71cb8ce16 It renders very slowly, when scrolling I get an update every other second or so using either integrated or discreete graphics on my 15" MBP retina. Intellij using either jdk1.9_b39 or jdk 1.6 scrolls the same file prefectly smooth.
Comment 52 ebakke 2014-11-15 05:37:19 UTC
Created attachment 150502 [details] .npss file attached from NetBeans .npss file
Comment 53 ebakke 2014-11-15 05:41:51 UTC
I tried scrolling tveimo's test HTML file up and down for a while on a non-retina MacBook Air with retina simulated at the "720x450 (HiDPI)" resolution (see http://stackoverflow.com/questions/12124576/how-to-simulate-a-retina-display-hidpi-mode-in-mac-os-x-10-8-mountain-lion-on ). Even though only 16 lines of text were visible in the editor at this resolution, scrolling was very sluggish. I just attached the profiling snapshot of this test. Product Version: NetBeans IDE 8.0.1 (Build 201408251540) Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1 Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb) User directory: /Users/ebakke/Library/Application Support/NetBeans/8.0 Cache directory: /Users/ebakke/Library/Caches/NetBeans/8.0
Comment 54 ebakke 2014-11-15 22:14:55 UTC
I seem to be able to reproduce this, or a related problem, even under non-retina conditions in my NetBeans Platform-based application. I have two editors using the same underlying swing Document, so that when the text is modified in one editor, the change is immediately reflected in both editors. If there are a lot of tokens in the string (as returned by my own custom org.netbeans.spi.lexer.Lexer implementation), typing is extremely sluggish. However, if the exact same content is tokenized as a single token (by modifying the Lexer implementation), the problem disappears. Like when scrolling tveimo's test HTML file on a retina display, the event thread spends most of its time in sun.java2d.opengl.OGLRenderQueue.flushNow(). The stack trace of the expensive calls is similar; the calls to flushNow() originate from HighlightsViewUtils.paintHighlighted(). Could something be messing up coalescing of repaints during text rendering under certain conditions (such as having a retina display, or in the example above, having two editors that ask to repaint simultaneously)? (Not sure if this is helpful at all, but I thought I'd report my findings just in case...)
Comment 55 Stanislav Aubrecht 2014-11-21 08:56:28 UTC
(In reply to tveimo from comment #51) > I think there's something else that is wrong. Try putting this gist into a > file with an html extension and view it in netbeans; > https://gist.github.com/iampivot/5b68b3735ec71cb8ce16 > > It renders very slowly, when scrolling I get an update every other second or > so using either integrated or discreete graphics on my 15" MBP retina. > > Intellij using either jdk1.9_b39 or jdk 1.6 scrolls the same file prefectly > smooth. Please file a new bug against editor component and keep this one closed, thanks.
Comment 56 agungsuyono 2015-01-15 13:26:43 UTC
Try update your JDK to 8u40 Build b20 in https://jdk8.java.net/download.html . After I updated, the performance is much better.
Comment 57 drzoidberg33 2015-01-28 10:34:19 UTC
I have tried updating to JDK 8u40 b20 and it has no effect. Netbeans is still unusable for me on my MBP 2014 13". I've had to move over to PHPStorm and fork out the $99.
Comment 58 MattPurland 2015-02-03 12:00:16 UTC
(In reply to agungsuyono from comment #56) > Try update your JDK to 8u40 Build b20 in https://jdk8.java.net/download.html > . After I updated, the performance is much better. Unfortunately it's not. I've just installed 8u40_b23 and it's no better. Nothing has changed since I got my Retina MacBook Pro back in 2012, now I'm on a 5k iMac which has the same issue. If there's any debug output I can provide that will help fix this then please let me know. I'm desperate to use my 5k iMac in all its glory instead of disabling HiDPI mode.
Comment 59 tveimo 2015-02-08 08:28:50 UTC
Even with the fix, which is now in jdk9, which you can download here; http://download.java.net/jdk9/archive/ the editor is marginally faster. The editor is still very slow, depending on the complexity of the text being rendered, see eg. the associated issue; https://netbeans.org/bugzilla/show_bug.cgi?id=249052 I've switched to intellij myself, you might end up waiting a year or two before netbeans work well enough on a retina screen.
Comment 60 barmeier 2015-02-08 22:03:52 UTC
Really, is switching to IntelliJ the only option ?
Comment 61 tveimo 2015-02-09 00:01:02 UTC
Try jdk 9 first, to see if it's better for your use case. Any slowness with jdk 9 needs to be addressed as different issues, since this issue is resolved. The fix may eventually be backported to jdk 8.
Comment 62 tveimo 2015-02-09 00:10:47 UTC
And please vote for bug https://netbeans.org/bugzilla/show_bug.cgi?id=249052
Comment 63 markiewb 2015-02-12 16:46:53 UTC
Regarding * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029253 * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8067572 it is fixed in 9 (b38) and 8u45.
Comment 64 ebakke 2015-02-12 17:42:11 UTC
Great to see some Retina-related bugfixes--markiewb's links didn't work for me (maybe it requires a login to the JDK bug system), but here are the corresponding JIRA pages: https://bugs.openjdk.java.net/browse/JDK-8029253 https://bugs.openjdk.java.net/browse/JDK-8067572 (backport) I'll try tveimo's HTML file scrolling test as soon as JDK 8u45 becomes available.
Comment 65 barmeier 2015-02-14 11:28:56 UTC
Tried jdk 1.9.0-ea-b49 with netbeans 8.0.2 on Retina 5k and Mac OS X 10.10.2 No change for me. Scrolling is still slow. Do you have used some additional JVM params or something like this ? (In reply to markiewb from comment #63) > Regarding > * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8029253 > * http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8067572 > it is fixed in 9 (b38) and 8u45.
Comment 66 razvanphp 2015-02-25 21:13:28 UTC
I'm using NetBeans 8.0.2 on MBP 15" Mid 2014 and the problem is not fixed! The editor is unusable on the Retina display. Currently I use JRE 1.8.0_40-ea-b23 but I also tried JRE 1.9.0-ea-b49 with small changes, still no luck, scrolling is lagging and even writing text appear few milliseconds later. I'm also happy to provide more debugging information. Please fix this, it is very frustrating. Thank you!
Comment 67 Martin Balin 2015-02-26 09:48:38 UTC
According to latest investigation bone by ebakke and thurka we narrowed the problem into HTML file painting. ebakke was able to reproduce the problem even on non Retina MacBook Air as shown in linked video http://youtu.be/9vMwZoPSI_o. Also .npss attached on 2014-11-15 shows this could be the problem with editor painting. thurka verification shown the problem is not visible with java files. In this HTML file https://gist.githubusercontent.com/iampivot/5b68b3735ec71cb8ce16/raw/0d0000e426e3e83e573ac9e865140bd1adc1a569/netbeans-retina-slow problem is visible when scrolling over long lines 1000+ chars. This also happens on JDK 8 Upd 40 latest build. Therefore reopening this for editor.
Comment 68 Martin Balin 2015-02-26 09:51:32 UTC
Created attachment 152241 [details] HTML file used to verify editor slow scrolling. Originally at https://gist.githubusercontent.com/iampivot/5b68b3735ec71cb8ce16/raw/0d0000e426e3e83e573ac9e865140bd1adc1a569/netbeans-retina-slow attaching to not loose it.
Comment 69 barmeier 2015-02-26 10:10:11 UTC
(In reply to Martin Balin from comment #67) > According to latest investigation bone by ebakke and thurka we narrowed the > problem into HTML file painting. > ebakke was able to reproduce the problem even on non Retina MacBook Air as > shown in linked video http://youtu.be/9vMwZoPSI_o. Also .npss attached on > 2014-11-15 shows this could be the problem with editor painting. > thurka verification shown the problem is not visible with java files. > In this HTML file > https://gist.githubusercontent.com/iampivot/5b68b3735ec71cb8ce16/raw/ > 0d0000e426e3e83e573ac9e865140bd1adc1a569/netbeans-retina-slow problem is > visible when scrolling over long lines 1000+ chars. > This also happens on JDK 8 Upd 40 latest build. > Therefore reopening this for editor. Sorry, but on my Reina 5K Display java and groovy are slow too. It is not as slow as HTML but slower as on all other Workstations I use. The Mac has the fastest CPU, but the slowest editing and scrolling performance.
Comment 70 Geertjan Wielenga 2015-02-26 10:29:30 UTC
barmeier, can you make a movie showing this, in the way that ebakke did: https://www.youtube.com/watch?v=9vMwZoPSI_o There is certainly no lack of desire to get this fixed, only the problem of reproducing the problem, which for each person that reports it could be different -- it's a matter of being able to reproduce it, ebakke's YouTube clip was perfect for that, showing the environment he uses and then the problem very precisely, together with profiling results.
Comment 71 Geertjan Wielenga 2015-02-26 10:32:44 UTC
And, when you reproduce the problem (ideally in a video like ebakke did), please use JDK 8u40 build b23 available here: https://jdk8.java.net/download.html.
Comment 72 Martin Balin 2015-02-26 11:27:54 UTC
(In reply to barmeier from comment #69) > Sorry, but on my Reina 5K Display java and groovy are slow too. It is not as > slow as HTML but slower as on all other Workstations I use. > The Mac has the fastest CPU, but the slowest editing and scrolling > performance. Can you please attach also some files where it is the most visible? In addition to what Geertjan asked for. And profiling the IDE for a while when scrolling will be also helpfull for us to get more data for fixing this. Please attach .npss. Thanks'
Comment 73 ssch 2015-02-26 19:18:32 UTC
Pretty sure I'm affected too - when typing fast in a simple java file, letters are displayed really slow — like up to 1 second after keypress. I tried updating to u40 from U25 from U20 Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Java: 1.8.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-ea-b23 System: Mac OS X version 10.10.2 running on x86_64; UTF-8; en_US (nb) User directory: /Users/ssch/Library/Application Support/NetBeans/8.0.2 Cache directory: /Users/ssch/Library/Caches/NetBeans/8.0.2 This did not change anything, so on to jdk9b51 - now NetBeans failed to start until I removed ‘-J-XX:PermSize=32m’ from netbeans_default_options in netbeans.conf, and it also didn’t change performance :( I then installed a daily NetBeans build, which improved performance!!!! Product Version: NetBeans IDE Dev (Build 201502260001) jdk8u25 significant improvements when typing - but scrolling 300 lines of java code was still sluggish. jdk8u40 slightly better scrolling (compared to u25) - tolerable - but not seemless.. jdk9b51 slightly better yet (compared to jdk8u25) - acceptable, but could probably be even better.. So - whatever improvement was done in NetBeans daily build, does seem to be the most effective fix to my issue at least - if possible I'd like it in the updates rather than to wait for NB9..
Comment 74 Martin Balin 2015-02-27 13:15:44 UTC
(In reply to ssch from comment #73) > Pretty sure I'm affected too - when typing fast in a simple java file, > letters are displayed really slow — like up to 1 second after keypress. > I tried updating to u40 from U25 from U20 > > > I then installed a daily NetBeans build, which improved performance!!!! > Product Version: NetBeans IDE Dev (Build 201502260001) > > jdk8u25 significant improvements when typing - but scrolling 300 lines of > java code was still sluggish. > jdk8u40 slightly better scrolling (compared to u25) - tolerable - but not > seemless.. > jdk9b51 slightly better yet (compared to jdk8u25) - acceptable, but could > probably be even better.. > > So - whatever improvement was done in NetBeans daily build, does seem to be > the most effective fix to my issue at least - if possible I'd like it in the > updates rather than to wait for NB9.. Thanks' for info. Just to make it clear what is in daily builds will be part of NetBeans 8.1. Beta will be released in April. To understand your setup for test you have NetBeans IDE Dev (Build 201502260001) on top of JDK 8 Upd40 b23?
Comment 75 barmeier 2015-02-28 16:01:07 UTC
Created attachment 152296 [details] .npss file attached from NetBeans .npss file
Comment 76 ssch 2015-03-02 06:14:06 UTC
(In reply to Martin Balin from comment #74) > (In reply to ssch from comment #73) > > Pretty sure I'm affected too - when typing fast in a simple java file, > > letters are displayed really slow — like up to 1 second after keypress. > > I tried updating to u40 from U25 from U20 > > > > > > I then installed a daily NetBeans build, which improved performance!!!! > > Product Version: NetBeans IDE Dev (Build 201502260001) > > > > jdk8u25 significant improvements when typing - but scrolling 300 lines of > > java code was still sluggish. > > jdk8u40 slightly better scrolling (compared to u25) - tolerable - but not > > seemless.. > > jdk9b51 slightly better yet (compared to jdk8u25) - acceptable, but could > > probably be even better.. > > > > So - whatever improvement was done in NetBeans daily build, does seem to be > > the most effective fix to my issue at least - if possible I'd like it in the > > updates rather than to wait for NB9.. > > Thanks' for info. Just to make it clear what is in daily builds will be part > of NetBeans 8.1. Beta will be released in April. > To understand your setup for test you have NetBeans IDE Dev (Build > 201502260001) on top of JDK 8 Upd40 b23? Yes, that was one configuration - but I downgraded to update 31 to avoid any pre-release issues. My subjective observations were that things improved greatly once I were using the daily build of NB, and on top of that, each newer JDK release improved things slightly over the previous. Looking forward to 8.1 :)
Comment 77 jmakuc 2015-03-02 18:07:01 UTC
I'm sorry, but trying latest development versions does not improve scroll/typing lag for me :( Product Version: NetBeans IDE Dev (Build 201503020001) Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-b52 Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-b52 System: Mac OS X version 10.9.2 running on x86_64; UTF-8; en_US (nb)
Comment 78 jmakuc 2015-03-02 18:26:26 UTC
Created attachment 152328 [details] Snapshop with NB dev 201503020001 and JDK9
Comment 79 jmakuc 2015-03-02 18:33:47 UTC
Here it is something interesting, using an external screen via HDMI presents normal scrolling/Editing speed. As fast as windows version.
Comment 80 Martin Balin 2015-03-12 20:37:27 UTC
(In reply to jmakuc from comment #79) > Here it is something interesting, using an external screen via HDMI presents > normal scrolling/Editing speed. As fast as windows version. jmakuc, you external display is not probably retina/ultra HD?
Comment 81 jmakuc 2015-03-13 16:52:19 UTC
(In reply to Martin Balin from comment #80) > (In reply to jmakuc from comment #79) > > Here it is something interesting, using an external screen via HDMI presents > > normal scrolling/Editing speed. As fast as windows version. > > jmakuc, you external display is not probably retina/ultra HD? That's right, is a regular LED display
Comment 82 razvanphp 2015-03-20 10:37:54 UTC
@jmakuc if you read all the comments, you will see other people (including me) can confirm that scrolling works as expected on external screens, connected to the same MBP. For me, it is practically unusable without another monitor.
Comment 83 razvanphp 2015-03-21 23:13:37 UTC
Today I tried new available Java versions: jre 8u40 release version jre 8u60-ea-b07 jre 9-ea-b55 They all improved typing delay, but just a small improvement on the scroll, it is still clearly slower than on the external monitor. I also tried the nightly build, NetBeans Dev 201503210001, with no noticeable difference, for me only the new java versions improved something. I have the feeling the fixes in java just resolved some CPU problems when scrolling, our problem must be something related to NetBeans specifically. I can also notice that maximizing the windows is lagging on the retina screen, while on the external screen is really snappy. I will try to make a profiling file.
Comment 84 mcheung63 2015-03-29 05:35:25 UTC
Just tried the idk 1.9 in iMac 5k. This problem still exist and editor is completely unusable.
Comment 85 Martin Balin 2015-04-02 07:45:11 UTC
Thank's to all for providing us the feedback on editor scroll performance. We got enough info to narrow the problem. It is still the problem on high DPI displays, even with latest JDK 8/9 and latest NB development builds. We will attempt to fix this into NB 8.1.
Comment 86 tveimo 2015-04-07 23:14:30 UTC
Thanks for looking this, please keep the bug updated with build numbers where this issue is addressed so that we can try them out, please!
Comment 87 tveimo 2015-06-19 03:20:21 UTC
Good news! Just tried the suggested patch for jdk bug https://bugs.openjdk.java.net/browse/JDK-8087201, at http://cr.openjdk.java.net/~bae/8087201/9/webrev.00/, with netbeans nightly , which speeds up rendering quite a lot, making it almost butter smooth on my 2014 retina nvidia gfx mbp. It's fast enough also when using the intel integrated gfx. There's still some slowdown when rendering complex html markup, but that's covered in this bug: https://netbeans.org/bugzilla/show_bug.cgi?id=249052 I'd suggest closing this bug as wontfix and work on that bug instead.
Comment 88 sibidharan 2015-07-01 10:04:55 UTC
Someone on earth, please say how to apply patch and fix it? I am using 8u45, on OS X 10.10.4 over a MacBook Pro 15" Retina (Mid May 2015)
Comment 89 tveimo 2015-07-02 08:46:11 UTC
I've posted a post on my blog on how to patch and build openJDK 9 on OSX; http://www.nothome.com/2015/07/subpixel-font-rendering-with-netbeans.html
Comment 90 Antonin Nebuzelsky 2015-07-09 15:05:18 UTC
*** Bug 253249 has been marked as a duplicate of this bug. ***
Comment 91 tveimo 2015-08-07 17:18:20 UTC
OpenJDK 9 b76 now contains the fix for bug https://bugs.openjdk.java.net/browse/JDK-8087201, so no custom build required for much faster scrolling speeds.
Comment 92 aernative 2015-08-10 10:06:50 UTC
For me quick fix was to install the netbeans 8.1 beta and JDK 1.9 early access, then reconfigure the beta to use the newer JDK - e.g. nano /Applications/NetBeans/NetBeans\ 8.1\ Beta.app/Contents/Resources/NetBeans/etc/netbeans.conf then edit the path (first is the original value commented) # netbeans_jdkhome="/Applications/NetBeans/NetBeans 8.1 Beta.app/Contents/Resources/NetBeans/bin/jre" netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home" So definaly looks like the fix is in the pipeline - however the JDK version that ships with the beta *does not* work - you have to use 1.9 JDK.
Comment 94 Miloslav Metelka 2015-09-09 11:43:41 UTC
As we do not have a fix for the problem on NB side yet I have to ask for the waiver for this issue for NB 8.1. For the next NB versions we are experimenting with directly using GlyphVector for the rendering instead of the currently used TextLayout for non-bidi text rendering mainly for elimination of repetitive calls to TextLayout.draw() for multi-colored text. This should decrease the amount of data sent to the rendering pipeline. But the rewrite is not ready yet.
Comment 95 santi.ontanon 2015-09-17 19:40:04 UTC
Hey email@example.com, How did you manage to get Netbeans 8.1 to work with OpenJDK 9? Since JDK 9 has dropped tools.jar, (at least in my computer), once I install JDK 9 and tell Netbeans to use it, Whenever I try to compile any projet, I get the error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
Comment 96 tveimo 2015-09-22 00:44:38 UTC
Hi firstname.lastname@example.org, you need to also have jdk 8 installed, and select this JDK in the project properties. There's a netbeans branch that is specifically for jdk 9, so this will not be needed in the future when that branch is merged in, most likely for netbeans 9.
Comment 97 barmeier 2015-10-10 17:10:09 UTC
After upgrading to El Capitan and having an actual jdk8 running scrolling and working with Java and Groovy files works much better. For me this bug is not there when using El Capitan.
Comment 98 balboag 2015-10-14 17:14:35 UTC
Netbeans 8.1 RC + updated JDK 8 on a retina Macbook Pro OS X 10.11 here. Editor scroll speed is not as smooth as Eclipse or IntelliJ yet :(
Comment 99 sibidharan 2015-10-20 10:08:32 UTC
Netbeans JDK9 Branch Development Version + JDK 9 fixed this problem. Actually this issue was fixed past JDK 9u38.
Comment 100 julian.ngu 2015-11-16 01:44:39 UTC
Performance getting a lot better on Netbeans 8.1 running on Java SE 8u65 / 8u66, on 13" Retina Macbook Pro OS X El-Capitan. Scrolling is a lot smoother.
Comment 101 Xerxes004 2015-11-19 21:24:13 UTC
Confirmed. Installing Netbeans 8.1 with JDK 9 solved my problem.
Comment 102 mwitzmann 2016-06-25 12:47:19 UTC
I still have problems with the scrolling using netbeans 8.1 on an imac 5k . Product Version: NetBeans IDE 8.1 (Build 201510222201) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Mac OS X version 10.11.5 running on x86_64; UTF-8; de_DE (nb) None of the suggestions fixed it for me.
Comment 103 tveimo 2016-08-01 14:07:01 UTC
I have patched and build a version of OpenJDK 8 that supports subpixel rendering with netbeans on OSX. It is available for download at http://www.nothome.com/2016/08/subpixel-font-rendering-with-openjdk-8.html. This build contains the speedup fix from JDK issue 8087201.
Comment 104 Alyssapatterson 2019-01-31 10:16:45 UTC
Thanks for letting us know about Poor editor performance with Java 7 and retina display on OS X and how to can experience a good with Java 7 if these conditions met which are shared in description. Alyssa, http://www.secureassignmenthelp.com/
Comment 105 Emilybrown 2019-02-01 07:10:47 UTC
Thanks for letting us know about the issue and poor editor performance with Java 7 and retina display on Mac OS X and the conditions which are met to happen this error for users so they can figure out the requirements and toggle the trouble. Emily, http://www.dissertationhelp.uk/
Comment 106 muralidar 2019-05-22 11:36:27 UTC
PestEye’s Pest Control Chennai was founded in 2000, since then, we’ve transformed from a start-up to a team of 50+ and have set the benchmark for Pest Control chennai and all over Deccan Plateau. <a href="https://www.pesteyes.com/">pest control chennai</a>