[Gambas-user] Experiencing a "flicker" when "show"ing a form ...

Fabien Bodard gambas.fr at ...626...
Mon Oct 15 11:46:16 CEST 2012


2012/10/14 Gerry Douglas <geraldpdouglas at ...626...>:
> Thanks you Benoît,
>
> I have done some experimentation and this is what I have seen so far ...
>
> If I insert a Wait 0.3 between the Show for the new form and the hide for
> the current form it seems to significantly reduce the flicker, which
> supports your hypothesis I believe.
>
> If I switch the order and hide the current form, followed by a Wait 0.3,
> then Show the new form, the desktop is visible.  I have done this roughly
> 20 times and every time the order seems to be maintained.
>
> How do I disable desktop composition?
>
> On Sun, Oct 14, 2012 at 11:35 AM, Benoît Minisini <
> gambas at ...1...> wrote:
>
>> Le 14/10/2012 17:12, Gerry Douglas a écrit :
>> > Benoît,
>> >
>> > Thanks you for working on this.  So to build a db.gkt applications I
>> select
>> > GTK+ application when creating the project?  I tried this, but I still
>> see
>> > the flicker.  Would you have time to send me a sample project where there
>> > is no flicker for me to try on my computer?
>> >
>> > Regards<
>> > Gerry.
>> >
>>
>> I didn't succeed in removing the flicker. I don't understand why there
>> is a flicker at all, and I didn't notice it with gb.gtk, or when I
>> disable the desktop composition in KDE.
>>
>> I actually don't know, when you show a window and hide another one, if
>> we have the guarantee that this is done in the same order.
>>
>> I don't have the flicker with desktop composition disabled, but I see a
>> blink. So I think that with desktop composition enabled, you see the
>> background during the flicker, because the compositor has cached it,
>> whereas with no composition, there is no cache, and the background does
>> not have the time to redraw itself because the second fullscreen window
>> appears.
>>
>> In other words, we have the following sequences:
>>
>> Desktop composition enabled:
>>
>> 1) The first fullscreen window is hidden.
>> 2) The background is redrawn (-> flicker).
>> 3) The second fullscreen window is shown.
>>
>> Desktop composition disabled:
>>
>> 1) The first fullscreen window is hidden.
>> 2) The background is asked to be redrawn but does not have the time to
>> do it (-> just a little blink).
>> 3) The second fullscreen window is shown.
>>
>> And exchanging the Show/Hide calls in the Gambas code seems to change
>> nothing! Not logical, is it?
>>
>> --
>> Benoît Minisini
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

alt+maj+F12

and in the seting >Desktop>desable desktop effect at start

-- 
Fabien Bodard




More information about the User mailing list