Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:00:53+00:00 2026-06-03T21:00:53+00:00

I am trying to render a very complex model using json file. The size

  • 0

I am trying to render a very complex model using json file. The size of the json file is 40MB it is a huge data, I can render the model on canvas.

Now the problem is rendering is done very very slowly. If i try to rotate the model or zoom in, whole browser hangs, it is such a slow.

As i m new to webgl i do not know what is causing this problem. Looked around didnt find anything.

Is it the size of json file which is affecting rendering? how can i make the perfomance better? I should mention this, it is not a problem of graphic card. things like body browser is very fast.

I am using three.js jason loader for this method

loader = new THREE.JSONLoader();
loader.load( 'file.js', function ( geometry ) {
    geometry.computeVertexNormals();
    mesh = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial( ) );
    scene.add( mesh );
} );

For rendering, i am doing this inside init

renderer = new THREE.CanvasRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );

Render function is called in animate()

function animate() {
    requestAnimationFrame( animate );
    render();
    stats.update();
}

and in render function rotating the mesh like this

function render() {
    mesh.rotation.x += ( targetXRotation - mesh.rotation.x ) * 0.05;
    mesh.rotation.y += ( targetYRotation - mesh.rotation.y ) * 0.05;
    renderer.render( scene, camera );
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:00:54+00:00Added an answer on June 3, 2026 at 9:00 pm

    You tagged this question as “webgl”, so I think you would like to use the WebGL renderer:

    renderer = new THREE.WebGLRenderer();
    

    instead of the canvas one:

    renderer = new THREE.CanvasRenderer();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to render a complex XML document as webpage(FF only) using a
i'm very new to jQuery : I'm trying to render my JSON from a
I have a simple JSON object graph I'm trying to render using a Mustache
Trying to process a very simple html5 script and render it using html5lib import
I'm trying render the results of surveys from Surveryor gem as a CSV file,
I've been trying to render the entire canvas in an IWebBrowser2 control to a
I'm trying to use mustache templates to render very simple forms, however, one of
I am trying to render to a texture using openGL ES (for iPhone) and
I'm trying to get ghostscript to render a pdf file from a Windows box.
I'm trying to figure out how I can automatically render a view as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.