Refining Web Worker object loading

0.1
Rob Hawkes 2013-11-03 14:23:32 +00:00
rodzic f77bfe4e3a
commit d6a5ff1aed
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -72,6 +72,7 @@
VIZI.Log("Converting coordinates: " + (Date.now() - coordinateTime));
// TODO: See if initialising this before calling processFeaturesWorker speeds things up
var worker = cw({
processDebug: function(features) {
var inputSize = JSON.stringify(features).length;
@ -224,6 +225,7 @@
VIZI.Log(json);
// TODO: Stop this locking up the browser
// No visible lock up at all when removed
var geom = loader.parse(json);
var mesh = new THREE.Mesh(geom.geometry, material);
self.publish("addToScene", mesh);