WEB WORKERS made my code over 100x faster (almost ZERO blocking time)
My game dev channel:
Web workers provide a way to get some sort of multi threading capabilities in JavaScript. They have limitations, but in the right circumstances they can lead to huge performance improvements. In this video, I show how I offload a ton of heavy computations to a worker thread to decrease a large amount of blocking time to almost zero.
More on "wave function collapse" algorithm: • This is coolest algorithm I've ever u...
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
My game dev channel:
MY GEAR:
Keyboard: https://adm42.dev/?ref=3
Neovim setup: https://github.com/joshuamorony/lazyvim/
Animations: https://motioncanvas.io/
0:00 Introduction
0:19 The problem
1:15 Why web workers
1:58 Setting up a web worker
3:15 Using web workers
3:51 Web workers and DOM access
4:58 The results
#angular #javascript #webworker
More tutorials: https://modernangular.com/