From 40eaa79c5217a36cf462cd2cfbb6515795220b09 Mon Sep 17 00:00:00 2001 From: agustinesco Date: Mon, 26 Aug 2024 15:04:38 -0300 Subject: [PATCH] hocho bounties --- apps/arena/lib/arena/game_updater.ex | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/apps/arena/lib/arena/game_updater.ex b/apps/arena/lib/arena/game_updater.ex index bfac9098d..e233663d0 100644 --- a/apps/arena/lib/arena/game_updater.ex +++ b/apps/arena/lib/arena/game_updater.ex @@ -251,10 +251,6 @@ defmodule Arena.GameUpdater do |> Map.put(:delta_time, delta_time / 1) # Effects - start_effects = - DateTime.utc_now() - |> DateTime.to_unix(:millisecond) - game_state = game_state |> remove_expired_effects() @@ -262,7 +258,6 @@ defmodule Arena.GameUpdater do |> reset_players_effects() |> Effect.apply_effect_mechanic_to_entities() - end_effects = DateTime.utc_now() |> DateTime.to_unix(:millisecond) # Players start_players = DateTime.utc_now() @@ -364,18 +359,6 @@ defmodule Arena.GameUpdater do DateTime.utc_now() |> DateTime.to_unix(:millisecond) - start_bounties = - DateTime.utc_now() - |> DateTime.to_unix(:millisecond) - - game_state = - game_state - |> update_bounties_states(state) - - end_bounties = - DateTime.utc_now() - |> DateTime.to_unix(:millisecond) - end_players = DateTime.utc_now() |> DateTime.to_unix(:millisecond) # Projectiles @@ -418,7 +401,6 @@ defmodule Arena.GameUpdater do Logger.info("Players effects con collisions duration: #{end_effects_on_collisions - start_effects_on_collisions}") Logger.info("Players zone damage duration: #{end_zone_damage - start_zone_damage}") Logger.info("Players visible players duration: #{end_visible_players - start_visible_players}") - Logger.info("Players bounties duration: #{end_bounties - start_bounties}") end tick_duration = System.monotonic_time() - tick_duration_start_at