Fps drops on simple threejs examples

i have virtual server machine with windows 8.1 and when i open threejs site with 3d model there its getting just stuck when i scrolling down, cus model start rotation on scroll.

fps drops to 3-4 even at threejs examples. On normal windows 10 with live server all totaly fine

Wouldn’t surprise me if the virtual server is running software emulated webGL.

Can you add the following code after your renderer construction and tell us what is output in the console?

   const renderer = new THREE.WebGLRenderer({ antialias: true });

...

    let gl = renderer.getContext();
    let debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
    let vendor='unk';
    let gpu = 'unk';
    try {
         vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
         gpu = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
    } catch (err) {
    }
    console.log(vendor, gpu);
1 Like

Google Inc. (Google) ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0DE)), SwiftShader driver)

i got this

Yeah I think that is a software emulated version of Vulkan.

Somehow the browser has had hardware acceleration disabled, or the machine itself doesn’t have a proper GPU.

Google says:

To enable hardware acceleration in Chrome on Windows 8, open the Chrome browser, click the three dots in the top right corner, select “Settings”, then navigate to “System” on the left side panel and toggle the option “Use hardware acceleration when available” to “on” - remember to restart Chrome for changes to take effect.

i have hardware acceleration,


[.WebGL-00000A20040F9500] GL_INVALID_OPERATION: Error: 0x00000502, in ..\..\third_party\angle\src\libANGLE\renderer\vulkan\CommandProcessor.cpp, finishToSerial:1072. Internal Vulkan error (2): A wait operation has not completed in the specified time.
[.WebGL-00000A20040F9500]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels

so what you reccomend is it windows server 8.1 low or i need maybe windows server new version ?

How well does this sample run?

https://threejs.org/examples/webgl_postprocessing_unreal_bloom.html

If it runs slowly… you probably don’t have hardware acceleration enabled.

What is generating that error btw? That seems like a separate issue…

black screen seems stuck and cpu cooler going crazy

If other threejs examples are running slowly, then its an indication that your drivers are bad somehow, and chrome is defaulting to software emulated WebGL.

Can you try it in Edge browser and see if the behavior is the same?

what kind of drivers i need cpu , graphic card ?

graphics card drivers.

doesnt recognize card, try different drivers. Seems i need attach graphic card to vm virtual machine. i have only cpu and memory in options of it

1 Like

Sounds plausible.