started adding "render primitives on heap" toggle option