#============================================================================== # ■ Scene_Map #============================================================================== class Scene_Map < Scene_Base #-------------------------------------------------------------------------- # ● フレーム更新 #-------------------------------------------------------------------------- alias load_measu_update update def update load_measu_update load_measu if $Load_Measu end #-------------------------------------------------------------------------- # ● 負荷測定 #-------------------------------------------------------------------------- def load_measu Graphics.frame_rate = 120 s = Time.now for i in 0..1200 $game_map.interpreter.update $game_map.update $game_player.update @spriteset.update @message_window.update Graphics.update if i % 60 == 0 end result = (Time.now - s) * 1000 Graphics.frame_rate = 60 $Load_Measu = false p (200 / result * 1000).ceil end end