Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

I noticed something odd in the network tab of the dev console: the 'end.wav' file is repeatedly downloaded and the amount of transferred data keeps increasing. I would expect that media would be loaded once and reused instead of being downloaded repeatedly.

(2 edits)

i am aware of this, it was the only thing i could think of to make multiple of them at the same time, because otherwise every time you start playing it, the previous sound (from the same file) would stop, and it sounds pretty weird, as far as i know there isnt a way to make custom audio callback in JS, which ive done already in SDL, so there wouldnt be a problem to remake it in JS.
I didnt know it downloads the sound every time.
I dont think its the source of the lag, i think the obfuscation is

i will actually give you extra info about this, this is the audio_play function, to be honest i had no idea cloneNode() has anything to do with network, and im sorry (ap_tick is reset to [] every tick)