Skip to content

Conversation

@AlinaNova21
Copy link
Contributor

Note: This is a resubmission of #10 due to accidental closing
This removes gametime from visuals redis keys and multiplies the timeout for visuals by config.visualCacheTicks (Set to 20).
This allows visuals to be 'sticky' after rendering, reducing CPU usage by not having to render visuals every tick.
As discussed in #10, we could add a method to RoomVisual to toggle sticky status (Use visualCacheTicks if enabled, otherwise 1)
Companion PR for backend at screeps/backend-local#7

Added config.visualCacheTicks (Set to 20)
Increased visual timeout based on config.visualCacheTicks
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