saul / demofile-net

Blazing fast cross-platform demo parser library for Counter-Strike 2 and Valve's Deadlock, written in C#.
MIT License
111 stars 10 forks source link

Parallel parsing doesn't work for POV demos #92

Closed in0finite closed 2 months ago

in0finite commented 2 months ago

Research

Description

Currently, parallel processing doesn't do anything for POV demos.

Seems that POV demos don't have CDemoFullPackets. But I would still want to do processing of demo on 1 background thread, without blocking the UI thread.

Maybe simply check if demo.FullPackets.Count == 0 and fallback to Task.Run(() => demo.ReadAllAsync()) ?

Code to reproduce

No response

Affected demos

No response