Shorten node IDs within loaded subgraphs
Reported by lindsay.kay (at xeolabs) | June 1st, 2010 @ 07:46 AM | in V0.7.6
This pertains to the LoadCollada node in particular - the type property it configures on Geometry nodes is a concatenation of the URL of the DAE file, so is often long. SceneJS tests for the existence of Geometry VBOs with against that type every time it renders a Geometry, so this should be shortened.
The LoadModule will feed the unique and short "asset ID" it automatically generates for each Geometry into the parser (eg. ColladaParserModule), for the parser to use as the base for IDs.
This is a major optimisation - for example, the Courtyard House Collada demo is performing over 300 comparisons on Geometry type properties each frame, and those values are over 100 chars long!
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) June 1st, 2010 @ 08:16 AM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.