Re: [AD] Allegro JavaScript port using Emscripten (First version complete)

[ Thread Index | Date Index | More Archives ]

not all allegro use cases are about high performance graphics.

there are plenty of games where 8fps is plenty fast enough.

On 15/06/2014 6:26 AM, Daniel Leslie wrote:
I just profiled this on my sluggish laptop, an older E350 machine, and nailed around 8fps on average.

I'm not too familiar with profiling HTML5, but the main culprits appear to be:

56% in WCF__flushMessageQueue()
This is an internal, and only around 1% was lost to call-outs. My uneducated guess is that there's a /tonne/ of message handlers registered that it's iterating through, or an equally enormous amount of unhandled messages.

16% in _glDrawArrays()
This is in skater_r.js.


On Sat, Jun 14, 2014 at 12:32 PM, <beoran@xxxxxxxxxx <mailto:beoran@xxxxxxxxxx>> wrote:

    This is a very nice beginning. I am in favour of already adding this
    to the development branch of allegro, or to a separate branch, to keep
    Max's good work safer from getting lost.

    On 6/14/14, Max Savenkov <max.savenkov@xxxxxxxxxx
    <mailto:max.savenkov@xxxxxxxxxx>> wrote:
    > Here's a result of my work for the last two months: a port of
    > to JavaScript via Emscripten. Patch for the latest Git version is
    > attached. The port isn't fully complete, but it has most of
    > functionality working, so I decided to present it to community for
    > testing and to generate interest.
    > Downloads & Further info:
    > Pre-compiled version:
    > Modified sources:
    > (Some) compiled dependencies:
    > Skater example:
    > Release post:
    > Porting your Allegro game to JavaScript with Emscripten:

Mail converted by MHonArc 2.6.19+