MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Dynamic performance - input fields slow

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100183] Re: Dynamic performance - input fields slow
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Wed, 27 May 2009 04:08:28 -0400 (EDT)
  • References: <gvdqvf$6s1$1@smc.vnet.net>

I don't seem to have this problem. Perhaps something you entered
that's causing the problem?

Cheers -- Sjoerd

 On May 25, 12:13 pm, nonag... at gmail.com wrote:
> Hello,
>
> I'm writing a Dynamic module with 3D graphics and several input
> fields.  Once the 3D plot is rendered, simply typing in the input
> fields become extremely slow (even though the graphic is not
> changing).
>
> Here's a simple example:
>
> DynamicModule[{f, g},
>  {InputField[Dynamic[f], FieldSize -> 10],
>   InputField[Dynamic[g], FieldSize -> 10],
>   Dynamic[Plot3D[f, {x, -2, 2}, {y, -2, 2}]]
>   }
>  ]
>
> Initially, both input fields respond quickly to typing.  If I enter
> something in the first, like x, then the plot shows, and the input
> fields no longer respond quickly to typing.  If I do the same thing
> with Manipulate, I don't experience this problem:
>
> Manipulate[
>  Plot3D[f, {x, -2, 2}, {y, -2, 2}],
>  {f}, {g}]
>
> I would like to use Dynamic rather than Manipulate because the
> eventual UI will be quite a bit more complicated, but I'm not sure
> what's causing the slow performance.  Does anybody have any tips?
>
> Thanks!



  • Prev by Date: Re: Keep Slider Consistent With a Slow Graph
  • Next by Date: Re: TRANSFER FILE NAMES
  • Previous by thread: Re: Dynamic performance - input fields slow
  • Next by thread: Re: Dynamic performance - input fields slow