; LoadWorldDocumentAsync Example - Extended mode Graphics3D 320,200,0,2 document=CreateWorldDocument("preview-example","Preview Example") If document=0 Then RuntimeError WorldDocumentError() world=LoadWorldDocumentAsync(document,WORLD_LOAD_NO_STREAMING) While Not WorldReady(world) If WorldLoadState(world)=WORLD_LOAD_FAILED Then RuntimeError WorldLoadError(world) UpdateAsyncLoads 1.0 Delay 0 Wend Print "Immutable runtime mirror is ready" FreeWorld world FreeWorldDocument document EndGraphics End