Hi,
I’m struggling with some artworks I create which require a very long rendering time.
Beyond refactoring and code optimization I’d like to know what would be the best hardware I could use to speed things up?
Thanks
Hi @goldorak,
Which renderer are you using?
You can see this previous thread about GPU and hardware accelerated rendering:
The impact of hardware on your application’s performance is going to depend heavily on your code. If you are using WebGL then you can just use the rule of thumb that a GPU that is faster and has more memory will give you better performance, and many browsers will use the GPU for rendering canvas elements even using the 2d rendering context. However, a lot will depend on how your drawing code is structured. If you have a large number of p5.js drawing instructions per frame, there will be a lot of work done on the CPU in the javascript engine before the GPU is ever able to take over.
The only way to get good advice on this is to share an example of your application w/ code.
That said, technically, “what would be the best hardware I could use to speed things up” is pretty easy to answer: get a CPU with the highest available clock speed and the most L1/L2 cache; a motherboard with the fastest available Front Side Bus speed; a sizable amount of memory (>=16GB) with the fastest available memory clock frequency and lowest latency; a GPU with the fastest clock speed, the most GPU memory, and the highest memory bandwidth. Such a setup will be astronomically expensive and only give you marginal gains over something more middle-of-the-road. The moral of the story is this is not a particularly useful question.