kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #41839
Re: GAL layer question
-
To:
Jeff Young <jeff@xxxxxxxxx>, Maciej Suminski <maciej.suminski@xxxxxxx>
-
From:
Tomasz Wlostowski <tomasz.wlostowski@xxxxxxx>
-
Date:
Thu, 8 Aug 2019 00:15:55 +0200
-
Arc-authentication-results:
i=1; mx.microsoft.com 1;spf=pass (sender ip is 188.184.36.50) smtp.rcpttodomain=lists.launchpad.net smtp.mailfrom=cern.ch;dmarc=bestguesspass action=none header.from=cern.ch;dkim=none (message not signed);arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BdJQ4lSr5A9IFnoFFegPPL80U1kERkb4wzfm4QF4lIA=; b=VTg5SSt5zet2x89HuAdSSREuHNpDSEoamOUMxExG0juS9sQCkk85DXI70QFNOq2UlsqOXQCpjb45aVsdtusf0sZPLtUE2CoLhdEe2EysnX+gXkO1mGOlywRhESYjU9jtWhzSnQwCnKreblhq4iYXNKGuXMGbGBsSZSddzW1RbhqQdNTHq7Hm/Z2R5qNbAocuHfrvJx0aOVZEZPD5BnLE+hGyENCvMCU/lLkt/w6ZkxD9wprhUfykylXDmA82nUXJMo8SsvdXy7lWNidAeqtqQVOt6KPpcBjkoOIFaWJTrx7ANnqNItJDIZ85zkQDjXmzg2MGACUg6jt3209AWHHlRw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ddHt4sRy9Ftof4cSVyNEeDH78xqsf42HxpjNI6EGrqPcIMoXs4qPbCOx7CpBKDnc4Og2rvqjhOeIcoLeMS3WbqJuXO4JLrWR1HpWurgWouzooC3PaYMbP4Y/TY/LFoJ+5MRBigtyJ6c9NtkZCRgz0ee8bNB+/IRtxeT6z9i86lKCEC4Ovq2fef0Te3D9jL/If+1HxTpogcw+HVIDa972NcKr9LLQtwwHFxTqdXVxwnSltj8N80ONnWuZGbUSuwrKZXij57d4+LlTokvUrkBJ7n69Yt6wheVW/82iUvi1mJP18JU40sfLZxLGQwiBXYJP+87InY4Q+fXa8W39IxMYlQ==
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
Autocrypt:
addr=tomasz.wlostowski@xxxxxxx; prefer-encrypt=mutual; keydata= mQINBFRh3ssBEADmCSrn6qwXrSwI2/LcFSv0aXNHrUQ0MyOAHAW1Rn3LNXLcSCxep1w0iH8q M+ag0XxRVf87DGqjv8wKLGc8nIkGtrMSOuiF+hsrtjAiIrOyOipTABLapqGVj1Dm/26NCtiM /0ZU3XjKcSS5rrj4epKaTM0qW7xp6VceZgH79MbiSCjrt/r9Yhx4tGbWBaCSgTOUHwNB3/Oq 0E5VjU5SAQBQhwG71mES/xaIIUxtfxAPLxpvaq81cjTuT2VQ30T65fSDVikwXrc7M/a2hUG0 nyreo4CktY4pazofQpBA8f8gDPOY1CezY1o1or1Ey6Td/YM/G/Q2G9RZZTjPgD1KRdWIC+nG oCP0lcrMh8Ee+JgR2X7iAAfyVuKAeokxkGnCLon2qiuRG6yAGsEeunJDSd0XtBXzn71GqQH6 0NJzndNoI2PptbHMgc6bINbODkl/RFjVLVGMxDQbgxui2inpjayUZVCQ6SHiiY8BMJrpvTWK GvmgXllxGw+9IQ51u/I0W6hBdy0W/P2oXrP7V2GPDdvyIGJaecjvbkEnD1AbRvxlOjVTGFnC cW08ohzNHGfQK/MXaIpnZAWzRqJz8Wx13KkrdN1hT5quJtaHsvuxBclgHmzbqLlfvLnU7iOa tdN/JzL4L3czEFLJhnHOf9e5zd8yith9vGLUwPxjCzQvz5kBEQARAQABtC1Ub21hc3ogV2xv c3Rvd3NraSA8dG9tYXN6Lndsb3N0b3dza2lAY2Vybi5jaD6JAj4EEwECAC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h1r6+vs58a5p/lHjurNYMgbNmWUAcW3trFwXWJispd DhAcLoHO+yCvkKJabrfOZoa2
-
Cc:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
In-reply-to:
<AFB7C077-211B-447D-91B4-55CB57B5E379@rokeby.ie>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
On 07/08/2019 19:45, Jeff Young wrote:
> Hi Orson,
>
> I wanted to keep the selection highlight shadows uncached, but they need to go above the device backgrounds and sheet backgrounds.
>
> I can go ahead and put them in cached. (I just need to add some code to redraw them when the zoom level changes.)
>
Hi Jeff,
IIRC selected items are never cached in GAL, at least in pcbnew (select
moves them to m_selection which is a non-cached VIEW_GROUP).
Cheers,
Tom
>
> Cheers,
> Jeff.
>
>> On 7 Aug 2019, at 13:24, Maciej Suminski <maciej.suminski@xxxxxxx> wrote:
>>
>> Hi Jeff,
>>
>> I am afraid it is not possible. We use two framebuffers for rendering:
>> the cached one keeps in the video memory vertices that are not likely to
>> change in the near future, the non-cached is for vertices that are
>> modified (e.g. dragged tracks) and are send to the GPU every frame.
>>
>> To boost the performance even further, the framebuffers take advantage
>> of composition. The framebuffers are rendered to textures, then they are
>> blitted on the screen: first cached, then non-cached. Thanks to that,
>> the cached framebuffer might be reused for many frames when only
>> non-cached items are updated, but the drawback is that one cannot
>> interleave the rendering order.
>>
>> Is there a particular problem you are trying to solve? Perhaps it can be
>> implemented in another way.
>>
>> Cheers,
>> Orson
>>
>> On 8/3/19 11:09 PM, Jeff Young wrote:
>>> How do I interleave a GAL non-cached layer with cached layers?
>>>
>>> The selection shadow is currently non-cached, but because of that is always drawn behind device fills. Is there a way to put it between LAYER_DEVICE and LAYER_DEVICE_BACKGROUND (both of which are cached in OpenGL)?
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References