Commit 0302b4d
authored
fix(logging): incorrect FPS logging (#10921)
* fix(logging): Corrected FPS calculation
Previously, last_frame was only updated once at the beginning of stream_handler,
leading to incorrect FPS and avg_frame_time computation.
This commit ensures last_frame is updated on each iteration after last FPS computation,
resulting in accurate FPS logging.
Fixes #10920
* Revert "fix(logging): Corrected FPS calculation"
This reverts commit 0bb7b95.
* fix(loggin): Incorrect FPS computation fixed
Corrected and tested change in FPS computation, suggested by @me-no-dev and found working with correct numbers.
Previously, last_frame was only updated once at the beginning of stream_handler,
leading to incorrect FPS and avg_frame_time computation.
This commit ensures last_frame is updated on each iteration after last FPS computation,
resulting in accurate FPS logging.
Fixes #109201 parent f22866f commit 0302b4d
File tree
1 file changed
+2
-0
lines changed- libraries/ESP32/examples/Camera/CameraWebServer
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| |||
0 commit comments