Git Product home page Git Product logo

mono.gamemath's Introduction

Fast Managed Math for Games

Mono.GameMath is a project to develop a highly-performant math library for games.

There will be three components:

  • the math library
  • a benchmark suite
  • an IL manipulation tool

The Library

The math library API is initially based on the XNA math API, in order to make it easy to port code, however it will likely be expanded. Non-math algorithms used in games may also be added if contributed.

The library will have the following ifdefed versions:

  • "safe" - as a baseline and for sandboxed platforms
  • unsafe - for architectures without SIMD support
  • unsafe + Mono.Simd

Architecture-specific versions tuned for JIT & SIMD behaviour may be added later if benchmarks indicate this is necessary.

The Benchmark Suite

The benchmark suite will consist of micro-benchmarks to measure individual functions, and macro-benchmarks to test the interaction of multiple functions. The purpose of the benchmark suite is to ensure that optimizations actually improve the performance, and to be able to evaluate performance on different runtimes and CPU architectures where JIT behaviour may differ.

The benchmark runner will be able to run the benchmarks against different versions of the library with different optimizations. It will also be able to compare results against recorded baselines.

The IL Tool

The IL manipulation tool will be used to create differently tuned versions of the library, and to optimize consuming code, based on by attributes in the code. It may inline functions, rewrite pass- by-value function calls to use pass-by-ref overloads (especially for overloaded operators), and perhaps other optimizations such as profile-guided optimization (it would be great if we could use attributes to annotate things for the JIT to inline or to heavily optimize).

mono.gamemath's People

Contributors

mhutch avatar yasgamesdev avatar

Watchers

 avatar  avatar

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.