I have the same problem when trying to set threshold at render callback time, it has no effect.
When I update the XML via setXmlData, there is another useful callback: FC_DataLoaded, but I have the same problem: If I call setThreshold in this callback, it has no effect.
I'll try the timeout stuff.