On that note, can any suggest a good way to measure the performance of various Shoes functions, especially drawing?

-- Ernie P.

On Apr 17, 2008, at 3:48 PM, Harold Hausman wrote:

o.0? ::

Shoes.app :width=>600, :height=>450 do

 button "Slow" do
   1.upto(60) do |theta|
     append {line 0, 0, theta*10, 450}
   end
 end

 button "Fast" do
   append do
     1.upto(60) do |theta|
       line 600, 0, theta*10, 450
     end
   end
 end

end

# I kind of like calling append a lot because its fun to watch things being # drawn, but the performance on my machine is prohibitive. Is anyone else
# seeing similar things?

Reply via email to