Hello,
We are having issue initializing Cesium.viewer.
Environment details are below:
-window 7 Enterprise 32 bit OS
-IE11 32 bit
-Intel graphics card 4000 and driver version#9.17.10.2843 with total memory 1205MB
var viewer = new Cesium.Viewer("geoFrameDiv",{
baseLayerPicker : false,
geocoder : false,
homeButton: false,
sceneModePicker : false,
selectionIndicator : true,
navigationHelpButton : false,
animation : false,
infoBox : true,
timeline : false,
fullscreenButton : false,
useDefaultRenderLoop : true,
targetFrameRate : parseInt(<%= geoMapFrameRate%>),
});
We are getting a RuntimeError: The browser supports WebGL, but we see a initialization failed error and I have tried out with cesium hello world example as well but same error.
However, exactly same configuration works fine with 64 bit browser (& OS).
After some search in forums, I found following property that helped others to overcome runtimeerror for viewer initialization scenario but there is not much details about the environment they used.
contextOptions : {webgl:{failIfMajorPerformanceCaveat:false} },
Cesium viewer was able to initialize successfully when I changed the viewer code to the following:
var viewer = new Cesium.Viewer("geoFrameDiv",{
baseLayerPicker : false,
geocoder : false,
homeButton: false,
sceneModePicker : false,
selectionIndicator : true,
navigationHelpButton : false,
animation : false,
infoBox : true,
contextOptions : {webgl:{failIfMajorPerformanceCaveat:false} },
timeline : false,
fullscreenButton : false,
useDefaultRenderLoop : true,
targetFrameRate : parseInt(<%= geoMapFrameRate%>),
});
I have following questions on failIfMajorPerformanceCaveat property set false:
Why are we setting "failIfMajorPerformanceCaveat " to false to initialize "cesium viewer"? How is it helping in initializing?
How to find out what is actually causing to fail in initialization? so that I can add failIfMajorPerformanceCaveat with false value conditionally to avoid initialization errors per user browser or OS?
By setting failIfMajorPerformanceCaveat property to false, what is the impact of cesium functionally and performance?
Thanks
srini