mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 05:57:08 +01:00
6003615e3e
The game and the core library build with stdafx.h precompiled, the unit tests didn't: each of their ~150 files parsed windows.h, GLFW, glm and doctest anew, about 50 s each on a busy machine, half of the CPU time of the whole build. eu07_unit_tests precompiles stdafx.h and doctest.h too. main.cpp defines the implementation of doctest before including doctest.h and goes without. The vehicle physics stays out of the header: its unscoped enums (end::front...) clash with names in the tests. The test files take 28 min of CPU instead of 95 (10.7 s each on average), a full build some 4-5 minutes less on 16 cores. 1144/1144 tests, golden traces exact.