Interesting idea with the FPS window. Did you see any differences in actual FPS in Fraps when using your FPS meter and when not using it? Should be a good indicator of the lag caused by such loops in the XML.
And I never knew the Script Executor window actually works. I took a look at it a couple of month ago when I started modding but couldn't get it to work and then forgot about it. Thanks for the reminder.