#2
17th Dec 2018 at 4:21 PM
Tying game code to frames is not a good idea, and running a script on every frame is not a good idea (consider that you would then be running it 60 times a second on many setups).
I recommend that you scrap this idea and reconsider the structure and approach of your mod (I don't know what the mod is supposed to do, so can't be more helpful).
But don't lose hope, modding is all about adapting and figuring out alternate solutions to problems.