saul / demofile-net

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

Parallel parsing doesn't work for POV demos #92

Closed in0finite closed 1 week ago

in0finite commented 3 weeks 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