Comments (4)
Testing the demo scene (README.md example) gives me a solid 60 fps in this old laptop:
Intel® Core™ i5-3210M CPU
Intel® HD Graphics 4000 (IVB GT2)
8GB Ram
Tested on Chrome and Firefox.
Could you provide more detailed steps to reproduce? browser versions you have tested, OS, etc...
Does the same thing happen if you disable the shadows?
from react-stl-viewer.
This was tried on Brave Browser.
The issue did not occur in other browsers.
In terms of reproducing I started a new project and just added the code from the example.
Removing shadows had no effect on the fps.
from react-stl-viewer.
Testing the scene in Brave gives me very good performance (tested on 1.33.106).
This is more likely an issue in webgl2 and Brave compatibility. Also latests versions of three.js seem to be causing problems in Brave (#mrdoob/three.js#22676).
In Brave search bar, you can write brave://gpu/ and it will tell you the graphics feature status.
In any case, there is nothing we can do in this library as it doesn't control the underlying rendering engine.
from react-stl-viewer.
So apparently I'm running on software only so it makes sense about the lag. So it is probably a combination between three.js and my brave settings.
Canvas: Software only, hardware acceleration unavailable
Canvas out-of-process rasterization: Disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Disabled
Rasterization: Software only. Hardware acceleration disabled
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Software only, hardware acceleration unavailable
WebGL2: Software only, hardware acceleration unavailable
from react-stl-viewer.
Related Issues (20)
- i dont know if i have exactly the same problem, this is my error HOT 3
- Error when installed HOT 3
- Bundle size is too big HOT 4
- export 'ParametricGeometry' (imported as 'ParametricGeometry') was not found in 'three' HOT 1
- Update peer dependencies HOT 2
- Please add LICENSE file
- Problem working in build HOT 3
- Provide stl content from string HOT 2
- Error after installing react-stl-viewer HOT 4
- Can't display STL files by giving file's path HOT 2
- Lighting not working HOT 5
- Low quality render HOT 2
- Can I calculate the volume of the model? HOT 1
- Is there an example of updating the camera initial position? HOT 2
- Example usage in readme gives invalid typed array length error HOT 5
- Set orthogonal or perspective views HOT 4
- Remove useLegacyLights HOT 1
- file prop support gone in version 2.0.0 HOT 2
- how I am accessing and changing the "interfaces"? HOT 2
- viewer do not showing anything with big files HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-stl-viewer.