diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-10-08 22:25:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-08 22:25:55 +0200 |
| commit | 82759d4095dc95a0d10aefe87072385dce9a4bf1 (patch) | |
| tree | c61cc4ab708a76d1850902186c0b50ff16e6a5c5 /src/protocols/SinglePixel.hpp | |
| parent | 0dc45b54f3df45483df1c44fdc188381ac8fddc4 (diff) | |
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.
Diffstat (limited to 'src/protocols/SinglePixel.hpp')
| -rw-r--r-- | src/protocols/SinglePixel.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<uint8_t*, uint32_t, size_t> beginDataPtr(uint32_t flags); virtual void endDataPtr(); + virtual SP<CTexture> createTexture(); // bool good(); bool m_success = false; |
