Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311536

Summary: [Animation] Delay animation when browser is busy
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix
none
fix holger.staudacher: iplog+

Description Tim Buschtoens CLA 2010-05-04 09:04:43 EDT
When an animation is started, but the browser is busy executing JS or rendering DOM, the animation skips to the part where it would be had the browser not been busy. Instead of this, the animation could be delayed so the animation doesnt start until the browser is ready. 

You need a slow system to see this. Try loading other websites in the background.

Not 100% sure we should fix this, but generally in favor.

Pro:
- Animations are currently played only partially or are completely skipped, which seems broken.

Con:
- The total time until the UI is ready is prolonged.
Comment 1 Tim Buschtoens CLA 2010-05-05 07:52:54 EDT
Created attachment 167119 [details]
fix

Fix for animation.js. I think this can really help in some cases where relatively short animations are "swallowed" by the evalutation of the server response. Very noticeable with the displayOverlay. It won't help for stuttering animations in general though.
Comment 2 Tim Buschtoens CLA 2010-05-05 09:02:57 EDT
Created attachment 167127 [details]
fix

added test
Comment 3 Holger Staudacher CLA 2010-05-05 09:09:12 EDT
Patch looks good, tests are green, problem seems to be solved. I applied the patch to
CVS HEAD.