in reply to Re: Games in Perl
in thread Games in Perl

Hi gri6507,

I too am messing around with 2D and 3D graphics
in Perl/Tk. What I want to know is have you been
able to get around the "flashing" problem when
animating things on the canvas.

Any suggestion or moral support welcome.

--
Its like a dog that can sing and dance.
It's remarkable because it can do it.
Not that it can do it well.

Replies are listed 'Best First'.
Re: Re: Re: Games in Perl
by gri6507 (Deacon) on Jan 21, 2002 at 23:14 UTC
    I am not sure which "flashing" problem you are talking about here. If you are talking about refreshing objects then I have a few quick suggestions:

  • if it's a repeated movement use $mw->repeat() function wish short timeouts (like 100ms) and have your routine move the object(s) a little bit at a time.
  • Try not to move EVERYTHING. Move only the things that in your scope of view.
  • Put more RAM into your computer.
  • I hope this helps. If you have any more questions, feel free to drop me a line.