summaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)Author
2024-05-05aStanislaw Halik
2024-05-05a wStanislaw Halik
2024-05-05a wStanislaw Halik
2024-05-05test/save: test light_proto harderStanislaw Halik
2024-05-05src: remove the tile_iterator classStanislaw Halik
This is too crufty to bother with.
2024-05-05reorder tests by execution speedStanislaw Halik
2024-05-02compat/assert: reduce executable sizeStanislaw Halik
2024-05-02now call script updateStanislaw Halik
2024-04-14add find_object specialization for scenery subtypesStanislaw Halik
2024-04-13split scenery-proto into its own fileStanislaw Halik
2024-04-13test/save: add explicit test for struct lightStanislaw Halik
2024-04-13instantiate scenery in a uniform mannerStanislaw Halik
Now using world::make_scenery(). Add `std::monostate` to the `scenery_proto` variant to catch potential bugs.
2024-04-13use inheritance for scenery, not std::variantStanislaw Halik
It's still WIP because creating scenery has to branch on all subtypes. This needs to be taken care of generically in `world::make_object()`.
2024-04-11rewrite bitmask implStanislaw Halik
It's slower than the previous version but fixes a bug when stride isn't a multiple of 8. It can be improved further by setting `auto& byte` all at once instead of setting individual bits of multiple bytes in the innermost loop. ------------------------------------------------------------ New version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 1911 us 1893 us 5 Bitmask_median 1911 us 1885 us 5 Bitmask_stddev 2.00 us 18.7 us 5 Bitmask_cv 0.10 % 0.99 % 5 ------------------------------------------------------------- ------------------------------------------------------------ Buggy version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 841 us 841 us 5 Bitmask_median 839 us 837 us 5 Bitmask_stddev 3.29 us 7.80 us 5 Bitmask_cv 0.39 % 0.93 % 5 ------------------------------------------------------------ ----------------------------------------------------------- Naive version Time CPU Iterations ------------------------------------------------------------ Bitmask_mean 4006 us 3997 us 10 Bitmask_median 4006 us 3997 us 10 Bitmask_stddev 2.29 us 0.000 us 10 Bitmask_cv 0.06 % 0.00 % 10 ------------------------------------------------------------
2024-04-11test: reorder tests based on execution speedStanislaw Halik
2024-04-11fix sprite bitmask generatorStanislaw Halik
This is WIP because it needs a more efficient algorithm.
2024-04-11aStanislaw Halik
2024-04-11aStanislaw Halik
2024-04-10aStanislaw Halik
2024-04-10testsStanislaw Halik
2024-04-10test++Stanislaw Halik
2024-04-09coverage++Stanislaw Halik
2024-04-09coverage++Stanislaw Halik
2024-04-09test: add more coverage for deserializerStanislaw Halik
2024-04-09aStanislaw Halik
2024-04-09aStanislaw Halik
2024-04-08wipStanislaw Halik
2024-04-08aStanislaw Halik
2024-04-08cStanislaw Halik
2024-04-06bring back update_world resync on entity movedStanislaw Halik
2024-04-04workaround msvc ICEStanislaw Halik
2024-04-04entity: fix getting enum min/maxStanislaw Halik
2024-04-04entity: fix getting vector min/maxStanislaw Halik
Leads to returning {0,0} and the field becoming uneditable in the GUI.
2024-04-04implement simplifying A* result pathStanislaw Halik
2024-03-24aStanislaw Halik
2024-03-24test/critter: speed up test executionStanislaw Halik
2024-03-24fix compile errorStanislaw Halik
2024-03-24test/critter: tighten up distance tolerancesStanislaw Halik
2024-03-24test/critter: reproduce bug fixed by commit 2b5a6e3fStanislaw Halik
2024-03-24test/critter: fix typoStanislaw Halik
2024-03-24cStanislaw Halik
2024-03-23bStanislaw Halik
2024-03-23wStanislaw Halik
2024-03-23wStanislaw Halik
2024-03-23aStanislaw Halik
2024-03-19cccStanislaw Halik
2024-03-06add more relevant critter testsStanislaw Halik
2024-03-06src/object: switch delta to 32-bitStanislaw Halik
2024-03-06test/critter: remove another accidental debug statementStanislaw Halik
2024-03-06test/critter: no need to store it twice in a rowStanislaw Halik