Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[SugarCube 2.7.0] Performance Degradation With Excessive Variables

$
0
0
Hello,
My game is likely outside the scope of what Twine/SugarCube were designed for. However, I'm planning to work on a turn-based RPG which makes use of many variables (hundreds, largely related to NPCs, and stored in JavaScript objects). I've been doing some stress-testing to see what Twine/SugarCube can handle, and I'm noticing that the time it takes to load a passage varies greatly depending on how many variables it has to process.

For those more familiar with JavaScript than myself, is there something I can do to improve performance? Ideally, I think performance would improve greatly if the game were only processing variables used in the current passage, but using the CheckVars macro, it appears that the game keeps all variables loaded at all times.

Thank you for your time.


Viewing all articles
Browse latest Browse all 1844

Trending Articles