-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throttle the image request queue while the map is moving to improve performance #2097
Conversation
…erformance The image request queue can cause frame rate glitches while the map is moving. To mitigate this, allow the map renderer to throttle the amount of requests processed by the image request queue until the map stops moving again.
…FT/throttle-image-request-queue
…AGE_REQUESTS_PER_FRAME_WHILE_THROTTLED
…FT/throttle-image-request-queue
…request_queue.ts.
…a the pure function wrappers.
…FT/throttle-image-request-queue
…age-request-queue Users/adam szofran msft/throttle image request queue
Merge this one as it's ready. I think it's gonna be a long time until get to |
# Conflicts: # src/index.ts
@HarelM consolidating all comments from the previous PR to keep us on the same page:
|
Regarding 4 - the problem is not the usage of "this" it's the circular dependency. You should be able to write it down using a class or not, but I want this logic to be encapsulated nicely. |
* Remove unused tile request cache (maplibre#2101) * Remove unused tile request cache * Remove the public method to clear the storage * Get rid of tile request cache's usages * merge 2101 * Combine `ResourceType` interface and const into a single enum (maplibre#2103) * Combine ResourceType interface and const into a single enum Move it from ajax.ts to request_manager.ts * Re-run render tests * Assign strting values to the enum * Revert changes to tests * Fix typo * Don't use MapLibre prefix; use const enum * Fix "npm run test-build" on Windows (maplibre#2106) * wip * fixed path * rename var * remove timeout * add type and use namespace * test passed * refactored and cleaned * min test * all working * restore min test * clean up the cancel function --------- Co-authored-by: Matthew Mamonov <g.smellyshovel@gmail.com>
…ft/my-maplibre-gl-js into merge-img-req-q # Conflicts: # src/source/vector_tile_source.ts # src/util/ajax.ts
# Conflicts: # src/source/image_source.ts # src/source/raster_dem_tile_source.ts # src/source/raster_tile_source.ts # src/style/load_sprite.ts # src/ui/map.ts
New iteration, let’s start from the previous toipics
More optimizations:
|
Overall this is alot better. |
namespace generates an anonymous wrapper. Equivalent of a class with all static methods, and far more compact when it comes to minimized scripts. |
THANKS! |
Launch Checklist
This is the same as #1856 which will be abandoned by AdamS108.
Need transfer the ownership over to me.
CHANGELOG.md
under the## main
section.