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:
committed by
Copybara-Service
parent
4896e698f6
commit
448fc0e4d5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user