You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2012/03/15 10:44:38 UTC

Re: How to disable volatile buffer in an unsigned applet?

Hi all,
I've just seen that Noel just committed the patch/fix for this ...
Piotr, can you try with latest trunk (at least in youe case, using Web
Start) so we can ensure this is resolved ?
I'll create a JIRA issue for this so we can assign (and resolve) for 2.0.2 .

Thank you very much for now.

Tell to us.

Bye,
Sandro


2011/12/30 Piotr Kołaczkowski <p....@sages.com.pl>:
> Hi,
>
> The volatile buffer rendering used by default in Pivot makes performance of
> my application *terrible* on Linux. On the other hand, it makes no
> difference on Windows.
> So I wanted to switch it off.
>
> In a standalone mode, I can put a
> System.setProperty("org.apache.pivot.wtk.disablevolatilebuffer", "true")
> early in the main and it works fine.
> However, I'm struggling how to achieve the same for the applet.
> Calling System.setProperty in the constructor of my wtk.Application class is
> probably too late - no effect.
> And when I put it into my JNLP descriptor like this:
>
> <jnlp ...>
> <information>
>  ...
> </information>
> <resources>
> <j2se version="1.6+"></j2se>
> <property value="true" name="jnlp.packEnabled"></property>
> <property name="jnlp.concurrentDownloads" value="1"/>
> <property name="org.apache.pivot.wtk.disablevolatilebuffer" value="true"/>
> <jar ... />
> <jar ... />
> </resources>
>  ...
> </jnlp>
>
> the only thing I get is a SecurityException telling me it cannot read the
> org.apache.pivot.wtk.disablevolatilebuffer property.
>
> So, how should I do it?
>
> Regards,
> Piotr
>

Re: How to disable volatile buffer in an unsigned applet?

Posted by Sandro Martini <sa...@gmail.com>.
Hi Piotr,

> Oh, yeah, he committed the patch I have just sent him, right? :D
Yes (I think) :-) ...

Just created the issue:
https://issues.apache.org/jira/browse/PIVOT-842

Tell me (after some tests, don't worry, we have time) so I can mark it
as resolved.

Bye,
Sandro

Re: How to disable volatile buffer in an unsigned applet?

Posted by Noel Grandin <no...@gmail.com>.
Yes, thanks to Piotr for this patch.

On 2012-03-15 11:50, Piotr Kołaczkowski wrote:
> Oh, yeah, he committed the patch I have just sent him, right? :D
>
>

Re: How to disable volatile buffer in an unsigned applet?

Posted by Piotr Kołaczkowski <pk...@gmail.com>.
Oh, yeah, he committed the patch I have just sent him, right? :D

2012/3/15 Sandro Martini <sa...@gmail.com>:
> Hi all,
> I've just seen that Noel just committed the patch/fix for this ...
> Piotr, can you try with latest trunk (at least in youe case, using Web
> Start) so we can ensure this is resolved ?
> I'll create a JIRA issue for this so we can assign (and resolve) for 2.0.2 .
>
> Thank you very much for now.
>
> Tell to us.
>
> Bye,
> Sandro
>
>
> 2011/12/30 Piotr Kołaczkowski <p....@sages.com.pl>:
>> Hi,
>>
>> The volatile buffer rendering used by default in Pivot makes performance of
>> my application *terrible* on Linux. On the other hand, it makes no
>> difference on Windows.
>> So I wanted to switch it off.
>>
>> In a standalone mode, I can put a
>> System.setProperty("org.apache.pivot.wtk.disablevolatilebuffer", "true")
>> early in the main and it works fine.
>> However, I'm struggling how to achieve the same for the applet.
>> Calling System.setProperty in the constructor of my wtk.Application class is
>> probably too late - no effect.
>> And when I put it into my JNLP descriptor like this:
>>
>> <jnlp ...>
>> <information>
>>  ...
>> </information>
>> <resources>
>> <j2se version="1.6+"></j2se>
>> <property value="true" name="jnlp.packEnabled"></property>
>> <property name="jnlp.concurrentDownloads" value="1"/>
>> <property name="org.apache.pivot.wtk.disablevolatilebuffer" value="true"/>
>> <jar ... />
>> <jar ... />
>> </resources>
>>  ...
>> </jnlp>
>>
>> the only thing I get is a SecurityException telling me it cannot read the
>> org.apache.pivot.wtk.disablevolatilebuffer property.
>>
>> So, how should I do it?
>>
>> Regards,
>> Piotr
>>