On Mon, Sep 08, 2008 at 09:53:13AM -0700, Martin DeMello wrote: > No, same problem. Just hold down one of the arrow keys and watch the > moving square not keep up. It's partly a result of drawing too many > objects, I think, and partly that the objects are text - for instance, > if I do this: > > fill rgb(155, 155, 255) > p,q,r,s = inner_bounds(y,x) > star(p, q, 5, SIZE/2, SIZE/4) > fill rgb(255, 155, 255) > star(p, q, 10, SIZE/2, SIZE/4) > #para n, :left => a - 2, :top => b - 2, :font => '8px' > #para l, :left => a + 7, :top => b + 5, :font => '14px bold' > > things slow down a bit, but not as much as if I drew the text
Ah, okay. Yeah, it's faster if you only draw the paragraphs you need (as in the attached.) I'll work on getting you some more text speed. There is quite a lot that can be done to speed it up. _why
xword-if.rb
Description: application/ruby
