Commit f026762
Avoid creating anonymous objects when rendering view annotations (#6263)
While doing some measurements I noticed that when we are showing view
annotations we create objects on every frame:
<img width="3008" height="1667" alt="Screenshot 2025-09-03 at 16 16 04"
src="https://github.com/user-attachments/assets/27200dc0-4235-4b60-807f-412d5e21dee8"
/>
This PR avoids creating those objects due to the swapBuffers call.
cc @mapbox/maps-android
GitOrigin-RevId: 15e2c7286e9ac02781f01a679742c11cd01644741 parent 0a5d7df commit f026762
File tree
1 file changed
+6
-3
lines changed- maps-sdk/src/main/java/com/mapbox/maps/renderer
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
| |||
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
410 | | - | |
411 | | - | |
412 | | - | |
| 415 | + | |
413 | 416 | | |
414 | 417 | | |
415 | 418 | | |
| |||
0 commit comments