RE: [VB] API for CodeCommunity [WIP] 07-30-2013, 06:49 PM
#41
(07-30-2013, 06:14 PM)Eternity Wrote:(07-30-2013, 06:06 PM)Sempiternal Wrote:(07-30-2013, 12:51 PM)Eternity Wrote:(07-30-2013, 10:43 AM)Platinum Wrote:(07-30-2013, 10:42 AM)Sempiternal Wrote: While that may be true, it isn't up to the API creator to deter instances of lag. The coder using the API may be poorly using it, but there are very professional ways to make it work.
Do you have Skype? I'd love to talk to you about some things.
Hmm yeah add me on Skype: junnesejer
Setup a thread instead of using a timer.
A constantly running thread to update data at a regular interval would actually use more memory than a timer would. It is what timers were designed to do; update data at regular intervals. Whereas threading was designed to allow asynchronous code execution. Timers are perfectly fine when used correctly and actually better than threads in some instances.
Better to not use a control when you can do the same thing without one.
That logic is so flawed.. You are completely avoiding a control that was designed to do the exact thing you want to do, without eating as much memory. Actually, using a looped thread in this case would eat much more memory than a timer.



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)



![[Image: tumblr_m4vms28lYu1qj3ir1.gif]](http://media.tumblr.com/tumblr_m4vms28lYu1qj3ir1.gif)

![[Image: Ldss8XF.png]](http://i.imgur.com/Ldss8XF.png)