mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:45:58 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug::log(LOG, "Present: del {}", DATA->delayed);
|
||||||
|
|
||||||
int forceFrames = DATA->forceFrames + pMonitor->forceFullFrames;
|
int forceFrames = DATA->forceFrames + pMonitor->forceFullFrames;
|
||||||
|
|
||||||
DATA->lastPresent.reset();
|
DATA->lastPresent.reset();
|
||||||
|
@ -165,7 +167,6 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre
|
||||||
|
|
||||||
Debug::log(LOG, "render");
|
Debug::log(LOG, "render");
|
||||||
|
|
||||||
// we can't do this on wayland
|
|
||||||
uint64_t µsUntilVblank = 0;
|
uint64_t µsUntilVblank = 0;
|
||||||
|
|
||||||
if (presentationData) {
|
if (presentationData) {
|
||||||
|
@ -257,6 +258,8 @@ void CFrameSchedulingManager::onVblankTimer(void* data) {
|
||||||
glGetSynciv(DATA->fenceSync, GL_SYNC_STATUS, sizeof(GLint), nullptr, &syncStatus);
|
glGetSynciv(DATA->fenceSync, GL_SYNC_STATUS, sizeof(GLint), nullptr, &syncStatus);
|
||||||
bool GPUSignaled = syncStatus == GL_SIGNALED;
|
bool GPUSignaled = syncStatus == GL_SIGNALED;
|
||||||
|
|
||||||
|
Debug::log(LOG, "vblank: signaled {}", GPUSignaled);
|
||||||
|
|
||||||
if (DATA->rendered && GPUSignaled) {
|
if (DATA->rendered && GPUSignaled) {
|
||||||
Debug::log(LOG, "timer nothing");
|
Debug::log(LOG, "timer nothing");
|
||||||
// cool, we don't need to do anything. Wait for present.
|
// cool, we don't need to do anything. Wait for present.
|
||||||
|
|
Loading…
Reference in a new issue