Skip to content

Viability as a game scripting language? #2203

@scambier

Description

@scambier

Hello, I'm building a small game engine for myself - think something between Love2D and TIC-80 - and reviewed a few scripting languages. I'd love to use Boa because it would allow me to use TypeScript and easily distribute my games for the web. I made a small PoC that's doing fine, except that performances are very underwhelming.

I wrote small benchmark that spawns bouncing rectangles until I reach 50fps, and compared results between Boa, Rust, and TIC-80 (that uses Duktape as its JS engine):

  • Rust: 18.780 rects
  • TIC-80: 8.189 rects
  • Boa: 810 rects

Now it's not impossible that I made some obvious mistake while implementing Boa, but even then, a 10:1 difference against a similar project is surprising.

Are there long-term improvements planned for performances?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions