Report the actual GPU framerate rather than the main thread submit rate when using the filament renderer.

PiperOrigin-RevId: 838775463
Change-Id: If66644d284a4a9e0263cf31bfbd1785b18e0209b
This commit is contained in:
Haroon Qureshi
2025-12-01 08:01:33 -08:00
committed by Copybara-Service
parent 4896e698f6
commit 448fc0e4d5
8 changed files with 44 additions and 22 deletions
@@ -146,4 +146,9 @@ void mjr_uploadFont(const unsigned char* pixels, int width, int height, int bpp,
g_filament_context->UploadFont(pixels, width, height, id);
}
double mjr_getFrameRate(const mjrContext* con) {
CheckFilamentContext();
return g_filament_context->GetFrameRate();
}
} // extern "C"