lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
15 lines • 498 B
JavaScript
import { clearCollectionEffectSystem } from "../../systems/configSystems/clearCollectionEffectSystem";
export default (cb) => {
const cache = new Map();
return (item) => {
const cached = cache.get(item);
if (cached) {
return cached.clone();
}
const result = cb(item);
cache.set(item, result.clone());
clearCollectionEffectSystem.add(cache);
return result.clone();
};
};
//# sourceMappingURL=computeClonePerFrame.js.map