Coder Social home page Coder Social logo

Comments (5)

tttousa avatar tttousa commented on June 19, 2024

如题

from wasm-examples.

Hanks10100 avatar Hanks10100 commented on June 19, 2024

现在 js 引擎的优化已经很厉害了,尤其是对 for 循环。 wasm 在浏览器里复用的是一部分 js 引擎的实现,性能还不行,跑在独立的 runtime 里会好一些。

from wasm-examples.

tttousa avatar tttousa commented on June 19, 2024

from wasm-examples.

Hanks10100 avatar Hanks10100 commented on June 19, 2024

可以自己实验一下。 wasm 不是很适合做渲染,做高性能运算还可以,主要是目前 js 和 wasm 之间的传值效率不够高,如果频繁互相调用的话,挺影响性能的。

另外 wasm 是跑在 CPU 里的,大部分和 js 一样用在主线程里,浏览器主线程已经够忙的了, WebGL 可以写 shader 跑在 GPU 里,用它做渲染性能更好一些。

from wasm-examples.

tttousa avatar tttousa commented on June 19, 2024

from wasm-examples.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.