Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 158658 - Eclipse 3.3 presentation: Minimize too slow on Windows
Summary: Eclipse 3.3 presentation: Minimize too slow on Windows
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Eric Moffatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 153957
  Show dependency tree
 
Reported: 2006-09-25 16:38 EDT by Ed Burnette CLA
Modified: 2006-10-26 11:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Burnette CLA 2006-09-25 16:38:17 EDT
3.3M2, 3.3 presentation enabled
The animation is cute but it's currently too slow to be useful on my machine (WinXP SP2, dual 3.2Ghz, 2G memory, Nvidia GeForce 6200, 3 monitors). There's a noticeable pause (2-3 sec?) when it captures the screen before it starts scaling it down. javaw.exe (jdk1.5.0_06) takes close to 50% of the CPU during this period, i.e., close to 100% of a single CPU.
Comment 1 Boris Bokowski CLA 2006-09-29 14:27:38 EDT
The same is true on my machine, the wait is between one and two seconds and I guess it's the capturing of the screen contents. I have Windows XP, Pentium 4 with 3.0GHz, Intel 82865G graphics, one monitor with 1600x1200 pixels.
Comment 2 Eric Moffatt CLA 2006-10-02 09:58:05 EDT
Thanks for the feedback Ed. I've been working on this (see bug 156445). Also note that there's also a defect that greatly affects the -initial- minimize that causes all views to be 'activated' (causing all sorts of plugin loading...).

If we can't get an acceptable speed I'll give it up but capturing the current bits has some true advantages since it makes the animation match the operation; we're here, do this...it's happening...we're there. I find the current animation style weird because we do the operation and then the animation tries to catch up...

Also, we've -gotta- be able to do something more than early 80's style black rects...I can't -believe- that a box capable of rendering multi-100K polygon games at 50 frames a second can't do better.

That being said the guidelines I'm using to determine 'acceptable' are startup time <75 ms and a 40ms frame rate minimum. This gives us 6-8 animation frames in a 350ms animation. I'll either have something that can do this by M3 or I'll revert back to the old animations.
Comment 3 Benjamin Pasero CLA 2006-10-02 10:28:39 EDT
Where is the code living for the new presentation?
Comment 4 Ed Burnette CLA 2006-10-02 20:08:03 EDT
FWIW it is slow for me every time, not just the first time.

I used to work on PC video games, and I know that reading from 2D video RAM is notoriously horribly slow. Now, if each view were rendered as a texture on a 3D polygon or something like that, you could do some neat effects with no loss of speed at all. That's essentially how Xgl and Quartz Extreme (see http://en.wikipedia.org/wiki/Xgl) and Looking Glass (https://lg3d.dev.java.net/) work. 

However the examples I've seen so far have all been done by the OS on the entire application canvas (top level window), mostly without the application knowing about it, as opposed to within views/subwindows of the application and under application control.

Pardon the brainstorming, but I wonder how a presentation where every view and editor was a top level window would look. We have an internal MFC application (a debugger) that works that way, but it doesn't have nearly as many windows as Eclipse has. I didn't write the UI but it does some coordination between the windows to help keep them aligned (for example if you resize the bottom of the main window then the bottom of the window next to it will resize also, or if you iconify the main window all of the windows iconify and leave one item in the Windows task bar).
Comment 5 Eric Moffatt CLA 2006-10-03 14:03:53 EDT
Committed in >20061003. Reverted the animations back to the original style until I can iron out the performance issues.

I haven't given up though...;-).
Comment 6 Eric Moffatt CLA 2006-10-25 16:30:04 EDT
We're reverted back to the old animation style and the new code maintains the correct lazy loading behaviour...
Comment 7 Ed Burnette CLA 2006-10-26 11:16:05 EDT
I suspect the screen capture would have broken on Vista anyway given the recent problems with Java there with DirectX and screen locking.