I have a rather complex WIP with lots of NPC tracking.
Because of this, the story runs rather slowly, with lag times of up to three seconds between accepting a command and printing the results to the screen (this is on an Intel Core i5 w/ 8GB of ram).
I’m wondering if anyone can think of a way to reliably detect which parts of my code are the biggest time hogs.
Is there any conceivable way to use a real-world timer inside of i7? My idea was to print out the current time at the beginning and end of certain computationally heavy rules/actions so that I can debug out what’s taking so long.
Has anyone tried this anything like this before? Is it even possible to speed-optimize a story?