Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/healeycodes/compressing-cs2-demos
An example of compressing Counter-Strike 2 demo data.
https://github.com/healeycodes/compressing-cs2-demos
compress counter-strike delta-encoding demo
Last synced: 22 days ago
JSON representation
An example of compressing Counter-Strike 2 demo data.
- Host: GitHub
- URL: https://github.com/healeycodes/compressing-cs2-demos
- Owner: healeycodes
- Created: 2024-03-09T13:14:26.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-09T22:26:39.000Z (8 months ago)
- Last Synced: 2024-10-05T17:42:58.223Z (about 1 month ago)
- Topics: compress, counter-strike, delta-encoding, demo
- Language: Go
- Homepage: https://healeycodes.com/compressing-cs2-demos
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚙️ Compressing CS2 Demos
> My blog post: [Compressing CS2 Demos](https://healeycodes.com/compressing-cs2-demos)
A quick practical example of how to compress a CS2 demo.
Download the `pera-vs-system5-m1-vertigo.dem` demo from https://www.hltv.org/matches/2370182/pera-vs-system5-esl-challenger-league-season-47-europe and store it at the root.
Run `go run .` and check the size of the produced files (`naive.json`, `better.json`, and `better.proto`).
To generate protobuf code, run `protoc --go_out=. optimal.proto`.