Read replay faster as well

This commit is contained in:
Sofia 2026-07-26 23:42:36 +03:00
parent 212a10e16c
commit 06ca80a529

View File

@ -43,7 +43,7 @@ impl StandaloneReplayManager {
if let Some(mut file) = FileAccess::open(path, ModeFlags::READ) { if let Some(mut file) = FileAccess::open(path, ModeFlags::READ) {
let mut bytes = Vec::new(); let mut bytes = Vec::new();
while !file.eof_reached() { while !file.eof_reached() {
bytes.push(file.get_8()); bytes.extend(file.get_buffer(1_000_000).to_vec());
} }
let bytes = Cursor::new(&mut bytes); let bytes = Cursor::new(&mut bytes);