You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Max FPS is set to 60 in the code
We need to account for devices with a higher refresh rate
How to implement
this file needs to be changed flashlight-open-source/packages/platforms/android/src/commands/atrace/pollFpsUsage.ts
score calculation need to take into account max fps flashlight-open-source/packages/core/reporter/src/reporting/getScore.ts
We need to add screenRefreshRate into the interfaces TestCaseResult and AveragedTestCaseResult
We need to find a way to measure it and add it to the report
So that max FPS in graphs and score is max FPS du device
The text was updated successfully, but these errors were encountered:
Checking in on this, I have a POC on getting max FPS on Android devices. There are gaps in my knowledge of how Flashlight's internals passes data around. How do you reckon data be passed to the reporting and web app clients from data gotten from the shell.
Here's what I have tried; I assumed data is passed on around by sockets, I have tried emiting data to the webapp but I haven't been successful at that. I would greatly appreciate your insights here. Huge fan of flashlight.
For the measure command, data is indeed transmitted via Socket, measures are updated here
Alternatively, you can run the undocumented command node packages/platforms/android/dist/src/commands.js profile --fps to have live FPS polling the CLI to make sure the measures are correct.
I think the score should get messed up (because we also have an hardcoded value in flashlight-open-source/packages/core/reporter/src/reporting/getScore.ts) but at least the higher FPS should be visible on the graph 🤔
What
Max FPS is set to 60 in the code
We need to account for devices with a higher refresh rate
How to implement
flashlight-open-source/packages/platforms/android/src/commands/atrace/pollFpsUsage.ts
flashlight-open-source/packages/core/reporter/src/reporting/getScore.ts
We need to add
screenRefreshRate
into the interfacesTestCaseResult
andAveragedTestCaseResult
We need to find a way to measure it and add it to the report
So that max FPS in graphs and score is max FPS du device
The text was updated successfully, but these errors were encountered: