alexvoz / as3isolib

Automatically exported from code.google.com/p/as3isolib
0 stars 0 forks source link

IsoScene.mainContainer.graphics.clear() comsume too much CPU #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduce steps
1. Create a demo like tutorial 7 but with moving duration of 10 seconds 
(and with no styling renderer)
2. Run the demo and click on the grid to move the box
3. Observe CPU consumption

Expected result:
- CPU consumption < 10%

Actual result:
- CPU goes up to 50-55%

What version of the product are you using?
- AS3IsoLib fp9 revision 247

On what operating system?
- Windows 7 RC, CPU Intel Core 2 Duo 2.53GHz, 2GB RAM

Please provide any additional information below:
- When I comment out the line: mainContainer.graphics.clear() in IsoScene 
class, CPU usage reduces and is as expected.

Original issue reported on code.google.com by trongth...@gmail.com on 30 Jul 2009 at 2:11

GoogleCodeExporter commented 9 years ago
will add conditional logic to address bug.  Unfortunately this line is needed 
in case
StyleRenderers are used in order to clear the previously drawn styling.

Original comment by jwopitz on 30 Jul 2009 at 10:06

GoogleCodeExporter commented 9 years ago
fixed for both fp9 & fp10 trunks.

Original comment by jwopitz on 30 Jul 2009 at 10:10