mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-23 11:55:54 +02:00
While a Spotify, YouTube Music or External Audio station is on, a song of the game's is made to read as the track that is playing. Crash on changing map - The game keeps each song in its registry under its artist and title, and takes it out by them when its bundle unloads. A song that read as Spotify's was looked for under Spotify's words and not found, so its own entry stayed behind, pointing at an asset that was freed. Registering the song again for the next map read that asset (Skate.exe+0x3dd1db0 from 0x43e260, joining a session with a station on). - Before a level transition every such song is given its own artist and title back, and none is held on to: they are the old map's. Memory - The artist and title a song is made to read were copied afresh on every call, and kept. That is once a track, but every frame while the station's song cannot be made to read (its asset gone after a map change, or 64 songs shown already): two copies a frame for as long as the station was on. Each text is now kept once. Memory log - The "Memory:" line also says how much is in the process's heaps (what ReSkate, the Spotify library and Windows' libraries allocate, apart from the game's own pools) and how many threads and handles there are, and it is written every two minutes as well as when memory moves by a quarter of a gigabyte.