The world's fastest rendering engine, for emoji. Made for TerribleHack X
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
vendor
.gitignore
LICENSE
Readme.md
index.html
main.js

Readme.md

EmojiEngine

EmojiEngine (also known as 😢 Engine) is the world's best video game rendering engine for emoji, and only emoji. It's built with WebGL and can render 90,000 emoji at 60fps. It was built for TerribleHack X, Waterloo's terrible ideas hackathon.

Screenshot

Features

  • Varying sizes
  • Many different emoji
  • Retina display ready
  • Mouse control
  • Keyboard controls
  • Handles screen resizing

Performance Tricks

  • Uses GL point sprites to avoid sending too much geometry
  • Uses a mip-mapped sprite sheet for fast rendering of emoji at different scales.
  • Renders the emoji front to back with depth testing to completely avoid overdraw.
  • Binary transparency by dropping fragments, no need for alpha blending.
  • Processes state updates entirely using linear iteration over JS typed arrays, so that even updating everything every frame in JS is fast.

License

The code I wrote is released under the MIT license. The emoji data included is also under the MIT license from here. EmojiEngine also uses twgl.