|
| 10 Aug 2015 07:12 PM |
My main local script runs at an average of 5 to 6% when I open the script performance tab.
Do I need optimizing? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Aug 2015 07:12 PM |
Yes
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2015 07:20 PM |
| How would I optimize? I know what's causing the the high activity, it's my while loop. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 10 Aug 2015 07:21 PM |
depends on what you are doing in your script.
In most cases you will be able to replace the loop with a .Changed event
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2015 07:25 PM |
| What happens if I need it to run all the time? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2015 07:30 PM |
5-6% WTF none of my scripts get 6% XD |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 10 Aug 2015 07:47 PM |
| post your while loop, and maybe we can see how we can help? |
|
|
| Report Abuse |
|
|