Comments (2)
Could you provide a basic code example of your problem? That will help me understand the question better, in general this is useful for computational work only. If you have logic that needs to for example do some multiplication, string manipulation, encryption is the main use case.
On a more technical level, the library can't really help do much with the dom itself as threads are sandboxed environments and cannot access the main window thread or dom at all. They're communicated with through a message passing interface so Im not sure it would work for your problem.
Maybe try something like this will help ;)
setTimeout(function() {
canvas.render();
}, 4);
Do that in a loop of some sort and wrap the render in a timeout, due to the way timeout works it might give you some async behavior that you want but it won't in general make the dom more performant.
from hamsters.js.
Closing this now, thanks @Sushil-Dhiver
from hamsters.js.
Related Issues (20)
- Uncaught ReferenceError: adTestentListener is not defined HOT 1
- Tests not pasing HOT 1
- React-native android side, typeerror using hamsters and react-native-threads HOT 18
- how to migrate from v4 to v5 HOT 18
- Promises error HOT 15
- rtn data is pushed on different index than 0 HOT 19
- Windows 10 | Node.js - no output when using hamsters.js + webworker-threads package HOT 13
- The examples in the website don't have the source code of the example HOT 2
- Cannot read property 'buffer' of undefined." HOT 4
- im not getting correct results from the rtn.data object in hamsterjs v5.1.3 HOT 21
- Pointers for use with ReactJS HOT 2
- react-native-threads not working. HOT 2
- react native workers HOT 4
- ERROR: while initiating hamsters.js [React Native] HOT 5
- Your country is blocked from accessing this content. HOT 1
- http://www.hamsters.io/ offline HOT 2
- Anyone use hamesters.js successfully in Chrome Browser ? HOT 3
- Uncaught TypeError: hamsters.run is not a function HOT 3
- rtn undefined HOT 4
- react-native-hamsters/example - undefined is not an object (evaluating 'message.data.data') HOT 1
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 hamsters.js.