Skip to content

Allow for resetting a lookup at runtime back to its original data #592

@chrispcampbell

Description

@chrispcampbell

In #472 we added support for overriding the data for lookups and data variables at runtime. This was implemented primarily to support the use case of supplying game inputs at runtime.

For the EPS model, @ToddFincannonEI has been maintaining a fork of SDE for a similar use case where they need to be able to override lookups at runtime. In their case however, they need to be able to reset a lookup back to its original data (i.e., the data in the generated model that was used to initialize the native Lookup instance). Additionally they would like to avoid malloc/free where possible for performance reasons.

When I implemented #472, I didn't include support for the "reset to original" use case (since it wasn't needed for the gaming mode use case), but with a few incremental changes we should be able to refactor the existing implementation to make that reset behavior work.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions