Bug 205611 - Slow paint on Vista/Aero
Summary: Slow paint on Vista/Aero
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 16:59 EDT by Nate Chu CLA
Modified: 2019-09-06 15:37 EDT (History)
2 users (show)

See Also:


Attachments
snippet demonstrating issue (2.72 KB, application/octet-stream)
2007-10-05 16:59 EDT, Nate Chu CLA
no flags Details
better snippet (2.19 KB, application/octet-stream)
2007-10-05 19:01 EDT, Nate Chu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Chu CLA 2007-10-05 16:59:04 EDT
Created attachment 79832 [details]
snippet demonstrating issue

Build ID: I20070323-1616

More information:
When running Vista's Aero interface, A GC fillGradientRectangle(...) call will take a second or more to paint, slowly filling specified region from top to bottom.  In the snippet, it appears that all the controls in the region are repainted as soon as fillGradientRectangle completes, with the end result that the gradient rectange is painted slowly and then disappears.
Comment 1 Steve Northover CLA 2007-10-05 17:34:08 EDT
What is the bug?  The slowness?  You are drawing on the screen and then redrawing the controls, erasing the gradient.
Comment 2 Steve Northover CLA 2007-10-05 17:35:20 EDT
Please add Time.currentTimeMillis() to benchmark the slowness.

What effect are you trying to get?
Comment 3 Steve Northover CLA 2007-10-05 17:40:39 EDT
Ok, I get it.  You want to draw a gradient on top of the controls (sorry, I saw the clear code and thought you were calling it when you were drawing the gradient).

I'm not sure why the controls redraw.
Comment 4 Nate Chu CLA 2007-10-05 19:01:11 EDT
Created attachment 79835 [details]
better snippet

I pared down the snippet to only show the gradient issue;  the average times for the various window appearances:

windows classic - 8ms
windows standard - 7ms
vista basic -  7ms (but with more variance)
vista aero - 310ms
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:37:42 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.