Commit Graph

24 Commits

Author SHA1 Message Date
Lol3rrr
8208494c25 Export Variant 2024-09-26 17:48:09 +02:00
Lol3rrr
7114124096 Add id for entity 2024-09-26 17:03:45 +02:00
Lol3rrr
a2b3ee1845 Add extra netmessagetype 2024-09-23 00:41:43 +02:00
Lol3rrr
89dc6b6565 Remove some dbg statements 2024-09-22 23:44:29 +02:00
Lol3rrr
ff8d05b79a Change the way entity data is stored 2024-09-22 23:19:18 +02:00
Lol3rrr
8b41ad5108 Fix (clippy) warnings 2024-09-22 22:28:16 +02:00
Lol3rrr
041aa14fa9 Minor updates to the README 2024-09-22 20:38:55 +02:00
Lol3rrr
67d33f64c0 Fix formatting and minor restructuring
Fixed formatting using cargo fmt.
Change some parser structure to reduce code deduplication
2024-09-22 20:31:38 +02:00
Lol3rrr
c1e85d77dc Further perf improv attempts
Reuse the buffer when decompressing the frames
2024-09-22 18:12:31 +02:00
Lol3rrr
bead8549d4 Performance Improvements
Work on improving the performance of the entity parsing stuff

Benchmarked using hyperfine with 2 warmup runs on my M1 Macbook

Entities - Previous: 14.845 s ±  0.095 s
No-Entities - Previous: 318.4 ms ±  18.1 ms

Entities - New: 1.117 s ±  0.021 s
No-Entities - New: 325.4 ms ±  16.7 ms
2024-09-22 17:32:13 +02:00
Lol3rrr
c1568c4c07 Add basic example for parsing the ancient demos with and without entities
This was mainly done to both start having some examples and try out the API.
They also serve as a starting point for benchmarking
2024-09-22 17:13:14 +02:00
Lol3rrr
6d89de0663 Update tests and some more 2024-09-21 21:53:41 +02:00
Lol3rrr
ba237795fd Now keep track of entity state as well 2024-09-21 15:42:32 +02:00
Lol3rrr
a6df2c2ad1 Update git lfs config 2024-09-20 23:50:13 +02:00
Lol3rrr
1bf68e78e4 Start with entity support 2024-09-20 23:46:38 +02:00
Lol3rrr
c5237af33b Make UserId's inner value public 2024-09-17 17:11:12 +02:00
Lol3rrr
4417b263a0 Export player's team and color as well 2024-09-15 16:24:42 +02:00
Lol3rrr
cfff05a82f Add some more types and improve typing for player events 2024-09-15 16:13:40 +02:00
Lol3rrr
c479fb5b69 Add ancient test file and add store file information at the end of the game 2024-09-15 15:27:47 +02:00
Lol3rrr
52baa392fa Expose GameEvent's fields 2024-09-15 13:43:30 +02:00
Lol3rrr
8100b7ef21 Export DemoEvent 2024-09-15 13:40:36 +02:00
Lol3rrr
30a675140b Add Protobuf submodule 2024-09-15 05:13:45 +02:00
Lol3rrr
3fd12ab337 Remove submodule 2024-09-15 05:13:25 +02:00
Lol3rrr
c7aa4dbe8c Initial version 2024-09-15 05:09:15 +02:00