# Optimizing code for removing lag

**URL:** <https://forum.kirupa.com/t/optimizing-code-for-removing-lag/325423>\
**Category:** flash\
**Created:** [October 14, 2011, 7:48am UTC](https://forum.kirupa.com/t/optimizing-code-for-removing-lag/325423 "2011-10-14T07:48:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Post date:** [October 14, 2011, 7:48am UTC](https://forum.kirupa.com/t/optimizing-code-for-removing-lag/325423/1 "2011-10-14T07:48:20Z")

</div>

I recently completed the battle engine for my game.  
But the problem is that it is lagging horribly.  
Please suggest ways to optimize the code(because the graphics I’m using are really very basic)

Please tell if you need the code to help.
