orillusion icon indicating copy to clipboard operation
orillusion copied to clipboard

[BUG]: onCompute function waste of resources

Open X-OldGentleMan opened this issue 1 year ago • 0 comments

Describe the bug

onCompute function in meshRendererhas some action , but some static mesh not use this function . this is a waste of resources . you can create a new meshRendererhasto fix this .

Orillusion engine version

State the version you use for developement, e.g. 0.6.0

Desktop (please complete the following information)

  • OS: [e.g. win, mac, android]
  • Browser [e.g. chrome]
  • Version [e.g. 113]

Code demo link

MeshRenderer.ts

protected onCompute(view: View3D, command: GPUCommandEncoder): void {
       if (this.morphData && this.morphData.enable) {
           this.morphData.computeMorphTarget(command);
       }
}

X-OldGentleMan avatar Apr 25 '23 03:04 X-OldGentleMan