Practice free →
Home › Per Nystrom (Object Pool), reusing pre-allocated…

Per Nystrom (Object Pool), reusing pre-allocated objects instead of new/delete each frame prevents which issue?

ACompiler warnings
BMemory fragmentation and GC stutter
CZ-fighting on transparent meshes
DAnti-aliasing artifacts
Answer & Solution
Correct answer: B. Memory fragmentation and GC stutter
Nystrom Ch. Object Pool: pre-allocate a bank of N objects, reuse them; avoids allocator pressure and GC pauses, common for bullets/particles.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions