Thanks for the info, but in my opinion this first step is another dead horse.
You still try to implement lag fixes on the application level of the game, meaning changes to the high level scripts/code/dungeons.
It is obvious that the low level core systems itself have serious problems.
Your...