Skip to content

perf(client): sync CEF frames to render tick#27

Open
godperkys wants to merge 1 commit into
aurora-mp:mainfrom
godperkys:fix-osr-begin-frame-scheduling
Open

perf(client): sync CEF frames to render tick#27
godperkys wants to merge 1 commit into
aurora-mp:mainfrom
godperkys:fix-osr-begin-frame-scheduling

Conversation

@godperkys
Copy link
Copy Markdown

Summary

  • enable external begin-frame scheduling for windowless CEF browsers
  • send external begin frames from the game render tick for visible browsers
  • skip hidden browser paint work and clear hidden pending paints
  • use CEF dirty rects for overlay texture updates to avoid full texture uploads when only small HUD regions change

Why

CEF offscreen rendering was still paced by Chromium's internal frame scheduling, which can make active HUD/browser surfaces feel capped around 60 FPS while the game is rendering faster. Driving visible browsers from the render tick keeps browser updates aligned with the game frame loop.

Validation

  • cmake --build build\client-verify --config Debug --target Client Renderer Loader

@godperkys godperkys marked this pull request as ready for review May 14, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant