• Editor
  • PNG Sequence rendering - CPU or GPU?

  • Изменено
Related Discussions
...

Hi,
So we've just started using spine for rendering animated png sequences, i'm finding the Exporting process to be rather slow (compared to something like After Effects)..
I noticed it doesn't seem to use the CPU during this operation, so i'm guessing its rendering via the GPU??
Would a newer graphics card accelerate the exporting times?

Hello, our Mario says it's done via the GPU. Speed is mostly a function of export resolution. It should be faster in the 3.7-beta (you will have to download the Spine installer again to ensure the best performance) you could try it and compare if it's better, since it's png sequences you shouldn't have runtime compatibility issues.

Thanks! Yeh i will look into that.

If you were watching something like Task Manager's CPU monitor as Overall Utilization, you might not see how much an operation actually depends on the CPU.
If you switch the view to "Logical Processors", you'll see how much Spine actually hits your CPU as single thread when exporting PNGs.

Rendering is done by GPU (pretty much the same way how it renders things in the Spine viewport), but PNG compression is done on the CPU.
Highly-compressed PNGs can take a really long time but, depending on the image, the compression can mean a big difference in file size.
Spine 3.6 doesn't let you choose the compression level but a bunch of new export settings have been added in 3.7. This includes compression level.

With 3.7, you can probably do it this way:

  1. Export PNG sequences at the lowest compression level.
  2. Run your exported files through a free PNG compressor at a later time if you need them to be smaller. (eg, On Windows, PNGGauntlet works for this purpose. You can run it multi-threaded to compress multiple files at a time, or run it single-threaded so you can still use your computer while it runs in the background. Sadly doesn't have any middle options.)

As for getting a new GPU, if you're not experiencing slowdown in the viewport, buying a new graphics card probably won't make much of a difference for PNG export.

Thanks, that's all great information. With our workflow, we tend to keep all the PNG quality to raw, until the final stages, then we use 'Colour Quantising' programs to strip out colours and bring the overall PNG sequence size down.
TBF, i was exporting a 60 frame sequence @ over 1500x1500 so slowdown was inevitable.

We may add quantizing for PNG in the future. We do it already for GIF and we have more powerful and flexible options than any program I've seen.

3 месяца спустя

I needed to render some large 2K exports that it was taking 14 hours to render! I came across this post, I updated to latest beta, and now exporting png with no compression and crop feature on, it went down to 20 minutes!! You guys are the best. Thank you so much!