Skip to content

Commit

Permalink
Removed gametime from visuals saving
Browse files Browse the repository at this point in the history
Added config.visualCacheTicks (Set to 20)
Increased visual timeout based on config.visualCacheTicks
  • Loading branch information
AlinaNova21 committed May 19, 2017
1 parent 64fb0d0 commit 024a8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ _.extend(config.engine, {
cpuBucketSize: 10000,
customIntentTypes: {},
historyChunkSize: 20,
useSigintTimeout: false
useSigintTimeout: false,
visualCacheTicks: 20
});

exports.customObjectPrototypes = [];
Expand Down
4 changes: 2 additions & 2 deletions lib/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ process.on('message', (message) => {
var visual = fakeConsole.getVisual(runtimeData.user._id);
for (var roomName in visual) {
env.setex(
env.keys.ROOM_VISUAL + runtimeData.user._id + ',' + roomName + ',' + runtimeData.time,
driver.config.mainLoopResetInterval/1000,
env.keys.ROOM_VISUAL + runtimeData.user._id + ',' + roomName,
driver.config.visualCacheTicks * (driver.config.mainLoopResetInterval/1000),
visual[roomName]);
}

Expand Down

0 comments on commit 024a8e9

Please sign in to comment.