User Tag List

Results 1 to 5 of 5

Thread: New Experimental HTML5 Extension: WebWorker. Multithreading for HTML5 Runtime!

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DracisLooby's Avatar
    Join Date
    Jun 2008
    Location
    Washington, United States
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post New Experimental HTML5 Extension: WebWorker. Multithreading for HTML5 Runtime!

    Heya,

    I decided to create a basic extension for interacting with HTML5 WebWorkers.

    WebWorkers are scripts that are run in a separate thread then the main JS execution.
    When you create a WebWorker, it spawns a real OS level thread, and run concurrently to the main thread, thus not blocking it.

    You can post messages to the WebWorker, and can receive messages from the Worker. Also, errors in the scripts don't interrupt the main thread, but just fire an event that can be caught and listened for.

    If you're wondering why this matters, or what its useful for; You can put server I/O onto a separate thread, do heavy math calculations, or even hold use it to hold variables, all outside the main threads memory, meaning no hitches, pauses, or stutters in your application.

    As labeled, this extension is experimental, its designed for advanced users, and requires knowledge of JavaScript to create the WebWorker Scripts.

    The extension includes a help and example files.

    Download it Here

    I'll post a link to an example later when I make one.

    Let me know what you think!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Liking this, im really hoping more advanced extensions like this that can really make good use of HTML5 come out in the future.

    Much like the websockets extensions, although unfortunatly that does seem a little usless without the facility to host a websocket server.

    Nevertherless keep the good work up, ill download and have a play.

    Andy

  3. #3
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,003
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Could WebWorker be used to play external audio files?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DracisLooby's Avatar
    Join Date
    Jun 2008
    Location
    Washington, United States
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Oliver, unfortunately no, but I am working with Yves to implement the "Play Sound From External File" action in the sound object so that you can without needing any extension.

    @Gibbon, Thanks! I need to get a C++ WebSockets Server extension out when I get the chance to do some R&D, but for now I do WS experiments using Node.js and the WS module.

  5. #5
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,003
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    @Oliver, unfortunately no, but I am working with Yves to implement the "Play Sound From External File" action in the sound object so that you can without needing any extension.
    That's fantastic news Ben, thank you so much to both of you.

Similar Threads

  1. Tips, Tricks, and Quirks I've Found using the HTML5 Runtime
    By DracisLooby in forum HTML5 Export Module 2.5
    Replies: 12
    Last Post: 20th July 2018, 09:26 PM
  2. Windows Phone 8 and HTML5 runtime!
    By crayzorechos in forum HTML5 Export Module 2.5
    Replies: 6
    Last Post: 29th April 2016, 10:09 PM
  3. Java Script commands call from HTML5 runtime!
    By crayzorechos in forum HTML5 Export Module 2.5
    Replies: 15
    Last Post: 18th July 2014, 09:31 AM
  4. HTML5 runtime
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 10th May 2014, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •