From 0ac4b0f4bab0cc9946d1bff28b44bb3bc007cb2c Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak <dos@dosowisko.net> Date: Tue, 29 Aug 2023 00:45:34 +0200 Subject: [PATCH] fix screen tearing --- components/st3m/st3m_gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/st3m/st3m_gfx.c b/components/st3m/st3m_gfx.c index 7600f52012..1af6b0a9c4 100644 --- a/components/st3m/st3m_gfx.c +++ b/components/st3m/st3m_gfx.c @@ -21,10 +21,10 @@ // Each buffer takes ~116kB SPIRAM. While one framebuffer is being blitted, the // other one is being written to by the rasterizer. -#define ST3M_GFX_NBUFFERS 1 +#define ST3M_GFX_NBUFFERS 2 // More ctx drawlists than buffers so that micropython doesn't get starved when // pipeline runs in lockstep. -#define ST3M_GFX_NCTX 1 +#define ST3M_GFX_NCTX 3 // A framebuffer descriptor, pointing at a framebuffer. typedef struct { -- GitLab