desmume icon indicating copy to clipboard operation
desmume copied to clipboard

[linux+?] zlib streaming of .zip files tanks performance

Open rofl0r opened this issue 1 year ago • 1 comments

State your operating system:

Linux gtk2 / cli

DesMuME version

git master

Issue

at least in the game "captain america (u)", using above frontends, the zlib streaming of a .zip archive, which appears to be on-the-fly, heavily affects performance between level section switches, resulting in high cpu load, low fps, and stuttering sound on a mid-level x86 device. using the extracted .nds file instead results in perfect performance. since most NDS games are < 100 mb, it may be better to extract the entire file to ram once on startup instead. i'm posting this both as a reminder and to hear @zeromus' thoughts, since his absence on IRC makes chatting difficult ;)

rofl0r avatar Oct 27 '24 19:10 rofl0r

zeromus has nothing useful to add for the linux frontend. I'm skeptical that the gzip is done on the fly, otherwise it would be absurdly slow. gzip is not "seekable".

zeromus avatar Oct 28 '24 04:10 zeromus