Page 1 of 1

Ghostscript Threads to improve rendering speed

Posted: Sun Mar 27, 2016 1:17 pm
by timur_davletshin
Is is possible/safe to specify Ghostscript rendering threads in TurboPrint (e.g. additional -dNumRenderingThreads) for GSZEDO or GS? I see GSCOMMANDLINE in pstoturboprint script with GS parameters. Is it what I'm looking for?

Anyway it would be great to see this functionality out of the box. For example, recent Raspberry Pi comes with quad core CPU which can improve GS rendering significantly.

Re: Ghostscript Threads to improve rendering speed

Posted: Tue Mar 29, 2016 9:06 am
by zedonet
Hello,

yes, it is possible to add the option and it should be safe. Please go ahead and add the option -dNumRenderingThreads=4 and post your results.

Re: Ghostscript Threads to improve rendering speed

Posted: Fri Apr 01, 2016 1:07 pm
by timur_davletshin
Yes, it does work for me. It seems to be at least twice faster, which is crucial for RPi.

Re: Ghostscript Threads to improve rendering speed

Posted: Thu Mar 02, 2017 4:48 pm
by nortizt
Hello,

I am also using a Rpi and need to improve the time it takes from when I send the printing command to when the printer starts printing. I am afraid I am a really basic Rpi user and all this "GSZEDO/GS" sounds like chinese to me :oops: .

Where should I make this modification? Is there any other way to improve the rendering time? would overclocking improve this in any way?

Thank you for your help!

Re: Ghostscript Threads to improve rendering speed

Posted: Fri Mar 03, 2017 2:49 pm
by zedonet
Hello,

the file to modify is

/usr/lib/cups/filter/pstoturboprint

and the line to modify is line 307 (TurboPrint 2.42-1, may be a different line for upcoming versions)
old:
GSCOMMANDLINE="gs -sDEVICE=$GSDRIVER -r${GSXDPI}x$GSYDPI -g${GSWIDTH}x$GSHEIGHT\

new:
GSCOMMANDLINE="gs -sDEVICE=$GSDRIVER -r${GSXDPI}x$GSYDPI -g${GSWIDTH}x$GSHEIGHT -dNumRenderingThreads=4 \

This will use all of the 4 cores of the Raspberry Pi 2 / 3 and is more efficient and safer than overclocking.

Re: Ghostscript Threads to improve rendering speed

Posted: Sun Mar 05, 2017 7:07 pm
by nortizt
Thank you!