mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 06:23:23 +09:00
A split client's swap reaches the server as a present record, and ServerVerbSink::OnPresent only ran the backend's Present - an eglSwapBuffers of the pbuffer the context was made with. BackendObject::SwapEGLBuffers is the only route to PresentHostFrame and a split client never takes it, so over TCP the display host was never told a frame was drawn: the app offered thousands of frames and presented none. BackendObject::PresentHostFrameIfCurrent presents the host frame when the current surface is host-framed and is a no-op otherwise; OnPresent calls it after Present and before the credit goes back, so a client released by the credit is released by a frame that is on its way to the glass.