Method SetBlockSize
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
SetBlockSize(int)
Sets the number of primitives to be drawn as a block when using WebGL. The higher value the quicker the render will be.
public void SetBlockSize(int blockSize)
Parameters
blockSizeintThe number of triangles to be drawn all together. Default value is 100.Minimum value is 20.
Remarks
Caution! some devices may fail after a specific limit.
Used with EnableWebGL(bool).
Set it to a positive value in order to render in 3d webgl modes, the entire model layout entities with in one(1) single list which is faster because it uses the GPU opengl driver.
If use positive value may you need to call the UpdateLayout(object, bool) if you have change properties of entities.
The control internally call UpdateLayout(object, bool) in most cases of adding new entities or with user actions that transform entities or changing grip positions
A positive value also uses more amount of memory
Alternative you can set the block size to a negative value in order not to use model layout single list
Osnaps are not working with WebGL
Note that when a 3D drawing is opening, by default WebGl is active for performance reasons.
User can change the view from RenderWebGl or ShadeWebGl to Render or Shade using the SetRenderMode(int).