I'm using several plugins that use set_timeout to create a background-ish task (the function calls set_timeout(fn, 1000) where fn is the function itself). This seems to cause major CPU usage issues over time. At startup it isn't a big deal, but if I leave the editor running for more than 30-45 minutes CPU goes through the roof. Sample shows that the vast majority of time is being spent running NSDelayedPerforms, which is why I suspect set_timeout (I might be entirely wrong there though). Is there a better way to handle this? It would be nice if there was an event callback which was just called every X seconds or frames, or just a recurring version of set_timeout. http://paste.pocoo.org/show/353706/
has the full sample output if it helps.