From 82759d4095dc95a0d10aefe87072385dce9a4bf1 Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Wed, 8 Oct 2025 22:25:55 +0200 Subject: buffer: move texture creation to commit time (#11964) * buffer: move texture creation to commit time move creating texture away from buffer attach into commitstate in an attempt to postpone gpu work until its really needed. best case scenario gpu clocks have ramped up before because we are actively doing things causing surface states and a commit to happend meaning less visible lag. * buffer: simplify texture creation make createTexture return a shared ptr directly, remove not needed member variables as m_success and m_texture. --- src/protocols/SinglePixel.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocols/SinglePixel.hpp') diff --git a/src/protocols/SinglePixel.hpp b/src/protocols/SinglePixel.hpp index f8bbfba9..40fbb968 100644 --- a/src/protocols/SinglePixel.hpp +++ b/src/protocols/SinglePixel.hpp @@ -18,6 +18,7 @@ class CSinglePixelBuffer : public IHLBuffer { virtual Aquamarine::SDMABUFAttrs dmabuf(); virtual std::tuple beginDataPtr(uint32_t flags); virtual void endDataPtr(); + virtual SP createTexture(); // bool good(); bool m_success = false; -- cgit v1.2.3