06-22-2016, 04:55 PM
BUMP!!!
Now it's version 1.8
I know it's been a while since I did any changes to the system. I didn't think I needed to and everything was fine. Hell, it's speed was comparable to some other Day Night systems I have seen... even with an error I just discovered.
First, let me state that I made the update method of the system's time keeping class more modular. In that, I separated the increments calculation system, the daylight switches system, and other routines into their own methods to be called. With this, a scripter could add new code into the middle of the update method by attaching code into the smaller methods instead of rewriting the whole update routine.
Now... about the fix.
The routine that checked when it was time to turn on/off an RMXP switch was bugged. It was only supposed to refresh the game's map system if a switch was detected and flipped. Instead, it CONSTANTLY REFRESHED the map. Yikes! When you refresh a map, it refreshes every single event ON the map and that could have caused lag!!!
Oddly, there was no lag. Or at least, it kept pace with other Day/Night systems that I encountered and didn't slow it down anymore than its competition.
Well, the fix is now in place and it only refreshes the Game Map when a switch is turned on by the daylight switch system as it was meant to. And that should speed things up even more.
Enjoy!