Commit graph

1838 commits

Author SHA1 Message Date
ad36acf238 Fix memory leak in wgpu lib 2024-06-03 18:15:33 +03:00
22a57f91db Huge refactor: use util::hash_table instead of std::unordered everywhere 2024-06-03 14:36:39 +03:00
e79266d7e2 Make util::hash_table::empty() const 2024-06-03 14:36:09 +03:00
cbd99d1c4d Make util::hash_table more heterogeneous-friendly 2024-06-03 14:35:58 +03:00
bd1393c505 Improve working with ecs caches, support retrieving ecs cache & table count, and fix ecs query container memory leak 2024-06-03 13:59:50 +03:00
68d4adcad2 Support reporting ECS memory usage 2024-06-03 11:35:37 +03:00
7279a5b6f5 Fix unused caches in ecs::dispatcher 2024-06-02 15:48:04 +03:00
91c2dbca67 Fixed in util::hash_table clearing & destructor 2024-06-02 15:47:41 +03:00
2dd9d1e22d Remove unused include 2024-06-02 15:47:16 +03:00
44d30a6f8d Add fake percentile computation in util::statistics_lite based on normal distribution 2024-06-02 15:46:56 +03:00
100e2d6af8 Add missing includes in util/ebo 2024-06-02 15:32:26 +03:00
7333bcd922 Support removal from util::hash_table and add more hash table tests 2024-06-01 14:56:53 +03:00
fc18c75557 Fix ecs bug when finalizing removal of detached entity in the last row of the old table 2024-05-31 19:07:51 +03:00
0bfedccc7b Fix typo in ecs 2024-05-31 19:06:00 +03:00
c68418e868 Add static assert on bt::action result type 2024-05-30 21:58:44 +03:00
283bc9efe5 Add bt::lazy 2024-05-30 17:25:46 +03:00
e1201e7913 Fill in iterator traits for gltf accessor iterator 2024-05-28 12:36:40 +03:00
b5117ca8b2 Support quaternions in gltf::accessor_iterator 2024-05-28 12:36:03 +03:00
b04456066b Fix ecs documentation 2024-05-27 18:51:35 +03:00
d4f08acf24 Fix return type of geom::lerp 2024-05-26 17:11:08 +03:00
443fa3d8ca ECS object lifetime issues fixes 2024-05-24 21:42:17 +03:00
01b8bd3d59 Add pointwise log & exp for geom::vectors 2024-05-23 16:51:40 +03:00
b9b18b800d Properly call constructors & destructors when attaching/detaching ECS components 2024-05-23 13:28:48 +03:00
cedc29f39a Allow creating ECS entities inside batch systems 2024-05-21 19:20:04 +03:00
eab13e2ae5 Track uuid->type mapping for ecs components and throw an exception when the same uuid is used for different components 2024-05-21 13:38:05 +03:00
6591dd1893 Remove unused includes in ecs/container.hpp 2024-05-21 13:37:25 +03:00
938aa688cc Fix registering const components 2024-05-21 13:23:14 +03:00
70b260ec50 Fix delete[] alignment in ecs table storage 2024-05-21 13:22:49 +03:00
933874eddf Add #pragmas in ecs::accessor to silence false-positive dangling reference warning in GCC 2024-05-21 13:22:27 +03:00
d9935c7476 Use std::list in ecs::query_cache to prevent reallocation problems 2024-05-21 13:21:49 +03:00
c6f9fbd244 Add util::hash_all for creating a hash out of a bunch of objects 2024-05-21 13:21:01 +03:00
713a479eed Fix registering ecs constructors & destructors 2024-05-20 16:43:25 +03:00
1da8e341c5 Trigger constructors when cloning an ecs entity 2024-05-20 16:43:11 +03:00
2423547973 Bugfix: allow ecs constructors & destructors to mutate entities 2024-05-20 16:42:43 +03:00
045f399245 Refactor ecs::container::clone in terms of try_clone 2024-05-20 16:41:27 +03:00
1538fa002f Support util::function constructing from & assigning to nullptr 2024-05-20 16:41:01 +03:00
cae25f4719 Use wgpu instance extras to select the backend 2024-05-18 21:41:09 +03:00
fffd2c70e6 Update to wgpu-native v0.19.4.1 2024-05-18 21:40:54 +03:00
b436e7b2d8 Log used wgpu-native version 2024-05-18 21:19:08 +03:00
6581143837 Setup WebGPU logging 2024-05-18 21:13:43 +03:00
cb4a8e836f Missing include compilation fix 2024-05-15 13:39:09 +03:00
c18a8ba2c5 Add implicit util::hstring(const char*) constructor 2024-04-26 13:13:53 +03:00
119a323b72 Update package images to use ubuntu:24.04 with gcc-13 and mingw-13 2024-03-28 15:27:54 +03:00
6770ce908f Refactor trivial serialization 2024-03-27 21:37:10 +03:00
b26849e689 Minor pcg::lazy_perlin fix 2024-03-20 20:57:17 +03:00
83f92ae9cb Add util::dsu 2024-03-18 15:06:07 +03:00
bede9c95f9 Fix computing contact point in edge-edge case in cg::separation 2024-03-17 11:32:59 +03:00
663f7bc5f4 Support retrieving extra properties & raw mesh from gltf mesh 2024-03-16 17:37:57 +03:00
ff1c144f25 Add geom::outer_product 2024-03-16 00:25:20 +03:00
a5812c02c8 Add generic cg::triangle_mesh convex body 2024-03-15 23:27:24 +03:00