the form timer is ok because it is attached to a parent form.
The problem is the shader demo (in fact nearly all qt demo) are
not re-entrant safe.  Ideally it should either launch each 
instance into a a new locale, or prevent launching if there is
already an existing instance.  This is a program design problem 
a quick fix is to tell users do not do that. 
(qt demo authors are lazy).

Вс, 28 июн 2015, Raul Miller написал(а):
> Nice!
> 
> As an aside, I have noticed a problem: if I click on the "OK" button
> for the shader demo, while the demo is running, I'll get a second
> instance of the demo. The cube in the first instance freezes, and the
> cube in the second instance spins faster.
> 
> Worse, when shutting down the demo, I get into an infinite error
> situation and have to shut down J from the outside.
> 
> I think the issue here has to do with the use of the timer. I don't
> think we have an option to make timers in a locale, and we haven't
> defined any dispatching system to support multiple locales. Perhaps
> the thing to do here, until we can come up with a better approach, is
> refuse to run if the timer is already in use?
> 
> What do you think?
> 
> Thanks,
> 
> -- 
> Raul
> 
> 
> 
> 
> On Sat, Jun 27, 2015 at 11:59 PM, bill lam <bbill....@gmail.com> wrote:
> > Thanks. qt demo updated.
> >
> > Сб, 27 июн 2015, Raul Miller написал(а):
> >> If we are talking about the shader demo in the qt demos, on my screen,
> >> the color black is adjacent to white, blue and cyan.
> >>
> >> Instead, I believe it should be:
> >>
> >> colorData=: 1&fc , C=: 0 1 2 2 1 3&{"2 ] 6 4 3$ , CC=:0&".@(-.&',') ;._2 [ 
> >> 0 : 0
> >> 0 0 1
> >> 1 0 1
> >> 0 1 1
> >> 1 1 1
> >> 1 0 1
> >> 1 0 0
> >> 1 1 1
> >> 1 1 0
> >> 1 0 0
> >> 0 0 0
> >> 1 1 0
> >> 0 1 0
> >> 0 0 0
> >> 0 0 1
> >> 0 1 0
> >> 0 1 1
> >> 0 0 0
> >> 1 0 0
> >> 0 0 1
> >> 1 0 1
> >> 0 1 1
> >> 1 1 1
> >> 0 1 0
> >> 1 1 0
> >> )
> >>
> >> Or, more compactly:
> >>
> >> colorData=: 1&fc , #: 0&".;._2]0 :0
> >>   1 5 3 3 5 7
> >>   5 4 7 7 4 6
> >>   4 0 6 6 0 2
> >>   0 1 2 2 1 3
> >>   0 4 1 1 4 5
> >>   3 7 2 2 7 6
> >> )
> >>
> >> Note also that vertexData could be specified similarly. For example:
> >>
> >> vertexData=: 1&fc , _1+2* #: 0&".;._2]0 :0
> >>   1 5 3 3 5 7
> >>   5 4 7 7 4 6
> >>   4 0 6 6 0 2
> >>   0 1 2 2 1 3
> >>   0 4 1 1 4 5
> >>   3 7 2 2 7 6
> >> )
> >>
> >> Thanks,
> >>
> >> --
> >> Raul
> >>
> >> On Sat, Jun 27, 2015 at 9:52 PM, bill lam <bbill....@gmail.com> wrote:
> >> > I made an attemp to implement color scheme proposed by Raul and Mike
> >> > in the opengl shader demo of j804 beta. Please update qt addon
> >> > to check if the result agrees with viewmat, and fix shader if
> >> > necessary. F10 is used to start/stop timer.
> >> >
> >> > --
> >> > regards,
> >> > ====================================================
> >> > GPG key 1024D/4434BAB3 2008-08-24
> >> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> >> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> >> > ----------------------------------------------------------------------
> >> > For information about J forums see http://www.jsoftware.com/forums.htm
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > --
> > regards,
> > ====================================================
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to