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
cam_hal: drop caches for psram_mode frames before hand-off to application
Invalidate data-cache lines for the image captured via dma (in psram_mode)
before the buffer is handed off to the application. This ensures the the
CPU will read the correct data from the PSRAM instead of cached segments
from the previous image stored in this buffer.
Other work:
- The cache invalidation was refactored into `cam_drop_psram_cache()`
Performance consideration:
On an ESP32-S3 @ 240 MHz with 32-byte cache lines:
|------------------------------------------------|
| Image size | Lines flushed | Cycles | Time |
|------------|---------------|--------|----------|
| 100 KiB | 3 200 | 16 000 | 66.7 µs |
| 300 KiB | 9 600 | 48 000 | 200 µs |
|________________________________________________|
0 commit comments