Performance issues when attempting to render map layer and no GCS is defined
Describe the bug This model doesn't have a GCS defined, so shouldn't be trying to render Bing map layers. However, map layers are enabled by default and performance is horrible while they are on.
To Reproduce Steps to reproduce the behavior:
- Go to https://developer.bentley.com/my-itwins/d824e6fa-c25e-452c-9bb6-1b456986b921/a6cec42b-bd30-4d1a-8d2c-1158d2c8c6af/view
- Enable/disable map layers and notice the performance difference
Expected behavior If there is no GCS defined, there should not be an option to enable map layers. If there is a use-case to enable maps without a GCS, it should not be so detrimental to performance.
Desktop (please complete the applicable information):
- OS: Windows 11
- Browser: Tested on chrome and firefox
- Version: Firefox 120.0.1, Chrome 120.0.6099.130
- iTwin.js Version: Reproduced on 4.2.2 and 4.3.0
Additional context This model was created to demonstrate what happens when importing Revit data into Navisworks then using the NWD connector. The same Revit source data being imported through the RVT connector can be viewed at https://developer.bentley.com/my-itwins/d824e6fa-c25e-452c-9bb6-1b456986b921/0a14dbe8-39ce-4334-a189-77dc48ddb58e/view/. This still allows you to enable maps without a GCS defined, but does not have the same performance issue.
Arun's investigation notes: The denominator in the tiles counter starts at a high number and decreases, while the numerator doesn't change. Looking at the network tab, it didn't seem like any tiles were being fetched.