Skip to content

[FEATURE REQUEST] Optionally Increment Virtual Time With Every Get #3

@tungs

Description

@tungs

Is your feature request related to a problem? Please describe.
Certain webpages and libraries run loops based off of time. For instance, breathe.js will loop until 14 milliseconds have passed. If virtual time is not incremented at all, then this condition is never reached, creating unintended behavior and sometimes infinite loops.

Describe the solution you'd like
One way to mitigate this is to automatically increment time a fractional amount each time virtual time is retrieved. This time increment can be customized by the user. This is potentially complicated because timeweb has a virtual timeline of future code to be run that is possibly contingent on virtual time not incrementing. This should be examined of whether this change would possibly break the virtual timeline.

Describe alternatives you've considered
The client code can also be altered to instead have additional conditions. For instance, breathe.js has a throttling mode where after a certain number of iterations, it will relinquish, in addition to checking time.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions