Search the Community
Showing results for tags 'minified'.
-
Hi guys, Recently I've tried out the web workers with babylon.js. It's pretty cool, because you can move some heavy computations (like vertex data generation) out of the UI thread. However the minified version of babylon.js cannot be used with web workers, since they only have an access to a very limited scope of DOM objects. Thus, since the minified version of babylon.js contains some calls to web-workers-non-supported objects (such as window), it throws an error. I think it would be great to divide the minified version into two: babylon.js which would contain "Pure" Javascript (or TypeScript) code, and web_babylon.js which would contain the code which uses a web related stuff (more precisely - calls to the objects which are not supported by Web Workers). What do you think?
-
I used var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight);It worked perfectly with min version. But I needed to add options and I did like this: var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight, {transparent: 'true'});And with dev version it works, but with min version doesn`t
- 2 replies
-
- bad english
- minified
-
(and 3 more)
Tagged with: