At one of my client, we are using a lot of GIS related functionality. There are a lot of GIS related products out there, but we are using the ArcGIS JavaScripts Maps SDK from ESRI.
We are quite happy with the product and the feature it has to offer. However last week we got the feedback that the MapViewer we had integrated in our applications was quite slow when running in a virtual machine.
We could easily reproduce the issue by browsing to the example page from ArcGIS MapViewer:
We noticed that not only the map itself was loaded quite slowly, any other activity(zooming, scrolling, …) was also with a noticeable delay.
When we looked at the browser console, we noticed the following warnings:
Especially the following warning captured our interest:
[.WebGL-000026F40027F100]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
As we are running in a Virtual Machine it looks like Chrome didn’t want to use GPU acceleration. Luckily we can force Chrome to still use GPU acceleration by ignoring the GPU blocklist.
Therefor go to chrome://flags/#ignore-gpu-blocklist and toggle the value to Enabled:
Click on Relaunch to apply the changes.