Changeset View
Changeset View
Standalone View
Standalone View
composite.h
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 210 | private: | |||
---|---|---|---|---|---|
233 | 233 | | |||
234 | QTimer compositeResetTimer; // for compressing composite resets | 234 | QTimer compositeResetTimer; // for compressing composite resets | ||
235 | bool m_finishing; // finish() sets this variable while shutting down | 235 | bool m_finishing; // finish() sets this variable while shutting down | ||
236 | bool m_starting; // start() sets this variable while starting | 236 | bool m_starting; // start() sets this variable while starting | ||
237 | qint64 m_timeSinceLastVBlank; | 237 | qint64 m_timeSinceLastVBlank; | ||
238 | qint64 m_timeSinceStart = 0; | 238 | qint64 m_timeSinceStart = 0; | ||
239 | Scene *m_scene; | 239 | Scene *m_scene; | ||
240 | bool m_bufferSwapPending; | 240 | bool m_bufferSwapPending; | ||
241 | bool m_composeAtSwapCompletion; | 241 | bool m_composeAtSwapCompletion; | ||
242 | int m_framesToTestForSafety = 3; | ||||
242 | 243 | | |||
luebking: m_testedFrames or similar, "Frame Count" is too generic.
Alternatively, just use some "int… | |||||
ok. @graesslin do you prefer a count down or a count up and max? In any case, I agree with changing the name. antlarr: ok. @graesslin do you prefer a count down or a count up and max? In any case, I agree with… | |||||
graesslin: I would just count down the m_maxFramesTestedForSafety till it reaches 0 | |||||
antlarr: ok | |||||
243 | KWIN_SINGLETON_VARIABLE(Compositor, s_compositor) | 244 | KWIN_SINGLETON_VARIABLE(Compositor, s_compositor) | ||
244 | }; | 245 | }; | ||
245 | } | 246 | } | ||
246 | 247 | | |||
247 | # endif // KWIN_COMPOSITE_H | 248 | # endif // KWIN_COMPOSITE_H |
m_testedFrames or similar, "Frame Count" is too generic.
Alternatively, just use some "int m_freezeDectionFrames = 30;" and count them down (so when < 1, you're done)