Is creating new objects each frame the canonical way to go? (from Pong book example) #1075
-
Hi, I was working through the pong example just now and stumbled over the part where it's recommended to create a Just wondering for some context, thanks for any insights. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can do it either way, whatever you find easier. The approach used in the book is what we use in our more recent games having taken everything we've learnt. Creating and dropping an |
Beta Was this translation helpful? Give feedback.
You can do it either way, whatever you find easier. The approach used in the book is what we use in our more recent games having taken everything we've learnt. Creating and dropping an
Object
is always cheap.