Game Performance
#16
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. Winking

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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Game Performance - by Mel - 11-03-2016, 12:10 PM
RE: Game Performance - by BeJeremiah - 11-04-2016, 01:24 AM
RE: Game Performance - by Mel - 11-05-2016, 12:41 AM
RE: Game Performance - by Mel - 11-17-2016, 01:17 AM
RE: Game Performance - by DerVVulfman - 11-17-2016, 04:16 AM
RE: Game Performance - by finalholylight - 11-17-2016, 05:33 AM
RE: Game Performance - by Mel - 11-17-2016, 01:12 PM
RE: Game Performance - by finalholylight - 11-17-2016, 03:50 PM
RE: Game Performance - by Mel - 11-17-2016, 05:25 PM
RE: Game Performance - by DerVVulfman - 11-17-2016, 08:46 PM
RE: Game Performance - by Mel - 11-17-2016, 10:32 PM
RE: Game Performance - by DerVVulfman - 11-20-2016, 04:56 PM
RE: Game Performance - by Mel - 11-21-2016, 09:22 PM
RE: Game Performance - by finalholylight - 11-22-2016, 04:44 AM
RE: Game Performance - by Mel - 11-22-2016, 05:11 PM
RE: Game Performance - by DerVVulfman - 11-22-2016, 09:17 PM
RE: Game Performance - by Mel - 11-22-2016, 10:42 PM
RE: Game Performance - by DerVVulfman - 11-23-2016, 04:41 AM
RE: Game Performance - by Mel - 11-23-2016, 04:50 PM
RE: Game Performance - by DerVVulfman - 11-23-2016, 06:18 PM
RE: Game Performance - by Mel - 11-23-2016, 06:41 PM
RE: Game Performance - by finalholylight - 11-24-2016, 03:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Game Variables List for Copy/Paste JayRay 4 7,011 01-15-2015, 06:18 AM
Last Post: JayRay
   [RMXP]Game Over and Atoa Battle Status mishaps firestalker 8 10,953 08-07-2014, 01:59 AM
Last Post: firestalker
  Changing Window Styles in Game JackMonty 8 11,042 03-22-2013, 11:54 PM
Last Post: JackMonty
   Game help n2t4a6 11 14,739 04-21-2010, 06:42 AM
Last Post: n2t4a6
   Animated story on New Game... KDawg08 3 6,422 03-31-2010, 03:52 AM
Last Post: KDawg08



Users browsing this thread: 1 Guest(s)