screeps / driver

ISC License
26 stars 36 forks source link

Make visuals sticky #15

Open AlinaNova21 opened 7 years ago

AlinaNova21 commented 7 years ago

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