Skip to content

Commit

Permalink
Apply Jip's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Basilisk3 authored Apr 20, 2024
1 parent 679544b commit e3448e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion changelog/3809.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

- (#6086) Ensure that the Cooper's hitbox aligns with its model

- (#6090) Reduce the amount of logging performed by the game when not playing `fafdevelop`. This should have a positive impact on performance.
- (#6090) Reduce the amount of logging performed by the game. This should have a positive impact on performance.

## Contributors

Expand Down
2 changes: 0 additions & 2 deletions init_faf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
-- imports fa_path to determine where it is installed
dofile(InitFileDir .. '/../fa_path.lua')

local GameType = rawget(_G, "GameType")

LOG("Client version: " .. tostring(ClientVersion))
LOG("Game version: " .. tostring(GameVersion))
LOG("Game type: " .. tostring(GameType))
Expand Down
5 changes: 2 additions & 3 deletions lua/system/import.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ function import(name, isLazy)
return existing
end

-- As this creates a lot of entries in your log very quickly, we only enable it on fafdevelop
local GameType = rawget(_G, "GameType")
if GameType == "fafdevelop" then
-- As this creates a lot of entries in your log very quickly, we disable it by default
if informDevOfLoad then
SPEW(string.format("%sLoading module: %s", string.rep("-> ", indent) or "", name))
indent = indent + 1
end
Expand Down

0 comments on commit e3448e2

Please sign in to comment.