mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 18:39:46 +00:00
drop the environment switches
The backend, decoration and resize-logging switches were only used while working on this, and undocumented ones should not stay: - VOXEL_WINDOW_BACKEND: the backend is still chosen by WAYLAND_DISPLAY, and GLFW is used when it is not set; - VOXEL_DECORATIONS: own decorations are always enabled when the compositor provides none; - VOXEL_LOG_RESIZE: the resize statistics are removed together with the counters they needed. WaylandDecorations.cpp replaces WaylandBar.cpp: drawing moved to the engine, the file only holds the decoration behaviour now.
This commit is contained in:
parent
1dbd445027
commit
6a5e485bca
4 changed files with 1 additions and 80 deletions
|
|
@ -33,7 +33,6 @@ static constexpr double MAX_CACHE_TIMEOUT = 3.0;
|
|||
int framerate = -1;
|
||||
double prevSwap = 0.0;
|
||||
double lastResize = 0.0;
|
||||
static inline bool resizeLogging = getenv("VOXEL_LOG_RESIZE") != nullptr;
|
||||
bool barEnabled = false;
|
||||
bool fullscreen = false;
|
||||
std::string title = "VoxelCore";
|
||||
|
|
@ -49,18 +48,7 @@ double cacheTimeout = 0.5;
|
|||
bool resizing = false;
|
||||
bool renderPending = true;
|
||||
bool presentPending = true;
|
||||
int resizePresents = 0;
|
||||
double configureTime = 0.0;
|
||||
double resizeTimeSum = 0.0;
|
||||
double resizeTimeMax = 0.0;
|
||||
double lastPresent = 0.0;
|
||||
double lastSummary = 0.0;
|
||||
double summarySum = 0.0;
|
||||
double summaryMax = 0.0;
|
||||
int summaryFrames = 0;
|
||||
double lastLoop = 0.0;
|
||||
double loopGapMax = 0.0;
|
||||
int loopCount = 0;
|
||||
wl_callback* frameCallback = nullptr;
|
||||
bool frameDone = false;
|
||||
GLuint stretchProgram = 0;
|
||||
|
|
@ -132,7 +120,6 @@ glm::vec4 scissorArea {};
|
|||
void onFrameDone();
|
||||
void requestFrame();
|
||||
void paceFrame();
|
||||
void logSummary();
|
||||
void markResizing();
|
||||
void updateResizing();
|
||||
void setIdleInhibit(bool enabled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue