aresta / ESP32_GPS

GPS device with ESP32 and OpenStreetMap data
GNU General Public License v3.0
23 stars 6 forks source link

Question about rendering speed #9

Open ChrisSpinu opened 2 weeks ago

ChrisSpinu commented 2 weeks ago

Hi, I'm trying to create a similar project to this one and I came here to ask a question( sorry if this wasn't the right place to do so ). What's the rendering speed for the map?

Thanks!

jgauchia commented 2 weeks ago

It's depend of map size or screen , for example I've a map with 368x320 aprox and render a map takes about 4 seconds reading from SD and display in screen the first time

ChrisSpinu commented 2 weeks ago

It's depend of map size or screen , for example I've a map with 368x320 aprox and render a map takes about 4 seconds reading from SD and display in screen the first time

Thanks!

aresta commented 1 week ago

Hi, the first time to read the map blocks from the SD card it takes about 1 second each block (4x4 kms each block), in total a couple of seconds but only once. Then with the blocks in memory the render is very fast, when you move with the joystick there is no flickering. When you reach a block of the map that is not in memory, it take about 1 second more to read it from the SD card, but only once. You can have 6, 8 or more blocks in memory. It caches them and start reusing the space when there is no more memory available. That's why you need a MCU with 4MB of PSRAM.

ChrisSpinu commented 1 week ago

Hi, the first time to read the map blocks from the SD card it takes about 1 second each block (4x4 kms each block), in total a couple of seconds but only once. Then with the blocks in memory the render is very fast, when you move with the joystick there is no flickering. When you reach a block of the map that is not in memory, it take about 1 second more to read it from the SD card, but only once. You can have 6, 8 or more blocks in memory. It caches them and start reusing the space when there is no more memory available. That's why you need a MCU with 4MB of PSRAM.

Wow! That's a really good performance imo. Thank you!