summaryrefslogtreecommitdiffstats
path: root/src/core/main.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-02 10:38:54 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-02 12:32:25 +0100
commit42e4a068bb1cd363c3ed308e10c2747a6035e2de (patch)
tree7e9ce483e3a9eab7d23ec4c4e6476f22ecfa761e /src/core/main.cpp
parentPartial controller buttons support (diff)
downloadre3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.gz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.bz2
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.lz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.xz
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.zst
re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.zip
Diffstat (limited to 'src/core/main.cpp')
-rw-r--r--src/core/main.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 85e04540..9e48aaf4 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -72,6 +72,7 @@
#include "postfx.h"
#include "custompipes.h"
#include "screendroplets.h"
+#include "VarConsole.h"
GlobalScene Scene;
@@ -133,6 +134,9 @@ bool gbNewRenderer;
#define CLEARMODE (rwCAMERACLEARZ)
#endif
+bool bDisplayNumPfAtomicsRendered = false;
+bool bDisplayPosn = false;
+
void
ValidateVersion()
{
@@ -473,6 +477,11 @@ Initialise3D(void *param)
{
PUSH_MEMID(MEMID_RENDER);
+#ifndef MASTER
+ VarConsole.Add("Display number of atomics rendered", &bDisplayNumPfAtomicsRendered, true);
+ VarConsole.Add("Display posn and framerate", &bDisplayPosn, true);
+#endif
+
if (RsRwInitialize(param))
{
POP_MEMID();
@@ -1008,7 +1017,6 @@ return;
void
DisplayGameDebugText()
{
- static bool bDisplayPosn = false;
static bool bDisplayCheatStr = false; // custom
#ifndef FINAL
@@ -1382,6 +1390,10 @@ RenderMenus(void)
{
FrontEndMenuManager.DrawFrontEnd();
}
+#ifndef MASTER
+ else
+ VarConsole.Check();
+#endif
}
void