randomPoison / gunship-rs

An experimental game engine written in Rust.
MIT License
27 stars 3 forks source link

Better Support for Headless Testing #33

Open randomPoison opened 8 years ago

randomPoison commented 8 years ago

Right now the only way to test Gunship is to create a full running instance of the engine, including opening a window, creating a renderer, and initializing audio. For most testing and benchmarking it's not desirable to create all of these because it slows down tests and introduces too much overhead. We need some way of running tests and benchmarking specific subsystems within the engine. At the least this means being able to do headless testing on parts of the engine that don't require rendering (like collision detection and transform updates). This would need to work well with Rust's existing benchmark framework so that we can easily start running tests and get concrete information about performance.

Ultimately we'd like to replace Rust's benchmarking framework with something more robust, probably something that allows us to get hierarchical performance data from benchmarks to better determine hot spots.

randomPoison commented 8 years ago

A few thoughts: