Giter Club home page Giter Club logo

Comments (1)

kanaka avatar kanaka commented on May 30, 2024

Fixed by the following commits:
a93c955
9479c72
4a96178
bc8e3d4

I went with a variation on event coalescing. But instead of sending fewer events, I still send an event any time data is received, however, the events are just notification and the data frames are added to the dataQueue array.

The JS calls a new AS routine (readSocketData) to received the queued frame array.

Message event are not the only events dropped in Opera so I also added more direct calls to read readyState instead of relying on those events getting through reliably. Also, under data pressure in Opera, event drops can be so high that performance is severely impacted (all data still gets through just slowly), so I added a timer to poll readSocketData just in case.

With this change, firefox no longer has reordered frames and performs better (fewer bigger transfers) and Opera actually works.

from novnc.

Related Issues (20)

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.