Skip to content

Conversation

@autopulated
Copy link

Instead of setting a timeout each time the cache is accessed, set only one
timeout at a time, and keep a record of which items it should be updating.

This seems to significantly improve performance in our use-case (note that the overhead of the old version is in the many many timeout functions, so you wouldn't notice it when drawing a single scene – but it adds up if you're progressively drawing a scene over time.)

Instead of setting a timeout each time the cache is accessed, set only one
timeout at a time, and keep a record of which items it should be updating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant