ruby-****@sourc*****
ruby-****@sourc*****
2010年 2月 8日 (月) 11:47:41 JST
------------------------- REMOTE_ADDR = 83.19.226.42 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?analyzer ------------------------- @@ -4,7 +4,7 @@ It's extremely slow so treat that just as a proof-of-concept code that shows how to use appsink. About 60% of CPU usage is now taken by drawing PNG file, but even if you disable it, it still remains slow. Propably the reason is that in Ruby you cannot just cast buffer to integer or float as you can do in C, so it takes a lot of computing power to convert every frame (that is actually a String) to anything reasonable. -This script draws first n pixels (equal to @samples * @samples_per_pixel), not the whole image, but it could be easily modified to draw all samples. +This script draws first n pixels (equal to the value of @samples), not the whole image, but it could be easily modified to draw all samples. ==Download {{attach_anchor("analyzer.rb")}}