Added a dmabuf print at the start of _frame since this is before ANY code is run...not that the code inside _frame is all that complicated
1 files changed, 6 insertions(+), 2 deletions(-)

M src/dmabuf_source.c
M src/dmabuf_source.c +6 -2
@@ 243,6 243,11 @@ static void _frame(void* data, struct zw
 	(void) y;
 	(void) buffer_flags;
 	(void) flags;
+	struct timespec end;
+	clock_gettime(CLOCK_MONOTONIC, &end);
+
+	printf("START _frame %lu\n", (end.tv_nsec - frame_timer_start.tv_nsec) / 100000);
+
 	struct wlr_source* this = data;
 	this->next_frame = calloc(1, sizeof(struct wlr_frame));
 	this->next_frame->format = format;

          
@@ 254,10 259,9 @@ static void _frame(void* data, struct zw
 		this->next_frame->modifiers[i] = (((uint64_t) mod_high) << 32) | mod_low;
 	}
 
-	struct timespec end;
 	clock_gettime(CLOCK_MONOTONIC, &end);
 
-	printf("_frame %lu\n", (end.tv_nsec - frame_timer_start.tv_nsec) / 100000);
+	printf("END _frame %lu\n", (end.tv_nsec - frame_timer_start.tv_nsec) / 100000);
 }
 
 static void object(void* data, struct zwlr_export_dmabuf_frame_v1* frame, uint32_t index, int32_t fd, uint32_t size, uint32_t offset, uint32_t stride, uint32_t plane_index) {