Cache needed for this?

Rakka Rage 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 1

does anyone know if anything is cached automatically? the editor shoes some calculable values it knows these dont change am i wasting my time caching those?

it could and should cache those automatically right?

or idk thanks

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Satisfaction mark by Rakka Rage 4 years ago

Hi Rakka,

Yes, cache is needed for this if you want to avoid multiplying the value each time the output is fetched (however, for such a small operation, it would likely be premature optimization).

The Bolt predictive debugger is smart enough to know these are predictable, but the runtime doesn't cache any value behind your back to keep the graph's understanding clear and predictable.