Closed
Bug 527762
Opened 15 years ago
Closed 15 years ago
CPU maxed out by fill="freeze" after the active duration has ended
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: jwatt, Unassigned)
References
Details
Attachments
(1 file)
510 bytes,
image/svg+xml
|
Details |
I'm seeing the CPU maxed out constantly by SMIL when fill="freeze", even after the active duration has ended. I'll attach a testcase.
There are probably two fixes that are needed here.
1) Don't resample a frozen animation after it's been frozen
2) Don't tell elements that they have changed when the animated value
has not changed since the last sample
Reporter | ||
Comment 1•15 years ago
|
||
Reporter | ||
Comment 2•15 years ago
|
||
I threw the filter in there just to make the invalidation more expensive so that it's noticeable that we just keep on invalidating the rect continuously.
Comment 3•15 years ago
|
||
(In reply to comment #0)
> 1) Don't resample a frozen animation after it's been frozen
It's supposed to do that already but I think Daniel's commented that bit out until we add HasChangedTarget. See:
http://mxr.mozilla.org/mozilla-central/source/content/smil/nsSMILCompositor.cpp#153
Also, if there are any timing model related issues here then I'd rather just mark it dependent on bug 474743 since that changes the timing model a lot.
> 2) Don't tell elements that they have changed when the animated value
> has not changed since the last sample
Yeah, that's good too. I think that was always the plan but it doesn't look like we're doing it yet.
Comment 4•15 years ago
|
||
(In reply to comment #3)
> (In reply to comment #0)
> > 1) Don't resample a frozen animation after it's been frozen
>
> It's supposed to do that already but I think Daniel's commented that bit out
> until we add HasChangedTarget.
Bug 533291 will address this part.
Comment 5•15 years ago
|
||
Just landed Bug 533291, which fixes this bug in my debug build. (CPU usage goes back to normal after animation completes.)
Resolving.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 6•15 years ago
|
||
Sweet. :-)
You need to log in
before you can comment on or make changes to this bug.
Description
•