# Slow drawing

**URL:** <https://forum.kirupa.com/t/slow-drawing/230178>\
**Category:** Uncategorized\
**Created:** [June 23, 2007, 4:39pm UTC](https://forum.kirupa.com/t/slow-drawing/230178 "2007-06-23T16:39:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarXploser](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/starxploser/32/875_2.png) [@StarXploser](https://forum.kirupa.com/u/StarXploser)\
**Post date:** [June 23, 2007, 4:39pm UTC](https://forum.kirupa.com/t/slow-drawing/230178/1 "2007-06-23T16:39:52Z")

</div>

Hello,  
I’m creating a website that relies heavily on drawRect to draw boxes dynamically. I’m only drawing 3 boxes at all time. I’m getting terrible performance. I remember reading about using default lineStyle or no lineStyle to speed things up, so i tried it. It made a pretty big difference. Why is lineStyle so slow? is there a way to speedup drawing? I must be doing something wrong. There’s no way that some people can create decent 3d application with AS3 but i can’t even draw 3 2d boxes without killing my CPU…
