Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Bolt's Journal

## 2024-05-22 - [First Entry]
**Learning:** Initial setup of the journal.
**Action:** Record future performance insights here.
8 changes: 7 additions & 1 deletion drw.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,13 @@ void drw_map(Drw *drw, Window win, int x, int y, unsigned int w,
}

XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y);
XSync(drw->dpy, False);
/*
* Optimizing performance by replacing XSync with XFlush.
* XSync forces a round-trip to the X server, waiting for all requests to be processed,
* which causes latency in drawing operations. XFlush ensures the request is sent
* without blocking the client.
*/
XFlush(drw->dpy);
}

unsigned int drw_fontset_getwidth(Drw *drw, const char *text) {
Expand Down