summaryrefslogtreecommitdiffhomepage
path: root/src/anim-atlas.cpp
AgeCommit message (Collapse)Author
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-11fix sprite bitmask generatorStanislaw Halik
This is WIP because it needs a more efficient algorithm.
2024-04-09aStanislaw Halik
2024-02-28switch to using unqualified calls to {move,forward,swap}Stanislaw Halik
2024-01-16aStanislaw Halik
2023-12-26aStanislaw Halik
2023-08-27call AbstractTexture::setLabel()Stanislaw Halik
2023-05-18wip vobjStanislaw Halik
2023-04-14rename shaderStanislaw Halik
2023-04-13add commentsStanislaw Halik
2023-03-26aStanislaw Halik
2023-03-25use operator""uz c++23 polyfillStanislaw Halik
2023-03-19move some deserialize path's asserts to soft assertsStanislaw Halik
2023-03-18pre-declare integer types without cstddef/cstdintStanislaw Halik
2023-03-18test/serializer: add new comprehensive testStanislaw Halik
2023-03-02Revert "src/anim-atlas: add bitmap optimization attempt"Stanislaw Halik
This reverts commit fea104b14632e3d51be7ce1abf71195e4f6b1a8d. Now it lives in the repo history.
2023-03-02src/anim-atlas: add bitmap optimization attemptStanislaw Halik
2023-03-02src/anim: fix off-by-one oob write for bitmapsStanislaw Halik
2023-03-02Revert "src/anim-atlas: put in adapted old bitmask code"Stanislaw Halik
This reverts commit 4e1823a8690992e6e0d9c54e41b333ea0dbc2be7. And now it's safely stored in revision history for the next time it's needed for comparison purposes.
2023-03-02src/anim-atlas: put in adapted old bitmask codeStanislaw Halik
2023-03-02src/bitmask: reformatStanislaw Halik
2023-03-02src/anim-atlas: fix bitmask undefined readStanislaw Halik
2023-02-27test: add bitmask benchmarkStanislaw Halik
2023-02-27compat/prelude: add operator""_uz() for size_tStanislaw Halik
2023-02-27src: optimize anim atlas bitmask generationStanislaw Halik
2022-12-01src/anim-atlas: fix dangling referenceStanislaw Halik
Found with: asan
2022-12-01anim-atlas: expose first rotationStanislaw Halik
2022-11-29anim, scenery: persist scenery rotation in editorStanislaw Halik
2022-11-29src: validate anim-atlas frames when loadingStanislaw Halik
2022-11-29anim-atlas: allow getting first available rotationStanislaw Halik
2022-11-27scenery wipStanislaw Halik
2022-11-25add scenery horizontal mirroringStanislaw Halik
2022-11-23scenery: add tableStanislaw Halik
2022-11-23anim-atlas: cleanup bitmask codeStanislaw Halik
2022-11-22finally it worksStanislaw Halik
2022-11-22wipStanislaw Halik
2022-11-21scenery workStanislaw Halik
2022-11-12add z component to anim_group world offsetStanislaw Halik
2022-11-12add offset to anim_group rotationsStanislaw Halik
2022-11-10flush itStanislaw Halik
2022-11-08make {,un}project() accept single-precision tooStanislaw Halik
2022-11-08fix anim offsetsStanislaw Halik
2022-11-08aStanislaw Halik
2022-11-07animations kinda workStanislaw Halik
2022-11-07wipStanislaw Halik
2022-11-07more std::stringStanislaw Halik
2022-11-07wipStanislaw Halik
2022-11-07add missing includesStanislaw Halik
2022-11-06aStanislaw Halik
2022-11-05aStanislaw Halik