|
Post by disknoir on Feb 13, 2021 17:17:14 GMT
So, I've just finished chapter 2. My program takes about 3 minutes to render the projectile motion image.
Is this normal?
Thanks!
|
|
cmo
New Member
Posts: 6
|
Post by cmo on Feb 14, 2021 15:17:53 GMT
It depends. But speaking generally, no, that isn't normal.
As a datapoint: a 900x550 "projectile motion" canvas takes about 1s to render on my Raspberry Pi 400 (not exactly a computational powerhouse).
If you post some code, maybe we can help?
-C
|
|
|
Post by disknoir on Feb 16, 2021 20:40:05 GMT
Mmmm, that's good thanks for the reply. I'll have a look at my code and try to optimise it. If I can't figure it out, I'll post the code then Edit: So, I just optimised it. I went from using strings to build up the ppm, to using a byte array. Strings are immutable in Go, so I was creating MANY of them! Renders super quick now.
|
|