11-22-2016, 09:17 PM
I think I have a CRAFTY little evil solution, Mel!!!! Hehehe!
As finalholylight suggested, it is a matter of it updating the graphics constantly. And as I mentioned earlier, my HUD system uses a limiter so it only updates my hud every so often. So..... let's put in a LIMITER just so the light effects only update every so often.
I mean, you're not fading the daylight in or out, right? If so, this can be adjusted to fit.
Go to line 1176 of the script. That line should read as dtls_update
Paste THIS below it, but above the if $game_system.activate_dtls ... yadda yadda yadda line
This bit of code makes your light effect update only once every 30 frames. To be more exact, it exits the entire routine that updates your light effects and only exits if you hadn't just entered the map. The value of @frame which may handle light flickers resets to 0 when you exit/enter a map.
It is a double-edged sword. It will slow down the animation effects of your graphics, but speed up your frame rate. But you can tweak it by altering the '30' value in the code to something like 10. Defined as it is, the code only lets the light effects update every 30 frames. Changing it to 10 would let it update every 10 frames. And setting it to 5 would be pretty fast, but would still cut down on the Framerate drag. Just don't set it to 0.
As finalholylight suggested, it is a matter of it updating the graphics constantly. And as I mentioned earlier, my HUD system uses a limiter so it only updates my hud every so often. So..... let's put in a LIMITER just so the light effects only update every so often.
I mean, you're not fading the daylight in or out, right? If so, this can be adjusted to fit.
Go to line 1176 of the script. That line should read as dtls_update
Paste THIS below it, but above the if $game_system.activate_dtls ... yadda yadda yadda line
Code:
# Let's just make it pause a little (if light animation is running)
return if Graphics.frame_count % 30 != 0 && @frame != 0
This bit of code makes your light effect update only once every 30 frames. To be more exact, it exits the entire routine that updates your light effects and only exits if you hadn't just entered the map. The value of @frame which may handle light flickers resets to 0 when you exit/enter a map.
It is a double-edged sword. It will slow down the animation effects of your graphics, but speed up your frame rate. But you can tweak it by altering the '30' value in the code to something like 10. Defined as it is, the code only lets the light effects update every 30 frames. Changing it to 10 would let it update every 10 frames. And setting it to 5 would be pretty fast, but would still cut down on the Framerate drag. Just don't set it to 0.