Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Witch's Heart: Bad performance in Lime's minigame #1833
Name of the game:
Witch's Heart (http://vgperson.com/games/witchheart.htm)
Attach files (as a .zip archive or link them)
Describe the issue in detail and how to reproduce it:
Enable the FPS counter.
Talk to Lime, and pay the 100 coins. Walk on one of the directional buttons, you will see a short hang and FPS drop. (best seen in debug build, goes down to 30 FPS here)
Thats a bug with the audio system, when using "--disable-audio" the lag is gone. Oh this maybe helps fixing the lag spikes in other games we never observed on PC, awesome.
SE files are completely decoded when being played and cached (the reason for this is to reduce CPU stress on slow systems, it e.g. solved stuttering when a game uses footstep sounds).
Same problem reported by Izzy at https://community.easyrpg.org/t/733
Probably does not affect, but apart of caching/streaming fixes I'd suggest to update SDL2 to the latest version, it uses OpenSL ES by default, and verify if we still need to use libsndfile, speexdsp and other libs with recent SDL2 versions or use it directly where possible.
I know where the problem is and at least for the audio systems that depend on GenericAudio I have a fix in the works.
Other performance observations: