Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make visuals sticky #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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