| 28 | } |
| 29 | |
| 30 | bool Application::prepare(const ApplicationOptions &options) |
| 31 | { |
| 32 | assert(options.window != nullptr && "Window must be valid"); |
| 33 | |
| 34 | auto &_debug_info = get_debug_info(); |
| 35 | _debug_info.insert<field::MinMax, float>("fps", fps); |
| 36 | _debug_info.insert<field::MinMax, float>("frame_time", frame_time); |
| 37 | |
| 38 | lock_simulation_speed = options.benchmark_enabled; |
| 39 | window = options.window; |
| 40 | |
| 41 | return true; |
| 42 | } |
| 43 | |
| 44 | void Application::finish() |
| 45 | { |