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.
Ghostscript Threads to improve rendering speed
-
- Posts: 9
- Joined: Sun Mar 20, 2016 3:36 pm
Re: Ghostscript Threads to improve rendering speed
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.
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.
-
- Posts: 9
- Joined: Sun Mar 20, 2016 3:36 pm
Re: Ghostscript Threads to improve rendering speed
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
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 .
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!
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 .
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
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.
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.