Game Performance
#10
Confused Kinda confused. Did you comment out the commands at the bottom yourself?
Code:
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs map screen processing.
#==============================================================================

class Scene_Map
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  alias dtls_main main
  def main
    #@time_window = Window_Time.new
    #if !$game_system.activate_time_window || !$game_system.activate_time
      #@time_window.visible = false
    #end
    dtls_main
    #@time_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias dtls_update update
  def update
    #$game_system.time.update
    #if $game_system.activate_time_window && $game_system.activate_time
      #@time_window.visible = true
      #@time_window.refresh
    #else
      #@time_window.visible = false
    #end
    dtls_update
  end
end

Because this would be running the time system itself, specifically the command of $game_system.time.update which runs the whole system.

HOWEVER... there is no limiting factor in the Time_System class's update method, and a system this big is running constantly. I wouldn't have it run the update method every single frame!!! I'd have it check to see if some span of time had changed to an extend. I mean, a normal game runs at 40 frames per second (or yours at 60), I'd have a feature like run Time_System's Update method every 5 frames That would still let you have a decent game-time system but it only checks 1/5th the time and speed up your FPS.

I use such a method in my HUDs, like in the Lycan ABS hud, so it doesn't refresh the screens constantly. If I didn't, it would refresh over and over and slow it down. It's the same principle here.

This would be the culprit... and where I'd fix it to put in the limiting factor
Code:
#--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # Check if the system and the time are activated
    if $game_system.activate_dtls && $game_system.activate_time
      # Increase the minute count
      @minute += DTLS::CountMinute
      # Update the time data
      check_time
      if day?
        $game_switches[DTLS::IsNightSwitch] = false
        $game_switches[DTLS::IsDaySwitch] = true
      else
        $game_switches[DTLS::IsNightSwitch] = true
        $game_switches[DTLS::IsDaySwitch] = false
      end
      $game_variables[DTLS::MinuteVariable] = @minute
      $game_variables[DTLS::HourVariable] = @hour
      $game_variables[DTLS::DayVariable] = @day
      $game_variables[DTLS::MonthVariable] = @month
      $game_variables[DTLS::YearVariable] = @year
      $game_map.need_refresh = true
    end
  end
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,000 01-15-2015, 06:18 AM
Last Post: JayRay
   [RMXP]Game Over and Atoa Battle Status mishaps firestalker 8 10,931 08-07-2014, 01:59 AM
Last Post: firestalker
  Changing Window Styles in Game JackMonty 8 11,008 03-22-2013, 11:54 PM
Last Post: JackMonty
   Game help n2t4a6 11 14,688 04-21-2010, 06:42 AM
Last Post: n2t4a6
   Animated story on New Game... KDawg08 3 6,407 03-31-2010, 03:52 AM
Last Post: KDawg08



Users browsing this thread: 1 Guest(s)