Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Best story format for performance with complex scripting?

edited March 2016 in Help! with 2.0
I'm writing a pretty complicated engine for my pretty stupidly complex game, with Harlowe. Each passage you enter typically runs:
    * Between 5 and 15 (display:)
    * 7 large datamaps are checked to extract values (datamaps between 10 and maybe 100 values, and some of those values are other datamaps or arrays)
    * 20 (if:), more or less
    * A couple of (live:) pseudoloops wrapping much of this

This leads to pretty bad performance. In my desktop, it takes more or less 1 second to generate each passage, but it takes more like 6 seconds in my tablet, making it pretty unplayable.

I wonder if such mechanism could be implemented in Sugarcube and, most importantly, if it would be worth it: if there might be performance gains from using one format or the other.

I guess that writing direct Javascript in Snowman would get the best performance, but it's totally beyond my past, present and future knowledge.

So, is any format faster with complex scripting with lots of variables around? Thanks!
Sign In or Register to comment.