Skip to content

Commit

Permalink
Revert "add new function getCurrentFPS (#420)"
Browse files Browse the repository at this point in the history
This reverts commit c43b6de.
  • Loading branch information
fcs49 committed Sep 17, 2018
1 parent c43b6de commit 1b1cb6c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions Client/mods/deathmatch/logic/lua/CLuaFunctionDefs.World.cpp
Expand Up @@ -1764,12 +1764,6 @@ int CLuaFunctionDefs::GetBirdsEnabled(lua_State* luaVM)
return 1;
}

int CLuaFunctionDefs::GetCurrentFPS(lua_State* luaVM)
{
lua_pushnumber(luaVM, g_pGame->GetFPS());
return 1;
}

int CLuaFunctionDefs::SetMoonSize(lua_State* luaVM)
{
int iSize;
Expand Down
1 change: 0 additions & 1 deletion Client/mods/deathmatch/logic/lua/CLuaFunctionDefs.h
Expand Up @@ -177,7 +177,6 @@ class CLuaFunctionDefs
LUA_DECLARE(ResetMoonSize);
LUA_DECLARE(SetFPSLimit);
LUA_DECLARE(GetFPSLimit);
LUA_DECLARE(GetCurrentFPS);
LUA_DECLARE(FetchRemote);

// Input functions
Expand Down
1 change: 0 additions & 1 deletion Client/mods/deathmatch/logic/lua/CLuaManager.cpp
Expand Up @@ -301,7 +301,6 @@ void CLuaManager::LoadCFunctions(void)
CLuaCFunctions::AddFunction("resetMoonSize", CLuaFunctionDefs::ResetMoonSize);
CLuaCFunctions::AddFunction("setFPSLimit", CLuaFunctionDefs::SetFPSLimit);
CLuaCFunctions::AddFunction("getFPSLimit", CLuaFunctionDefs::GetFPSLimit);
CLuaCFunctions::AddFunction("getCurrentFPS", CLuaFunctionDefs::GetCurrentFPS);
CLuaCFunctions::AddFunction("fetchRemote", CLuaFunctionDefs::FetchRemote);

// World set funcs
Expand Down

2 comments on commit 1b1cb6c

@Einheit-101
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this been removed?

@qaisjp
Copy link
Contributor

@qaisjp qaisjp commented on 1b1cb6c Sep 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was determined that this sort of thing is fine in Lua & that there isn't really a difference between a "Lua calculated fps" and the "game_sa fps"

Please sign in to comment.