ezquake-source icon indicating copy to clipboard operation
ezquake-source copied to clipboard

BUG: Poor performance when saving client-side qwd demos

Open meag opened this issue 4 years ago • 3 comments

ezQuake version: All

OS/device including version: All

Describe the bug Playing while recording client-side demos (.qwd) can produce microstutters.

lordlame: saving when his hard drive has less than 10% space left Nidweyr: saving on his new hard drive, period

Looking at the code, individual messages are written out in parts (sometimes byte by byte). There is a democache command-line option which helps, but it should be writing per-packet at least. Bonus points for moving to another thread.

To Reproduce Record a .qwd (/match_autorecord or manually with /recordqwd)

Expected behavior Smoother performance when recording demos, this isn't 1996

meag avatar Feb 20 '21 19:02 meag

Possible to record demos in memory instead? This would avoid SSD disk wear out.

Matrix-QW avatar Jul 30 '21 17:07 Matrix-QW

@Matrix-QW that is what democache does iirc

HangTimeQW avatar Jul 30 '21 19:07 HangTimeQW

I don't think the cmdline -democache is working properly or at all. It still writes matchinfo\demos\temp\_!_temp_!_.qwd when match starts. When match ends, it should only write to disk if match_auto_record 2 is set or with match_save. Also, would be possible to set democache as a variable instead of cmdline?

Matrix-QW avatar Jul 30 '21 22:07 Matrix-QW