Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry Web Worker #1023

Merged
merged 48 commits into from
Aug 17, 2013
Merged

Geometry Web Worker #1023

merged 48 commits into from
Aug 17, 2013

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Aug 9, 2013

Moves Geometry creation and batching to a web worker.

I'm opening this request to get some early feedback. There are two failing tests. The reflection built-in material and the draw debug bounding sphere tests fail. The material test is a bug that can be reproduced in master and I'm opening an issue for it. I haven't decided the best way to fix the other test yet.
#1021 should be reviewed and merged before this.

bagnell and others added 30 commits July 31, 2013 20:55
…y inspecting the parameters, requiring in the module, and routing the event.
Conflicts:
	Source/Core/GeometryPipeline.js
Conflicts:
	Source/Core/WallGeometry.js
@@ -0,0 +1,22 @@
/*global define*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can/should this have unit tests?

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 11, 2013

This works well. JSHint is good. The tests are in the state advertised. Most of my comments minor. I expect we'll get this in soon after #1021.

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 11, 2013

@bagnell also, after going through this, I am even more inclined to suggest a "Writing Web Worker Safe JavaScript" blog post in addition to the post on the batching pipeline.

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 13, 2013

@bagnell can you already replace typeof checks with defined as in #1026?

@mramato
Copy link
Contributor

mramato commented Aug 13, 2013

@bagnell if there are a lot to replace, let me know and I can either show you how to do it with regex, or I can just do it for oyu.

Conflicts:
	CHANGES.md
	Source/Core/BoxGeometry.js
	Source/Core/ComponentDatatype.js
	Source/Core/CylinderGeometry.js
	Source/Core/EllipseGeometry.js
	Source/Core/ExtentGeometry.js
	Source/Core/GeometryPipeline.js
	Source/Core/PolygonGeometry.js
	Source/Core/WallGeometry.js
	Source/Renderer/Context.js
	Source/Scene/CentralBodySurface.js
	Source/Scene/Primitive.js
	Source/Scene/Scene.js
	Source/Scene/SkyAtmosphere.js
Conflicts:
	Apps/Sandcastle/gallery/Geometry and Appearances.html
	Source/Core/CylinderGeometry.js
	Source/Core/EllipsoidGeometry.js
	Source/Core/ExtentGeometry.js
	Source/Core/PolygonGeometry.js
	Source/Core/SphereGeometry.js
	Source/Core/WallGeometry.js
	Source/Scene/SkyAtmosphere.js
	Specs/Core/EllipsoidGeometrySpec.js
	Specs/Core/ExtentGeometrySpec.js
	Specs/Core/GeometryPipelineSpec.js
	Specs/Core/SphereGeometrySpec.js
@bagnell
Copy link
Contributor Author

bagnell commented Aug 16, 2013

@pjcozzi This is ready for another review.

@@ -798,62 +798,6 @@ defineSuite([
expect(context.readPixels()).toNotEqual([0, 0, 0, 0]);
});

it('renders more than 64K vertices of different polylines of different widths', function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose you deemed this test redundant/unnecessary?

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 17, 2013

Tests and JSHint pass. The Sandcastle example is good. New changes look good.

pjcozzi added a commit that referenced this pull request Aug 17, 2013
@pjcozzi pjcozzi merged commit 5a0c4dd into master Aug 17, 2013
@pjcozzi pjcozzi deleted the geometryWebWorker branch August 17, 2013 11:22
@pjcozzi pjcozzi mentioned this pull request Aug 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants