[Scilab-users] Headless graphics in scilab: time & memory issues

Stéphane Mottelet stephane.mottelet at utc.fr
Thu Dec 3 11:20:23 CET 2020


Le 03/12/2020 à 11:01, Antoine Monmayrant a écrit :
>
> On 03/12/2020 10:46, Stéphane Mottelet wrote:
>> In headless mode the rendering cannot use joGL and there is the same 
>> overhead as when you try to export a figure to a vectorial format 
>> (svg,pdf,eps) :
>
>
> OK thanks for the clarification.
> That's a weird and unexpected limitation, no?

No. In fact fast offscreen rendering is possible in joGL. In my previous 
answer I should have said "In headless mode the rendering *does not* use 
joGL". The pity is that the main author of Scilab Graphics Java backend 
has left the team long time ago. It would have been an easy task for him.

If your project is hosted on a Linux server, I would advise you to 
redirect the display of your Scilab instance to a virtual frame buffer 
by using any flavor of VNC (TurboVNC is nice as the server can use the 
hardware GPU capabilities of the server). In this case you can stick to 
the Rec driver and j xs2png (or any bitmap variant) will be fast. That's 
what I used with xmllab many years ago...

S.

> I would not have guessed that going headless and using a bitmap format 
> would result in facing this limitation.
> Moreover, there is still a memory issue as I can crash scilab when 
> pushing things a bit further.
>
> Antoine
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 
>

-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet




More information about the users mailing list