Re: [PD] Is PD using CPU optimisation?

2017-03-08 Thread Giulio Moro via Pd-list
In many Pd does this already.

https://sourceforge.net/p/pure-data/pure-data/ci/0.47-1/tree/src/d_arithmetic.c?format=raw

see "scalarover_perform" for instance: it computes a single division and then 
runs multiplications in the loop. But I think the compiler would figure out 
this on its own (perhaps with the help of -ffast-math ?).
I guess a  more optimized version would compute the division only when a new 
message is received (as opposed to once every block).
Of course there is not much that can be done for the signal version of [/~].

Compiler optimizations are there, at least in part.
https://sourceforge.net/p/pure-data/pure-data/ci/637ef74e1745a658c0cfdc40d65de189b4fbf02a/tree/configure.acSome
 architectures may require more explicit flags to perform better (e.g.: on ARM 
Cortex, you may want to tell to use -mfpu=neon to enable the use of the faster 
NEON SIMD.

Giulio
From: Dario Sanfilippo 
To: pd-list  
Sent: Wednesday, 8 March 2017, 22:37
Subject: [PD] Is PD using CPU optimisation?



Hello, list.

Would it be sensible to, for example, start using multiplications over 
divisions when possible or will the compiler take care of that?

Cheers,
Dario
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Is PD using CPU optimisation?

2017-03-08 Thread Dario Sanfilippo
Hello, list.

Would it be sensible to, for example, start using multiplications over
divisions when possible or will the compiler take care of that?

Cheers,
Dario
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] screen size tcl

2017-03-08 Thread Dan Wilcox
We ran into the same issue with libpd: 
https://github.com/libpd/libpd/issues/130 


IOhannes, is there some way to handle this without having to force English 
numbers?

> On Mar 8, 2017, at 12:59 PM, pd-list-requ...@lists.iem.at wrote:
> 
> From: Hans Roels mailto:hans.ro...@base.be>>
> Subject: Re: [PD] screen size tcl
> Date: March 8, 2017 at 12:59:22 PM MST
> To: pd-l...@iem.at 
> Reply-To: hans.ro...@base.be 
> 
> 
> Starting Pd like this "$ LANG=C pd" didn't solve the error, the plugin~-help 
> file was still white. But changing these settings did solve the problem:
> in ubuntu studio/Settings manager > Language support > Regional Formats : 
> display numbers, dates and currency in the usual format for: English (UK)
> and next restart the computer. My previous setting for displaying numbers was 
> "Deutsch"
> I'm glad that the problem is solved, thanks for the suggestion!


Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] screen size tcl

2017-03-08 Thread Hans Roels

Starting Pd like this "$ LANG=C pd" didn't solve the error, the plugin~-help 
file was still white. But changing these settings did solve the problem:
in ubuntu studio/Settings manager > Language support > Regional Formats : 
display numbers, dates and currency in the usual format for: English (UK)

and next restart the computer. My previous setting for displaying 
numbers was "Deutsch"

I'm glad that the problem is solved, thanks for the suggestion!

Hans
On 03/08/2017 03:51 PM, zmoel...@iem.at wrote:

On 03/08/2017 03:34 PM, Hans Roels wrote:

Hello,

When I try to open the plugin~-help file from the Pd browser, the whole
window is white and all objects in the file are invisible. This is the
error message:

(Tcl) UNHANDLED ERROR: bad screen distance "-75,00"
 while executing
"$tkcanvas create text $x $y -tags $tags -text $text -fill $color
-anchor nw -font [get_font_for_size $font_size]"
 (procedure "pdtk_text_new" line 2)
 invoked from within
"pdtk_text_new .xe88180.c {.xe88180.tf3b1d0 msg text} -75,00
538,00 {pddp} 10 black"
 ("uplevel" body line 4)
 invoked from within
"uplevel #0 $docmds"(Tcl) UNHANDLED ERROR: bad screen distance "86,00"

this looks like a problem with locales.
i guess you are using Pd in a Belgian (or similar) locale, and when
creating a [plugin~] object (done by the help-patch), tcl suddenly
starts formatting floating-point values with "," as the decimal mark
rather than ".", breaking everything.
i remember similar things when working on [pdgst].

try forcing the locale of Pd to "C", with something like:

$ LANG=C pd


Is this perhaps related to the screen resolution of my laptop?

i don't think so.

fsa,rd
IOhannes



___
Pd-list@lists.iem.at  mailing list
UNSUBSCRIBE and account-management 
->https://lists.puredata.info/listinfo/pd-list



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] libPD4unity and reading sample arrays

2017-03-08 Thread Dan Wilcox
You might get more traction by opening an issue on the libPD4unity Github 
repository and providing a test patch/patches which show the issue. It may be a 
problem with the unity wrapper or the underlying C# wrapper, but I would start 
with the Unity layer first.

> On Mar 8, 2017, at 4:00 AM, pd-list-requ...@lists.iem.at wrote:
> 
> From: "Scott R. Looney"  >
> Subject: Re: [PD] libPD4unity and reading sample arrays
> Date: March 7, 2017 at 5:59:05 AM MST
> To: pd-list mailto:pd-list@lists.iem.at>>
> 
> 
> continued testing reveals a strange behavior. i have been going between a 
> test Unity project using libpd4Unity and my main project. if i go to this 
> test project first and then return to my main project everything works one 
> time - i get no loading errors. but as soon as i stop the scene playback and 
> start it again, i get the errors on table loading again. i've tested it three 
> times and it's strangely consistent. so maybe the table assignments aren't 
> being purged correctly when i stop playback? that's all i can think. if it 
> thought it was already assigned it might fail assigning again. just a thought.
> 
> best,
> scott


Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] screen size tcl

2017-03-08 Thread zmoelnig
On 03/08/2017 03:51 PM, zmoel...@iem.at wrote:
> tcl suddenly starts formatting floating-point

actually i think it is sprintf() in pd-core (rather than tcl) that breaks.



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] screen size tcl

2017-03-08 Thread zmoelnig
On 03/08/2017 03:34 PM, Hans Roels wrote:
> Hello,
> 
> When I try to open the plugin~-help file from the Pd browser, the whole
> window is white and all objects in the file are invisible. This is the
> error message:
> 
> (Tcl) UNHANDLED ERROR: bad screen distance "-75,00"
> while executing
> "$tkcanvas create text $x $y -tags $tags -text $text -fill $color 
> -anchor nw -font [get_font_for_size $font_size]"
> (procedure "pdtk_text_new" line 2)
> invoked from within
> "pdtk_text_new .xe88180.c {.xe88180.tf3b1d0 msg text} -75,00
> 538,00 {pddp} 10 black"
> ("uplevel" body line 4)
> invoked from within
> "uplevel #0 $docmds"(Tcl) UNHANDLED ERROR: bad screen distance "86,00"


this looks like a problem with locales.
i guess you are using Pd in a Belgian (or similar) locale, and when
creating a [plugin~] object (done by the help-patch), tcl suddenly
starts formatting floating-point values with "," as the decimal mark
rather than ".", breaking everything.
i remember similar things when working on [pdgst].

try forcing the locale of Pd to "C", with something like:

$ LANG=C pd

> 
> Is this perhaps related to the screen resolution of my laptop?

i don't think so.

fsa,rd
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] screen size tcl

2017-03-08 Thread Hans Roels

Hello,

When I try to open the plugin~-help file from the Pd browser, the whole 
window is white and all objects in the file are invisible. This is the 
error message:


(Tcl) UNHANDLED ERROR: bad screen distance "-75,00"
while executing
"$tkcanvas create text $x $y -tags $tags -text $text -fill $color  -anchor nw -font 
[get_font_for_size $font_size]"
(procedure "pdtk_text_new" line 2)
invoked from within
"pdtk_text_new .xe88180.c {.xe88180.tf3b1d0 msg text} -75,00 538,00 {pddp} 
10 black"
("uplevel" body line 4)
invoked from within
"uplevel #0 $docmds"(Tcl) UNHANDLED ERROR: bad screen distance "86,00"

Is this perhaps related to the screen resolution of my laptop?

I'm using Pd 0.46.7 in Ubuntu Studio 16.04.1 on a Dell xps 15 9550 laptop

Hans

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list