Coder Social home page Coder Social logo

drkibitz / openfl-drkibitzmark Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 1.42 MB

Benchmark Rendering Implementations for OpenFL

Home Page: http://drkibitz.com/ci/jobs/openfl-drkibitzmark/

Haxe 100.00%
openfl haxe mark blit bitmap tilelayer stats

openfl-drkibitzmark's Introduction

drkibitz drkibitz Mark

Tests rendering performance using Haxe and Openfl. Based on all the previous versions of the Bunny Benchmark by Ian Lobb.

Running

  • If you haven't already, please follow these directions to get OpenFL up and running.
  • Run the following command, where {target} is the OpenFL target, and {IMPLEMENTATION} is the rendering implementation:
openfl test {target} -D{IMPLEMENTATION}
  • Alternatively, open the project.xml file and change the following:
<!-- Default implementation -->
<set name="MARK_BITMAP" />
  • When your application starts, watch the trace output for stats.

Implementations

If you have "the most amazing" rendering engine and would like it included, let me know! Please, just make sure it is compatible with OpenFL. If so, I'll try to make a mark for it.

bitmap

  • Define MARK_BITMAP
  • Use the default display list and Bitmap objects

blit

  • Define MARK_BLIT
  • Render using one large Bitmap and copyPixels (blitting)

drawtiles

  • Define MARK_DRAWTILES
  • Render using a Tilesheet, drawList Array, and drawTiles

pixi

  • Define MARK_PIXI
  • OpenGLView rendering using a very small haxe fork of Pixi.js
  • flash target is incompatible

tilelayer

  • Define MARK_TILELAYER
  • Requires openfl-tilelayer. To install run haxelib install tilelayer.

Expected Results

Screen Shot

Tested Targets

These are just my home tests, and includes my observations of implementation performance from best to worst. I'm not including any numbers (yet). Sorry, please build, watch the stats, and see for yourself.

  • neko: drawtiles -> tilelayer -> pixi -> blit -> bitmap
  • html5: pixi -> blit -> drawtiles -> tilelayer -> bitmap
  • mac: drawtiles -> tilelayer -> pixi -> blit -> bitmap
  • linux: drawtiles -> tilelayer -> pixi -> blit -> bitmap
  • ios: drawtiles -> tilelayer -> pixi -> blit -> bitmap
  • flash: blit -> bitmap -> drawtiles -> tilelayer

TODO

  • Eventually create an openfl-stage3d mark
  • Would like to remove the small fork of Pixi.js and use a proper GL implementation
  • May do something with openfl-pixi, but not sure

openfl-drkibitzmark's People

Contributors

bitdeli-chef avatar drkibitz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bmfs

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.