MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / TickReducedPerformance

Function TickReducedPerformance

src/_GraphicsBase.h:164–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static CC_INLINE void TickReducedPerformance(void) {
165 Thread_Sleep(100); /* 10 FPS */
166
167 if (Gfx.ReducedPerfMode) return;
168 Gfx.ReducedPerfMode = true;
169 Chat_AddOf(&Gfx_LowPerfMessage, MSG_TYPE_EXTRASTATUS_2);
170}
171
172static CC_INLINE void EndReducedPerformance(void) {
173 if (!Gfx.ReducedPerfMode) return;

Callers 2

Gfx_EndFrameFunction · 0.85
Gfx_EndFrameFunction · 0.85

Calls 2

Chat_AddOfFunction · 0.85
Thread_SleepFunction · 0.70

Tested by

no test coverage detected