mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 18:45:59 +01:00
stuf
This commit is contained in:
parent
a106d96ab6
commit
a182c3b18f
1 changed files with 4 additions and 1 deletions
|
@ -139,6 +139,8 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre
|
|||
return;
|
||||
}
|
||||
|
||||
Debug::log(LOG, "Present: del {}", DATA->delayed);
|
||||
|
||||
int forceFrames = DATA->forceFrames + pMonitor->forceFullFrames;
|
||||
|
||||
DATA->lastPresent.reset();
|
||||
|
@ -165,7 +167,6 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre
|
|||
|
||||
Debug::log(LOG, "render");
|
||||
|
||||
// we can't do this on wayland
|
||||
uint64_t µsUntilVblank = 0;
|
||||
|
||||
if (presentationData) {
|
||||
|
@ -257,6 +258,8 @@ void CFrameSchedulingManager::onVblankTimer(void* data) {
|
|||
glGetSynciv(DATA->fenceSync, GL_SYNC_STATUS, sizeof(GLint), nullptr, &syncStatus);
|
||||
bool GPUSignaled = syncStatus == GL_SIGNALED;
|
||||
|
||||
Debug::log(LOG, "vblank: signaled {}", GPUSignaled);
|
||||
|
||||
if (DATA->rendered && GPUSignaled) {
|
||||
Debug::log(LOG, "timer nothing");
|
||||
// cool, we don't need to do anything. Wait for present.
|
||||
|
|
Loading…
Reference in a new issue