mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
30a888711b
This commit forces the DMA'd memory to be copied into the texture in the EGL on_frame handler. This avoids tearing when the LG host inevitably updates the underlying memory. We need an additional copy inside the GPU, but this is cheap compared to copying from system memory. We could have used logic to lock the memory buffer, but that would require performing DMA on every frame, which wastes memory bandwidth. This manifests as reduced frame rate when moving the mouse compared to the non-DMA implementation. We also keep multiple EGLImages, one for each DMA fd, to avoid issues with the OpenGL driver. |
||
---|---|---|
.. | ||
EGL | ||
OpenGL | ||
CMakeLists.txt |