TASEmulators / desmume

DeSmuME is a Nintendo DS emulator
http://desmume.org
GNU General Public License v2.0
3.03k stars 551 forks source link

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

Open rofl0r opened 1 month ago

rofl0r commented 1 month ago

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 ;)

zeromus commented 1 month ago

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".