The demo was more to show the effect nothing stops you from using it to prerender some images although I don't think the overhead is large at all so realtime use is not out of the question. The method above causes pattern randomness to get a true random looking disolves using primes see
http://www.developer.com/tech/article.php/10923_3496381_3
it's in C++ the principles are the same
http://www.developer.com/tech/article.php/10923_3496381_3
it's in C++ the principles are the same