add support for temporary per-frame allocs, update comments