qingyangmoke / explorercanvas

Explorercanvas (excanvas.js) is an open source, Apache-licensed JavaScript library that implements the canvas API in Internet Explorer
Apache License 2.0
0 stars 0 forks source link

Some kind of memory leak bug under IE8 #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call a small function that draws on the surface something simple. (every
100ms is good enough).
2. see how's the FPS falls down after a few seconds. and cpu load raises
from 10% to almost 100%.

What is the expected output? What do you see instead?
stable cpu usage (and low...)

What version of the product are you using? On what operating system?
windows 7
ie8

Please provide any additional information below.
please fix this, i sure i something small.

i attached a small file that shows the problem, please let me know if the
results were the same on your pc.

Thanks for all the hard and good work.
Roey :)

Original issue reported on code.google.com by roeyco...@gmail.com on 16 Feb 2010 at 2:26

Attachments:

GoogleCodeExporter commented 9 years ago
ExCanvas uses VML elements. Since you are never clearing the canvas it will 
keep 
adding elements which will make it use more memory and make painting slower.

If you add a clearRect(0, 0, width, height) in there you should not see any 
memory leaks 
or performance degradation.

Original comment by erik.arv...@gmail.com on 23 Feb 2010 at 6:24