Originally Posted by ffcloud2000
Causes my fps to drop hard when i run it and makes AutoMcRun's memory usage to go through the roof
|
Would I be correct in assuming the FPS drop is only temporary? I don't see anything obviously wrong with the code.
This kind of performance impact is actually inevitable for any auto-junk selling addon. The API calls involved generate a lot of information (read: memory usage). There's also the effect of all the "sell item" calls which depends on your latency. This is simply the side effect of sending several (dozens?) of server requests.
The only way to get around these is to sell items asynchronously, but that requires a lot of extra code overhead (and if you walk away from the vendor during the process, not everything will be sold).