Re: [PD] TkWidget library

2007-11-03 Thread João Miguel Pais
Even tho the screen updates at least evern 16ms, most GUI object do not benefit from that at all. For example, number boxes would be totally fine updating every 100ms or more, unless you like the look of blurry numbers flying by. Sliders and buttons probably would be fine at 50ms also It

Re: [PD] TkWidget library

2007-11-03 Thread vade
for what its worth, Max has a preference that sets the frequency of all screen refreshes of patcher objects. This can be useful to reduce GUI overhead on heavy patches. On Nov 3, 2007, at 5:05 PM, João Miguel Pais wrote: Even tho the screen updates at least evern 16ms, most GUI object do

Re: [PD] TkWidget library

2007-11-02 Thread Hans-Christoph Steiner
On Nov 1, 2007, at 1:06 PM, Martin Peach wrote: Mathieu Bouchard wrote: On Thu, 1 Nov 2007, Martin Peach wrote: It doesn't make sense to update a box or the screen more often than once per frame on the viewing device, but of course that signal (the vertical retrace or frame sync) is

Re: [PD] TkWidget library

2007-11-01 Thread Mathieu Bouchard
On Thu, 1 Nov 2007, Martin Peach wrote: It doesn't make sense to update a box or the screen more often than once per frame on the viewing device, but of course that signal (the vertical retrace or frame sync) is often hard to obtain. openGL sometimes has it builtin, does tk? 60Hz is

Re: [PD] TkWidget library

2007-11-01 Thread Martin Peach
Mathieu Bouchard wrote: On Thu, 1 Nov 2007, Martin Peach wrote: It doesn't make sense to update a box or the screen more often than once per frame on the viewing device, but of course that signal (the vertical retrace or frame sync) is often hard to obtain. openGL sometimes has it builtin,

Re: [PD] TkWidget library

2007-11-01 Thread Hans-Christoph Steiner
On Nov 1, 2007, at 12:20 PM, Mathieu Bouchard wrote: On Thu, 1 Nov 2007, Martin Peach wrote: It doesn't make sense to update a box or the screen more often than once per frame on the viewing device, but of course that signal (the vertical retrace or frame sync) is often hard to

Re: [PD] TkWidget library

2007-10-31 Thread João Miguel Pais
For the gui-edit patch that I made some time ago to work perfectly, a state query command would be necessary. Then it would be possible to send the properties of each element to pd, and do whatever you want with it. How about also checking out if there would be any other alternative to

Re: [PD] TkWidget library

2007-10-31 Thread cdr
How about also checking out if there would be any other alternative to Tcl/Tk? It's still quite slow, and some not so uncomplicated things (like a gui element in a gop) take lots of cpu for what they give. a lot of this has nothing to do with TCL/Tk being slow, but PD using C string

Re: [PD] TkWidget library

2007-10-31 Thread Mathieu Bouchard
On Wed, 31 Oct 2007, João Miguel Pais wrote: How about also checking out if there would be any other alternative to Tcl/Tk? It's still quite slow, and some not so uncomplicated things (like a gui element in a gop) take lots of cpu for what they give. I think that it's easier to work on

Re: [PD] TkWidget library

2007-10-31 Thread Mathieu Bouchard
On Wed, 31 Oct 2007, cdr wrote: How about also checking out if there would be any other alternative to Tcl/Tk? It's still quite slow, and some not so uncomplicated things (like a gui element in a gop) take lots of cpu for what they give. a lot of this has nothing to do with TCL/Tk being slow,

Re: [PD] TkWidget library

2007-10-31 Thread Hans-Christoph Steiner
On Oct 31, 2007, at 12:51 PM, Mathieu Bouchard wrote: On Wed, 31 Oct 2007, cdr wrote: How about also checking out if there would be any other alternative to Tcl/Tk? It's still quite slow, and some not so uncomplicated things (like a gui element in a gop) take lots of cpu for what they

Re: [PD] TkWidget library

2007-10-31 Thread Hans-Christoph Steiner
On Oct 31, 2007, at 4:45 AM, cdr wrote: How about also checking out if there would be any other alternative to Tcl/Tk? It's still quite slow, and some not so uncomplicated things (like a gui element in a gop) take lots of cpu for what they give. a lot of this has nothing to do with

Re: [PD] TkWidget library

2007-10-31 Thread Mathieu Bouchard
On Wed, 31 Oct 2007, Hans-Christoph Steiner wrote: First off, Tcl/Tk 8.5 looks to have a lot of performance improvements, especially on Mac OS X, as it shifts from Carbon/QuickDraw to Cocoa/CoreGraphics. I said that before. I'm claiming that Tcl/Tk 8.5 is too slow. Tcl/Tk 8.4 is even

Re: [PD] TkWidget library

2007-10-31 Thread Hans-Christoph Steiner
On Oct 31, 2007, at 3:12 PM, Mathieu Bouchard wrote: On Wed, 31 Oct 2007, Hans-Christoph Steiner wrote: First off, Tcl/Tk 8.5 looks to have a lot of performance improvements, especially on Mac OS X, as it shifts from Carbon/ QuickDraw to Cocoa/CoreGraphics. I said that before. I'm

Re: [PD] TkWidget library

2007-10-31 Thread Hans-Christoph Steiner
The state query is a very good idea, feel like adding it to the wiki? :) .hc On Oct 31, 2007, at 8:26 AM, João Miguel Pais wrote: For the gui-edit patch that I made some time ago to work perfectly, a state query command would be necessary. Then it would be possible to send the

Re: [PD] TkWidget library

2007-10-31 Thread Mathieu Bouchard
On Wed, 31 Oct 2007, Hans-Christoph Steiner wrote: This is not where the bottleneck is. I thought the network socket was the bottleneck. The example I am thinking of is getting the mouse pointer coords from Tk. That generates a lot of network traffic, it would be nice this happened in the pd

Re: [PD] TkWidget library

2007-10-31 Thread Martin Peach
Hans-Christoph Steiner wrote: On Oct 31, 2007, at 3:12 PM, Mathieu Bouchard wrote: On Wed, 31 Oct 2007, Hans-Christoph Steiner wrote: First off, Tcl/Tk 8.5 looks to have a lot of performance improvements, especially on Mac OS X, as it shifts from Carbon/ QuickDraw to Cocoa/CoreGraphics.

Re: [PD] TkWidget library

2007-10-31 Thread Mathieu Bouchard
On Wed, 31 Oct 2007, Martin Peach wrote: Maybe if redundant calls could be pruned before going through the socket things would work better. For instance if a number box is being updated a few hundred times a second then it would be better if only the last update per signal block would get

Re: [PD] TkWidget library

2007-10-31 Thread Martin Peach
Mathieu Bouchard wrote: On Wed, 31 Oct 2007, Martin Peach wrote: Maybe if redundant calls could be pruned before going through the socket things would work better. For instance if a number box is being updated a few hundred times a second then it would be better if only the last update

Re: [PD] TkWidget library

2007-10-30 Thread cdr
http://puredata.info/dev/TkWidget Please add ideas, comments, etc this, join in! The next thing to for GUIs after this is to extend tclpd so that you can write totally custom GUI objects completely in is there something wrong with the [widget] external that made you want to reinvent

Re: [PD] TkWidget library

2007-10-30 Thread Hans-Christoph Steiner
On Oct 30, 2007, at 5:01 AM, cdr wrote: http://puredata.info/dev/TkWidget Please add ideas, comments, etc this, join in! The next thing to for GUIs after this is to extend tclpd so that you can write totally custom GUI objects completely in is there something wrong with the [widget]