Okay, here's my question again. Latest git pull seems to have fixed
the segfault, but the text still slows everything down tremendously,
which, since the app is all about drawing text on the grid, is
critical.

martin

On Fri, Aug 22, 2008 at 2:05 AM, Martin DeMello <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 31, 2008 at 11:35 PM, Martin DeMello
> <[EMAIL PROTECTED]> wrote:
>> I've attached a copy of my current work-in-progress. It's a crossword
>> editor; right now it just provides an editor for the grid (letters and
>> black squares). The problem is, it's really slow - there's a
>> perceptible lag between my hitting a key and the cursor moving - and I
>> haven't been able to figure out why. Any pointers? Is there a way to
>> profile it?
>
> Okay, I've conclusively identified the culprit - it's the text. If I
> comment out the call to draw in the letters and numbers, everything
> speeds way up. Anything I can do about that?
>
> Plus playing with the code a bit I managed to get a reproducible
> segfault. I've put in comments to show where. Just start up the app
> and hit space a few times.
>
> martin
>

Attachment: xword.rb
Description: Binary data

Reply via email to